|
[Sponsors] | |||||
I want OpenFOAM to email me when it's done, is this too much to ask?!? |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
|
#1 |
|
Member
Jose Rey
Join Date: Oct 2012
Posts: 84
Rep Power: 6 ![]() |
Hi,
Is it possible to have the computer where your model is running send you an email (text message, or whatever) when either the model finished running, or when it breaks due to an error? I have a desktop computer running my OpenFoam models, and it sometimes takes minutes (when the model breaks) or hours (when the model successfully runs). Thanks P.D. I realize this might be more of a Linux than an OpenFoam question, but I bet it is very relevant to modeling. |
|
|
|
|
|
|
|
|
#2 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Jose,
Well, it all depends on how you ran the case in the first place... if you used an Allrun script, identical to OpenFOAM's tutorials, then you can try adding this to the end of the script: Code:
echo "Sending separate email with the simulation status..."
(
echo "Case in question:"
head -n 20 log.$application
echo
echo
echo
echo
echo "Last 100 lines of the output for the solver $application:"
echo
tail -n 100 log.$application
) | mail -s "Summary Report from the case $PWD" yourname@email.address
The "$application" variable is sometimes defined in Allrun scripts... for example in "tutorials/incompressible/pimpleFoam/TJunctionFan/Allrun": https://github.com/OpenFOAM/OpenFOAM...tionFan/Allrun Best regards, Bruno
__________________
|
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Lieven
Join Date: Dec 2011
Location: Mol, Belgium
Posts: 155
Rep Power: 4 ![]() |
Just as an addition.
If the system you run the jobs on is working with a resource management system like PBS/Torque, you can add something like Code:
#PBS -m ae -M albert.einstein@princeton.edu Cheers, L |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 139
Rep Power: 5 ![]() |
hello,
You may also take a look at the function Object "systemCall", which should also work. regards, olivier |
|
|
|
|
|
|
|
|
#5 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Greetings to all!
@Olivier: Nice one! But the downside of the "systemCall" is that it will only work if all goes well... By the way, for anyone who is intrigued by the "systemCall" function object: http://openfoamwiki.net/index.php/Ti...ect_systemCall Best regards, Bruno
__________________
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gmsh 2.6.0 conversion to OpenFoam 160 | rosswin | Open Source Meshers: Gmsh, Netgen, CGNS, ... | 0 | March 5, 2013 07:34 |
| OpenFOAM 1.6.x, 1.7.0 and 1.7.x are not fully prepared to work with gcc-4.5.x | wyldckat | OpenFOAM Bugs | 18 | October 21, 2010 05:51 |
| OpenFOAM Message Board Email notification stopped working | mbeaudoin | OpenFOAM Bugs | 3 | January 8, 2009 22:08 |
| Summer School on Numerical Modelling and OpenFOAM | hjasak | OpenFOAM | 5 | October 12, 2008 13:14 |
| OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 13:50 |