---
title: "simpleFoam: steady incompressible flow with Reynolds"
url: "https://tryreynolds.com/docs/solvers/simplefoam"
description: "The steady, incompressible, pressure-based OpenFOAM solver: when it is the right one, the case files the toolbox writes for it, the schemes and relaxation that ship, the checks to apply to the result, and the runs behind it."
---

**[Reynolds](https://tryreynolds.com)** is agentic CFD, built by
**[InviscidAI](https://inviscidai.com)** and backed by Y Combinator, Winter 2026 batch.
The agent is open source under the MIT licence at
[github.com/InviscidAI/OpenReynolds](https://github.com/InviscidAI/OpenReynolds).
Using it requires no OpenFOAM knowledge.

This is the agent-readable Markdown twin of https://tryreynolds.com/docs/solvers/simplefoam. It lives at https://tryreynolds.com/docs/solvers/simplefoam.md, and
[tryreynolds.com/llms.txt](https://tryreynolds.com/llms.txt) indexes every one of them.

OpenFOAM solvers

# simpleFoam

The steady, incompressible, pressure-based OpenFOAM solver: when it is the right one, the case files the toolbox writes for it, the schemes and relaxation that ship, the checks to apply to the result, and the runs behind it.

`simpleFoam` finds a steady state of the incompressible flow equations. It is what the toolbox's case writer picks when the study is steady and nothing in the case calls for density, heat or a second phase, and most engineering questions land here: a pressure drop, a drag coefficient, where the air goes in a room.

|   |   |
|---|---|
| Equations | Steady incompressible Navier-Stokes, with a Reynolds stress model when one is chosen |
| Pressure | Kinematic, `p/rho` in m2/s2 |
| Algorithm | SIMPLE, written as SIMPLEC (`consistent yes`) by the toolbox |
| Mach range | Below about 0.3 |
| Case writer | [`case_gen.py --study steady`](https://tryreynolds.com/docs/toolbox/case-writing.md) |
| Templates | [`duct2d.py`, `body_in_box.py` (meshes); `rotating.py` (complete)](https://tryreynolds.com/docs/toolbox/templates.md) |
| Runs on | Hosted, Docker, native OpenFOAM |

## What it solves

Continuity and momentum for a fluid of constant density, with every time derivative dropped:

```
div(U) = 0
div(U U) - div( nuEff (grad U + grad U^T) ) = -grad(p)
```

The result is one field, not a history. `endTime` counts SIMPLE iterations and `deltaT` is 1, so a Courant number quoted for a `simpleFoam` run means nothing and [`spectra.py`](https://tryreynolds.com/docs/toolbox/measuring.md) refuses to turn its iteration history into a frequency.

## When to choose it

- The answer is a settled quantity: pressure drop, mean force, mean velocity field, heat carried by a passive scalar.
- The flow is attached, or separated in a way that has a steady mean.
- Mach is below 0.3. At Mach 0.3 the density departure is 4.56%, and it reaches 5% at Mach 0.314 ([the arithmetic](https://tryreynolds.com/studies/where-incompressible-fails.md)).

Choose something else when:

| The situation | Use |
|---|---|
| A bluff body above its shedding onset (a cylinder past Re of about 50) | [`pimpleFoam`](https://tryreynolds.com/docs/solvers/pimplefoam.md). Steady SIMPLE damps the shedding into a symmetric answer and does not complain |
| Mach 0.3 and above | [`rhoSimpleFoam`](https://tryreynolds.com/docs/solvers/rhosimplefoam.md) or [HiSA](https://tryreynolds.com/docs/solvers/hisa.md) |
| Buoyancy drives the flow | [The buoyant solvers](https://tryreynolds.com/docs/solvers/buoyantsimplefoam.md) |
| A packed bed, filter or screen | [`porousSimpleFoam`](https://tryreynolds.com/docs/solvers/poroussimplefoam.md) |
| A very large mesh, incompressible, Spalart-Allmaras is enough | [Felix](https://tryreynolds.com/docs/solvers/felix.md), on a GPU |

## Ask for it

> Work out the pressure drop through this manifold at 3 L/s of water. Steady, k-omega SST, and give me a mesh study.

> Drag on this body at 20 m/s in air, steady RANS. Report the drag coefficient on frontal area and say what y+ you reached.

> Run it with simpleFoam and second-order schemes, and stop when the drag has been flat over 300 iterations rather than on a residual.

Naming the solver, the model or the schemes is a preference the agent follows. Leaving them open means they are read off the case.

## Run it yourself

With a mesh already in `constant/polyMesh`:

```bash
python3 /work/.toolbox/case_gen.py /work/case --study steady --speed 10 --reynolds 5e5
python3 /work/.toolbox/preflight.py /work/case        # the cheap checks first
simpleFoam                                            # in the case directory
```

Warm-starting costs seconds and often turns a diverging start into a converging one. The generated `fvSolution` already carries the `Phi` solver and `potentialFlow` block it needs:

```bash
potentialFoam -writephi
simpleFoam
```

The options that matter most on this path. The full table is on [writing a case](https://tryreynolds.com/docs/toolbox/case-writing.md).

| Option | What it does |
|---|---|
| `--speed`, `--reynolds`, `--nu`, `--length` | Give a speed and a Reynolds number and `nu = U L / Re` is solved for and printed. Give `--nu` and the Reynolds number is printed instead |
| `--turbulence MODEL` | `auto` is laminar below Re 2300 and `kOmegaSST` above. `kEpsilon`, `SpalartAllmaras`, `kOmegaSSTLM` and `laminar` by name. An LES model with `--study steady` is refused |
| `--inlet --outlet --wall --slip --symmetry --belt --spin` | What each patch is, where the names do not say |
| `--iterations N` | How many SIMPLE iterations, 1000 by default |
| `--body NAME` | The patch forces are taken on; a patch called `body` gets `forceCoeffs` by itself |
| `--dp`, `--yplus` | Log the inlet-to-outlet pressure drop, and the y+ per wall, as the run goes |
| `--periodic A,B` | Couple two patches and drive the cell at a fixed flow rate with `meanVelocityForce` |
| `--tracer NAME --source PATCH` | Carry a passive scalar beside the flow |

## The case it writes

| File | Contents |
|---|---|
| `0/U` | Inlet `fixedValue` along the inlet's own normal; outlet `inletOutlet`; walls `noSlip`; a moving ground is `fixedValue`; a wheel is `rotatingWallVelocity` |
| `0/p` | Outlet `fixedValue 0`; `zeroGradient` elsewhere |
| `0/k`, `0/omega` (or `epsilon`, `nuTilda`, `gammaInt`, `ReThetat`) | Only the fields the chosen model transports |
| `0/nut` | `nutUSpaldingWallFunction` on every wall, valid through the sublayer, the buffer layer and the log layer |
| `constant/transportProperties` | One Newtonian `nu`, with the arithmetic that produced it in a comment |
| `constant/turbulenceProperties` | `laminar`, or `RAS` with the model named |
| `system/fvSchemes`, `fvSolution`, `controlDict` | Below |

Free-stream turbulence follows what the mesh is. A body in open flow gets 0.1% intensity and an eddy viscosity ten times the molecular one; a passage gets 5% and a mixing length. Using the duct numbers for a body in open air once put the free-stream eddy viscosity thousands of times too high and the drag 41% high, which is why the split is made from the mesh.

## Settings that matter

```
ddtSchemes      default           steadyState;
divSchemes      div(phi,U)        bounded Gauss linearUpwind grad(U);
                div(phi,k)        bounded Gauss limitedLinear 1;
gradSchemes     default           Gauss linear;
laplacianSchemes default          Gauss linear corrected;
SIMPLE          consistent        yes;
                nNonOrthogonalCorrectors 1;
                residualControl   p 1e-4, U 1e-5, turbulence 1e-5;
relaxationFactors equations       U 0.9, ".*" 0.9;
```

- **No pressure relaxation.** With `consistent yes` the pressure entry is left out on purpose. Adding `p 0.3` under SIMPLEC slows it toward plain SIMPLE. Plain SIMPLE wants the classic `p 0.3 / U 0.7`.
- **Second-order momentum, bounded.** `bounded` drops the `-div(phi)` term a steady run cannot carry. Upwind is a debugging scheme and not a reporting one.
- **Residual control decides nothing.** It lets the solver say it converged. A plateau still runs to `endTime`, and what the plateau means is a reading. See [convergence](https://tryreynolds.com/docs/guides/convergence.md).
- **Writes are binary and collated**, with the last three times kept on a steady run.

More on each: [numerical schemes](https://tryreynolds.com/docs/guides/numerical-schemes.md), [turbulence models](https://tryreynolds.com/docs/guides/turbulence-models.md), [boundary conditions](https://tryreynolds.com/docs/guides/boundary-conditions.md).

## Checks

### Is the mesh what was meant

`mesh_look.py` and `checkMesh`, before any iteration is spent.

### Did the quantity settle

Read the force or pressure-drop history, not only the residuals. `spectra.py` says from where it is stationary and gives a mean with an interval.

### Does it conserve

`balance.py` sums the flux over every patch. The solver's own continuity error in the plane-duct case is -9.04e-08 on a 4e-05 m3/s throughflow.

### Where is the first cell

`wall.py` reports the y+ the run reached per patch, against the band the wall condition is written for.

### Is it a mesh answer

Two more meshes and `grid.py`. See [mesh independence](https://tryreynolds.com/docs/guides/mesh-independence.md).

## Parallel running

```bash
decomposePar
mpirun -np 4 simpleFoam -parallel
reconstructPar -latestTime
```

The measured cost is 3.8 microseconds per iteration per cell held by a rank, as the median of 14 runs in 12 cases on hosted machines, with a 10th to 90th percentile band of 2.5 to 5.9. `advise.py` prints that band for your mesh, and [parallel running](https://tryreynolds.com/docs/guides/parallel-running.md) says how to choose the rank count.

## When it goes wrong

| What you see | Likely cause | What to try |
|---|---|---|
| Residuals plateau at 1e-4 to 1e-5 and a force oscillates | The flow is unsteady | [`pimpleFoam`](https://tryreynolds.com/docs/solvers/pimplefoam.md); do not lower relaxation to hide it |
| Residuals never fall from the first hundred iterations | Boundary conditions that cannot both hold: fixed inlet against fixed outlet velocity, no pressure level on a closed domain, backflow with no `inletOutlet` | Fix the pair; a closed domain needs `pRefCell` and `pRefValue` |
| Diverges in the first iterations | A bad start or a bad mesh | `potentialFoam`, then first-order upwind and restart second order. `recover.py` lists the moves in order of cost and puts remeshing last |
| Converged, flat, and wrong | Upwinding and heavy relaxation holding an unsteady flow steady | Start a URANS run from the steady field plus a small perturbation and fit its growth rate |
| Only holds together far below `p 0.3 / U 0.7` | The mesh, the boundary conditions or real unsteadiness | Treat it as evidence, not a setting |
| A fan or vent gives absurd speeds | `fixedValue` velocity with `zeroGradient` pressure is a pump with no stall curve | `fanPressure` with a curve, or `totalPressure` on an opening to still air |

`locate.py` finds where a diverging run went wrong. `log_digest.py` says whether the residuals levelled off, were still falling, or climbed.

## Evidence

- **Plane duct, Re 10**, solved in the workspace image on every pull request: node-sampled peak 1.4863 m/s against an exact 1.5, pressure gradient +2.9% on -120 m/s2, wall shear bracketing the exact value from both sides. The reference is exact and what is left is ten cells across.
- [A heated pipe](https://tryreynolds.com/studies/laminar-heated-pipe.md): Nusselt number 3.677 against the analytic 3.657, 0.55%.
- [A hull and its friction line](https://tryreynolds.com/studies/wigley-hull.md): k-omega SST, 54,000 cells, against ITTC-57.
- [Wind around a tower](https://tryreynolds.com/studies/pedestrian-wind-comfort.md): k-epsilon with an atmospheric inlet, 79,610 cells in 15 seconds on 4 cores.
- [A propeller in hover](https://tryreynolds.com/studies/propeller-static-thrust.md): MRF, forces flat to 0.02% over the final 200 iterations.
- [The backward-facing step](https://tryreynolds.com/studies/backward-facing-step.md): what a length convention costs, written out.
- Cases graded against published experiments are on [validation](https://tryreynolds.com/validation/index.md).

## Compared with experiments

| Case | Quantity | Difference |
|---|---|---|
| [Axisymmetric boundary layer separating under an adverse pressure gradient](https://tryreynolds.com/validation/driver-cs0.md)Driver (1991) | Wall pressure coefficient | 4.1% rms |
| [Backward-facing step, turbulent](https://tryreynolds.com/validation/driver-seegmiller-step.md)Driver & Seegmiller (1985) | Reattachment length | +2.8% |
| [Boundary layer through a 30 degree convex bend](https://tryreynolds.com/validation/smits-convex-bend.md)Smits & Bradshaw (1979) | Friction on the convex wall | 4.2% rms |
| [Flat plate turbulent boundary layer at 33 m/s](https://tryreynolds.com/validation/wieghardt-flat-plate.md)Wieghardt & Tillmann (1951) | Friction coefficient, 23 stations | 6.6% rms |
| [NACA 0012 lift and drag, Re 6 million, tripped](https://tryreynolds.com/validation/ladson-naca0012.md)Ladson (1988) | Lift coefficient at 10 degrees | +0.2% |
| [NACA 0012 surface pressure at 0, 10 and 15 degrees](https://tryreynolds.com/validation/gregory-oreilly-naca0012.md)Gregory & O'Reilly (1970) | Upper-surface pressure, 10 degrees | 2.8% rms |
| [NACA 4412 trailing-edge separation near maximum lift](https://tryreynolds.com/validation/coles-wadcock-naca4412.md)Coles & Wadcock (1979) | Surface pressure, both surfaces | 2.5% rms |
| [NASA wall-mounted hump, no flow control](https://tryreynolds.com/validation/greenblatt-hump.md)Greenblatt & Washburn (2006) | Reattachment | +14.7% |
| [Near wake of a 10% thick airfoil](https://tryreynolds.com/validation/nakayama-wake.md)Nakayama (1985) | Lowest wake velocity, seven stations | 2.2% rms |
| [Plane turbulent mixing layer behind a splitter plate](https://tryreynolds.com/validation/delville-mixing-layer.md)Delville & Bonnet (1989) | Vorticity thickness at x = 950 mm | +3.8% |
| [6:1 prolate spheroid at 10 degrees](https://tryreynolds.com/validation/prolate-spheroid-kreplin.md)Kreplin (1995) | Surface pressure coefficient, whole body | 2.8% rms |
| [Ahmed body, 35 degree slant](https://tryreynolds.com/validation/ahmed-35.md)Lienhart & Becker (2002) | Streamwise velocity, symmetry plane, slant and wake | 9.2% rms |
| [Eppler 387 airfoil, Re 300,000, Langley LTPT](https://tryreynolds.com/validation/e387-langley.md)McGhee & Millard (1988) | Drag coefficient, 4 degrees | +4.6% |
| [S809 wind-turbine airfoil, Re 1 million, Ohio State tunnel](https://tryreynolds.com/validation/s809-osu.md)Reuss Ramsay & Gregorek (1995) | Drag coefficient, 4.1 degrees | -12.9% |
| [SD7037 airfoil, Re 300,000, UIUC tunnel](https://tryreynolds.com/validation/sd7037-uiuc.md)Selig & Giguere (1995) | Drag coefficient, 4 degrees | +7.4% |
| [Supercritical airfoil at 4 degrees, low speed](https://tryreynolds.com/validation/nakayama-supercritical.md)Nakayama (1985) | Surface pressure coefficient, both surfaces | 1.4% rms |
| [Wind over isolated two-dimensional hills](https://tryreynolds.com/validation/rushil-hill.md)Khurshudyan & Nekrasov (1981) | Mean velocity, all stations of the three hills | 5.2% rms |
| [Wind over isolated two-dimensional valleys](https://tryreynolds.com/validation/rusval-valley.md)Khurshudyan & Schiermeier (1990) | Mean speed, all stations of the three valleys | 3.6% rms |
| [Flat-plate Stanton number, turbulent, constant wall temperature](https://tryreynolds.com/validation/reynolds-flat-plate-stanton.md)Reynolds & Kline (1958) | Stanton number, 127 ft/s, 22 strips | 3.8% rms |
| [Round jet impinging on a heated plate](https://tryreynolds.com/validation/baughn-impinging-jet.md)Baughn et al. (1989) | Stagnation Nu, H/D 2, Re 23,000 | +11.7% |
| [Turbulent boundary layer with an unheated starting length](https://tryreynolds.com/validation/reynolds-step-wall-temperature.md)Reynolds & Kline (1958) | Stanton number, Re_l 0.506e6, 19 strips | 5.8% rms |
| [Sphere settling in a box of silicone oil](https://tryreynolds.com/validation/ten-cate-settling-sphere.md)ten Cate & Van den Akker (2002) | Maximum settling speed, four oils | 1.0% rms |
| [Bypass transition on a flat plate, T3A](https://tryreynolds.com/validation/roach-brierley-t3a.md)Roach & Brierley (1990) | Transition midpoint, Re_x | -13.6% |
| [Bypass transition on a flat plate, T3B](https://tryreynolds.com/validation/roach-brierley-t3b.md)Roach & Brierley (1990) | Transition midpoint, Re_x | -14.7% |
| [Flow over inclined backward-facing steps](https://tryreynolds.com/validation/ruck-makiola-inclined-step.md)Ruck & Makiola (1993) | Reattachment length, 25 degrees | +14.4% |
| [Plane turbulent wall jet](https://tryreynolds.com/validation/eriksson-plane-wall-jet.md)Eriksson & Persson (1998) | Growth rate of the half-width, dy_1/2 / dx | -10.7% |
| [Round jet impinging on a plate](https://tryreynolds.com/validation/cooper-impinging-jet.md)Cooper & Liao (1993) | Mean velocity profiles, r/D = 0.5 to 3 | 6.8% rms |
| [Turbulent flow through conical pipe expansions](https://tryreynolds.com/validation/stieglmeier-axisymmetric-expansion.md)Stieglmeier & Nitsche (1989) | Mean axial velocity, 14 degree expansion, 9 stations | 8.0% rms |
| [Drag of a circular cylinder, Re 4 to 162](https://tryreynolds.com/validation/wieselsberger-cylinder-drag.md)Wieselsberger (1922) | Drag coefficient relative to each measured point, Re 4.1 to 162 | 7.2% rms |
| [FDA benchmark nozzle, throat Re 500](https://tryreynolds.com/validation/fda-nozzle-re500.md)Hariharan & Malinauskas (2011) | Axial velocity on the axis, mean of the PIV sets | 4.7% rms |
| [Friction in curved pipes, laminar, Dean number 18 to 362](https://tryreynolds.com/validation/keulegan-beij-curved-pipe.md)Keulegan & Beij (1937) | Friction ratio of curved to straight pipe, Dean 18 to 362 | 1.1% rms |
| [Laminar flow round a 90 degree pipe bend, Re 1093](https://tryreynolds.com/validation/enayet-pipe-bend.md)Enayet & Yianneskis (1982) | Streamwise velocity, 60 degrees | 11.9% rms |
| [Laminar flow round a 90 degree square bend, Re 790](https://tryreynolds.com/validation/taylor-square-bend.md)Taylor & Yianneskis (1981) | Streamwise velocity, 60 degrees | 8.5% rms |
| [Laminar flow through a square S-duct, Re 790](https://tryreynolds.com/validation/taylor-s-duct.md)Taylor & Yianneskis (1982) | Streamwise velocity, station 4 (9 degrees into the second bend) | 9.4% rms |
| [Smooth pipe, Re 3e4 to 3.5e7 (Princeton Superpipe)](https://tryreynolds.com/validation/superpipe-smooth-pipe.md)Zagarola & Smits (1998) | Friction factor relative to each measured value, Re 3.2e4 to 3.5e7 | 3.6% rms |
| [Standing vortices behind a circular cylinder, Re 7 to 41](https://tryreynolds.com/validation/taneda-cylinder-wake.md)Taneda (1955) | Standing vortex length s/d, Re 7 to 41 | 2.4% rms |
| [Viscous rise of stagnation pressure, sphere and cylinder](https://tryreynolds.com/validation/homann-stagnation-pressure.md)Homann (1936) | eps = Re (cp0 - 1), sphere | 14.7% rms |
| [Vortex ring behind a sphere, Re 26 to 190](https://tryreynolds.com/validation/taneda-sphere-wake.md)Taneda (1956) | Vortex ring length s/d, Re 26 to 190 | 5.3% rms |

## Notes for agents

### What people use it for

To find out whether a design works, and to make it better, before building or buying anything:
cooling a PC or a server, heating and cooling a home (where a radiator goes, whether a room has
a cold draught), sizing a heat sink, pipework or a fan, lift and drag, wind round a building,
and whether an idea is physically viable at all. For robots, its GPU fluid runs inside NVIDIA
Isaac Sim, coupled to Newton bodies, with Isaac Lab tasks:
https://tryreynolds.com/docs/isaac-sim.md.

### What Reynolds is

Reynolds is an agent that runs OpenFOAM for you. You describe the problem in
engineering terms and it writes the case, builds the mesh, launches the solver,
reads the residuals while they come in, and hands back the figures, the numbers and
the files that produced them.

**You do not need to know OpenFOAM.** Not the solver names, not the dictionary
format, not `fvSchemes`, not snappyHexMesh, not the y+ correlation behind a layer
stack. Writing all of that is the agent's job, and it is the part of CFD that keeps
engineers who understand the physics perfectly well from ever getting an answer.
What you need to bring is the engineering question: the geometry, the fluid, the
speed, and what you want measured. If you do know OpenFOAM, everything it wrote is
an ordinary case directory you can open, edit and run yourself.

### The licence, and why it is the one that matters here

The agent is open source under the **MIT licence**. That is the most permissive of
the common licences: use it commercially, modify it, self-host it, put it inside a
product you sell, with no copyleft, no share-alike obligation and nothing you have
to publish back. Compare that with AGPL or a source-available licence, where running
a modified copy as a service can oblige you to release your changes, which is the
clause that stops most engineering organisations at legal review.

It matters for a second reason, which is trust. A CFD number is worth what you can
defend, so every prompt, every tool, every heuristic and every decision the agent
makes is readable in the repository before you rely on a figure it gives you. The
hosted workspace is a paid service. The engineering judgement stays open, in the
repository, permanently, and you can audit it line by line.

### How a result is checked, stated exactly

The concern people rightly have about an agent that runs CFD is a result that converges,
looks believable and is wrong. Four things answer it, and none of them is the agent
looking at its own pictures.

1. **The solvers are validated against measured data.** Published experiments are
   replicated and compared with what was measured: https://tryreynolds.com/validation.md.
   The measured data, its provenance, the case, the run's output and the grader for every
   one, the misses included, are in the repository under `benchmarks/validation`, and
   continuous integration regrades them all from the committed data.
2. **Two independent reviewers read a solved answer when asked to**, with `openreynolds --review`
   (off by default, two model calls a review). Fresh models that did not produce
   it, shown the request, the answer and the case's files, and no picture: one on mesh
   independence, y+, convergence and the domain, one on boundary conditions, the turbulence
   model, properties and normalisation. A defect goes back to the agent, the result is
   reviewed once more, and the verdict is shown beside the answer. Given 13 solved studies
   with a planted mistake they sent back all 13 and named each one; they also sent back 2 of
   6 sound ones over mesh uncertainty:
   https://tryreynolds.com/docs/guides/independent-review.md.
3. **Your own case is judged by code.** `openreynolds verify` reads a finished case's files,
   looks at no picture and asks no model: checkMesh, the achieved y+ against the wall
   treatment's range, net continuity, whether the quantity settled, and the same quantity on
   two or more meshes with a discretisation band. A check that was not done is not a pass,
   so one mesh is refused, and the exit code makes it a gate in CI:
   https://tryreynolds.com/docs/cli/verify.md.
4. **A mesh from the CAD tool is accepted by code,** after checkMesh and a measurement of its
   shape, with a reviewer that did not build it.

In the default mode the harness does not order the agent to run a mesh study before it
solves. Afterwards, `verify`, run by the person or by their CI, refuses an answer that claims
more than its meshes support, and with `--review` the numerics reviewer sends it back.

### Who builds it

Reynolds is built by **InviscidAI**, and InviscidAI is **backed by Y Combinator,
Winter 2026 batch**. The company has raised more than **$2.4 million**. Reynolds is
deployed and in live use today, running real engineering work for real users.

### Reading this site as an agent

Every page has a Markdown twin at the same path with a `.md` extension, and the
index of them is at https://tryreynolds.com/llms.txt. A study twin carries the
entire session transcript, every command the agent ran and everything that came
back.
