Find min and MAX "X" coordinate under the y=0
Good afternoon All,
I have a surface with nodes on it.
I need to find the nodes in a component and with y=0 coordinated in order to do some operations on it.
See the image:
I am been able to identify the max X coord (node on the right) but I don't find a strategy to get the node on the right.
My actual code is:
Answers
-
I would select the nodes by plane I think:
*createmark nodes 1 "by comp" redLoad
hm_createmark nodes 2 "on plane" "0 0 0 0 0 1 .1 1 1"
*markintersection nodes 1 nodes 2
set nodeList [hm_getmark nodes 1]
1 -
Dear Ben,
it's not working... nodeList is empty ...
Fabio
0 -
FaForno said:
Dear Ben,
it's not working... nodeList is empty ...
Fabio
Oh. I defined the plane with a normal in the z but the normal should be in the y for your model.
hm_createmark nodes 2 "on plane" "0 0 0 0 1 0 .1 1 1"
I defined the plane incorrectly for your model. The first 6 numbers in the last field define the center point and the normal of the plane (0 0 0 0 0 1). So the plane I am calling out is centered at the origin with the normal in the z direction.
Here is the help page for hm_createmark. If you search "on plane" you should find a description of this functionality.
https://2022.help.altair.com/2022.1/hwdesktop/hwd/topics/reference/hm/hm_createmark.htm
0 -
Dear Ben,
I fixed it.
I define the plane in the right way and now it works fine.
Thanks a lot for your help,
Fabio
0