The following example input files show demonstrate to apply mesh nonlinear adaptivity:
Following is the input for the problem discussed in Example: Rubber Seal Simulation:
/batch,list /prep7 /com geometry parameters rf = 1 yd = 6 yf = 12 xc = 0 yc = 12 disp = -4.0 w = 3 /com element types and size el = w et,1,182 keyopt,1,3,2 !keyopt,1,6,1 et,2,169 et,3,171 keyopt,3,9,0 keyopt,3,10,1 !keyopt,3,2,3 /com materials c10=62.3584129 c01=-37.8485452 dd=1.E-03 tb,hyper,1,,2,mooney tbdata,1,c10,c01,dd mp,mu,2,0.0 r,2 /com create the model k,1,xc,yc k,2,xc+3*w,yc k,3,w,0.0 k,4,w,yd k,5,3*w,yd rect,0,w,0,yd rect,0,w,yd,yf /pnum,line,1 l,1,2 l,3,4 l,4,5 lfillt,10,11,rf /com create mesh esize,el mat,1 type,1 real,1 amesh,1,2 /pnum,elem,1 /pnum,node,1 nummrg,node numcmp,node /replot /com the 1st contact pairs mat,2 real,2 type,2 esize,yf lmesh,9 allsel,all type,3 lsel,,,,6,7 nsll,,1 esln,,0 esurf alls /com the 2nd contact pairs real,3 type,2 lplot esize,yf lmesh,9,12 lsel,s,line, ,10,12 esll,s,1 esurf, ,reverse allsel,all lplot type,3 lsel,,,,6 lsel,a,,,2 nsll,,1 esln,,0 esurf alls /com boundary condition /com rigid punch lsel,,,,9 nsll,,1 d,all,uy,disp d,all,ux,0.0 alls /com rigid die face lsel,,,,10,12 nsll,,1 d,all,uy,0.0 d,all,ux,0.0 alls /com left side nsel,,loc,x,0 d,all,ux,0.0 alls /com bottom nsel,,loc,y,0 d,all,uy,0.0 alls /com check the contact definition cncheck elist finish /solution /com define nonlinear adaptive criterion esel,,ename,,182 cm,solid,elem allsel nlad,solid,add,box,xyzr,-0.0,9,5,12 nlad,solid,on,,,-2 pred,off rescontrol,,all,1,20 eresx,no nlgeom,on time,1 NSUBST,50,500,5 outres,all,all solv finish
Following is the input for the problem discussed in Example: Crack Simulation:
/batch,list /prep7 ! MATERIAL PROPERTIES et,1,183 keyopt,1,1,0 keyopt,1,6,1 MP,PRXY,1,0.3 MPTEMP,1,0,500 ! Define temperatures for Young's modulus MP,EX,1,12E6,-8E3 ! C0 and C1 terms for Young's modulus TB,BKIN,1,2 ! Activate a data table TBTEMP,0.0 ! Temperature = 0.0 TBDATA,1,44E3,1.2E6 ! Yield = 44,000; Tangent modulus = 1.2E6 TBTEMP,500 ! Temperature = 500 TBDATA,1,29.33E3,0.8E6 ! Yield = 29,330; Tangent modulus = 0.8E6 TBLIST,BKIN,1 ! List the data table /XRANGE,0,0.01 ! X-axis of TBPLOT to extend from varepsilon=0 to 0.01 TBPLOT,BKIN,1 ! Display the data table ! GEOMETRY blc4,0,0,10,0.5 blc4,0,0,10,-0.5 lsel,s,loc,y,0 lsel,a,loc,y,0.5 lsel,a,loc,y,-0.5 lesize,all,,,20 lsel,inve lesize,all,,,5 amesh,all elist allsel,all nsel,s,loc,y,0 nsel,r,loc,x,0,7 nummrg,node allsel,all ! COMPONENT esel,all cm,cm1,elem allsel,all esel,all cm,cm2,elem allsel,all ! LOADS nsel,s,loc,x,0 d,all,all allsel,all nsel,s,loc,y,0.5 nsel,r,loc,x,10 f,all,fy,5500 allsel,all nsel,s,loc,y,-0.5 nsel,r,loc,x,10 f,all,fy,-5500 allsel,all nplot finish /solu nlgeom,on ! large displacement analysis ON outres,all,all ! all solutions are written rescontrol,define,all,all ! write every substeps in a file eresx,no ! no interpolation for the point of integration time,1 nsubst,50,100,20 /nerr,,,,1 ! prevent the GUI for closing if no convergence ! NON LINEAR ADAPTIVITY nlad,cm2,add,energy,mean,1 nlad,cm2,on,,,-3 allsel,all solve finish ! POSTPROCESSING /post1 /out set,last nsel,s,loc,y,0 nsel,r,loc,x,0,7 esln,s,0,all presol,s,eqv finish /exit
Following is the input for the problem discussed in Example: 3-D Metal Forging Simulation.
/batch,list /config,nproc,1 /PREP7 !-----------geometry parameters--------------- !mm cylinder_radius = 500 cylinder_offset = 1000 block_height = 1000 radius_fillet = 33 !---------initial meshing parameters------------ block_esize = 200 cylinder_esize = 200 !------------loading parameters---------------- cylinder_disp = -800 !------------NLAD parameters------------------ skw_ = 0.9 !skewness threshold freq = 1 !NLAD frequency (1 means check every substep) start_time = 0 !beginning time for NLAD interval end_time = 0.95 !end time for NLAD interval !------------remeshing parameters--------------- sculpt_layers = 4 !no. of sculpting layers !******************material properties***************** MP,EX,1,70e3 !aluminium material properties MP,NUXY,1,0.33 !poisson's ratio MP,MU,1,0 !coefficient of friction TB,BISO,1,1 !bilinear isotropic material TBDATA,1,20 !yield stress in MPa TBDATA,2,7e3 !tangent modulus in MPa !------------geometry creation------------------- blc4,0,0,block_height,block_height,block_height k,9,0,cylinder_offset,0 k,10,0,cylinder_offset,cylinder_radius k,11,0,cylinder_offset+cylinder_offset,cylinder_radius k,12,0,cylinder_offset+cylinder_offset,0 l,9,10 l,10,11 l,11,12 l,12,9 lfil,13,14,radius_fillet al,13,17,14,15,16 vrotat,7,,,,,,9,12,90 !---------element types & settings----------- et,1,285 et,2,170 et,3,173 keyo,3,10,2 !update contact stiffness every iteration !-------------general meshing---------------- type,1 mat,1 real,1 esize,block_esize vmesh,1 !-------------contact pair 1---------------- real,2 !---------------target elements-------------- type,2 mat,2 asel,s,area,,8,10 aesize,all,cylinder_esize amesh,all alls !---------------contact elements----------- type,3 mat,1 asel,s,area,,4 nsla,s,1 esln esurf alls !--------------create components----------- esel,s,ename,,285 cm,comp1,elem !create NLAD component alls !-----boundary conditions & loading------- asel,s,area,,5,6 nsla,s,1 d,all,ux,0.0 alls asel,s,area,,1,2 nsla,s,1 d,all,uz,0.0 alls asel,s,area,,3 nsla,s,1 d,all,uy,0.0 alls asel,s,area,,7,12 nsla,s,1 d,all,uz,0.0 d,all,ux,0.0 d,all,uy,cylinder_disp alls fini /SOLU !--------------general solution settings-------- nlgeom,on eresx,no outres,all,all !---------------NLAD settings-------------------!check NLAD parameters section above for values nlad,comp1,add,mesh,skew,skw_ !nlad with mesh-quality-based criterion nlad,comp1,on,,,freq,start_time,end_time !------------remeshing settings--------------- !check remeshing parameters section above for values nlmesh,nlay,sculpt_layers !---------------step settings------------------- time,1 nsubst,100,10000,10 alls solve fini !---------------POSTPROCESSING------------------------- /POST1 set,list fini /exit
Following is the input for the problem discussed in Example: 2-D Metal Extrusion Simulation.
/batch,list /config,nproc,1 /PREP7 h1=19.5 b1=45 h2=6.5 b2=22.5 b3=5 h3=17 el=h1/8 et,1,182 keyopt,1,3,5 keyopt,1,6,1 mp,ex,1,1.0e+6 mp,nuxy,1,0.3 tb,biso,1, tbmodif,2,1,8.0e2 tbmodif,3,1,1.0e4 /com --- Rigid target k,1,0,h1 k,2,b1,h1 k,3,b1+b2,h2 k,4,b1+b2+b3,h2 k,5,b1+b2+b3,h3 l,1,2 l,2,3 l,3,4 l,4,5 LFILLT,1,2,5, , LFILLT,2,3,5, , /pnum,line,1 /com --- Rectangular block k,10,0,0 k,11,b1,0 k,12,b1,h1 k,13,0,h1 l,10,11 l,11,12 l,12,13 l,13,10 lfillt,8,9,el al,7,8,11,9,10 esize,el real, 1 mat, 1 type, 1 amesh, 1 /com --- Element type definitions for contact pair mp,mu,2,0.0 r,2 et,2,169 et,3,171 keyopt,3,9,0 keyopt,3,10,2 /com --- Mesh target surface mat, 2 real, 2 type, 2 lmesh,1,6 /com --- Create contact elements type,3 real, 2 lsel, s, line, , 8,9 lsel, a, line, , 11 nsll,,1 esln,,0 esurf alls /com --- Apply Constraints nsel,s,loc,y d,all,uy,0.0 alls lsel,s,line,,1,6 nsll,,1 d,all,all,0.0 alls nsel,s,loc,x d,all,ux,30 alls esel,s,ename,,182 cm,c1,elem !create NLAD component alls fini /SOLU nlgeom,on eresx,no pred,off outres,all,all time,1 NSUBST,20,1000,5 alls gsgdata,2,0,0,0,0 gsbdata,lfiber,0,rotx,0,roty,0 gslist,geometry gslist,bc alls !-----Nonlinear Adaptive Region cmsel,all nlad,c1,add,mesh,shape,155 !nlad with mesh-quality-based criterion nlad,c1,on,,,1 nlmesh,nlay,100 !no. of sculpting layers nlmesh,grad,0 !option for mesh gradient control nlmesh,srat,0.9 !control global sizing of new mesh nlad,all,list,all nlmesh,list alls SOLVE fini /POST1 set,list fini /exit
/batch,list /title, 2D thermo-hyperelastic U shape /prep7 /nopr h=0.5 b = 4 x0 = 0.0 y0 = 0.0 x1 = 5.0 y1 = x0+h y2 = x0+h+b et,1,222,11 keyo,1,3,2 keyo,1,11,1 tb,hype,1,1,3,ogde tbdata,1,3.2084e-009,7.281,0.035198,3.0149,6.3712,2.0493 mptemp,1,100,200,300,400,500 mpdata,alpx,1,1,2.568e-6,3.212e-6,3.594e-6,3.831e-6,3.987e-6 mpdata,kxx,1,1,14.64,9.83,7.32,5.75,4.92 ! upper contact pair et,2,169 r,2 et,3,171 keyo,3,1,1 ! ux/uy/temp keyo,3,9,0 keyo,3,10,0 mp,mu,2,0.0 ! lower contact pair et,4,169 r,3 et,5,171 keyo,5,1,1 ! ux/uy/temp keyopt,5,9,0 keyopt,5,10,0 mp,mu,3,0.0 ! self-contact pair et,6,169 r,4 rmodif,4,14,10.0 et,7,171 keyo,7,1,1 ! ux/uy/temp keyopt,7,9,0 keyopt,7,10,0 mp,mu,4,0.0 et,8,169 r,5 rmodif,5,14,10.0 et,9,171 keyo,9,1,1 ! ux/uy/temp keyopt,9,9,0 keyopt,9,10,0 mp,mu,5,0.0 ! Geometry ! keypoints k, 1, x0, y0 k, 2, x1, y0 k, 3, x0, y0+h k, 4, x1, y0+h k, 5, x0, y2 k, 6, x1, y2 k, 7, x0, y2+h k, 8, x1, y2+h k, 9, x1, y0+h+b/2 k, 10, x1, y0+h+b/2, y0+h+b/2 circle, 9, , 10, 4, 180 circle, 9, , 10, 2, 180 ! line definitions l, 1, 14 l, 3, 11 l,1, 3 l, 13, 5 l, 16, 7 l, 5, 7 l,11,14 l,13,16 l,12,15 ! area definitions al,5,11,6,7 al,3,13,1,11 al,4,12,2,13 al,8,12,9,10 esize,0.15 real,1 mat,1 type,1 amesh,all asel,s,area,,2,3 esla,s esel,r,type,,1 cm,cm222,elem alls ! contact definitions k, 17, x0-2.0, y0 k, 18, x1+5.0, y0 k, 19, x0-2.0, y0+h+h+b k, 20, x1+5.0, y0+h+h+b l, 18, 17 l, 19, 20 ! 1st contact pair -- top surface pair mat,2 real,2 type,2 ! mesh target surface lmesh,15 ! define pilot node *get,PilotKpt,kp,,num,max PilotKpt=PilotKpt+1 k,PilotKpt,x0+x1/2,y0+h+h+b+2.0 *get,PilotID,node,,num,max PilotID=PilotID+1 nkpt,PilotID,PilotKpt tshap,pilo e,PilotID ! define contact elements type,3 real,2 lsel,s,line,,4 lsel,a,line,,9 nsll,,1 esln,,0 esurf alls ! second contact pair --- bottom pair mat,3 type,4 real,3 ! mesh target surface lmesh,14 ! mesh contact elements type,5 real,3 lsel,s,line,,5 lsel,a,line,,3 nsll,,1 esln,,0 esurf alls ! 1st self-contact pair mat,4 type,6 real,4 lsel,s,line,,6,8,2 nsll,,1 esln,,0 esurf alls type,7 real,4 lsel,s,line,,6,8,2 nsll,,1 esln,,0 esurf alls ! 2nd self-contact pair mat,5 type,8 real,5 lsel,s,line,,1,2 nsll,,1 esln,,0 esurf alls type,9 real,5 lsel,s,line,,1,2 nsll,,1 esln,,0 esurf alls ! Initial boundary conditions d,PilotID,ux,0.0 d,PilotID,uy,-4.1 d,PilotID,rotz,0.0 nsel,s,loc,x,0. d,all,ux,0. alls tref,20.0 DL,14,,temp,100 DL,15,,temp,500 alls cnch,auto rmodif,4,14,1000.0 rmodif,5,14,1000.0 fini /solu /nopr nlad,cm222,add,mesh,shape,150 nlad,cm222,on,,,1 nlmesh,nlay,10 nlmesh,srat,0.8 nlmesh,bdra,10 nlmesh,grad,2 nlgeom,on eresx,no time,1 nsub,20,100,5 rescontrol,define,all,all outres,all,all solve fini /post1 set,list finish /exit,nosave