Jump to content
Sathish

Identification of master and slave entities of a contact pair

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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]

 

Share this post


Link to post
Share on other sites

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,

 

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites
On 2/5/2020 at 12:59 PM, Sathish 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

Share this post


Link to post
Share on other sites
On 2/7/2020 at 7:47 AM, tinh 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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...