×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

ANSYS APDL: EKILL and Components file

ANSYS APDL: EKILL and Components file

ANSYS APDL: EKILL and Components file

(OP)


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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources