dfgsdfgfd
Mechanical
- Sep 30, 2015
- 37
Hi,
I'm trying to run my abaqus (python) code multiple times in a loop. I call it through the cmd window abaqus cae noGui=progname.py, which works fine. it executes my program that's in a for-loop for n in variable1: "PROGRAM CODE". At the beginning of my program I load the modules etc. and in the end I close the model and database with odb.close(), Mdb(). Generally, this works well. However, when one iteration/run fails (error message, e.g. due to convergence issues), the whole process stops and the console window closes. What I want is that the code then simply jumps to the next iteration of the for-loop.
Does anybody have a suggestion for this problem?
Thanks very much!
//Edit: When I run the code directly through the ABAQUS/CAE software, through "File/Run Script" it works well and jumps to the next iteration, but I want to run it through the cmd console.
I'm trying to run my abaqus (python) code multiple times in a loop. I call it through the cmd window abaqus cae noGui=progname.py, which works fine. it executes my program that's in a for-loop for n in variable1: "PROGRAM CODE". At the beginning of my program I load the modules etc. and in the end I close the model and database with odb.close(), Mdb(). Generally, this works well. However, when one iteration/run fails (error message, e.g. due to convergence issues), the whole process stops and the console window closes. What I want is that the code then simply jumps to the next iteration of the for-loop.
Does anybody have a suggestion for this problem?
Thanks very much!
//Edit: When I run the code directly through the ABAQUS/CAE software, through "File/Run Script" it works well and jumps to the next iteration, but I want to run it through the cmd console.