TAGGED: birth-death-element-control, interface, tabular-data
-
-
September 21, 2023 at 4:08 pm
Grigory Tarasevich
SubscriberHello! I was wondering if there is a way to efficiently edit the tabular data (in particular - element birth/death status for a particular time step) for the objects that do not have a worksheet option enabled? Let's say I have a hundred birth/death element objects I need to edit the step status for and every object has a unique step sequence. The python script recorder does not pick up the status switch action unfortunately, but maybe someone knows the object function that would do it? Or how to enable the worksheet view for these objects? Thanks! -
September 23, 2023 at 2:12 am
mjmiddle
Ansys EmployeeMechanical allows alive/dead status for an "Element Birth and Death" and "Contact Step Control." The following was tested in 2023 R2:
analysis = ExtAPI.DataModel.Project.Model.Analyses[0]
numSteps = analysis.AnalysisSettings.NumberOfSteps
elemBirthDeath = analysis.AddElementBirthAndDeath()
control = ["Alive", "Dead", "Alive", "Dead", "Dead"] # list length needs to match number of steps
control = [eval("ElementControlsStatus."+cont) for cont in control]
with Transaction():
for step in range(1, numSteps+1):
elemBirthDeath.CurrentStep = step
elemBirthDeath.Status = control[step-1]
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

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.
- How to do the frequency response of the nonlinear vibration of a flexible PCB?
- Importing Line and Solid Bodies from SpaceClaim to Mechanical
- how to open SendCommand in Ansys
- problems facing during solution
- Still facing the same issue
- Failed to move file from solver directory to scratch directory: file.rst
- Adaptive Sizing
- Stiffness factor
- Import DAT file
- Import pressure data (coordinates and value) to ansys workbench through excel
-
8808
-
4658
-
3153
-
1680
-
1470
© 2023 Copyright ANSYS, Inc. All rights reserved.