How to know the Number of Elements killed in ekill?

  • Last Post 09 November 2018
  • Topic Is Solved
jackhero posted this 07 November 2018

I ran a simulation for studying the contact behavior between a rod and a block, having bonded connection. I used e-kill and e-alive commands to get the element birth and death, for contact and the target, in Ansys workbench. The purpose is to simulate the debonding using kill command.

I would like to ask when I use element birth and death (ekill) how can I get the number of interface elements or cells killed? I intend to get the number of elements before and after kill to get the total percentage of the killed cells or elements during debonding.



Thank you

Order By: Standard | Newest | Votes
SandeepMedikonda posted this 07 November 2018


I don't think there is a way to do this in the GUI. when we select the element to kill using ESEL or other commands, it is recorded in the solver out file. Or you can write it to a text file using commands.


  • Liked by
  • jackhero
jackhero posted this 08 November 2018

Thank you for your reply.

Can you please guide me on how to get the number of elements using commands? I searched for writing into text file, and the vwrite command is suggested. But which command or set of commands I shall use in Ansys Mechanical to get the number of elements so that the vwrite command could be used to write the result in text file?

rgpatchi posted this 08 November 2018

Hi Jack, 

Please try the below script. 

!Beginning of script

ESEL,s,live     !live elements

ESEL,inve       !killed elements









(F8.0,TL1,'  ')


!End of script

Best regards,


SandeepMedikonda posted this 09 November 2018

Jack, it looks like Rohith has answered your question. 

As an experienced member of this forum who asks good questions. I request you please close discussions whenever your original question has been answered.

This will not only help new users but will also help us in providing better support on this forum. Please take a moment to look at the Guidelines on the Student Community.


jackhero posted this 09 November 2018

 @Sandeep, @Rohith

Thank you for your reply and guidance.