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

Can OpenFOAM auto-delete out of date time steps?

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By simon-2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2015, 10:10
Default Can OpenFOAM auto-delete out of date time steps?
  #1
Member
 
Nicole Andrew
Join Date: Sep 2014
Location: Pretoria, South Africa
Posts: 58
Rep Power: 12
Nicole is on a distinguished road
Hi foamers,

I am running some OpenFOAM cases on a cluster for the first time and they keep stopping. The log files just end mid-time step so I am trying to guess at the problem...

I think the cluster may be running out of memory. Is there a way to tell an OpenFOAM case to just save the latest time step, or overwrite the previous time step as it writes the new ones? I only need the latest time step, but I do not want to wait to save a step until it has converged, in case it crashes again. I am trying to run 10 different cases simultaneously that take 4-5 days each to converge properly.

I hope someone can help!!
Nicole is offline   Reply With Quote

Old   December 10, 2015, 10:59
Default
  #2
New Member
 
Join Date: Sep 2013
Posts: 10
Rep Power: 13
simon-2 is on a distinguished road
in controlDict, there is an entry called purgeWrite. Set this to 5 for example, and only the latest 5 time steps are being kept. If this is set to zero, the function is turned off and all steps are kept.

Last edited by simon-2; December 10, 2015 at 11:00. Reason: typo
simon-2 is offline   Reply With Quote

Old   December 10, 2015, 11:06
Default
  #3
Member
 
Nicole Andrew
Join Date: Sep 2014
Location: Pretoria, South Africa
Posts: 58
Rep Power: 12
Nicole is on a distinguished road
You just totally saved my day!! Thanks so much
Nicole is offline   Reply With Quote

Old   November 28, 2018, 21:46
Default
  #4
aow
Member
 
Andrew O. Winter
Join Date: Aug 2015
Location: Seattle, WA, USA
Posts: 78
Rep Power: 11
aow is on a distinguished road
Same here! You've saved me a huge amount of time and worrying about filling up my research group's storage drives.
aow is offline   Reply With Quote

Reply

Tags
cluster, controldict, memory, time step, write control


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
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 03:50
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 10:34
Problems about compiling OF1.5.x on Bluegene/P ywang OpenFOAM 1 August 25, 2011 06:22
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


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