This example illustrates contact between two deformable bodies
![]() |
![]() |
Fig. 1 Initial setup | Fig. 2 After contact |
####################################################### # # This example illustrates contact between two deformable # bodies (blue and red). The problem is solved over four # load steps for stability # ####################################################### # Define parameters,regions,and coordinate system fem def para;r;contact;example fem def region;r;contact;example fem def coord 3,1 # Read in deformable body fem def nodes;r;rectus;example fem def bases;r;collapsed;example fem def elements;r;rectus;example # Define fibre field (nj 4,5,6) fem def fibre;r;rectus;example fem def elements;r;rectus;example fibre # Refine mesh fem ref xi 1 at 0.5 fem ref xi 2 at 0.5 fem ref xi 3 at 0.5 # Export initial body #fem exp nodes;rectus as rectus #fem exp elements;rectus as rectus # Read in target fem def node;r;target;example region 2 fem def element;r;target;example region 2 # Define target fibre field (nj 4,5,6) fem def fibre;r;target;example reg 2 fem def elements;r;target;example fibre reg 2 # Refine mesh fem ref xi 1 at 0.5 reg 2 fem ref xi 2 at 0.5 reg 2 fem ref xi 3 at 0.5 reg 2 # Adjust for initial contact fem change nodes rotate by -180 axis 0,0,1 reg 2 fem change nodes translate by 400,494,0 reg 2 # Export target body #fem exp nodes;target as target region 2 #fem exp elem;target as target region 2 # Setup node groups for initial conditions fem group nodes 203..204,207..208,210,212,225..227 as FIXRALL reg 1 fem group nodes 201..202,205..206,209,211,213..224 as FIXR reg 1 fem group nodes 103..104,107..108,229,231,244..246 as FIXTALL reg 2 fem group nodes 101..102,105..106,228,230,232..243 as FIXT reg 2 # Method fem def equa;r;rectus;example fem def mate;r;rectus;example fem def init;r;rectus;example # Method (Target) fem def equa;r;target;example reg 2 fem def mate;r;target;example reg 2 fem def init;r;target;example reg 2 # define contact parameters fem def contact;r;contact;example # Define solve for coupled fem def solve;r;rectus;example coupled reg 1,2 # Four load steps for ($i=1;$i<5;$i++) { # prescribe load step and update fem change nodes translate by 0,-6,0 node FIXRALL reg 1 fem update solution from geometry substitute reg 1 fem change nodes translate by 0,6,0 node FIXTALL reg 2 fem update solution from geometry substitute reg 2 $CONVERGED=0; while ($CONVERGED==0) { ######################################Projection # Set contact Xi points on specified faces as 6x6 points fem def xi;c contact_points faces 23,27,3,8 points 6 reg 1 # Define data at xi positions fem def data;c from_xi # Update slave info fem update data field to slave # Project onto target face fem def xi;c closest_face faces 39,44,59,63 region 2 # Store projection gap in data fields fem update data field from gap region 2 # Update master info fem update data field to master # Place initial geometry YP(ny,3) into XP FEM up geom from sol YP_index 3 to 1..3 reg 1,2 #####################################Mechanics problem # Solve finite elasticity/contact problem fem solve error 0.01 iterate 15 coupled reg 1,2 # Update XP from YP FEM up geom from sol to 1..3 reg 1,2 } # Export final deformed meshes for current load step #fem exp nodes;rectus_def$i as rectus #fem exp nodes;target_def$i as target reg 2 }
Name Modified Size
example_d22.com 23-Apr-2008 3.2k collapsed.ipbase 21-Aug-2004 8.7k contact.ipcont 25-Sep-2008 628 contact.ippara 21-Feb-2008 6.0k contact.ipregi 21-Aug-2004 93 rectus.ipelem 21-Aug-2004 548 rectus.ipelfb 21-Aug-2004 400 rectus.ipequa 29-Sep-2004 2.2k rectus.ipfibr 21-Aug-2004 12k rectus.ipinit 21-Aug-2004 5.1k rectus.ipmate 21-Aug-2004 5.5k rectus.ipnode 21-Aug-2004 14k rectus.irsolv 16-Aug-2010 3.0k rectus.irsolv.old 13-Apr-2007 2.9k target.ipelem 21-Aug-2004 548 target.ipelfb 21-Aug-2004 411 target.ipequa 29-Sep-2004 2.2k target.ipfibr 21-Aug-2004 13k target.ipinit 21-Aug-2004 5.1k target.ipmate 21-Aug-2004 5.5k target.ipnode 21-Aug-2004 15k test_output.com 21-Aug-2004 0 view.com 21-Aug-2004 1.7k
Name Modified Size
examples_d_d2_d22.tar.gz 17-Aug-2010 100k
Status | Tested | Real time (s) | |
hpc_cm64_irix | Success | Thu Apr 1 12:42:07 2004 | 2871 |
hpc_cm_irix | Success | Fri Aug 20 03:04:33 2004 | 2519 |
hpc_cmo64_irix | Success | Sun Jul 31 01:56:23 2005 | 273 |
hpc_cmo_irix | Success | Sun Aug 15 02:08:09 2004 | 359 |
rs6000-aix | |||
cm | Success | Sun Aug 15 03:11:57 2004 | 177 |
cm-debug | Success | Sat Aug 21 09:08:59 2004 | 10568 |
cm64 | Success | Wed Mar 4 01:24:34 2009 | 46 |
cm64-debug | Success | Thu Apr 1 11:34:54 2004 | 3388 |
x86_64-linux | |||
cm | Success | Sun Mar 6 00:02:18 2016 | 24 |
Success | hpc_cm64_irix: | cmiss_test.log.retain. | |
Success | hpc_cm_irix: | cmiss_test.log.retain. | |
Success | hpc_cmo64_irix: | cmiss_test.log.retain. | |
Success | hpc_cmo_irix: | cmiss_test.log.retain. | |
rs6000-aix | |||
Success | cm: | cmiss_test.log.retain. | |
Success | cm-debug: | cmiss_test.log.retain. | |
Success | cm64: | cmiss_test.log.retain. | |
Success | cm64-debug: | cmiss_test.log.retain. | |
x86_64-linux | |||
Success | cm: | cmiss_test.log.retain. |
Success | hpc_cm64_irix: | ndiff test: no significant differences with generic answer. | |
Success | hpc_cm_irix: | ndiff test: no significant differences with generic answer. | |
Success | hpc_cmo64_irix: | ndiff test: no significant differences with generic answer. | |
Success | hpc_cmo_irix: | ndiff test: no significant differences with generic answer. | |
rs6000-aix | |||
Success | cm: | ndiff test: no significant differences with generic answer. | |
Success | cm-debug: | ndiff test: no significant differences with generic answer. | |
Success | cm64: | ndiff test: no significant differences with generic answer. | |
Success | cm64-debug: | ndiff test: no significant differences with generic answer. | |
x86_64-linux | |||
Success | cm: | ndiff test: no significant differences with generic answer. |
Html last generated: Sun Mar 6 05:51:25 2016
Input last modified: Mon Aug 16 11:35:04 2010