-
-
November 7, 2018 at 3:18 pm
jackhero
SubscriberI 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 -
November 7, 2018 at 11:49 pm
Sandeep Medikonda
Ansys EmployeeJack,
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 -
November 8, 2018 at 5:26 am
jackhero
SubscriberThank 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?
-
November 8, 2018 at 10:18 am
Rohith Patchigolla
Ansys EmployeeHi 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
-
November 9, 2018 at 1:41 am
Sandeep Medikonda
Ansys EmployeeJack, 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 -
November 9, 2018 at 8:34 am
jackhero
Subscriber@Sandeep, @Rohith
Thank you for your reply and guidance.
-
July 21, 2020 at 2:39 pm
Shekhar
SubscriberHi Rohith,
If you can please tell me what is (F8.0,TL1,' ') used in your above code between commands *VWRITE and *CFCLOSE?
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Saving & sharing of Working project files in .wbpz format
- An Unknown error occurred during solution. Check the Solver Output…..
- Understanding Force Convergence Solution Output
- Solver Pivot Warning in Beam Element Model
- Colors and Mesh Display
- How to calculate the residual stress on a coating by Vickers indentation?
- whether have the difference between using contact and target bodies
- What is the difference between bonded contact region and fixed joint
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- User manual
-
2524
-
2066
-
1279
-
1096
-
459
© 2023 Copyright ANSYS, Inc. All rights reserved.