Using the *elementtype and *elementsettypes commands

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

Hi,

 

How could I go about using the *elementtype and *elementsettypes commands in Hypermesh, is there a listing of config and element types that I could use for the same ? For example to know what config and element type ids match the F3D3 element type ?

 

Thank you.

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited February 2017

    Hi,

    you can use hm_entityinfo to find elem type names and ids

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2017

    Hi,

    you can use hm_entityinfo to find elem type names and ids

    @tinh : I did try that, however I wanted to know if a list of mappings exists for element configs and element types as well ?

  • tinh
    tinh Altair Community Member
    edited February 2017

    @tinh : I did try that, however I wanted to know if a list of mappings exists for element configs and element types as well ?

     

    Hi, if a list is not existing, generate it:

    set ListConfigType {}

    foreach Config {tria3 quad4 tetra4 penta6 hex8} {

         set TypeIDs [hm_entityinfo configtypeids elems $Config]

         puts '$Config:\t$TypeIDs'

         dict set ListConfigType $Config $TypeIDs

    }

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2017

    @tinh : On running the above code, I get the following output,

     tria3:    1 2 4 17 5 6 7 27 19 22 quad4:    1 2 3 4 52 53 5 6 58 63 7 64 56 57 tetra4:    1 2 3 4 5 6 7 8 penta6:    10 18 19 1 2 3 4 5 8 9 6 7 12 13 14 15 16 hex8:    5 1 2 3 4 6 7 8 9 10 11 12 13 14 17 18 15 16 20 21 22 23 24 25 27 32 28 29 30

    However, how could I find out that which numbers from the above list correspond to what element types (such as SFM3D3, SFM3D4, S3 etc.) ?

  • tinh
    tinh Altair Community Member
    edited March 2017

    Hi,

    did you use  hm_entityinfo  ?

    ex:

    set TypeIDs [hm_entityinfo configtypeids elems quad4]

    set TypeNames [hm_entityinfo configtypes elems quad4]

    foreach TypeID $TypeIDs TypeName $TypeNames {

        puts 'Quad4 type $TypeID --> $TypeName'

    }

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2017

    @tinh : Thank you. I wasn't aware that I could extract the name of the element type this way along with the id of the element type.