- **OpenFOAM Running, Solving & CFD**
(*https://www.cfd-online.com/Forums/openfoam-solving/*)

- - **Definition of convergence criterion in simpleFoam**
(*https://www.cfd-online.com/Forums/openfoam-solving/72448-definition-convergence-criterion-simplefoam.html*)

Definition of convergence criterion in simpleFoamHi 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 |

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 22:00. |