Get value of pressure load ID for the given element ID using tcl.
Guys, I want to get the value of pressure load for the given element ID using tcl.
For example, I can get element ID from Load ID:
hm_getvalue loads=100 dataname=element.id
But how to get load id from element id? I cannot find suitable dataname to get Load ID:
hm_getvalue elems=225 dataname=????
In my case each element loaded by pressure PLOAD4 cards.
Thank you!
Answers
-
I am pretty sure there is no dataname for this since the pressure isn't part of the definition of the element. You will probably need to use hm_getcrossreferencedentities.
https://2021.help.altair.com/2021.2/hwdesktop/hwd/topics/reference/hm/hm_getcrossreferencedentities.htm?zoom_highlight=hm_getcrossreferencedentitiessomething like this:
hm_getcrossreferencedentities elems 1371428 7 2 0 0
hm_getmark loads 2
0 -
Ben Buchanan said:
I am pretty sure there is no dataname for this since the pressure isn't part of the definition of the element. You will probably need to use hm_getcrossreferencedentities.
https://2021.help.altair.com/2021.2/hwdesktop/hwd/topics/reference/hm/hm_getcrossreferencedentities.htm?zoom_highlight=hm_getcrossreferencedentitiessomething like this:
hm_getcrossreferencedentities elems 1371428 7 2 0 0
hm_getmark loads 2
Thank you, Ben. I will investigate
0