Download Abaqus Scripting User's Manual
Transcript
HOW DOES THE Abaqus SCRIPTING INTERFACE INTERACT WITH Abaqus/CAE?
abaqus viewer noGUI=myscript.py
The Abaqus/CAE kernel is started without the GUI. Running a script without the
Abaqus/CAE GUI is useful for automating pre- or postanalysis processing tasks without the
added expense of running a display. When the script finishes running, the Abaqus/CAE kernel
terminates. If you execute a script without the GUI, the script cannot interact with the user,
monitor jobs, or generate animations. When running a script without the user interface, jobs
are always run interactively. If a job queue is specified, it will be ignored.
Running a script from the startup screen
When you start an Abaqus/CAE session, Abaqus displays the startup screen. You can run a
script from the startup screen by clicking Run Script. Abaqus displays the Run Script dialog
box, and you select the file containing the script.
Running a script from the File menu
You can run a script by selecting File→Run Script from the main menu bar. Abaqus displays
the Run Script dialog box, and you select the file containing the script.
Running a script from the command line interface
You can run a script from the command line interface (CLI) by typing the following command:
execfile('myscript.py')
where myscript.py is the name of the file containing the script and the file in this example
is in the current directory. Figure 2–2 shows an example script being run from the command
line interface.
Figure 2–2
Scripts can be run from the command line interface.
Click
in the lower left corner of the main window to switch from the message area to the
command line interface.
2–4
Abaqus ID:
Printed on: