Skip to content

Commit

Permalink
Bug fix for sections
Browse files Browse the repository at this point in the history
  • Loading branch information
JWock82 committed Nov 7, 2023
1 parent c49a64c commit 645c5e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PyNite/FEModel3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def add_member(self, name, i_node, j_node, material, Iy=None, Iz=None, J=None, A
:param comp_only: Indicates if the member is compression-only, defaults to False
:type comp_only: bool, optional
:raises NameError: Occurs if the specified name already exists.
:param section: The name of the cross section to use for section properties. If section is `None` the user must provide `Iy`, `Iz`, `A`, and `J`. If section is not `None` any values of `Iy`, `Iz`, `A`, and `J` will be ignored and the cross-section's values will be used instead.
:param section: The cross section to use for section properties. If section is `None` the user must provide `Iy`, `Iz`, `A`, and `J`. If section is not `None` any values of `Iy`, `Iz`, `A`, and `J` will be ignored and the cross-section's values will be used instead.
:type section: string
:return: The name of the member added to the model.
:rtype: str
Expand All @@ -323,9 +323,9 @@ def add_member(self, name, i_node, j_node, material, Iy=None, Iz=None, J=None, A

# Create a new member
if aux_node == None:
new_member = PhysMember(name, self.Nodes[i_node], self.Nodes[j_node], material, self, Iy, Iz, J, A, tension_only=tension_only, comp_only=comp_only, section=self.Sections[section])
new_member = PhysMember(name, self.Nodes[i_node], self.Nodes[j_node], material, self, Iy, Iz, J, A, tension_only=tension_only, comp_only=comp_only, section=section)
else:
new_member = PhysMember(name, self.Nodes[i_node], self.Nodes[j_node], material, self, Iy, Iz, J, A, aux_node=self.AuxNodes[aux_node], tension_only=tension_only, comp_only=comp_only, section=self.Sections[section])
new_member = PhysMember(name, self.Nodes[i_node], self.Nodes[j_node], material, self, Iy, Iz, J, A, aux_node=self.AuxNodes[aux_node], tension_only=tension_only, comp_only=comp_only, section=section)

# Add the new member to the list
self.Members[name] = new_member
Expand Down

0 comments on commit 645c5e4

Please sign in to comment.