We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

SKIP ERROR ANSYS APDL

    • Giacomo Gelmetti
      Subscriber

      Hello 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

    • Aliaksei.Trukhnou
      Subscriber

      If it MAPDL, try to launch macros in Batch mode

    • Giacomo Gelmetti
      Subscriber

      Thank 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

      • Aliaksei.Trukhnou
        Subscriber

        It means that your model is not fixed. Try to find node number 6778 and see why it flies away in the x-direction.

        • Giacomo Gelmetti
          Subscriber

          I 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.

           

    • 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.

      • Giacomo Gelmetti
        Subscriber

        Sorry 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.

Viewing 3 reply threads
  • The topic ‘SKIP ERROR ANSYS APDL’ is closed to new replies.