|
[Sponsors] |
February 27, 2012, 07:13 |
change/increase maxCo
|
#1 |
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18 |
Hi all,
how can I change the maxCo (controlDict) during a calculation. I want to start my computation with a low maxCo value. And after some iterations change it and increase it a little bit and so on. Is there an easy way to do this? Regards, Stephane. |
|
February 28, 2012, 05:09 |
|
#2 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
You can change it directly by editing the controlDict. A default installation of OpenFOAM should detect the change at the next time-step.
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
February 28, 2012, 13:54 |
|
#3 |
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18 |
Hi Alberto,
I know that I can modify the controlDict file during the computation. But I would prefer to have something like a script in order to leave my case running in batch mode ? Don't know if there is a nice way to do it. Regards, Stéphane. |
|
February 28, 2012, 13:59 |
|
#4 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
You could write a script to replace the line containing maxCo with the line containing the new maxCo, as long as a complete controlDict is always present on the disk during the operation (if not, the trun would fail).
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems with adjustable timestep control and maxCo Number | wolle1982 | OpenFOAM Running, Solving & CFD | 5 | September 24, 2015 11:07 |
maxCo or whatever.. | eternityboy | OpenFOAM | 5 | July 7, 2014 10:59 |
bubbleFoam - behavior on finer mesh | darai | OpenFOAM Running, Solving & CFD | 8 | November 22, 2011 06:15 |
MaxCo with interFoam | sega | OpenFOAM Running, Solving & CFD | 2 | January 6, 2009 05:05 |