Jump to content
Sign in to follow this  
leoc0426

How to swap master-slave surface by TCL?

Recommended Posts

My question is how to use TCL scripts to swap master-slave surface. Like the figure attached, I want to swap master-slave surface of those highlighted contact pairs.

I want to use Young's modulus to decide which surface should be master, and the other to be slave. Master surface should have higher Young's modulus.

So, how can I write this if statement and swap the master-slave surface?

 

My model is also uploaded, and I have created the contact pairs. But the contact pairs have'nt been swapped.

CP.thumb.PNG.5be254fba8d84295015856e21764503a.PNG

raw.hm

Share this post


Link to post
Share on other sites

Hi

Can you find any menu command to do it?

If there is not, it will consume much time to parse and hook into altair code, since it is no designed to swap master-slaver

Try exporting data, and show us text lines about interface definition, we may look for a workaround.

Share this post


Link to post
Share on other sites

@tinh 

Hi, thanks for replying.

I think the function is in the CW.tcl file, and the function is : proc ::AbaqusCW::swapMasterSlave { args }

The problem is that I have no idea how to use it.

swap_slave_master.thumb.png.c577f041ff0542a174eda77003d2f1b4.png

 

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.

Sign in to follow this  

×
×
  • Create New...