american500
Electrical
- Feb 27, 2007
- 15
Dear all,
ANSYS APDL related question:
I am trying to automate the process of killing elements instead of applying each load step and killing elements separately. Below is a code that seems to be working, however, after each iteration, the .CM component file with the list of elements to be killed is overwritten and as a result, the old supposedly killed elements become alive again (zombies ?). Below is the code, please advise on how to fix this issue:
/SOLU
ANTYPE,STATIC
NROPT, FULL, , OFF
PRED, OFF, , OFF
OUTRES,ALL,ALL
OUTPR,ALL,ALL
LSWRITE,ALL,ALL
NSUBST,1,1,1
*DIM,PRESSURE,TABLE,4
PRESSURE(1,1)=0,-80,-100,-120 !PRESSURE VALUES
PRESSURE(1,0)=0,1,2,3 !TIME VALUES
PRESSURE(0,1)=1
TM_START = 0
TM_END=4
TM_INCR=1
*DO,TM,TM_START,TM_END,TM_INCR
TIME=TM
SFL,2,PRES,PRESSURE(TM)
SOLVE
/POST1 ! Start Post-processor module
SET,LAST
ETABLE,XSTRESS,S,X
ESEL,S,ETAB,XSTRESS,250,999
! ESEL,A,ETAB,XSTRESS,0.00,0.00 !! elements were all killied from step 1
*GET,ENUM,ELEM,,COUNT
*IF,ENUM,EQ,0,THEN
/SOLU
ANTYPE,,REST
*ELSE
CM,ETOKILL,ELEM
CMWRITE,FILE,CM,,1
/SOLU
ANTYPE,,REST
/INPUT,FILE,CM
CMSEL,S,ETOKILL
ESTIF,10E-3
EKILL,ALL
ALLSEL,ALL
SOLVE
*ENDIF
*ENDDO