


{"id":358295,"date":"2024-03-21T09:46:28","date_gmt":"2024-03-21T09:46:28","guid":{"rendered":"\/forum\/forums\/reply\/358295\/"},"modified":"2024-03-21T09:46:28","modified_gmt":"2024-03-21T09:46:28","slug":"358295","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/358295\/","title":{"rendered":"Reply To: Need micromovement in X, Y and Z directions"},"content":{"rendered":"<p>&lt;p&gt;CONTA174 has TASS and TASR for sliding in contact R and S directions. See the following command snippet. It&#8217;s probably not the best way since I did an arithmetic average to get an element value. R and S directions can be different for every contact element:&lt;\/p&gt;&lt;p&gt;! Turn on &#8220;Analysis Settings &gt; Output Controls &gt; Contact miscellaneous&#8221;&lt;br&gt;! &#8220;contact_results&#8221; should be a named selection containing &#8220;contact&#8221; faces not target faces.&lt;br&gt;! nonlinear contacts will only have contacting area where status is sliding or sticking&lt;br&gt;! sliding and sticking regions will also have nonzero contact pressure.&lt;br&gt;! This snippet gets values at nodes (might be averaged from element centroid). It then averages by just adding the 4 nodes and dividing by 4.&lt;br&gt;! The pletab then averages element values to nodes for contour display. &nbsp;There is probably a better way than all this averaging.&lt;br&gt;! Maybe just put nodal values to a nodal result quantity: *VPUT, then use a User Defined Result to plot that result quantity&lt;br&gt;! You could alternatively just plot a user defined result in Mechanical, such as CONTNMISC17 to get R direction sliding on only I nodes (no averaging for connected elements).&lt;\/p&gt;&lt;p&gt;\/post1&lt;br&gt;cmsel,s,contact_results &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! contact_results should be a named selection containing contact faces (1 side)&lt;br&gt;esln,s,1,active &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! contact elements will not be in a component so select attached elements&lt;br&gt;set,last&lt;br&gt;etable,sta,cont,stat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;! It also gets inactive contact side from the symmetric contacts, so get status&lt;br&gt;esel,u,etab,sta,0,0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! remove elements with contact status = 0, which is for inactive and far open&lt;br&gt;etable,eras &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! erase entire etable to clear data from possible previous calls to etable command&lt;br&gt;esel,r,enam,,174 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;! may need to elliminate any other connected types, such as beams, mpc184&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! If selecting all contacts, use esel,s,enam,,174 and delete previous commands through cmsel&lt;br&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! can also just get contact using a command snippet under the contact, mcid = cid, then use esel,s,type,,mcid under Solution&lt;\/p&gt;&lt;p&gt;! sliding distance in S direction&lt;br&gt;*do,i,1,4&lt;br&gt;&nbsp; etable,sslide%i%,nmisc,i+20 &nbsp; &nbsp; &nbsp; &nbsp; ! etable sequence numbers for tass at each node 21,22,23,24 (I,J,K,L)&lt;br&gt;*enddo&lt;br&gt;sadd,temp1,sslide1,sslide2&lt;br&gt;sadd,temp2,sslide3,sslide4&lt;br&gt;sadd,sslidet,temp1,temp2&lt;br&gt;smult,sslide,sslidet,,0.25&lt;\/p&gt;&lt;p&gt;! sliding distance in R direction&lt;br&gt;*do,i,1,4&lt;br&gt;&nbsp; etable,rslide%i%,nmisc,i+16 &nbsp; &nbsp; &nbsp; &nbsp; ! etable sequence numbers for tasr at each node 17,18,19,20 (I,J,K,L)&lt;br&gt;*enddo&lt;br&gt;sadd,temp1,rslide1,rslide2&lt;br&gt;sadd,temp2,rslide3,rslide4&lt;br&gt;sadd,rslidet,temp1,temp2&lt;br&gt;smult,rslide,rslidet,,0.25&lt;\/p&gt;&lt;p&gt;\/view,1,1,1,1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! Set isometric view&lt;br&gt;\/ang,1&lt;br&gt;\/auto,1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! fit to screen&lt;br&gt;\/show,png&lt;br&gt;pldisp,1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;! display both displaced and undisplaced model. use \/PLOPTS for other contour display options&lt;br&gt;pletab,sslide,avg&lt;br&gt;pletab,rslide,avg&lt;br&gt;! need to show coordinate system and undeformed model&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-358295","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/358295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/358295\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=358295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}