Changing Property ID in BDF File

14 views
Skip to first unread message

RONNIE_ROLLTIDE

unread,
Sep 2, 2021, 6:54:06 PMSep 2
to pyNastran Discuss
Hello All,

Can we change the property ID for element type CQUAD4 in the BDF file?

Present =   1: CQUAD4 1 1 1 2 13 12 0
Modify to = 1: CQUAD4 1 10 1 2 13 12 0

Also, can we calculate the centroid of CQUAD4 elements using any predefined function? I know that we can do it for triangular elements but I'm not sure about cquad4.

Thank you in advance for the help.

Steven Doyle

unread,
Sep 3, 2021, 12:48:56 PMSep 3
to pyNastran Discuss
> Can we change the property ID for element type CQUAD4 in the BDF file?

Yes.  

If you're cross-referenced (the default) and you want to also update the shell property id:
>>> element.pid.pid = 10

If you're cross-referenced and you want to don't want to update the shell property id:
>>> element.uncross_reference()
>>> element.pid = 10
>>> element.cross_reference(model)

If you're not cross-referenced (this won't update the shell property id):
>>> element.pid = 10

> Also, can we calculate the centroid of CQUAD4 elements using any predefined function? I know that we can do it for triangular elements but I'm not sure about cquad4.

Assuming you mean, is there a function, yes
>>> element.Centroid()
which is the same as the CTRIA3

--
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/a6f8e929-193d-4647-8498-4fb6c1407c37n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages