From 645c5e4930f9d79389b6fcff18e3b9eabdd59979 Mon Sep 17 00:00:00 2001 From: Craig Brinck Date: Mon, 6 Nov 2023 19:25:02 -0500 Subject: [PATCH] Bug fix for sections --- PyNite/FEModel3D.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PyNite/FEModel3D.py b/PyNite/FEModel3D.py index 600678e2..829b4ac6 100644 --- a/PyNite/FEModel3D.py +++ b/PyNite/FEModel3D.py @@ -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 @@ -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