Jump to content
jcd

Using the *elementtype and *elementsettypes commands

Recommended Posts

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.

Share this post


Link to post
Share on other sites
10 hours ago, tinh said:

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 ?

Share this post


Link to post
Share on other sites
On 21/2/2017 at 9:28 PM, jcd said:

@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

}

jcd likes this

Share this post


Link to post
Share on other sites

@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.) ?

Share this post


Link to post
Share on other sites

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"

}

jcd likes this

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...