PyNiteFEA 3.2.1__tar.gz → 3.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. {pynitefea-3.2.1 → pynitefea-3.2.2}/PKG-INFO +15 -1
  2. {pynitefea-3.2.1 → pynitefea-3.2.2}/PyNiteFEA.egg-info/PKG-INFO +15 -1
  3. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Analysis.py +17 -13
  4. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/BeamSegY.py +4 -4
  5. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/FEModel3D.py +24 -6
  6. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/LoadCombo.py +3 -3
  7. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Member3D.py +12 -9
  8. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Mesh.py +6 -6
  9. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/PhysMember.py +5 -5
  10. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/VTKWriter.py +5 -3
  11. {pynitefea-3.2.1 → pynitefea-3.2.2}/README.md +14 -0
  12. {pynitefea-3.2.1 → pynitefea-3.2.2}/pyproject.toml +1 -1
  13. {pynitefea-3.2.1 → pynitefea-3.2.2}/LICENSE +0 -0
  14. {pynitefea-3.2.1 → pynitefea-3.2.2}/PyNiteFEA.egg-info/SOURCES.txt +0 -0
  15. {pynitefea-3.2.1 → pynitefea-3.2.2}/PyNiteFEA.egg-info/dependency_links.txt +0 -0
  16. {pynitefea-3.2.1 → pynitefea-3.2.2}/PyNiteFEA.egg-info/requires.txt +0 -0
  17. {pynitefea-3.2.1 → pynitefea-3.2.2}/PyNiteFEA.egg-info/top_level.txt +0 -0
  18. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/BeamSegZ.py +0 -0
  19. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/FixedEndReactions.py +0 -0
  20. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/MainStyleSheet.css +0 -0
  21. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/MatFoundation.py +0 -0
  22. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Material.py +0 -0
  23. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Node3D.py +0 -0
  24. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Plate3D.py +0 -0
  25. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Quad3D.py +0 -0
  26. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Rendering.py +0 -0
  27. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Report_Template.html +0 -0
  28. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Reporting.py +0 -0
  29. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Section.py +0 -0
  30. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/ShearWall.py +0 -0
  31. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Spring3D.py +0 -0
  32. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Tri3D.py +0 -0
  33. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/Visualization.py +0 -0
  34. {pynitefea-3.2.1 → pynitefea-3.2.2}/Pynite/__init__.py +0 -0
  35. {pynitefea-3.2.1 → pynitefea-3.2.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyNiteFEA
3
- Version: 3.2.1
3
+ Version: 3.2.2
4
4
  Summary: A simple 3D structural finite element library for Python.
5
5
  Author-email: "D. Craig Brinck, PE, SE" <Building.Code@outlook.com>
6
6
  License-Expression: MIT
@@ -114,10 +114,24 @@ Here's a list of projects that use Pynite:
114
114
  * Phaenotyp (https://github.com/bewegende-Architektur/Phaenotyp) (https://youtu.be/shloSw9HjVI)
115
115
 
116
116
  # What's New?
117
+ 3.2.2
118
+ * More performance improvements. Large models solve faster.
119
+ * Member plot vertical axis labels now identify the plotted direction.
120
+ * Correction to member mass lumping formulation.
121
+ * Fixed nodal loads being lost when merging duplicate nodes.
122
+ * Fixed shared default control points between mat foundations.
123
+ * Fixed `delete_loads()` retaining shear wall and mat foundation helper loads.
124
+ * Fixed mesh result envelopes selected by load combination tags.
125
+ * Fixed object loss when renaming nodes and elements with overlapping numbered names.
126
+ * Fixed shared default load factors between directly created load combinations.
127
+ * Fixed member result arrays when sampling physical members sparsely.
128
+
117
129
  3.2.1
130
+ * Fixed load combination handling in VTK nodal load and displacement exports.
118
131
  * Replaced inneficient member `T` matrix inversions with transposes.
119
132
  * Fixed local member load transformations when calculating modal mass.
120
133
  * Corrected the centroid calculation for linearly varying distributed loads used to locate lumped mass.
134
+ * Fixed node deletion to remove connected spring elements.
121
135
 
122
136
  3.2.0
123
137
  * Added shear wall pier top results and coupling beam right hand side results to the pier/coupling beam force results output.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyNiteFEA
3
- Version: 3.2.1
3
+ Version: 3.2.2
4
4
  Summary: A simple 3D structural finite element library for Python.
5
5
  Author-email: "D. Craig Brinck, PE, SE" <Building.Code@outlook.com>
6
6
  License-Expression: MIT
@@ -114,10 +114,24 @@ Here's a list of projects that use Pynite:
114
114
  * Phaenotyp (https://github.com/bewegende-Architektur/Phaenotyp) (https://youtu.be/shloSw9HjVI)
115
115
 
116
116
  # What's New?
117
+ 3.2.2
118
+ * More performance improvements. Large models solve faster.
119
+ * Member plot vertical axis labels now identify the plotted direction.
120
+ * Correction to member mass lumping formulation.
121
+ * Fixed nodal loads being lost when merging duplicate nodes.
122
+ * Fixed shared default control points between mat foundations.
123
+ * Fixed `delete_loads()` retaining shear wall and mat foundation helper loads.
124
+ * Fixed mesh result envelopes selected by load combination tags.
125
+ * Fixed object loss when renaming nodes and elements with overlapping numbered names.
126
+ * Fixed shared default load factors between directly created load combinations.
127
+ * Fixed member result arrays when sampling physical members sparsely.
128
+
117
129
  3.2.1
130
+ * Fixed load combination handling in VTK nodal load and displacement exports.
118
131
  * Replaced inneficient member `T` matrix inversions with transposes.
119
132
  * Fixed local member load transformations when calculating modal mass.
120
133
  * Corrected the centroid calculation for linearly varying distributed loads used to locate lumped mass.
134
+ * Fixed node deletion to remove connected spring elements.
121
135
 
122
136
  3.2.0
123
137
  * Added shear wall pier top results and coupling beam right hand side results to the pier/coupling beam force results output.
@@ -896,21 +896,25 @@ def _unpartition(model: FEModel3D, V1: NDArray[float64], V2: NDArray[float64], V
896
896
  :rtype: array
897
897
  """
898
898
 
899
+ # Start with a global vector of zeros, one term for each of the 6 dofs at every node
899
900
  V = zeros((len(model.nodes)*6, 1))
900
901
 
901
- # Step through each node in the model
902
- for node in model.nodes.values():
903
-
904
- # Step through each degree of freedom at the node
905
- for i in range(6):
906
-
907
- # Check if the dof is in the list of known vector terms
908
- if node.ID*6 + i in V2_indices:
909
- # Get the vector term for the bounded dof
910
- V[(node.ID*6 + i, 0)] = V2[V2_indices.index(node.ID*6 + i), 0]
911
- else:
912
- # Get the vector term for the unbounded dof
913
- V[(node.ID*6 + i, 0)] = V1[V1_indices.index(node.ID*6 + i), 0]
902
+ # Each term in `V1` belongs at the global dof index listed at the same position in
903
+ # `V1_indices`. NumPy's integer-array indexing places all of them in a single vectorized step.
904
+ # The previous implementation looped over every dof and searched the index lists with
905
+ # `list.index()` for each one, which scaled with the square of the number of dofs and became
906
+ # a bottleneck on large plate/quad models.
907
+ if len(V1_indices) > 0:
908
+ # Reshape `V1` to a column so it lines up with the rows being filled, whether it arrives as
909
+ # an (n, 1) array or as a flat list/array
910
+ V[V1_indices, :] = asarray(V1, dtype=float).reshape(-1, 1)
911
+
912
+ # Place the terms of `V2` (the dofs with boundary conditions) at their global indices the same
913
+ # way. `V1_indices` and `V2_indices` never share a dof, so the order of these two steps does
914
+ # not matter.
915
+ if len(V2_indices) > 0:
916
+ # Reshape `V2` to a column, as was done for `V1`
917
+ V[V2_indices, :] = asarray(V2, dtype=float).reshape(-1, 1)
914
918
 
915
919
  # Return the vector
916
920
  return V
@@ -125,10 +125,10 @@ class BeamSegY(BeamSegZ):
125
125
  x2 = 0
126
126
 
127
127
  # Find the moment at each location of interest
128
- M1 = self.moment(x1)
129
- M2 = self.moment(x2)
130
- M3 = self.moment(x3)
131
- M4 = self.moment(x4)
128
+ M1 = self.moment(x1, P_delta)
129
+ M2 = self.moment(x2, P_delta)
130
+ M3 = self.moment(x3, P_delta)
131
+ M4 = self.moment(x4, P_delta)
132
132
 
133
133
  # Return the maximum moment
134
134
  return max(M1, M2, M3, M4)
@@ -930,7 +930,7 @@ class FEModel3D:
930
930
  # Flag the model as unsolved
931
931
  self.solution = None
932
932
 
933
- def add_mat_foundation(self, name, mesh_size, length_X, length_Z, thickness, material_name, ks, origin=[0, 0, 0], x_control=[], y_control=[]):
933
+ def add_mat_foundation(self, name, mesh_size, length_X, length_Z, thickness, material_name, ks, origin=[0, 0, 0], x_control=None, y_control=None):
934
934
 
935
935
  # Check if a name has been provided
936
936
  if name:
@@ -1010,6 +1010,9 @@ class FEModel3D:
1010
1010
  # Flag `node_2` as no longer used
1011
1011
  node_lookup[node_2_name] = None
1012
1012
 
1013
+ # Preserve all applied loads on the surviving node.
1014
+ self.nodes[node_1_name].NodeLoads.extend(self.nodes[node_2_name].NodeLoads)
1015
+
1013
1016
  # Merge any boundary conditions
1014
1017
  support_cond = ('support_DX', 'support_DY', 'support_DZ', 'support_RX', 'support_RY', 'support_RZ')
1015
1018
  for dof in support_cond:
@@ -1067,6 +1070,8 @@ class FEModel3D:
1067
1070
  self.nodes.pop(node_name)
1068
1071
 
1069
1072
  # Find any elements attached to the node and remove them
1073
+ self.springs = {name: spring for name, spring in self.springs.items()
1074
+ if spring.i_node.name != node_name and spring.j_node.name != node_name}
1070
1075
  self.members = {name: member for name, member in self.members.items() if member.i_node.name != node_name and member.j_node.name != node_name}
1071
1076
  self.plates = {name: plate for name, plate in self.plates.items() if plate.i_node.name != node_name and plate.j_node.name != node_name and plate.m_node.name != node_name and plate.n_node.name != node_name}
1072
1077
  self.quads = {name: quad for name, quad in self.quads.items() if quad.i_node.name != node_name and quad.j_node.name != node_name and quad.m_node.name != node_name and quad.n_node.name != node_name}
@@ -1513,6 +1518,13 @@ class FEModel3D:
1513
1518
  """Deletes all loads from the model along with any results based on the loads.
1514
1519
  """
1515
1520
 
1521
+ # Delete stored helper loads so regeneration cannot restore them.
1522
+ for shear_wall in self.shear_walls.values():
1523
+ shear_wall._shears = []
1524
+ shear_wall._axials = []
1525
+ for mat in self.mats.values():
1526
+ mat.pt_loads = []
1527
+
1516
1528
  # Delete the member loads and the calculated internal forces
1517
1529
  for member in self.members.values():
1518
1530
  member.DistLoads = []
@@ -2921,48 +2933,54 @@ class FEModel3D:
2921
2933
  Renames all the nodes and elements in the model.
2922
2934
  """
2923
2935
 
2936
+ # Rebuild from snapshots so new names cannot overwrite existing objects.
2924
2937
  # Rename each node in the model
2925
2938
  temp = self.nodes.copy()
2939
+ self.nodes.clear()
2926
2940
  id = 1
2927
2941
  for old_key in temp.keys():
2928
2942
  new_key = 'N' + str(id)
2929
- self.nodes[new_key] = self.nodes.pop(old_key)
2943
+ self.nodes[new_key] = temp[old_key]
2930
2944
  self.nodes[new_key].name = new_key
2931
2945
  id += 1
2932
2946
 
2933
2947
  # Rename each spring in the model
2934
2948
  temp = self.springs.copy()
2949
+ self.springs.clear()
2935
2950
  id = 1
2936
2951
  for old_key in temp.keys():
2937
2952
  new_key = 'S' + str(id)
2938
- self.springs[new_key] = self.springs.pop(old_key)
2953
+ self.springs[new_key] = temp[old_key]
2939
2954
  self.springs[new_key].name = new_key
2940
2955
  id += 1
2941
2956
 
2942
2957
  # Rename each member in the model
2943
2958
  temp = self.members.copy()
2959
+ self.members.clear()
2944
2960
  id = 1
2945
2961
  for old_key in temp.keys():
2946
2962
  new_key = 'M' + str(id)
2947
- self.members[new_key] = self.members.pop(old_key)
2963
+ self.members[new_key] = temp[old_key]
2948
2964
  self.members[new_key].name = new_key
2949
2965
  id += 1
2950
2966
 
2951
2967
  # Rename each plate in the model
2952
2968
  temp = self.plates.copy()
2969
+ self.plates.clear()
2953
2970
  id = 1
2954
2971
  for old_key in temp.keys():
2955
2972
  new_key = 'P' + str(id)
2956
- self.plates[new_key] = self.plates.pop(old_key)
2973
+ self.plates[new_key] = temp[old_key]
2957
2974
  self.plates[new_key].name = new_key
2958
2975
  id += 1
2959
2976
 
2960
2977
  # Rename each quad in the model
2961
2978
  temp = self.quads.copy()
2979
+ self.quads.clear()
2962
2980
  id = 1
2963
2981
  for old_key in temp.keys():
2964
2982
  new_key = 'Q' + str(id)
2965
- self.quads[new_key] = self.quads.pop(old_key)
2983
+ self.quads[new_key] = temp[old_key]
2966
2984
  self.quads[new_key].name = new_key
2967
2985
  id += 1
2968
2986
 
@@ -4,20 +4,20 @@ class LoadCombo:
4
4
  """A class that stores all the information necessary to define a load combination.
5
5
  """
6
6
 
7
- def __init__(self, name: str, combo_tags: list[str] | None = None, factors: dict[str, float] = {}) -> None:
7
+ def __init__(self, name: str, combo_tags: list[str] | None = None, factors: dict[str, float] | None = None) -> None:
8
8
  """Initializes a new load combination.
9
9
 
10
10
  :param name: A unique name for the load combination.
11
11
  :type name: str
12
12
  :param combo_tags: A list of tags for the load combination. This is a list of any strings you would like to use to categorize your load combinations. It is useful for separating load combinations into strength, service, or overstrength combinations as often required by building codes. This parameter has no effect on the analysis, but it can be used to restrict analysis to only the load combinations with the tags you specify.
13
13
  :type combo_tags: list, optional
14
- :param factors: A dictionary of load case names (`keys`) followed by their load factors (`items`). For example, the load combination 1.2D+1.6L would be represented as follows: `{'D': 1.2, 'L': 1.6}`. Defaults to {}.
14
+ :param factors: A dictionary of load case names (`keys`) followed by their load factors (`items`). For example, the load combination 1.2D+1.6L would be represented as follows: `{'D': 1.2, 'L': 1.6}`. Defaults to an independent empty dictionary.
15
15
  :type factors: dict, optional
16
16
  """
17
17
 
18
18
  self.name: str = name # A unique user-defined name for the load combination
19
19
  self.combo_tags: list[str] | None = combo_tags # Used to categorize the load combination (e.g. strength or serviceability)
20
- self.factors: dict[str, float] = factors # A dictionary containing each load case name and associated load factor
20
+ self.factors: dict[str, float] = {} if factors is None else factors # A dictionary containing each load case name and associated load factor
21
21
 
22
22
  def __repr__(self) -> str:
23
23
  return f"LoadCombo(name={self.name!r}, factors={self.factors!r})"
@@ -441,9 +441,8 @@ class Member3D:
441
441
  L = self.L()
442
442
  m = zeros((12, 12))
443
443
 
444
- # Distribute half mass to each node's translational DOFs
445
- # TODO: Distribute the mass based on distance from each load instead
446
- i_node_mass = load_mass*(1 - x)/L
444
+ # Distribute mass to each node's translational DOFs based on the load location
445
+ i_node_mass = load_mass*(L - x)/L
447
446
  j_node_mass = load_mass*x/L
448
447
  m[0, 0] = i_node_mass # FX i-node
449
448
  m[1, 1] = i_node_mass # FY i-node
@@ -1369,7 +1368,7 @@ class Member3D:
1369
1368
  ax.legend(fontsize='small')
1370
1369
  ax.set_title('Member ' + self.name + '\nEnvelope')
1371
1370
 
1372
- ax.set_ylabel('Shear')
1371
+ ax.set_ylabel(f'Shear ({Direction})')
1373
1372
  ax.set_xlabel('Location')
1374
1373
  Member3D.__plt.show()
1375
1374
 
@@ -1679,7 +1678,7 @@ class Member3D:
1679
1678
  ax.legend(fontsize='small')
1680
1679
  ax.set_title('Member ' + self.name + '\nEnvelope')
1681
1680
 
1682
- ax.set_ylabel('Moment')
1681
+ ax.set_ylabel(f'Moment ({Direction})')
1683
1682
  ax.set_xlabel('Location')
1684
1683
  Member3D.__plt.show()
1685
1684
 
@@ -1941,7 +1940,7 @@ class Member3D:
1941
1940
  ax.legend(fontsize='small')
1942
1941
  ax.set_title('Member ' + self.name + '\nEnvelope')
1943
1942
 
1944
- ax.set_ylabel('Torsional Moment (Warping Torsion Not Included)')
1943
+ ax.set_ylabel('Torsional Moment (Mx; Warping Torsion Not Included)')
1945
1944
  ax.set_xlabel('Location')
1946
1945
  Member3D.__plt.show()
1947
1946
 
@@ -2176,7 +2175,7 @@ class Member3D:
2176
2175
  ax.legend(fontsize='small')
2177
2176
  ax.set_title('Member ' + self.name + '\nEnvelope')
2178
2177
 
2179
- ax.set_ylabel('Axial Force')
2178
+ ax.set_ylabel('Axial Force (Fx)')
2180
2179
  ax.set_xlabel('Location')
2181
2180
  Member3D.__plt.show()
2182
2181
 
@@ -2495,7 +2494,7 @@ class Member3D:
2495
2494
  ax.legend(fontsize='small')
2496
2495
  ax.set_title('Member ' + self.name + '\nEnvelope')
2497
2496
 
2498
- ax.set_ylabel('Deflection')
2497
+ ax.set_ylabel(f'Deflection ({Direction})')
2499
2498
  ax.set_xlabel('Location')
2500
2499
  Member3D.__plt.show()
2501
2500
 
@@ -2690,7 +2689,7 @@ class Member3D:
2690
2689
  x, d_relative = self.rel_deflection_array(Direction, n_points, combo_name)
2691
2690
 
2692
2691
  Member3D.__plt.plot(x, d_relative)
2693
- Member3D.__plt.ylabel('Relative Deflection')
2692
+ Member3D.__plt.ylabel(f'Relative Deflection ({Direction})')
2694
2693
  Member3D.__plt.xlabel('Location')
2695
2694
  Member3D.__plt.title('Member ' + self.name + '\n' + combo_name)
2696
2695
  Member3D.__plt.show()
@@ -3125,6 +3124,10 @@ class Member3D:
3125
3124
  if compute_result is None:
3126
3125
  raise ValueError(f"Unsupported result_name: {result_name}")
3127
3126
 
3127
+ # A submember may contain no sample points when the physical member is sampled sparsely.
3128
+ if x_array.size == 0:
3129
+ return zeros((2, 0))
3130
+
3128
3131
  idx = 0 # Tracks current position in x_array
3129
3132
  n = x_array.size
3130
3133
 
@@ -229,7 +229,7 @@ class Mesh:
229
229
  if isinstance(combo_tags, str):
230
230
  include = (load_combo.name == combo_tags)
231
231
  elif isinstance(combo_tags, list):
232
- include = any(tag in load_combo.tags for tag in combo_tags)
232
+ include = any(tag in (load_combo.combo_tags or []) for tag in combo_tags)
233
233
  else:
234
234
  include = False
235
235
 
@@ -319,7 +319,7 @@ class Mesh:
319
319
  if isinstance(combo_tags, str):
320
320
  include = (load_combo.name == combo_tags)
321
321
  elif isinstance(combo_tags, list):
322
- include = any(tag in load_combo.tags for tag in combo_tags)
322
+ include = any(tag in (load_combo.combo_tags or []) for tag in combo_tags)
323
323
  else:
324
324
  include = False
325
325
 
@@ -414,7 +414,7 @@ class Mesh:
414
414
  if isinstance(combo_tags, str):
415
415
  include = (load_combo.name == combo_tags)
416
416
  elif isinstance(combo_tags, list):
417
- include = any(tag in load_combo.tags for tag in combo_tags)
417
+ include = any(tag in (load_combo.combo_tags or []) for tag in combo_tags)
418
418
  else:
419
419
  include = False
420
420
 
@@ -505,7 +505,7 @@ class Mesh:
505
505
  if isinstance(combo_tags, str):
506
506
  include = (load_combo.name == combo_tags)
507
507
  elif isinstance(combo_tags, list):
508
- include = any(tag in load_combo.tags for tag in combo_tags)
508
+ include = any(tag in (load_combo.combo_tags or []) for tag in combo_tags)
509
509
  else:
510
510
  include = False
511
511
 
@@ -593,7 +593,7 @@ class Mesh:
593
593
  if isinstance(combo_tags, str):
594
594
  include = (load_combo.name == combo_tags)
595
595
  elif isinstance(combo_tags, list):
596
- include = any(tag in load_combo.tags for tag in combo_tags)
596
+ include = any(tag in (load_combo.combo_tags or []) for tag in combo_tags)
597
597
  else:
598
598
  include = False
599
599
 
@@ -685,7 +685,7 @@ class Mesh:
685
685
  if isinstance(combo_tags, str):
686
686
  include = (load_combo.name == combo_tags)
687
687
  elif isinstance(combo_tags, list):
688
- include = any(tag in load_combo.tags for tag in combo_tags)
688
+ include = any(tag in (load_combo.combo_tags or []) for tag in combo_tags)
689
689
  else:
690
690
  include = False
691
691
 
@@ -353,7 +353,7 @@ class PhysMember(Member3D):
353
353
  ax.legend(fontsize='small')
354
354
  ax.set_title('Member ' + self.name + '\nEnvelope')
355
355
 
356
- ax.set_ylabel('Shear')
356
+ ax.set_ylabel(f'Shear ({Direction})')
357
357
  ax.set_xlabel('Location')
358
358
  PhysMember.__plt.show()
359
359
 
@@ -587,7 +587,7 @@ class PhysMember(Member3D):
587
587
  ax.legend(fontsize='small')
588
588
  ax.set_title('Member ' + self.name + '\nEnvelope')
589
589
 
590
- ax.set_ylabel('Moment')
590
+ ax.set_ylabel(f'Moment ({Direction})')
591
591
  ax.set_xlabel('Location')
592
592
  PhysMember.__plt.show()
593
593
 
@@ -814,7 +814,7 @@ class PhysMember(Member3D):
814
814
  ax.legend(fontsize='small')
815
815
  ax.set_title('Member ' + self.name + '\nEnvelope')
816
816
 
817
- ax.set_ylabel('Torque')
817
+ ax.set_ylabel('Torque (Mx; Warping Torsion Not Included)')
818
818
  ax.set_xlabel('Location')
819
819
  PhysMember.__plt.show()
820
820
 
@@ -1024,7 +1024,7 @@ class PhysMember(Member3D):
1024
1024
  ax.legend(fontsize='small')
1025
1025
  ax.set_title('Member ' + self.name + '\nEnvelope')
1026
1026
 
1027
- ax.set_ylabel('Axial')
1027
+ ax.set_ylabel('Axial (Fx)')
1028
1028
  ax.set_xlabel('Location')
1029
1029
  PhysMember.__plt.show()
1030
1030
 
@@ -1266,7 +1266,7 @@ class PhysMember(Member3D):
1266
1266
  ax.legend(fontsize='small')
1267
1267
  ax.set_title('Member ' + self.name + '\nEnvelope')
1268
1268
 
1269
- ax.set_ylabel('Deflection')
1269
+ ax.set_ylabel(f'Deflection ({Direction})')
1270
1270
  ax.set_xlabel('Location')
1271
1271
  PhysMember.__plt.show()
1272
1272
 
@@ -99,7 +99,7 @@ class VTKWriter:
99
99
  reaction_constraints.SetNumberOfComponents(6)
100
100
 
101
101
  displacements = vtk.vtkDoubleArray()
102
- displacements.SetName("Displacements D")
102
+ displacements.SetName(f"Displacements D - {combo}")
103
103
  displacements.SetNumberOfComponents(3)
104
104
 
105
105
  forces = vtk.vtkDoubleArray()
@@ -132,10 +132,12 @@ class VTKWriter:
132
132
  fl: dict[str,float] = {"X":0,"Y":0,"Z":0}
133
133
  ml: dict[str,float] = {"X":0,"Y":0,"Z":0}
134
134
  for (f_or_m, direction), magnitude, case in node.NodeLoads:
135
+ # Apply combination factors; omitted load cases contribute zero.
136
+ factor = self.model.load_combos[combo].factors.get(case, 0)
135
137
  if f_or_m == "F":
136
- fl[direction] += magnitude
138
+ fl[direction] += magnitude * factor
137
139
  elif f_or_m == "M":
138
- ml[direction] += magnitude
140
+ ml[direction] += magnitude * factor
139
141
 
140
142
  force_loads.InsertTuple3(node_id, fl["X"], fl["Y"], fl["Z"])
141
143
  moment_loads.InsertTuple3(node_id, ml["X"], ml["Y"], ml["Z"])
@@ -74,10 +74,24 @@ Here's a list of projects that use Pynite:
74
74
  * Phaenotyp (https://github.com/bewegende-Architektur/Phaenotyp) (https://youtu.be/shloSw9HjVI)
75
75
 
76
76
  # What's New?
77
+ 3.2.2
78
+ * More performance improvements. Large models solve faster.
79
+ * Member plot vertical axis labels now identify the plotted direction.
80
+ * Correction to member mass lumping formulation.
81
+ * Fixed nodal loads being lost when merging duplicate nodes.
82
+ * Fixed shared default control points between mat foundations.
83
+ * Fixed `delete_loads()` retaining shear wall and mat foundation helper loads.
84
+ * Fixed mesh result envelopes selected by load combination tags.
85
+ * Fixed object loss when renaming nodes and elements with overlapping numbered names.
86
+ * Fixed shared default load factors between directly created load combinations.
87
+ * Fixed member result arrays when sampling physical members sparsely.
88
+
77
89
  3.2.1
90
+ * Fixed load combination handling in VTK nodal load and displacement exports.
78
91
  * Replaced inneficient member `T` matrix inversions with transposes.
79
92
  * Fixed local member load transformations when calculating modal mass.
80
93
  * Corrected the centroid calculation for linearly varying distributed loads used to locate lumped mass.
94
+ * Fixed node deletion to remove connected spring elements.
81
95
 
82
96
  3.2.0
83
97
  * Added shear wall pier top results and coupling beam right hand side results to the pier/coupling beam force results output.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "PyNiteFEA"
7
- version = "3.2.1"
7
+ version = "3.2.2"
8
8
  description = "A simple 3D structural finite element library for Python."
9
9
  readme = { file = "README.md", content-type = "text/markdown" }
10
10
  requires-python = ">=3.11"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes