Methods for CQUAD not available / Is initialization required after reading *.bdf?

14 views
Skip to first unread message

Brian C

unread,
Jun 5, 2024, 9:02:27 AM6/5/24
to pyNastran Discuss
Hi,
I read in a BDF and I wanted to compute the area and the normal to an element.  The CQUAD class appears to have these methods.

I have a lot of the geometry information from the element; I can plot all the elements and they look great.  However, trying to use the methods results in errors like the one below.

Why is self.nodes_ref not populated?  self.nodes has a valid list of nodes.  

Is there an initialization method that is supposed to be called?

Best,
Brian


VisualCodeCQUADerror.PNG

Steven Doyle

unread,
Jun 5, 2024, 9:08:06 AM6/5/24
to pynastra...@googlegroups.com
Hi Brian,

When you call the read_bdf function/method (a method is a function in a class), the xref=True flag is set. If you set it to False, you can use the model.cross_reference() method. The defaults are the same as xref, but you can disable the flags you don’t need if you want it to be faster.

Best,
Steve

--
You received this message because you are subscribed to the Google Groups "pyNastran Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pynastran-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pynastran-discuss/43340099-37c5-4247-a133-06d62b4ed2b2n%40googlegroups.com.

Brian C

unread,
Jun 5, 2024, 2:47:54 PM6/5/24
to pynastra...@googlegroups.com
What do you think are the best ways to learn pyNastran?  
  1. This documentation (link)
  2. Debugging mode in Python?
  3. Experiment?
  4. Ask questions?
I don't want to waste your time or the time of the members of this forum if I can find the answers myself.

I'm tempted to put together some thermal examples (that's just what I'm working on right now).  Would you like me to contribute them?  If so, what's the best way?  Be a contributor on the GitHub?

Best,
Brian


You received this message because you are subscribed to a topic in the Google Groups "pyNastran Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pynastran-discuss/LJKghlw34wI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pynastran-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pynastran-discuss/CADJnEGE6u-QgRAuk89cs-nDqw-aLDLjCCr_%3DmJYgOgHiu%2BD5rQ%40mail.gmail.com.


--
Reply all
Reply to author
Forward
0 new messages