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/)
-   -   Definition of convergence criterion in simpleFoam (http://www.cfd-online.com/Forums/openfoam-solving/72448-definition-convergence-criterion-simplefoam.html)

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.

Regards,

António Martins

su_junwei February 6, 2010 02:34

Hi
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
SIMPLE
{
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 12:43.