Stokes

StokesGuides

Residual targets and convergence in Stokes

Stokes runs steady OpenFOAM 14 cases until they converge or reach an iteration limit, and it labels the result honestly. This page explains the two settings involved and how to read the residuals.

Residual history of a run in Stokes

The two settings

Converged or not converged

When a run ends, the Run card and the status bar say which happened:

Examples from the mixing elbow in the screenshots: one run converged in 161 iterations at the default 1e-3 target; another, with a tighter 1e-4 target, stopped at 1,500 iterations as not converged, with residuals oscillating just above the target.

Reading the residual chart

The Run card shows a small chart while the solver runs; the Residuals tab in the bottom drawer shows the full history with one line per field and the target drawn as a dashed line. Look for:

Tips


OPENFOAM® is a registered trade mark of OpenCFD Limited. Stokes is not approved or endorsed by OpenCFD Limited or the OpenFOAM Foundation.

Get in touch.

Questions about Stokes, a commercial licence, or help with CFD and OpenFOAM on your own project.