SLAVE CONTACT SURFACE - NODE SET NAME/ID

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

Gents,

I have got some problems with getting name or id of the node set which is a base for the contact surface (ABAQUS STD 3D profile)

To check if my slave surface is for sure based on nodeset, I have used following command:

set slave_def [hm_getentityvalue groups $slave2delete slavedefinition 0]

where 'slave2delete' variable contain name of slave surface. The return value is 4 which means this surface is built using node set. How can I get this set name or id?

I have tried to do it in so many ways but as far without success.

Thanks in advance for your help.

Slawek

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2008

    Slawek

    HyperMesh stores a pointer to a list of sets for the master and slave. You can get at the ids of these sets with something similar to the following:

    set numsets [hm_getentityvalue groups $slave2delete slavesetlistmax 0]for {set i 0} {$i < $numsets} {incr i} {  set slaveidlist($i) [lindex [hm_getentityarray groups $slave2delete slavesetlist] $i]}

    Cheers,

    Eric

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2008

    Slawek,

    Try this.

    set slave2delete 'test';set numsets [hm_getentityvalue groups $slave2delete slavesetlistmax 0];puts $numsets;for {set i 0} {$i < $numsets} {incr i} {  set slaveidlist($i) [lindex [hm_getentityarray groups $slave2delete slavesetlist] $i]  puts [list $slaveidlist($i)];  set name [hm_getentityvalue SETS [list $slaveidlist($i)] name 1]  puts name:$name}
  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2008

    Many thanks gents. It's working perfect.

    Cheers,

    Slawek