Professional Documents
Culture Documents
Demo
Demo
/com ==========================================================
/com This is the input file for the analysis of Friction Stir
/com Welding
/com
/com ===========================================================
/com
/com
/com
/com
/com
/com
*******************************************************************
Set the "_geomgen" parameter appropriately (See Below)
Set "_geomgen" equals to "1" if user wants to create cdb files
Set "_geomgen" equals to "0" to run the analysis by reading cdb file
*******************************************************************
/config,nres,5000
/filname,fsw
_geomgen = 0
*if,_geomgen,eq,1,then
/prep7
/com, ***** Problem parameters ********
l=76.2e-03
w=31.75e-03
t=3.18e-03
r1=7.62e-03
h=15.24e-03
l1=r1
l2=l-l1
tcc1=2e06
tcc2=10
fwgt=0.95
mpdata,dens,1,1,7894,7744,7631,7518,7406,7406
!kg/m^3
allsel
lsel,s,,,4,5
lsel,a,,,14,19,5
lesize,all,,,22,5
lsel,s,,,16,17
lsel,a,,,2,7,5
lesize,all,,,22,1/5
lsel,s,,,1
lsel,a,,,3
lsel,a,,,6
lsel,a,,,8
lsel,a,,,13
lsel,a,,,15
lsel,a,,,18
lsel,a,,,20
lesize,all,,,44
lsel,s,,,9,
lsel,a,,,22
lesize,all,,,2
allsel,all
mshmid,2
!midside nodes dropped
vsweep,1
vsweep,2
vsel,u,volume,,1,2
mat,2
esize,0.0015
vsweep,all
allsel,all
/com,==========================================================
/com, * Contact Pairs
/com,==========================================================
/com, * Define Rigid Surface Constraint on tool top surface
et,2,TARGE170
keyopt,2,2,1
et,3,CONTA174
keyopt,3,1,1
keyopt,3,2,2
keyopt,3,4,2
keyopt,3,12,5
nplot
esurf
type,7
real,6
cmsel,s,tn.tgt
esurf
allsel,all
/com, * Define contact pair between tool & workpiece
et,4,TARGE170
et,5,CONTA174
keyopt,5,1,1
!Displacement & Temp dof
keyopt,5,5,3
!Close gap/reduce penetration with auto cnof
keyopt,5,9,1
!Exclude both initial penetration or gap
keyopt,5,10,2
!Contact stiffness update each iteration
!based
!Bottom & lateral(all except top) surfaces of tool for target
vsel,u,volume,,1,2
allsel,below,volume
nsel,r,loc,z,0,h
nsel,u,loc,z,h
type,4
r,5
tb,fric,5,6
!Definition of friction co efficient at
!different temp
tbtemp,25
tbdata,1,0.4
!friction co-efficiet at temp 25
tbtemp,200
tbdata,1,0.4
!friction co-efficiet at temp 200
tbtemp,400
tbdata,1,0.4
!friction co-efficiet at temp 400
tbtemp,600
tbdata,1,0.3
!friction co-efficiet at temp 600
tbtemp,800
tbdata,1,0.3
!friction co-efficiet at temp 800
tbtemp,1000
tbdata,1,0.2
!friction co-efficiet at temp 1000
rmodif,5,9,500e6
!Max.friction stress
rmodif,5,14,tcc2
!Thermal contact conductance b/w tool and
!workpiece, 10 W/m^2'C
rmodif,5,15,1
!A real constant FHTG,the fraction of
!frictional dissipated energy converted
!into heat
rmodif,5,18,fwgt
!A real constant FWGT, weight factor for
!the distribution of heat between the
!contact and target surfaces, 0.95
real,5
mat,5
esln
esurf
allsel,all
!Top sufaces of plates nodes for contact
vsel,s,volume,,1,2
allsel,below,volume
nsel,r,loc,z,0
type,5
real,5
esln
esurf
allsel,all
/com,==========================================================
/com, * Boundary conditions
/com,==========================================================
tref,25
allsel
nsel,all
ic,all,temp,25
/com,==========================================================
/com, * Solution
/com,==========================================================
/solu
antype,4
lnsrch,on
!Transient analysis
!Activating a line search to be used
!with Newton-Raphson (for contact
!problem)
cutcontrol,plslimit,0.15 !Controls time-step cutback during a
!solution,Maximum equivalent plastic
!strain allowed within a time-step is
!15%
autots,on
!Automatic time stepping
kbc,0
!Ramped loading within a load step
nlgeom,on
!Turn on large deformation effects
timint,off,struc
!Structural dynamic effects are turned
!off.
nropt,unsym
!Use full Newton-Raphson with
!unsymmetric matrices of elements
!Load Step1
time,1
nsubst,10,1000,10
d,1,uz,-uz1
outres,all,all
allsel
solve
!Load Step2
time,6.5
d,1,rotz,nr1
deltim,tsz,0.001,0.2
outres,all,10
allsel
solve
!Load Step3
time,29
d,1,rotz,nr2
d,1,uy,uy1
deltim,tsz,0.001,0.2
outres,all,10
solve
finish
!Rotation of tool,60rpm
!Displacement of tool along weldline
/com,==========================================================
/com, * Post-Processing
/com,==========================================================
/com, * Total Plastic heat and Frictional heat variations
/post1
set,last
*get,nst,active,,set,nset !To get number of data sets on result
!file
!Total Plastic heat rate
esel,s,mat,,1
etable,vlm1,volu
*dim,pha,array,nst,1
*do,i,1,nst,1
set,,,,,,,i
etable,pi,nmisc,5
smult,psi,pi,vlm1
ssum
*get,ppi,ssum,,item,psi
pha(i,1)=ppi
*enddo
parsav,all
allsel,all
!Total Frictional heat rate
esel,s,real,,5
esel,r,ename,,174
!Selecting the contact elements on
!workpiece
*dim,fht,array,nst,1
*do,i,1,nst,1
set,,,,,,,i
etable,fri,smisc,18
/post26
file,fsw,rst
numvar,200
solu,191,ncmit
/post1
/rgb,index,100,100,100, 0
/rgb,index, 80, 80, 80,13
/rgb,index, 60, 60, 60,14
/rgb,index, 0, 0, 0,15
/replot
/plopts,date,0
/replot
/view, 1,0.48,-0.51 ,0.7
/ang, 1,-47.73
/replot
set,,,,,1
esel,s,mat,,1
/show,png
plnsol, u,z,0,1
plnsol, s,eqv,0,1
allsel,all
plnsol, temp,, 0,1 !Temperature after first load step
esel,s,real,,5
esel,r,ename,,174
plnsol, cont,sfric, 0,1!Fric. Stress after first load step
set,,, ,,6.5
plnsol, cont,sfric, 0,1!Fric. Stress after second load step
allsel,all
set,,, ,,6.5
plnsol, temp,, 0,1 !Temperature after second load step
set,last
plnsol, temp,, 0,1 !Temperature after last load step
esel,s,real,,6
esel,r,ename,,174
set,last
plnsol, cont,stat, 0,1 !Contact Status after last load step
/rep,fast
/show,close
allsel,all
finish