How can I get GA and GB Value on CWELD elemet ?
I want to get GA and GB node number value on the CWELD element by using macro. following command works fine to get GS value for the nastran CWELD element.
set gs [hm_getentityvalue elements $el '\$CWELD_GS' 0]
when I change it like below it getting alwas 0 for the GA values.
set GA [hm_getentityvalue elements $el '\$CWELD_GA' 0]
How can I get GA and GB Value on CWELD elemet ?
Thanks,
Halil
Answers
-
Halil
The nodes labelled as GA and GB for the CWELD rod element area actually the node1 and node2 entities that define the element. If you look in the template, you can see what variable name defines the entities you see in the card preview panel.
In the NASTRAN template:
*menufield(GA,integer,node1.id,8)*menufield(GB,integer,node2.id,8)*menulineend()*menucase(2)*menufield(GS,entity,$CWELD_GS,8)*menuentitytype(nodes)menudefaultvalue(' ')
So to get the node numbers in your macro script, you would use
set GA [hm_getentityvalue elems $el node1.id 0]set GB [hm_getentityvalue elems $el node2.id 0]
Eric
0 -
Thanks a lot.
Halil
0