How to know the Number of Elements killed in ekill?

  • 711 Views
  • 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.


esel,s,type,,mycont
esel,a,type,,mytarg
ekill,all
allsel


esel,s,type,,mycont
esel,a,type,,mytarg
ealive,all
allsel


Thank you

Order By: Standard | Newest | Votes
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

 

*get,ecount,elem,,count

*dim,killed_elems,,ecount

 

*vget,killed_elems(1),elem,,elist

 

*CFOPEN,killed_elem_list,txt,

*VWRITE,killed_elems(1)

(F8.0,TL1,'  ')

*CFCLOSE

!End of script

Best regards,

Rohith

SandeepMedikonda posted this 07 November 2018

Jack,

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.

Regards,
Sandeep

  • 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?

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.

Regards,
Sandeep

jackhero posted this 09 November 2018

 @Sandeep, @Rohith

Thank you for your reply and guidance.

Close