TAGGED: apdl, error, iterations, macro, optimization
-
-
April 23, 2023 at 10:20 pm
Giacomo Gelmetti
SubscriberHello everyone!
For my master thesis I have to run several iterations of an optimization macro in ANSYS APDL.
Sometimes the code could not mesh correctly the geometry and it stops, so I must click on PROCEED in order to skip the error.
Are there any ways to skip automatically errors? What could I add at the code?
I hope that the question is clear!
Thanks a lot for the cooperation,
Giacomo
-
April 24, 2023 at 9:42 am
Aliaksei Trukhnou
SubscriberIf it MAPDL, try to launch macros in Batch mode
-
April 24, 2023 at 10:07 pm
Giacomo Gelmetti
SubscriberThank you for the reply!
Actually I tried Batch mode, it stops in any case... in the .out file it shows that the following error occured:
There is at least 1 small equation solver pivot term (e.g., at the UX
degree of freedom of node 6778). Please check for an insufficiently
constrained model.Is it possible to force ansys to skip this error and proceed?
Tks,
Giacomo
-
April 25, 2023 at 3:59 am
Aliaksei Trukhnou
SubscriberIt means that your model is not fixed. Try to find node number 6778 and see why it flies away in the x-direction.
-
April 25, 2023 at 4:26 pm
Giacomo Gelmetti
SubscriberI know which is the reason of the error, but actually since it is an optimization procedure with several iterations is not possible to modify the single nodes.
I just need a code to skip the error and force the program to go on because actually if just 1 iter does not work is not a problem.
-
-
-
April 28, 2023 at 8:02 am
Claudio Pedrazzi
SubscriberI have never tried, but have a look at the help of /NERR command.
It seems to have an option to avoid aborting on error.
Another (not tested) idea could be to separate the execution on two different input files: the main one, making the loop, just calls (with /INPUT,,....) the subordinate input file where the solution takes place. If this file fails, it will simply exit without providing results, but the main file (maybe :-) ) will not stop.
-
- 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.
- Solver Pivot Warning in Beam Element Model
- Saving & sharing of Working project files in .wbpz format
- 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
- User manual
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- whether have the difference between using contact and target bodies
- material damping and modal analysis
- Colors and Mesh Display
-
5268
-
3299
-
2469
-
1308
-
998
© 2023 Copyright ANSYS, Inc. All rights reserved.