[Hypermesh Script] Generate new Contact Surface from an existing one

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Dear all,

 

I need to generate a new contact surface in Hypermesh using a script getting the information from an existing one and offsetting these.

What I'm able to do is to get element id's and the face indices that compose the surface (using hm_getentityarray contactsurfs ... ). But the command *contactsurfcreatewithfaces needs as input element id's and nodes id's.

Is there a way to retrieve nodes id's starting from element id's and face indices?

 

Thank you very much for your help!

 

 

Bruno

Answers

  • tinh
    tinh Altair Community Member
    edited January 2015

    Dear all,

     

    I need to generate a new contact surface in Hypermesh using a script getting the information from an existing one and offsetting these.

    What I'm able to do is to get element id's and the face indices that compose the surface (using hm_getentityarray contactsurfs ... ). But the command *contactsurfcreatewithfaces needs as input element id's and nodes id's.

    Is there a way to retrieve nodes id's starting from element id's and face indices?

     

    Thank you very much for your help!

     

     

    Bruno

     

     

    Hi

    to get nodes of an elem:

    set nodelist [hm_nodelist $elemID]

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2015

    Thank you tinh for the reply! The solution was much easier than I expected. At the end I've solved using hm_getentityarray contactsurfs and *contactsurfcreatewithfacesusingfacenumber

     

    Bruno