Identification of master and slave entities of a contact pair
I want to find the master and slave entities of a given contact pair. Assume that the master/slave entity is an element based group (element set).
The below API is what I used but its not giving any output.
hm_getvalue groups name=contactpair_name dataname=masterentityids
Kindly let me know, why this command is not giving the output and also if there is any other way for the above mention requirement.
Answers
-
Hi Sathish,
For Abaqus User Profile to get the element IDs, first get the respected SURFACE_ELEMENT group IDs from CONTACT_PAIR and then query the elements.
set n_slaveGroupID [hm_getvalue groups name=contactpair_name dataname=149]
set n_masterGroupID [hm_getvalue groups name=contactpair_name dataname=150]
set lst_slaveElements [hm_getvalue groups id=$n_slaveGroupID dataname=slaveentityids]
set lst_masterElements [hm_getvalue groups id=$n_masterGroupID dataname=slaveentityids]
0 -
Hi Livil,
It works. Thanks a lot.
Can you tell me what 149 and 150 denotes in your code and where to find the information?
It would be helpful.
Thanks,
0 -
simplest way to get this information is from the command.tcl which gets written in the current working directory. Do it manually and see what gets updated in this file.
0 -
Altair Forum User said:
Hi Livil,
It works. Thanks a lot.
Can you tell me what 149 and 150 denotes in your code and where to find the information?
It would be helpful.
Thanks,
They could be data/attribute IDs
0 -
Altair Forum User said:
They could be data/attribute IDs
Hi @Sathish
The numbers specified (149 and 150) are attribute codes for specific fields in the 'group' entity card.
Using hm_getvalue you can query what is the current value of this field using this attribute id, like what Livil has shown.
This attribute ids can vary depending on the solver profile you are using. You can find them out by manually changing values in the required field and checking what reflects in the command file.
0