Identification of master and slave entities of a contact pair

Sathish_21542
Sathish_21542 Altair Community Member
edited October 2020 in Community Q&A

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.

Tagged:

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited February 2020

    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]

     

  • Sathish_21542
    Sathish_21542 Altair Community Member
    edited February 2020

    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,

     

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited February 2020

    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. 

  • tinh
    tinh Altair Community Member
    edited February 2020

    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

  • DEEPAKSREEDHARK
    DEEPAKSREEDHARK Altair Community Member
    edited April 2020

    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.