Using the *elementtype and *elementsettypes commands
Answers
-
Hi,
you can use hm_entityinfo to find elem type names and ids
0 -
Altair Forum User 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 ?
0 -
Altair Forum User 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
}
0 -
@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.) ?
0 -
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'
}
0 -
@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.
0