CrankSlot_Rigid.inp

/batch
/prep7
! Turn off shape checking because checks already performed inside WB mesher.
! See help system for more information.
SHPP,OFF,,NOWARN
/nolist
etcon,set             ! allow ANSYS to choose best KEYOP's for 180x elements
/com,*********** Nodes for the whole assembly ***********
nblock,3
(1i8,3e20.9e3)
       1    0.000000000E+000    3.529175918E+001   -5.000000000E+000
       2    2.378511247E+001    1.380297652E+001    5.000000000E+000
       3    2.380153982E+001    6.877452408E+001    1.500000000E+001
       4   -4.717895070E-016    1.100000000E+002    5.000000000E+000
       5    1.525181166E-017    1.189641309E-016    9.761159461E-017
       6    4.760307959E+001    2.754904870E+001    1.000000000E+001
-1
/com,*********** Elements for Part 1 ***********
/com,*********** Send Body as a Rigid Body ***********
et,1,MASS21
keyo,1,3,0         ! 3D Mass With Rotary Intertia
keyo,1,2,1             ! Moments of inertia in nodal coordinates
r,1,5.62959624417329e-004,5.62959624417329e-004,5.62959624417329e-004,4.27915117762894,5.64969611751201e-002,4.32626430862063
local,11,0,0.,35.2917591780688,-4.99999999999951,0.,0.,0.
nrot,1
csys,0
mat,1
real,1
type,1
en,1,1
/com,*********** Elements for Part 2 ***********
/com,*********** Send Body as a Rigid Body ***********
et,2,MASS21
keyo,2,3,0         ! 3D Mass With Rotary Intertia
keyo,2,2,1             ! Moments of inertia in nodal coordinates
r,2,7.59817488346602e-005,7.59817488346602e-005,7.59817488346602e-005,2.21486141701566e-003,3.27365368251796e-002,3.36826963131752e-002
local,11,0,23.7851124732216,13.8029765212764,4.99999999999951,29.9821797972594,-1.63487457250109e-008,4.06547904138105e-009
nrot,2
csys,0
mat,2
real,2
type,2
en,2,2
/com,*********** Elements for Part 3 ***********
/com,*********** Send Body as a Rigid Body ***********
et,3,MASS21
keyo,3,3,0         ! 3D Mass With Rotary Intertia
keyo,3,2,1             ! Moments of inertia in nodal coordinates
r,3,1.23324499502402e-004,1.23324499502402e-004,1.23324499502402e-004,0.123369407044669,3.4970850903802e-003,0.124808744493488
local,11,0,23.8015398171524,68.7745240829644,14.9999999999985,29.9999986025964,3.45291420136837e-009,-1.90838113503191e-007
nrot,3
csys,0
mat,3
real,3
type,3
en,3,3
/com,*********** Elements for Part 4 ***********
/com,*********** Send Body as a Rigid Body ***********
et,4,MASS21
keyo,4,3,0         ! 3D Mass With Rotary Intertia
keyo,4,2,1             ! Moments of inertia in nodal coordinates
r,4,1.84961267480099e-005,1.84961267480099e-005,1.84961267480099e-005,1.48440380137047e-003,1.48440385658378e-003,2.259733717427e-004
local,11,0,-4.71789506988333e-016,110.000000028382,4.99999999999951,0.,0.,0.
nrot,4
csys,0
mat,4
real,4
type,4
en,4,4
/com,*********** Elements for Part 5 ***********
/com,*********** Send Body as a Rigid Body ***********
et,5,MASS21
keyo,5,3,0         ! 3D Mass With Rotary Intertia
keyo,5,2,1             ! Moments of inertia in nodal coordinates
r,5,1.23307511653399e-005,1.23307511653399e-005,1.23307511653399e-005,4.816704325156e-004,4.8167043256163e-004,1.50648999123811e-004
local,11,0,1.52518116573376e-017,1.18964130927233e-016,9.76115946069606e-017,0.,0.,0.
nrot,5
csys,0
mat,5
real,5
type,5
en,5,5
/com,*********** Elements for Part 6 ***********
/com,*********** Send Body as a Rigid Body ***********
et,6,MASS21
keyo,6,3,0         ! 3D Mass With Rotary Intertia
keyo,6,2,1             ! Moments of inertia in nodal coordinates
r,6,1.23307511653399e-005,1.23307511653399e-005,1.23307511653399e-005,4.81670360832402e-004,4.81670377213366e-004,1.5064896426044e-004
local,11,0,47.6030795911263,27.5490486999112,9.99999999999894,0.,0.,0.
nrot,6
csys,0
mat,6
real,6
type,6
en,6,6
/com,*********** Send Materials ***********
MP,DENS,1,7.85e-009,	! ton/mm³
MP,NUXY,1,0.3,
MP,EX,1,200000.,	! ton/s²·mm
MP,ALPX,1,1.2e-005,	! 1/°C
MP,C,1,434000000.,	! mm²/s²·°C
MP,KXX,1,60.5,	! ton·mm/s³·°C
MP,MURX,1,10000.,
MP,RSVX,1,1.7e-004,	! Ohm·mm

MP,DENS,2,7.85e-009,	! ton/mm³
MP,NUXY,2,0.3,
MP,EX,2,200000.,	! ton/s²·mm
MP,ALPX,2,1.2e-005,	! 1/°C
MP,C,2,434000000.,	! mm²/s²·°C
MP,KXX,2,60.5,	! ton·mm/s³·°C
MP,MURX,2,10000.,
MP,RSVX,2,1.7e-004,	! Ohm·mm

MP,DENS,3,7.85e-009,	! ton/mm³
MP,NUXY,3,0.3,
MP,EX,3,200000.,	! ton/s²·mm
MP,ALPX,3,1.2e-005,	! 1/°C
MP,C,3,434000000.,	! mm²/s²·°C
MP,KXX,3,60.5,	! ton·mm/s³·°C
MP,MURX,3,10000.,
MP,RSVX,3,1.7e-004,	! Ohm·mm

MP,DENS,4,7.85e-009,	! ton/mm³
MP,NUXY,4,0.3,
MP,EX,4,200000.,	! ton/s²·mm
MP,ALPX,4,1.2e-005,	! 1/°C
MP,C,4,434000000.,	! mm²/s²·°C
MP,KXX,4,60.5,	! ton·mm/s³·°C
MP,MURX,4,10000.,
MP,RSVX,4,1.7e-004,	! Ohm·mm

MP,DENS,5,7.85e-009,	! ton/mm³
MP,NUXY,5,0.3,
MP,EX,5,200000.,	! ton/s²·mm
MP,ALPX,5,1.2e-005,	! 1/°C
MP,C,5,434000000.,	! mm²/s²·°C
MP,KXX,5,60.5,	! ton·mm/s³·°C
MP,MURX,5,10000.,
MP,RSVX,5,1.7e-004,	! Ohm·mm

MP,DENS,6,7.85e-009,	! ton/mm³
MP,NUXY,6,0.3,
MP,EX,6,200000.,	! ton/s²·mm
MP,ALPX,6,1.2e-005,	! 1/°C
MP,C,6,434000000.,	! mm²/s²·°C
MP,KXX,6,60.5,	! ton·mm/s³·°C
MP,MURX,6,10000.,
MP,RSVX,6,1.7e-004,	! Ohm·mm

! get the diagonal of the bounding box. Needed later for other things
*get,_xmin,node,,mnloc,x
*get,_ymin,node,,mnloc,y
*get,_zmin,node,,mnloc,z
*get,_xmax,node,,mxloc,x
*get,_ymax,node,,mxloc,y
*get,_zmax,node,,mxloc,z
_ASMDIAG=(_xmax-_xmin)*(_xmax-_xmin)+(_ymax-_ymin)*(_ymax-_ymin)+(_zmax-_zmin)*(_zmax-_zmin)
_ASMDIAG=SQRT(_ASMDIAG)
/golist
nsel,all
/com,*********** Create Joint "Revolute - Base To Bolt1" ***********
local,12,0,0.,3.06151588455594e-016,-5.00000000000001,0.,0.,180.
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Reference Set
! ********* Create Target to Connect To Rigid Body Mass Node *********** 
*set,tid,8
*set,cid,7
et,tid,170
keyo,tid,2,1           ! Don't fix the pilot node
keyo,tid,4,0           ! Create CE's for all DOFs
type,tid
mat ,cid
real,cid
tshape,pilo
en,14,1
tshape
! ********* End of Create Target to Connect To Rigid Body Mass Node *********** 
n,7,0.,3.06151588455594e-016,-5.00000000000001
*set,_npilot,7
_npilot38a=_npilot
mat,7
real,7
type,8
en,15,1,7
csys,12
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Mobile Set
! ********* Create Target to Connect To Rigid Body Mass Node *********** 
*set,tid,10
*set,cid,9
et,tid,170
keyo,tid,2,1           ! Don't fix the pilot node
keyo,tid,4,0           ! Create CE's for all DOFs
type,tid
mat ,cid
real,cid
tshape,pilo
en,16,5
tshape
! ********* End of Create Target to Connect To Rigid Body Mass Node *********** 
n,8,0.,3.06151588455594e-016,-5.00000000000001
*set,_npilot,8
_npilot38b=_npilot
mat,9
real,9
type,10
en,17,5,8
csys,12
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
/com,            Real Contact Set For Above Joint Is 11
! Joint Element Type Declaration and Definition using MPC184
*set,_jid,11
et,_jid,184
keyo,_jid,1,6           ! Revolute Joint
keyo,_jid,4,1           ! Z Axis is revolute axis
sectype,_jid, joint, revo, _wbjoint
secjoint,,12,12
mat,_jid
real,_jid
type,_jid
secnum,_jid
en,7,_npilot38a,_npilot38b         ! body to body joint
/com,*********** Create Joint "Fixed - Rod1 To Bolt1" ***********
local,13,0,0.,3.06151588455594e-016,5.00000000000001,0.,0.,0.
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Reference Set
! ********* Create Target to Connect To Rigid Body Mass Node *********** 
*set,tid,13
*set,cid,12
et,tid,170
keyo,tid,2,1           ! Don't fix the pilot node
keyo,tid,4,0           ! Create CE's for all DOFs
type,tid
mat ,cid
real,cid
tshape,pilo
en,18,2
tshape
! ********* End of Create Target to Connect To Rigid Body Mass Node *********** 
n,9,0.,3.06151588455594e-016,5.00000000000001
*set,_npilot,9
_npilot40a=_npilot
mat,12
real,12
type,13
en,19,2,9
csys,13
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Mobile Set
n,10,0.,3.06151588455594e-016,5.00000000000001
*set,_npilot,10
_npilot40b=_npilot
mat,9
real,9
type,10
en,20,5,10
csys,13
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
! Joint Element Type Declaration and Definition using TARGE170
*set,tid,15
*set,cid,14
et,tid,170
keyo,tid,2,1           ! Don't fix the pilot node
keyo,tid,4,0           ! Create CE's for all DOFs
mat,cid
real,cid
type,tid
tshape,pilo
en,8,_npilot40a        ! create pilot node for rigid link
tshape
type,tid
en,21,_npilot40a,_npilot40b
csys,0
/com,*********** Create Joint "Fixed - Rod1 To Bolt2" ***********
local,14,0,47.6030788398054,27.5490488527501,5.,0.,0.,0.
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Reference Set
n,11,47.6030788398054,27.5490488527501,5.
*set,_npilot,11
_npilot42a=_npilot
mat,12
real,12
type,13
en,22,2,11
csys,14
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Mobile Set
! ********* Create Target to Connect To Rigid Body Mass Node *********** 
*set,tid,17
*set,cid,16
et,tid,170
keyo,tid,2,1           ! Don't fix the pilot node
keyo,tid,4,0           ! Create CE's for all DOFs
type,tid
mat ,cid
real,cid
tshape,pilo
en,23,6
tshape
! ********* End of Create Target to Connect To Rigid Body Mass Node *********** 
n,12,47.6030788398054,27.5490488527501,5.
*set,_npilot,12
_npilot42b=_npilot
mat,16
real,16
type,17
en,24,6,12
csys,14
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
! Joint Element Type Declaration and Definition using TARGE170
*set,tid,19
*set,cid,18
et,tid,170
keyo,tid,2,1           ! Don't fix the pilot node
keyo,tid,4,0           ! Create CE's for all DOFs
mat,cid
real,cid
type,tid
tshape,pilo
en,9,_npilot42a        ! create pilot node for rigid link
tshape
type,tid
en,25,_npilot42a,_npilot42b
csys,0
/com,*********** Create Joint "Fixed - Rod2 To Bolt3" ***********
local,15,0,1.45519152283668e-014,110.,15.,0.,0.,0.
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Reference Set
! ********* Create Target to Connect To Rigid Body Mass Node *********** 
*set,tid,21
*set,cid,20
et,tid,170
keyo,tid,2,1           ! Don't fix the pilot node
keyo,tid,4,0           ! Create CE's for all DOFs
type,tid
mat ,cid
real,cid
tshape,pilo
en,26,3
tshape
! ********* End of Create Target to Connect To Rigid Body Mass Node *********** 
n,13,1.45519152283668e-014,110.,15.
*set,_npilot,13
_npilot44a=_npilot
mat,20
real,20
type,21
en,27,3,13
csys,15
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Mobile Set
! ********* Create Target to Connect To Rigid Body Mass Node *********** 
*set,tid,23
*set,cid,22
et,tid,170
keyo,tid,2,1           ! Don't fix the pilot node
keyo,tid,4,0           ! Create CE's for all DOFs
type,tid
mat ,cid
real,cid
tshape,pilo
en,28,4
tshape
! ********* End of Create Target to Connect To Rigid Body Mass Node *********** 
n,14,1.45519152283668e-014,110.,15.
*set,_npilot,14
_npilot44b=_npilot
mat,22
real,22
type,23
en,29,4,14
csys,15
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
! Joint Element Type Declaration and Definition using TARGE170
*set,tid,25
*set,cid,24
et,tid,170
keyo,tid,2,1           ! Don't fix the pilot node
keyo,tid,4,0           ! Create CE's for all DOFs
mat,cid
real,cid
type,tid
tshape,pilo
en,10,_npilot44a        ! create pilot node for rigid link
tshape
type,tid
en,30,_npilot44a,_npilot44b
csys,0
/com,*********** Create Joint "Cylindrical - Rod2 To Bolt2" ***********
local,16,0,47.6030788398054,27.5490488527501,15.,0.,0.,0.
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Reference Set
n,15,47.6030788398054,27.5490488527501,15.
*set,_npilot,15
_npilot46a=_npilot
mat,20
real,20
type,21
en,31,3,15
csys,16
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Mobile Set
n,16,47.6030788398054,27.5490488527501,15.
*set,_npilot,16
_npilot46b=_npilot
mat,16
real,16
type,17
en,32,6,16
csys,16
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
/com,            Real Contact Set For Above Joint Is 26
! Joint Element Type Declaration and Definition using MPC184
*set,_jid,26
et,_jid,184
keyo,_jid,1,11          ! Cylindrical Joint
keyo,_jid,4,1           ! Z Axis is revolute axis
sectype,_jid, joint, cyli, _wbjoint
secjoint,,16,16
mat,_jid
real,_jid
type,_jid
secnum,_jid
en,11,_npilot46a,_npilot46b         ! body to body joint
/com,*********** Create Joint "Slot - Base To Bolt3" ***********
local,17,0,4.57554378011943e-017,110.000000097686,-10.,-90.,0.,180.
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Reference Set
n,17,4.57554378011943e-017,110.000000097686,-10.
*set,_npilot,17
_npilot53a=_npilot
mat,7
real,7
type,8
en,33,1,17
csys,17
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Mobile Set
n,18,4.57554378011943e-017,110.000000097686,-10.
*set,_npilot,18
_npilot53b=_npilot
mat,22
real,22
type,23
en,34,4,18
csys,17
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
/com,            Real Contact Set For Above Joint Is 27
! Joint Element Type Declaration and Definition using MPC184
*set,_jid,27
et,_jid,184
keyo,_jid,1,8           ! Slot Joint
sectype,_jid, joint, slot, _wbjoint
secjoint,,17,17
mat,_jid
real,_jid
type,_jid
secnum,_jid
en,12,_npilot53a,_npilot53b         ! body to body joint
/com,*********** Create Joint "Fixed - Ground To Base" ***********
local,18,0,0.,-100.,-5.,0.,90.,0.
csys,0                       ! reset coordinate system back to global
! Setup Joint Connection For Mobile Set
n,19,0.,-100.,-5.
*set,_npilot,19
_npilot55b=_npilot
mat,7
real,7
type,8
en,35,1,19
csys,18
nrot,_npilot                 ! rotate joint node into joint coordinate system
csys,0                       ! reset coordinate system back to global
d,19,all                   ! body to ground Direct D
/com,*********** Set Reference Temperature ***********
tref,22.
/com,*********** Create Joint Drivers **********

*DIM,_loadvari109,TABLE,1,1,1,TIME
! Time values
_loadvari109(1,0) = 1.
! Load values
_loadvari109(1,1) = 25.
/com,*********** Send User Defined Coordinate System(s) ***********
local,12,0,0.,3.06151588455594e-016,-5.00000000000001,0.,0.,180.
local,13,0,0.,3.06151588455594e-016,5.00000000000001,0.,0.,0.
local,14,0,47.6030788398054,27.5490488527501,5.,0.,0.,0.
local,15,0,1.45519152283668e-014,110.,15.,0.,0.,0.
local,16,0,47.6030788398054,27.5490488527501,15.,0.,0.,0.
local,17,0,4.57554378011943e-017,110.000000097686,-10.,-90.,0.,180.
local,18,0,0.,-100.,-5.,0.,90.,0.
csys,0
/gst,on,on
fini
*get,_numnode,node,0,count
*get,_numelem,elem,0,count
/go
/com,--- Number of total nodes = %_numnode%
/com,--- Number of total elements = %_numelem%
/com,****************************************************************************
/com,*************************    SOLUTION       ********************************
/com,****************************************************************************
/solu
antype,4                   ! transient analysis
nlgeom,on                  ! Turn on Large Deformation Effects
kbc,1                      ! stepped BC's
/com, Avg ratio=    1, totalParts=6, thickParts=0, thickPcent=  0
eqsl,sparse,,,,,1
resc,,none                 ! Do not keep any restart files
cntr,print,1               ! print out contact info and also make no initial contact an error
trnopt,full,,,,,hht        ! HHT time integration method
tintp,0.1	! Numerical Damping
nldiag,cont,iter           ! print out contact info each equilibrium iteration
/com,****************************************************
/com,******************* SOLVE FOR LS 1 ****************
/nopr
/gopr
esel,s,type,,11
dj,all,dmgz,%_loadvari109%
esel,all
autots,off                 ! User turned off automatic time stepping
nsub,100,100,100
time,1.
timint,on                  ! Turn on time integration effects
outres,erase
outres,all,none
outres,nsol,-100
outres,rsol,-100
outres,nload,-100
outres,strs,-100
outres,epel,-100
outres,eppl,-100
outres,v,-100
outres,a,-100
esel,s,mat,,11
esel,a,mat,,26
esel,a,mat,,27
esel,a,mat,,1
esel,a,mat,,2
esel,a,mat,,3
esel,a,mat,,4
esel,a,mat,,5
esel,a,mat,,6
cm,_elmisc,elem
esel,all
outres,misc,-100,_elmisc
lnsr,off                   ! Line search turned OFF by user
! *********** WB SOLVE COMMAND ***********
solve
fini

/post26
nsol,2,3,u,y,uy
nsol,3,3,u,x,ux
nsol,4,3,u,z,uz
prod,5,2,2,,squy
prod,6,3,3,,squx
prod,7,4,4,,squz
add,8,5,6,7,sqsum
sqrt,9,8,,,utot
prvar,9

/com
/com  Time history plot of total displacement of node 2 of Rigid Body 2 
/com

/xrange,0,1
/yrange,0,80.956
/axlab,x,TIME
/axlab,y,TOTAL DISPLACEMENT OF RIGID ROD2
plvar,9

finish

Release 18.2 - © ANSYS, Inc. All rights reserved.