YoungTurk
Mechanical
- Jul 16, 2004
- 333
I'm trying to get element death to work in a loop to simulate a realistic failure. Problem is, the ESEL and EKILL only seem to happen on the first loop iteration; after that the peripheral commands set to read the results set and solve continue to execute, but the ESEL and EKILL commands don't appear to execute whatsoever. I did read chapter 12 on element birth and death (repeatedly) but as usual, I seem to be missing something (or the documentation does). Here's the code. Be kind, I'm no advanced programmer.
Code:
/SOLU
!*
ANTYPE,0
ANTYPE,0
NLGEOM,1
NSUBST,rsn,0,0
OUTRES,ERASE
OUTRES,ALL,ALL
AUTOTS,0
LNSRCH,1
NEQIT,100
PSTRES,1
RESCONTRL,DEFINE,ALL,ALL,rsn
TIME,pressure
/STATUS,SOLU
SOLVE
FINISH
/REPLOT
*DO,I,1,rsn-1,1
/POST1
PLNSOL, U,Y, 0,1.0
/WAIT,30
/POST1
SET,1,I,1,
ETABLE,STRS,S,X
ESEL,S,ETAB,STRS,SxMax
ESEL,A,ETAB,STRS,-100000,SxMin
ETABLE,STRS,S,Y
ESEL,A,ETAB,STRS,SyMax
ESEL,A,ETAB,STRS,-100000,SyMin
ETABLE,STRS,S,Z
ESEL,A,ETAB,STRS,SzMax
ESEL,A,ETAB,STRS,-100000,SzMin
ETABLE,STRS,S,XY
ESEL,A,ETAB,STRS,SxyMax,,1
ETABLE,STRS,S,YZ
ESEL,A,ETAB,STRS,SyzMax,,1
ETABLE,STRS,S,XZ
ESEL,A,ETAB,STRS,SxzMax,,1
ESEL,R,MAT,,1
/SOLU
EKILL,ALL
ESEL,INVE
ANTYPE,,REST,1,I,0
RESCONTRL,DEFINE,ALL,ALL,I
SOLVE
*ENDDO