How to find nodes in 2D mesh like "by adjacent"?
Hi,
Thanks to all of you for your valuable time and efforts putting in helping others.
I want to redefine smooth for 2D mesh.So i need to get adjacent points of a point(It seems to be connected by a line),like:
*createmark nodes 1 nodeid
*appendmark nodes 1 'by adjacent'
set nodelist [hm_getmark nodes 1]
Unfortunately,it is not acceptable for node.I spent a lot of time looking for this function but couldn't find it.
If you know how to do this, it will save me a lot of time.I am very grateful for your help!
Thank you very much!!!
Answers
-
Hi,
Have you tried *findmark command?
0 -
yes,i tried this.i used it like:
*createmark nodes 1 nodeid
*findmark nodes 1 1 1 nodes 0 2
But it said that nodes are not attached to node.I think the reason for the error is that 'by attached' is not acceptable for nodes.
0 -
Altair Forum User said:
yes,i tried this.i used it like:
*createmark nodes 1 nodeid
*findmark nodes 1 1 1 nodes 0 2
But it said that nodes are not attached to node.I think the reason for the error is that 'by attached' is not acceptable for nodes.
0 -
Hi
*createmark elems 1 'by node' $nodeid
set nodelist [lsort -unique [join [hm_getvalue elems mark=1 dataname=nodes]]]
0 -
Altair Forum User said:
Hi
*createmark elems 1 'by node' $nodeid
set nodelist [lsort -unique [join [hm_getvalue elems mark=1 dataname=nodes]]]
Although the final result is not the same as I originally thought, this is enough. Thank you!
0