Creating a batch file (.bat) to run an Abaqus analysis
It not just about being geeky that we use command line (CMD in Windows) to run our Abaqus jobs. It is actually a matter of convenience. Being able to run our Abaqus simulations from a command line means that the process can actually be automated by using batch scripts.
I find them extremely useful to save some time. It can be particularly useful when using subroutines (e.g. VUMAT or UMATs) where command lines can be long, or when analysing the sensitivity of a model to certain material parameters.
Here I give an example of a batch file using simple commands to run the Abaqus analysis.
- You need your input file (.inp) and optionally your user material (.for) file in the same folder (working directory).
- Copy my code in a text file, edit it according to the name of yor input file and working directory. Save it as file_name.bat.
- Double click file_name.bat. This will open the CMD and run the analysis.
- Your Abaqus Output Databse will appear in your working directory with the name job_name.odb.
Note that :: is used to make comments.