CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   converge condition for simpleFoam (

EmadTandis December 17, 2011 01:41

converge condition for simpleFoam
Hello everyone
I want to stop simpleFoam solver when solution is converged. As we know this solver is steady state solver. How can I determine converge condition?

alberto December 17, 2011 03:24

You can set the convergence criteria per each variables in fvSolution, inside the residualControl sub-dictionary:


    nNonOrthogonalCorrectors 2;
    pRefCell        0;
    pRefValue      0;

        p              1e-5;
        U              1e-5;
        nuTilda      1e-5;


EmadTandis December 17, 2011 08:15

Thanks for your attention. The test case is cavity at Re=10 on 70*70 mesh. I want solution process stops when for example residuals less than 1e-3. But it does not stop. when I set end time =20000 the solution will continue to 20000s and will not stop. Why?

alberto December 17, 2011 08:48

What version of OpenFOAM are you using? It should work in 2.0 and newer.

EmadTandis December 17, 2011 08:54

It is version 1.7.1. Do you mean I should update it?

alberto December 17, 2011 08:57

The syntax was different in 1.7.x. You can use


convergenceCriterion 1.0e-3;
in fvSolution/SIMPLE subdictionary. The new syntax works only in OpenFOAM 2.0.x.

EmadTandis December 17, 2011 09:16

I used this:
nNonOrthogonalCorrectors 2;
pRefCell 0;
pRefValue 0;
convergenceCriterion 1.0e-1;
But it makes no difference!

alberto December 17, 2011 11:05

I cannot reproduce your problem. It should work.

EmadTandis December 17, 2011 12:23

Thanks very much for your time.

All times are GMT -4. The time now is 22:59.