Search
Close this search box.
Notifications
Clear all

[Solved] Python script for emailing ABAQUS status

2 Posts
2 Users
0 Reactions
846 Views
Posts: 3998
Topic starter
(@jorgen)
Member
Joined: 5 years ago

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 [FONT=Courier New]abaqus[/FONT] with [FONT=Courier New]abaqus_run_then_email.py[/FONT].

As an example, type the following at the command prompt:

[FONT=Courier New]abaqus_run_then_email.py double job=file.inp[/FONT]

The [FONT=Courier New]abaqus_run_then_email.py[/FONT] file needs to be updated (as described in the file) with your email server information.

- Jorgen

1 Reply
Posts: 1
(@BMC@012345)
New Member
Joined: 8 years ago

Big thanks for sharing Jorgen,

this comes in realy handy to me as i just got access to upgraded hardware that i will operate remotely. 🙂

Besides it helps me to further upgrade my Python skill which really need some enhancement.

Best Regards

Martin

1 Reply
Share: