🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How can I get GA and GB Value on CWELD elemet ?

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Thanks a lot.

    Halil