---
title: "Flow solvers: incompressible, compressible and potential flow"
url: "https://tryreynolds.com/docs/solvers-flow"
description: "simpleFoam, pimpleFoam and potentialFoam for incompressible flow; rhoSimpleFoam, rhoCentralFoam, HiSA, rhoPimpleFoam and sonicFoam for compressible; the panel method for a quick lift number; and the turbulence and wall references behind them. What each one is for, how to run it, and a worked example of each."
---

**[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-flow. It lives at https://tryreynolds.com/docs/solvers-flow.md, and
[tryreynolds.com/llms.txt](https://tryreynolds.com/llms.txt) indexes every one of them.

# Flow solvers

The families most cases land in. Each solver here says what it is, the condition that makes it the right one, the command that runs it, and a study or a graded benchmark where it did.

## Incompressible flow

Most engineering flow is incompressible: air below about a third of the speed of sound, and water almost always. One kinematic viscosity in `constant/transportProperties`, a pressure field carried as p over density in m2/s2, and no temperature field unless the case asks for one. Three solvers, and the choice between the first two is whether the answer is a steady state or the way it changes.

### simpleFoam

**What it is.** Steady, incompressible, pressure-based, solved with the SIMPLE algorithm. It marches a sequence of pressure and momentum corrections towards a state that no longer changes, and the residuals falling is what convergence means.

**When it is the one.** A steady answer is the question and the flow is below about Mach 0.3. Pressure drop through a manifold, drag on a hull, the heat a bundle of tubes moves, the wind field around a tower: all of them want the settled answer rather than the history, and the steady solver reaches it in a fraction of the cells-times-steps a transient run would need. It is the default the toolbox's case writer picks for a classified incompressible case.

**How it runs.** From a mesh to a solved case, with the plane-duct template as the mesh:

```
python3 duct2d.py                                  # outline -> quads -> one cell thick -> checkMesh
python3 case_gen.py . --speed 1 --reynolds 10 --length 0.04
simpleFoam                                         # or: mpirun -np 4 simpleFoam -parallel
```

**What it is held to.** Fully developed flow between two plates is a parabola whose peak is exactly 1.5 times the mean, so the duct above has an exact answer and is graded on every commit of the open-source repository: the last run reported a peak of 1.4863 m/s against an exact 1.5, with continuity closing to -9.04e-08.

**Worked examples.** [A heated pipe](https://tryreynolds.com/studies/laminar-heated-pipe.md) reached a Nusselt number of 3.677 against the analytic 3.657, which is 0.55%. [A submarine hull](https://tryreynolds.com/studies/suboff-submarine-hull.md) was measured off its own geometry at a drag coefficient of 0.00157 on a wetted area read from the mesh rather than from a datasheet. [A cube on a floor](https://tryreynolds.com/studies/cube-in-crossflow.md) resolved the horseshoe vortex around its base and held its pressure drag to under 1% between two meshes.

### pimpleFoam

**What it is.** Transient, incompressible, pressure-based, solved with PIMPLE: a SIMPLE-style inner loop inside a real time step, so a large Courant number is survivable and the time history is physical.

**When it is the one.** The answer is in the unsteadiness. A shedding frequency, a spectrum, a force history, a startup transient, a body that moves: anything where a steady solver would either refuse to settle or settle onto something that does not exist. If a steady run's residuals plateau on a flow you expected to be steady, that is itself the signal that the flow is not, and the toolbox's log digest says so in those words.

**How it runs.** The cylinder on a spring ships as the two cases such a study actually is:

```
python3 viv_cylinder.py        # writes ./fixed and ./released off one O-grid mesh
cd fixed && pimpleFoam          # the Strouhal number, body bolted still
python3 /work/.toolbox/spectra.py . --field forces   # how fast it oscillates, and whether it has settled
```

**What it is held to.** A shedding frequency has published bands behind it, and a moving body has an energy audit that needs no paper at all: with zero structural damping nothing can dissipate energy, so the fluid must do no net work on the body per cycle on a real limit cycle.

**Worked examples.** [Flow past a cylinder](https://tryreynolds.com/studies/vortex-shedding-cylinder.md) shed at a Strouhal number of 0.1653 with four of four metrics inside their published bands. [The same cylinder let go](https://tryreynolds.com/studies/vortex-induced-vibration.md) ran the energy audit, which is what took 13% off the amplitude and found the tighter coupling the answer needed. [Moving mesh](https://tryreynolds.com/docs/moving-mesh.md) has the detail on bodies that move.

### potentialFoam

**What it is.** One potential-flow solve: no viscosity, no turbulence, one pass. It is not an answer, it is an initial field.

**When it is the one.** As a warm start in front of a steady run. A potential solution already satisfies continuity and has the flow going roughly the right way around the body, so the steady solver spends its iterations on the physics rather than on getting the air moving. In this corpus it cost 3 seconds in front of a 173 second `simpleFoam` run, which is the kind of arithmetic that makes it worth typing.

```
potentialFoam -writephi    # seed the field
simpleFoam                 # then the real run, from a sensible start
```

## Compressible and transonic flow

Above about Mach 0.3 density is part of the answer, and the case changes in almost every file: pressure becomes absolute static pressure in pascals, temperature becomes a field of its own, `thermophysicalProperties` replaces `transportProperties`, and the time step becomes acoustic. The toolbox has a dedicated case writer for exactly this reason, and it writes a complete dictionary set for three of the five solvers below.

The three it writes for are the ones worth running: a steady pressure-based solver, and two density-based solvers for capturing shocks. Which of the three it picks follows from the Mach number and whether a steady or a transient answer was asked for.

```
python3 /work/.toolbox/compressible.py . --mach 0.84 --solver auto   # writes 0/, constant/, system/
python3 /work/.toolbox/compressible.py --solver           # what is on PATH here
python3 /work/.toolbox/advise.py . --mach 0.84             # the candidates, and the one the switch points at
```

![Mach number along a converging-diverging nozzle, rising through the throat to supersonic and dropping sharply across a normal shock inside the diverging section](https://tryreynolds.com/assets/nozzle-mach-shock-BLyisMYk.png)

A shock standing inside a nozzle, from the exact quasi-1D relations the toolbox solves alongside the case. The jump is where the supersonic branch meets the back pressure the nozzle was given.

### rhoSimpleFoam

**What it is.** Steady and pressure-based: SIMPLE on a compressible pressure equation.

**When it is the one.** Subsonic and transonic flow where the steady answer is the question and no strong shock has to be captured sharply. It is the cheapest of the three, it inherits the behaviour of the incompressible steady solver, and for a duct, a heat exchanger passage or a nozzle running below the point where a shock forms it is the right first run.

### rhoCentralFoam

**What it is.** Transient, explicit and density-based, on a Kurganov central-upwind flux.

**When it is the one.** A shock whose position and strength are the answer, and a transient history worth having. Being density-based, it carries the jump as a jump rather than smearing it across a pressure equation, and being explicit its time step is set by the acoustic speed, which is what makes it exacting about the mesh.

**Worked example.** [A converging-diverging nozzle](https://tryreynolds.com/studies/converging-diverging-nozzle.md) was found to be running overexpanded, with the normal shock located inside the duct at about 0.18 to 0.20 m along. The solver had reported convergence; the agent went and checked where the shock actually was.

### HiSA

**What it is.** An implicit density-based shock-capturing solver, AUSM+up flux with GMRES under LU-SGS preconditioning, run pseudo-transiently towards a steady state. It is baked into the workspace image, so it is on `PATH` with no exports, and its own ONERA M6 example case sits on the instance beside it.

**When it is the one.** Transonic and supersonic external aerodynamics where the shock structure is the result: a wing at cruise, an inlet, a body with a bow shock. Being implicit, it is not bound to the acoustic time step, which is what lets it reach a converged transonic answer in a workable number of iterations.

**Worked example.** [The ONERA M6 wing](https://tryreynolds.com/studies/onera-m6-transonic.md), the standard transonic validation case. The lambda-shock structure came out with its shock positions within 0.06 chord of the 1979 wind tunnel data, on about a seventh of the mesh the replication started from, and the drag landed within 0.3% of a five-code published band. The scheme choices in the toolbox's compressible writer are all downstream of that run: both compressible pressure-flux terms left first order and the velocity gradient fully limited give a numerical diffusivity thousands of times the physical viscosity, and the case that taught this repository that lesson is published with the arithmetic in it.

### rhoPimpleFoam and sonicFoam

**What they are.** Transient pressure-based compressible solvers, `sonicFoam` aimed at the trans and supersonic range. Both are in the image and on `PATH`.

**When they are the ones.** When you ask for them, or when a case's physics genuinely wants a transient pressure-based treatment. For the specific job of capturing a shock sharply, the two density-based solvers above are what the toolbox writes dictionaries for, and `advise.py` lists these two beside them with that difference stated so the choice is made with it in view.

## Potential flow, in about a second

`panel.py` is a linear-strength vortex panel method for aerofoil sections and a lifting-line solve for wings, in numpy, with no mesh and no solver in it. Lift, moment or induced drag on a thin lifting surface at small angle comes back in about a second, which makes it the right instrument for a section comparison or an angle sweep before any mesh exists.

It is inviscid, with no Reynolds number in it, so what it answers is the inviscid question. That is also what makes it gradeable against statements that are exact rather than against correlations: d'Alembert's paradox puts the pressure drag of a closed body at exactly zero, a symmetric section's zero-lift angle is exactly zero, the thin-aerofoil integral gives a cambered section's, and elliptic loading gives a wing's induced drag in closed form.

```
python openreynolds/toolbox/panel.py --check            # the four exact statements
python openreynolds/toolbox/panel.py --naca 2412 --alpha 5
python openreynolds/toolbox/panel.py --wing --ar 6 --taper 1
```

**What it reported.** Pressure drag converging to 2.19e-04 against an exact zero as the panel count doubles, and a span efficiency of 0.9428 for a square tip. The run is published as [four exact statements about an aerofoil and a wing](https://tryreynolds.com/studies/aerofoil-and-wing.md), and the camber-line definitions and the thin-aerofoil integral ship in the toolbox's `references/` directory so a run reads them rather than recalling them.

![Pressure coefficient over the upper and lower surfaces of a symmetric aerofoil at five degrees, with the stagnation point marked and the section drawn beneath](https://tryreynolds.com/assets/panel-pressure-e7wTBSv0.png)

Pressure coefficient over both surfaces of a symmetric section at five degrees, with the section drawn underneath so the suction peak can be placed on the geometry. Seconds of arithmetic, no mesh.

## Turbulence and the wall

Turbulence in a finite-volume run is a model, and the model's accuracy rests on something geometric: whether the first cell off the wall sits where the wall treatment assumes it does. The toolbox measures that from both ends. `pipe_friction.py` carries the references, standard library only: the exact laminar branch, Colebrook and Haaland for turbulent pipes, and the law of the wall with the sublayer and the log layer crossing at y+ 11.0623. `wall.py` then reads back the y+ a finished run actually reached, face by face, against the y+ it was predicted to get, which is the comparison that catches an O-grid whose first cell is a thousand times too far out. `layer_report.py` measures how much of each wall genuinely carries a prism layer.

```
python openreynolds/toolbox/pipe_friction.py --check          # the references, graded against themselves
python3 /work/.toolbox/wall.py /work/case                     # the y+ this run reached
python3 /work/.toolbox/layer_report.py /work/case             # how much of the wall carries a layer
```

**What it reported.** Colebrook satisfies its own implicit equation to 8.88e-16, and Haaland sits within 1.314% of it across four decades of Reynolds number, which is Haaland's own published claim measured rather than assumed. The run is [a correlation checked against its own claim](https://tryreynolds.com/studies/pipe-friction-and-the-wall.md). The measured side of the same story is [a staggered tube bundle](https://tryreynolds.com/studies/staggered-tube-bundle.md), which came back 8% below the correlation band and was published that way, with five candidate explanations ruled out one at a time.

![A Moody-style chart of friction factor against Reynolds number with the laminar branch, Colebrook curves at several roughnesses, and the Haaland deviation from Colebrook plotted beside it](https://tryreynolds.com/assets/pipe-moody-5b_EuuIx.png)

Friction factor against Reynolds number, with the exact laminar branch, Colebrook at several roughnesses, and how far Haaland's explicit fit sits from it across four decades.

## The laminar flat plate

The laminar plate is the reference every drag estimate rests on, and `blasius.py` solves it here rather than quoting it: the Blasius similarity equation by fourth-order Runge-Kutta shooting on the wall shear, standard library only. The published number it takes rather than derives is f double prime at zero, 0.3320573362151963, and it recovers it to +3.0e-09.

Solving it rather than quoting it paid for itself immediately. The whole-plate friction coefficient is four times that constant, 1.3282293449, and the literal in the repository said 1.328. The run is [the one number every drag estimate rests on](https://tryreynolds.com/studies/flat-plate-friction.md).

```
python openreynolds/toolbox/blasius.py --check
python openreynolds/toolbox/blasius.py --re 5e5 --length 1.0
```

![The Blasius velocity profile plotted against the similarity variable, approaching the free stream asymptotically, with the wall slope marked](https://tryreynolds.com/assets/blasius-profile-DV3v2pr2.png)

The similarity profile, solved by shooting on the wall slope. The one published number in it is the slope at the wall, and it comes back to about one part in a hundred million.

## Notes for agents

### 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.

### 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.
