CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   change/increase maxCo (http://www.cfd-online.com/Forums/openfoam-solving/97843-change-increase-maxco.html)

openfoam_user February 27, 2012 07:13

change/increase maxCo
 
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.

alberto February 28, 2012 05:09

You can change it directly by editing the controlDict. A default installation of OpenFOAM should detect the change at the next time-step.

openfoam_user February 28, 2012 13:54

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.

alberto February 28, 2012 13:59

Quote:

Originally Posted by openfoam_user (Post 346727)
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.

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).


All times are GMT -4. The time now is 14:36.