No stop script code - Even with no convergence results
No stop script code - Even with no convergence results
(OP)
Hi guys,
I wrote a Python script code to proceed a parametric plastic analysis in Abaqus.
Inside the loop, I added these below lines:
mdb.jobs[job_name].submit(consistencyChecking=OFF)
mdb.jobs[job_name].waitForCompletion()
Unfortunately, some models do not converge and the whole script (that includes other models) stops.
I would like to know how can I run the code without stopping when a analysis get wrong. Instead of stopping, just go to the next model and run it.
I can do it by calling my script code by using "abaqus cae script=code.py" but I would like to do it by calling to run without opening abaqus (i.e. abaqus cae nogui=code.py).
Does anyone has the code lines that I need to add it?
Thanks
I wrote a Python script code to proceed a parametric plastic analysis in Abaqus.
Inside the loop, I added these below lines:
mdb.jobs[job_name].submit(consistencyChecking=OFF)
mdb.jobs[job_name].waitForCompletion()
Unfortunately, some models do not converge and the whole script (that includes other models) stops.
I would like to know how can I run the code without stopping when a analysis get wrong. Instead of stopping, just go to the next model and run it.
I can do it by calling my script code by using "abaqus cae script=code.py" but I would like to do it by calling to run without opening abaqus (i.e. abaqus cae nogui=code.py).
Does anyone has the code lines that I need to add it?
Thanks





RE: No stop script code - Even with no convergence results
https://docs.python.org/2/tutorial/errors.html
RE: No stop script code - Even with no convergence results
But it seems that (in my case) there is no clear "Python Error" but an Abaqus Error.
In CMD, the following message appears:
"Abaqus Error: Abaqus/Standard Analysis exited with an error - Please see the message file for possible error messages if the file exists.
Abaqus/Analysis exited with errors
Abaqus/Analysis exited with error."
This error was caused by a Riks analysis that didn't converge.
There is no clear type of exception associate with this case.
To avoid using a stop criteria, I would like to know a way to have a no stop script code. In other words, a code that can run continually after a Riks analysis return an error.
Best regards
RE: No stop script code - Even with no convergence results
RE: No stop script code - Even with no convergence results