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/)
-   -   adjusting the maxCo during solution (https://www.cfd-online.com/Forums/openfoam-solving/202843-adjusting-maxco-during-solution.html)

maksjood June 9, 2018 07:26

adjusting the maxCo during solution
 
Hi. I want for the maxCo to change within the solve due to some criterion. How that can be done?

I already tried just simply assigning a value to it with a line

maxCo=something;

within the .C file; but it didn't work.

piu58 June 9, 2018 12:21

You have to set it in system/controlDict

The line
Code:

writeControl    adjustableRunTime;
allows changes during runtime, and you may set the value in the line
Code:

maxCo          0.3;
to something different while the simulation is running.

It is often useful to start with a low value vor maxCo and inreasing it, when the simulated flow gets stable.

maksjood June 10, 2018 05:30

Thanks; but I need it to change programmatically (not by me). As you mentioned, I want it to increase and decrease duo to some criteria.


All times are GMT -4. The time now is 13:02.