-
-
January 22, 2022 at 8:25 pm
Baloch
SubscriberI am doing a transient analysis for which I need to trace displacement response of the structure and change certain properties of the spring connections I am using withing the simulation. Meaning that if at a certain time if the displacement reach a certain value the stiffness and the damping of the spring should change to a different value. For this I have developed a Python script. When I run the script, there is no issue and the script executes successful. After executing the script when I run the simulation it seems the script is not interacting with the simulation and I am getting the same results which I have with out the script. The snap of the script is attached can anyone help me out this .
January 24, 2022 at 7:11 amErik Kostson
Ansys EmployeeHi
This will not work .
Python act objects are not monitored during solution and each step and iteration (if nonlinear).
You would need to use a restart option in an apdl command snippet (see below), or something similar to do what you need.
All the best
Erik
January 29, 2022 at 11:40 pmBaloch
SubscriberThanks Erik The post was really explaining what I am looking for but I have couple of question if you can give an idea. 1) since by python its easier to get a certain object and formulate arguments.. By APDL can we put if like loop for multiple conditions and how to access a certain value? for example deformation?
2) what is explain in the post I can insert a APDL command for all steps which means that after ever load step the APDL command will run in the solution. So if use such a command to only run my python script after each point but issue is can we execute a python script using APDL command?
And also there is no way to program the script which can run also during the solution?
Viewing 2 reply threads- You must be logged in to reply to this topic.
Ansys Innovation SpaceBoost 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.
Trending discussions- Saving & sharing of Working project files in .wbpz format
- Solver Pivot Warning in Beam Element Model
- Understanding Force Convergence Solution Output
- An Unknown error occurred during solution. Check the Solver Output…..
- What is the difference between bonded contact region and fixed joint
- whether have the difference between using contact and target bodies
- User manual
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- Colors and Mesh Display
- material damping and modal analysis
Top Contributors-
3930
-
2649
-
1863
-
1272
-
610
Top Rated Tags© 2023 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-