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

Running "check point" writing

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

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools 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: 420
Rep Power: 15
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.
Post-doctoral Fellow
Research Center for Computational Mechanics (CIMEC) - CONICET/FICH-UNL
T.E.: 54-342-4511594 Ext. 1005
Güemes 3450 - (3000) Santa Fe
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: 323
Rep Power: 10
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: 420
Rep Power: 15
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.
Post-doctoral Fellow
Research Center for Computational Mechanics (CIMEC) - CONICET/FICH-UNL
T.E.: 54-342-4511594 Ext. 1005
Güemes 3450 - (3000) Santa Fe
Santa Fe - Argentina
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   August 14, 2014, 19:03
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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.
__________________
___
I'll be at OFW11 in Portugal
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
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 CD-adapco 0 August 30, 2004 15:43
star is not running the simulation in windows Arnab CD-adapco 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 11:56.