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

Running "check point" writing

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2014, 23:04
Default Running "check point" writing
  #1
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23
santiagomarquezd will become famous soon enough
Hi all, is there any way to force FOAM to do a check point writing during a running?.

Sometimes I'm running big cases and want to know how the results are going. It would be nice to tell FOAM to do a writeNow but without stopping

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   August 13, 2014, 04:52
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Perhaps this is what you are looking for: In system/controlDict change the writeControl to timeStep and the writeInterval to 1. If runTimeModifiable is set to true this will write the results of the next time step/iteration to the disk. Then change the settings back to what they were before.
jherb is offline   Reply With Quote

Old   August 14, 2014, 18:18
Default
  #3
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23
santiagomarquezd will become famous soon enough
Yes, sometimes I do that, but it resets the counter for writing and you lose the original writing interval, i.e. if you were writing each 10 secs. and you ask to dump data at t=11, then when you go back to write every 10 secs. you will have dirs 21, 22, and so on.

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   August 14, 2014, 19:03
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

There are a few possible solutions:
  1. There is a second writing interval as of OpenFOAM 2.2.0: http://www.openfoam.org/version2.2.0...me-control.php - see section "More Secondary Write Controls".
  2. There is a function object named "partialWrite", which allows you to save only certain fields every once in a while. It's a "Input/output function object": http://foam.sourceforge.net/docs/cpp/a00002.html
  3. You could create a hybrid function object based on "partialWrite" and "abortCalculation" to write the chosen fields or all fields, when you create a dummy file. The function object "abortCalculation" is in the category "Job control function objects".
    • Probably there is a function object in swak4Foam that already does this , but I don't know which one it is .
Best regards,
Bruno
luiscardona likes this.
__________________
wyldckat is offline   Reply With Quote

Reply


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
An error has occurred when Writing backup file tian CFX 0 June 28, 2007 21:29
journal file command for writing mass flow rate James FLUENT 0 July 26, 2006 10:51
Tutorial is not running on star-CD version 3.2 Arnab Siemens 0 August 30, 2004 15:43
star is not running the simulation in windows Arnab Siemens 1 August 2, 2004 02:40
FLUENT 5.2.3 running on PIII 733 Burley Wang FLUENT 7 April 19, 2000 06:03


All times are GMT -4. The time now is 04:41.