/COM,ANSYS MEDIA REL. 2024R2 (05/10/2024) REF. VERIF. MANUAL: REL. 2024R2
/verify,vmr020-t1a-183
/title,vmr020-t1a-183,Centre Cracked Plate in Tension
/com,
/com, Problem is taken from NAFEMS Publication
/com, "2D Test Cases in Linear Elastic Fracture Mechanics"
/com, Test case 1.1
/com,
/com, Reference: Rooke D P and Cartwright D J : Compendium
/com, of stress intensity factors, HMSO, London, England (1976)
/com,
/com, **********************************************************
/com, Stress Intensity Factor Calculation using Interaction
/com, Integral Approach
/COM, PARAMETER FOR CREATING THE CDB FILES TO STORE GEOMETRY AND MESH DATA
/COM,
_GEOMGEN = 0 ! SET TO 1 TO WRITE CDB FILES IF ANY INPUT FILE MODIFICATIONS
PARSAV
/OUT,vmr020-t1a-183_scratch
/PREP7
*IF,_GEOMGEN,EQ,1,THEN
E=207000 ! young's modulus
NU=0.3 ! poisson's ratio
sig=100 ! surface load
pi=3.141593
a=10 ! crack length
et,1,plane183 ! plane183 element
keyopt,1,3,2 ! plane strain
mp,ex,1,e
mp,nuxy,1,nu
k,1,-10,0
k,2,0,0
k,3,10,0
k,4,10,10
k,5,10,20
k,6,-10,20
k,7,-10,10
l,1,2
*rep,6,1,1
l,7,1
l,4,7
al,1,2,3,8,7
al,4,5,6,8
esize,1
kscon,2,1,1,4,0.75 !crack tip elements
amesh,1
esize,2
amesh,2
alls
lsel,s,line,,5 ! apply pressure
sfl,all,press,-sig
lsel,all
alls
CDWRITE,DB,vmr020-t1a-183-1,cdb
*ELSE
CDREAD,DB,vmr020-t1a-183-1,cdb
*ENDIF
/OUT,
fini
/solu
autots,on
nsubst,10
outres,all,all
nsel,s,loc,y,0
nsel,r,loc,x,0,10
d,all,uy,0
nsel,s,loc,x,-10
nsel,r,loc,y,0,20
d,all,ux,0
nsel,all
nsel,s,loc,y,0
nsel,r,loc,x,0
cm,crack1,node ! define the crack tip node component
nsel,all
cint,new,1
cint,type,sifs ! Calculate Stress Intensity factor
cint,ctnc,crack1 ! crack ID
cint,ncon,4 ! number of contours
cint,symm,on ! symmetry on
cint,norm,0,2
cint,list
allsel,all
solve
fini
/OUT,vmr020-t1a-183_scratch,,,APPEND
/post1
prcint,1 ! Get the J1,J2,J3 values
*get,k1_1,cint,1,ctip,node(0,0,0),,1,dtype,k1
*get,k1_2,cint,1,ctip,node(0,0,0),,2,dtype,k1
*get,k1_3,cint,1,ctip,node(0,0,0),,3,dtype,k1
*get,k1_4,cint,1,ctip,node(0,0,0),,4,dtype,k1
k1=(k1_2+k1_3+k1_4)/3
*stat,k1
con1 = ((pi*a)**0.5)
k0=(sig*con1)
norm_sif=k1/k0
/OUT,
*status,norm_sif
*DIM,LABEL,CHAR,1,5
*DIM,VALUE,,1,3
LABEL(1,1) = 'KI'
*VFILL,VALUE(1,1),DATA,1.325
*VFILL,VALUE(1,2),DATA,norm_sif
*VFILL,VALUE(1,3),DATA,ABS(norm_sif/1.325 )
SAVE,vmr020-t1a-183_TABLE_1
FINI
/OUT,vmr020-t1a-183_scratch,,,APPEND
/CLEAR,NOSTART
PARRES,CHANGE
/OUT,
/com,*************************************************************
/com, Using J integral Calculation
/OUT,vmr020-t1a-183_scratch
/PREP7
*IF,_GEOMGEN,EQ,1,THEN
E=207000 ! young's modulus
NU=0.3 ! poisson's ratio
sig=100 ! surface load
pi=3.141593
a=10 ! crack length
et,1,plane183 ! plane183 element
keyopt,1,3,2 ! plane strain
mp,ex,1,e
mp,nuxy,1,nu
k,1,-10,0
k,2,0,0
k,3,10,0
k,4,10,10
k,5,10,20
k,6,-10,20
k,7,-10,10
l,1,2
*rep,6,1,1
l,7,1
l,4,7
al,1,2,3,8,7
al,4,5,6,8
esize,1
kscon,2,1,1,4,0.75 ! mesh crack tip elements
amesh,1
esize,2
amesh,2
alls
lsel,s,line,,5 ! apply pressure
sfl,all,press,-sig
lsel,all
alls
CDWRITE,DB,vmr020-t1a-183-2,cdb
*ELSE
CDREAD,DB,vmr020-t1a-183-2,cdb
*ENDIF
/OUT,
fini
/solu
autots,on
nsubst,10
outres,all,all
nsel,s,loc,y,0
nsel,r,loc,x,0,10
d,all,uy,0
nsel,s,loc,x,-10
nsel,r,loc,y,0,20
d,all,ux,0
nsel,all
nsel,s,loc,y,0
nsel,r,loc,x,0
cm,crack1,node ! define the crack tip node component
nsel,all
cint,new,1
cint,ctnc,crack1 ! crack ID
cint,ncon,4 ! number of contours
cint,symm,on ! symmetry on
cint,norm,0,2
cint,list
allsel,all
solve
fini
/OUT,vmr020-t1a-183_scratch,,,APPEND
/post1
prcint,1 ! Get the J1,J2,J3 values
*get,j1,cint,1,ctip,node(0,0,0),,1,,
*get,j2,cint,1,ctip,node(0,0,0),,2,,
*get,j3,cint,1,ctip,node(0,0,0),,3,,
*get,j4,cint,1,ctip,node(0,0,0),,4,,
jc1 =(abs(j1)+abs(j2)+abs(j3)+abs(j4))/4
*stat,jc1
con1 = ((pi*a)**0.5)
con2 = E/(1-(nu*nu))
k1 = ((con2*jc1)**0.5)
k0=(sig*con1)
norm_sif=k1/k0
/OUT,
*status,norm_sif
*DIM,LABEL,CHAR,1,5
*DIM,VALUE,,1,3
LABEL(1,1) = 'KI'
*VFILL,VALUE(1,1),DATA,1.325
*VFILL,VALUE(1,2),DATA,norm_sif
*VFILL,VALUE(1,3),DATA,ABS(norm_sif/1.325 )
SAVE,vmr020-t1a-183_TABLE_2
/NOPR
/COM
/OUT,vmr020-t1a-183,vrt
/COM,------------------- vmr020-t1a-183 RESULTS COMPARISON ---------------------
/COM,
/COM, | TARGET | MECHANICAL APDL | RATIO
/COM,
RESUME,vmr020-t1a-183_TABLE_1
/COM,USING STRESS INTENSITY FACTOR CALCULATION
*VWRITE,LABEL(1,1),VALUE(1,1),VALUE(1,2),VALUE(1,3)
(1X,A8,' ',F10.3,' ',F12.3,' ',1F16.3)
/COM,
/COM,
/COM,
RESUME,vmr020-t1a-183_TABLE_2
/COM,USING J-INTEGRAL APPROACH
/COM,
*VWRITE,LABEL(1,1),VALUE(1,1),VALUE(1,2),VALUE(1,3)
(1X,A8,' ',F10.3,' ',F12.3,' ',1F16.3)
/COM,
/COM,
/COM,
/COM,-------------------------------------------------------------------------------
/OUT
FINISH
*list,vmr020-t1a-183,vrt