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
SubscriberÂ
I 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.
-
July 4, 2023 at 9:47 pm
Giacomo Gelmetti
SubscriberSorry Claudio, I miss your answer... thank you!
I had already tried with /NERR but actually nothing change.
I do not understand how to use the /INPUT command in that case: could you please be so kind to write down two lines of the code you are suggesting?
Thank you a lot.
-
-
- The topic ‘SKIP ERROR ANSYS APDL’ is closed to new replies.
-
2622
-
938
-
813
-
599
-
591
© 2025 Copyright ANSYS, Inc. All rights reserved.