CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Running "check point" writing (https://www.cfd-online.com/Forums/openfoam-solving/140185-running-check-point-writing.html)

santiagomarquezd August 9, 2014 23:04

Running "check point" writing
 
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.

jherb August 13, 2014 04:52

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.

santiagomarquezd August 14, 2014 18:18

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.

wyldckat August 14, 2014 19:03

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


All times are GMT -4. The time now is 08:24.