🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

What is fastest way of finding the elements attached to a node

User: "Ashwin Pinto_20677"
Altair Community Member
Updated by Ashwin Pinto_20677

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 

 

 

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "Michael Herve"
    Altair Employee
    Updated by Michael Herve

    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

    User: "Ashwin Pinto_20677"
    Altair Community Member
    OP
    Updated by Ashwin Pinto_20677

    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 

    User: "Michael Herve"
    Altair Employee
    Updated by Michael Herve

    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