How to run Abaqus Macro (.py) script

Olu adroit picture Olu adroit · Feb 6, 2015 · Viewed 22.2k times · Source

I am new to python. I generated a macro which is a .py script using Abaqus Macro manager. I realised that this script works only when run from the Abaqus manager and does not run by itself. Please does anyone know how to modify this script so i can run it without using the Abaqus. Thank you in advance for your help

Adroit

Answer

agentp picture agentp · Feb 6, 2015

to run a python script that relies on abaqus cae from the command line and without opening up the gui window you do:

 abaqus cae noGUI=script.py

As mentioned if all the script does is define a macro, well that's all it does is define the macro and quit. Typically you need to add code to open an odb, do something, write output, etc.