JWock82 / Pynite

A 3D structural engineering finite element library for Python.
MIT License
454 stars 93 forks source link

PhysMember with AuxNodes Bug [Solution Included] #151

Closed DBlueEng closed 1 year ago

DBlueEng commented 1 year ago

Describe the bug In FEModel3D in "add_member" there is a bug in case AuxNodes are used. Please find below the solution as well.

Current code

new_member = PhysMember(name, self.Nodes[i_node], self.Nodes[j_node], E, G, Iy, Iz, J,
                                    A, self.GetAuxNode(auxNode), model=self,
                                    tension_only=tension_only, comp_only=comp_only)

Solution

new_member = PhysMember(name, self.Nodes[i_node], self.Nodes[j_node], E, G, Iy, Iz, J,
                                    A,  model=self, aux_node=self.GetAuxNode(auxNode),
                                    tension_only=tension_only, comp_only=comp_only)

Thank you for the amazing package! Cheers

JWock82 commented 1 year ago

Thanks for reporting this. I've updated the master branch. I just made a new release, but didn't see this bug until just now. It will go out with the next release.