SteveDoyle2 / pyNastran

A Python-based interface tool for Nastran's file formats
Other
384 stars 147 forks source link

PBEAM - N2(B) always omitted in output #756

Closed RafFloSan closed 6 months ago

RafFloSan commented 6 months ago

Hi Steve, There's a little typo in the repr_fields() method of the PBEAM class: /pyNastran/bdf/cards/properties/beam.py The offset at grid B in element z direction - N2(B) - is always omitted in the output, regardless of the value, because of a little typo in the method, line 1006; As is: n2b = set_blank_if_default(self.n2b, self.n2b) To be (like for n1b, one line above): n2b = set_blank_if_default(self.n2b, self.n2a)

I've been overwriting this in my version, but it would be a quick fix in the main branch, I guess.

Many thanks and best regards, Rafael

SteveDoyle2 commented 6 months ago

thanks, just fixed

RafFloSan commented 6 months ago

Thanks!