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/)
-   -   convergence check implemented in OF-1.6.x (http://www.cfd-online.com/Forums/openfoam-solving/76623-convergence-check-implemented-1-6-x.html)

vaina74 May 31, 2010 09:04

convergence check implemented in OF-1.6.x
 
I use simpleFoam for hydrodynamic cases (external flow). I read here that convergence check has been implemented. Please, can anyone explain how to use it? I'd like to stop the solving process when convergence criterion is satisfied. What are the appropriate criteria for my case? I can't find any suggestion in the forum.

CedricVH May 31, 2010 09:59

Just set a value for convergenceCriterion in the subdictionary SIMPLE of your fvSolution file, for example 1e-3 or 1e-5.

vaina74 May 31, 2010 10:37

Sorry, it's not enough for me. I don't know or understand the syntax of the code lines (and where have i put them?) to check convergence. I need just an example, is something like
Code:

SIMPLE
{
    nNonOrthogonalCorrectors 0;
    convergenceCriterion 1e-5
}

in fvSolution?

CedricVH May 31, 2010 10:41

Indeed, you are correct. Just put a semicolon behind the value:

Code:

SIMPLE
{
    nNonOrthogonalCorrectors 0;
    convergenceCriterion 1e-5;
}


vaina74 May 31, 2010 10:45

You're right, I was absent-minded. Thank you, I'm going to test that.

vaina74 June 3, 2010 08:35

I included in fvSolution
Code:

SIMPLE
{
    nNonOrthogonalCorrectors 0;
    convergenceCriterion 1e-5;
}

but I think simpleFoam made 1000 iterations with no convergences check:
Code:

smoothSolver:  Solving for Ux, Initial residual = 1.39053e-08, Final residual = 6.56736e-09, No Iterations 1
smoothSolver:  Solving for Uy, Initial residual = 1.21505e-08, Final residual = 5.93553e-09, No Iterations 1
smoothSolver:  Solving for Uz, Initial residual = 2.05638e-08, Final residual = 9.82093e-09, No Iterations 1
GAMG:  Solving for p, Initial residual = 9.89818e-08, Final residual = 9.89818e-08, No Iterations 0
time step continuity errors : sum local = 5.09515e-08, global = -3.38207e-11, cumulative = 0.00191433
smoothSolver:  Solving for omega, Initial residual = 9.20253e-09, Final residual = 9.20253e-09, No Iterations 0
smoothSolver:  Solving for k, Initial residual = 9.94271e-09, Final residual = 9.94271e-09, No Iterations 0
ExecutionTime = 19135.6 s  ClockTime = 19607 s

What's the problem?


All times are GMT -4. The time now is 03:56.