PDA

View Full Version : Python script for emailing ABAQUS status


Jorgen
2007-12-29, 14:33
Sometimes I am running large simulations that take hours or even days to complete. In some of these cases I would like to be notified as soon as a the simulation finishes.

To make this possible I wrote a simple python script file that first starts ABAQUS, and then when the simulation finishes sends an email with the sta-file attached.

The script file can be used the same way as ABAQUS is used at the command prompt - simply replace abaqus with abaqus_run_then_email.py.

As an example, type the following at the command prompt:
abaqus_run_then_email.py double job=file.inp

The abaqus_run_then_email.py file needs to be updated (as described in the file) with your email server information.

- Jorgen