🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Identification of master and slave entities of a contact pair

User: "Sathish_21542"
Altair Community Member
Updated by Sathish_21542

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.

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "llyle_20499"
    New Altair Community Member
    Updated by llyle_20499

    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]

     

    User: "Sathish_21542"
    Altair Community Member
    OP
    Updated by Sathish_21542

    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,

     

    User: "llyle_20499"
    New Altair Community Member
    Updated by llyle_20499

    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. 

    User: "tinh"
    Altair Community Member
    Updated by tinh

    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

    User: "DEEPAKSREEDHARK"
    Altair Community Member
    Updated by DEEPAKSREEDHARK

    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.