What is fastest way of finding the elements attached to a node
Hi All,
I m trying to find all the attached elements to a node, using *findmark node 1 1 1 elements 0 2 command ,
But I what to know if there is any faster way of doing this, As this method takes a lot of time if you are processing thousands of nodes
Any help is much appreciated ,
Thanks in advance
Answers
-
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
0 -
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 10 -
Ashwin Pinto_20677 said:
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 1Hello,
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
0