Get element types of a collector

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

Hi fellows,

I'm coding a tcl script, but got stalled because i don't know how to get which element types are in a particular collector/component.

I mean, i need a command to get the info to know the element type that have a collector.

For example, select the collector id1 and get a list with (C3D4, M3D3) if id1 has these element types.

 

Thank you :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

Answers

  • tinh
    tinh Altair Community Member
    edited December 2016

    Hi fellows,

    I'm coding a tcl script, but got stalled because i don't know how to get which element types are in a particular collector/component.

    I mean, i need a command to get the info to know the element type that have a collector.

    For example, select the collector id1 and get a list with (C3D4, M3D3) if id1 has these element types.

     

    Thank you :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

     

     

    Hi there

    perhaps, hm_getconfigtypeincol will help you

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited December 2016

    Are you sure there's only ONE element type in each collector/component?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2016

    Thanks Tinh,

     

    anyone knows about a list of the configuration types in hypermesh and its translation into Abaqus?

    example:

     

    Hypermesh                                     Abaqus

    *elementype 103 4 (M3D3)   ----->  S4

  • tinh
    tinh Altair Community Member
    edited December 2016

    Thanks Tinh,

     

    anyone knows about a list of the configuration types in hypermesh and its translation into Abaqus?

    example:

     

    Hypermesh                                     Abaqus

    *elementype 103 4 (M3D3)   ----->  S4

     

     

    Hi, I think your question is similar to this

    :rolleyes:/emoticons/default_rolleyes.gif' title=':rolleyes:' />

     

     

  • tinh
    tinh Altair Community Member
    edited December 2016

    Dear @drwill

    I found a better method, since data name of element updated from new hm versions, you can get elem name by:

     *createmark elems 1 'by comp id' $CompId set ElemNames [hm_getmarkvalue elems 1 typename 1] set TypeList [lsort -unique $ElemNames] puts $TypeList

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2016

    Tinh, definitely you are the HM wisdom