CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Definition of convergence criterion in simpleFoam (

titio February 5, 2010 13:25

Definition of convergence criterion in simpleFoam
Hi foamers,

In the solver simpleFoam there is the possibility of define a convergence Criterion, to stop the simulations after reaching it. I am having difficulties in understand in which file that value, as no tutorial case for simpleFoam uses that capacity.

Does anyone know how to define the parameter convergenceCriterion in simpleFoam.


António Martins

su_junwei February 6, 2010 02:34

The variable of convergenceCriterion was defined in initConvergenceCheck.H in simpleFoam solver. The default is zero,and thus the solver will not stop. You can just add a new entry in simple dictionary of fvSolution like following
nNonOrthogonalCorrectors 0;
pRefCell 0;
pRefValue 0;
convergence 1e-6;
If the initial residual for all the equations are lower than 1e-6, the simulation stops.

regards, Junwei

All times are GMT -4. The time now is 05:09.