Discussion:
close abaqus using python script or command line
garyofcourse
2007-06-01 19:14:29 UTC
Permalink
Hi guys, do you know of any command or built-in function I can put at
the end of a python script that will tell abaqus to close itself?

In my analysis I run multiple simulations and each is started from the
command line using a command such as "abaqus cae script='xyz.py'" or
some other such command... Each time a new instance of abaqus is opened
up and the script file is executed in this instance. I need to close
these instances as each one completes running. So I need a command or
function that I can put at the end of the python script file that will
close abaqus. Alternatively if you know of any command that can be
typed at the command line to close abaqus, let me know as I might be
able to work with that.

I would appreciate any help
Thanks
Gary
BenZ
2007-06-03 12:01:14 UTC
Permalink
Use the NOGUI option to run scripts without opening /CAE.

BenZ.
Post by garyofcourse
Hi guys, do you know of any command or built-in function I can put at
the end of a python script that will tell abaqus to close itself?
In my analysis I run multiple simulations and each is started from the
command line using a command such as "abaqus cae script='xyz.py'" or
some other such command... Each time a new instance of abaqus is opened
up and the script file is executed in this instance. I need to
close
Post by garyofcourse
these instances as each one completes running. So I need a command or
function that I can put at the end of the python script file that will
close abaqus. Alternatively if you know of any command that can be
typed at the command line to close abaqus, let me know as I might be
able to work with that.
I would appreciate any help
Thanks
Gary
Fernando
2007-06-04 11:02:33 UTC
Permalink
Post by garyofcourse
Hi guys, do you know of any command or built-in function I can put at
the end of a python script that will tell abaqus to close itself?
In my analysis I run multiple simulations and each is started from the
command line using a command such as "abaqus cae script='xyz.py'" or
some other such command... Each time a new instance of abaqus is
opened up and the script file is executed in this instance. I need to
close these instances as each one completes running. So I need a
command or function that I can put at the end of the python script
file that will close abaqus. Alternatively if you know of any command
that can be typed at the command line to close abaqus, let me know as
I might be able to work with that.
I would do the following: start an interactive session with CAE, do
some dummy work and close it. Then open the *.rpt file that CAE
created, echoing all commands you issued. The last one should be the
quit command.

Alternatively, check the documentation: ABAQUS comes with outstanding
documentation and a python scripting reference that details all
commands you can use. But probably exit(0) at the end will do the trick

Hope this helps,
Fernando

Loading...