Ansys Learning Forum › Forums › Discuss Simulation › General Mechanical › APDL script for death based on material stress or strain › Reply To: APDL script for death based on material stress or strain
Hi Erik,Â
Thank you very much for the references. I was able to find a link which opened up to the APDL command for ekill. However, when I am trying to follow the script, it appears that I have an issue with applying the load such that each step is solved using the loop command.Â
I am essentially running an incremental static nonlinear analysis. A displacement load of 20mm is to be applied in 100 substeps. At each substep, I'd like to check the strain or stress level and apply ekill if the threshold is exceeded. But currently, I can see that the problem in my script is that the load is not applied correctly (without even trying to execute ekill). Essentially, in the first load step the 20mm displacement is applied, rather than 20/100 = 0.2mm, thus encountering convergence issue. The relevant part of my script is below. Could you please advise what I may be doing wrong?Â
------
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Apply load on selected nodes !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NSLA, R,1
NSEL,R,LOC,X,-100, 100
NSEL,R,LOC,Y,300
NSEL,R,LOC,Z,27
CM, n0, NODES
D,n0,UY,20, , , , , , , , ,Â
ALLSEL,ALL
!*
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Define Solution Controls !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/SOLU
!total number of steps for solve
  steps=100
  TIME_END=1
  timeinc=TIME_END/steps
  time,timeinc
  solve
*do,ICOUNT,1,steps-1
 /solu
 allsel,all
 time,timeinc*ICOUNT+timeinc
 solve
 finish
*enddo