CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Control the running of program

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2005, 19:36
Default I want to stop the program aft
  #1
liu
Senior Member
 
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 17
liu is on a distinguished road
I want to stop the program after its running for a period of time, say 10 hours. Is there a method to let it stop "normally".
This question rises because the supercomputers in our university has a system which run jobs according to the time and processors demand. Some time my job is killed before it is finished because my time slot is used up and the worst thing is the results are not saved. What I want to do is to save the results and quit the program just before killing happends.
__________________
Xiaofeng Liu, Ph.D., P.E.,
Assistant Professor
Department of Civil and Environmental Engineering
Penn State University
223B Sackett Building
University Park, PA 16802


Web: http://water.engr.psu.edu/liu/
liu is offline   Reply With Quote

Old   July 27, 2005, 05:19
Default 1) dump frequently enough. You
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
1) dump frequently enough. You can specify to dump every so often. Check out the options on writeControl in the controlDict.

2) the new purgeWrite allows you to keep only say the last few dumps. So now you can dump very frequently and not fill up your disk.

3) if you are interested in stopping at exactly 10 hours you could try to use the foamEndJob script and schedule it to be started at exactly 10 hours. It will modify the controlDict to do a 'writeNow' end. I haven't looked at this script for a while so it might be out of date.

I think option 2 should be most effective.
mattijs is offline   Reply With Quote

Old   July 27, 2005, 06:01
Default You will of course need to est
  #3
Senior Member
 
Gavin Tabor
Join Date: Mar 2009
Posts: 181
Rep Power: 17
grtabor is on a distinguished road
You will of course need to estimate how long a time it will take to actually write the data to disk; otherwise you could find that the code is being killed halfway through the write operation.

Gavin
grtabor is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timestep control via CEL? Claudia CFX 7 September 14, 2007 05:00
Solver Control Anantha CFX 1 September 4, 2007 13:30
Running in patch when your license is running out Andrew CFX 2 August 9, 2007 13:48
Diffusion control Julie Siemens 4 February 19, 2002 07:54
control plotting in fortran program zhe zhang Main CFD Forum 2 November 16, 1999 13:10


All times are GMT -4. The time now is 17:11.