What is fastest way of finding the elements attached to a node
Find more posts tagged with
Hello Michael,
Thanks for your response ,
My query is to know if there is any alternative way to find the elements connected to a node using the node ID, Currently I m using *findmark node 1 1 1 elements 0 2 command.
I m currently processing each node in the model for finding its connected elements , Just want to know if there is any better way, Please refer the sample code
set lst_elemAttach [list]
hm_markclear node 1
hm_createmark node 1 $each_node
*findmark node 1 1 1 elements 0 2
set lst_elemAttach [hm_getmark elem 2]
hm_markclear node 1
Hello Michael,
Thanks for your response ,My query is to know if there is any alternative way to find the elements connected to a node using the node ID, Currently I m using *findmark node 1 1 1 elements 0 2 command.
I m currently processing each node in the model for finding its connected elements , Just want to know if there is any better way, Please refer the sample code
set lst_elemAttach [list]
hm_markclear node 1
hm_createmark node 1 $each_node
*findmark node 1 1 1 elements 0 2
set lst_elemAttach [hm_getmark elem 2]
hm_markclear node 1
Hello,
may I ask you what you do once you get the list of elements? What is the purpose of getting connected nodes? Is it for checking connectivity, or another purpose?
My first answer would be *findmark, but knowing the final purpose can help me proposing you alternative methods.
Best Regards,
Michael
Hello Ashwin,
may I ask you what you want to fo with the connected elements once you get it?
Wht do you mean by processing a thousand of nodes? Do you need a separate list of elements per node, or can you store in the same list all the elements, whatever the node?
Regards,
Michael