CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

I want OpenFOAM to email me when it's done, is this too much to ask?!?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 1 Post By wyldckat
  • 2 Post By Lieven

Reply
 
LinkBack Thread Tools Display Modes
Old   Yesterday, 04:30
Talking I want OpenFOAM to email me when it's done, is this too much to ask?!?
  #1
Member
 
JR22's Avatar
 
Jose Rey
Join Date: Oct 2012
Posts: 84
Rep Power: 6
JR22 will become famous soon enough
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.
JR22 is offline   Reply With Quote

Old   Yesterday, 06:45
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45
wyldckat has a spectacular aura aboutwyldckat has a spectacular aura about
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 mail application can be one of several. In my case, I use the package "bsd-mailx" on Ubuntu.

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
JR22 likes this.
wyldckat is offline   Reply With Quote

Old   Yesterday, 12:03
Default
  #3
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Mol, Belgium
Posts: 155
Rep Power: 4
Lieven is on a distinguished road
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
to the run script...

Cheers,

L
wyldckat and JR22 like this.
Lieven is offline   Reply With Quote

Old   Today, 09:26
Default
  #4
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 139
Rep Power: 5
olivierG is on a distinguished road
hello,

You may also take a look at the function Object "systemCall", which should also work.

regards,
olivier
olivierG is offline   Reply With Quote

Old   Today, 17:30
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45
wyldckat has a spectacular aura aboutwyldckat has a spectacular aura about
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
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 20:33.