---
title: "pimpleFoam: transient incompressible flow, LES and moving bodies"
url: "https://tryreynolds.com/docs/solvers/pimplefoam"
description: "The transient, incompressible, pressure-based OpenFOAM solver: vortex shedding, force histories, LES and DES, moving bodies. What the toolbox writes for it, how the time step is set, when outer correctors matter, and what the recorded runs measured."
---

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

OpenFOAM solvers

# pimpleFoam

The transient, incompressible, pressure-based OpenFOAM solver: vortex shedding, force histories, LES and DES, moving bodies. What the toolbox writes for it, how the time step is set, when outer correctors matter, and what the recorded runs measured.

`pimpleFoam` marches the incompressible equations in real time. It is the solver when the answer is in the unsteadiness: a shedding frequency, a force history, a spectrum, a start-up transient, or a body the flow moves. LES and DES are the same solver with a different turbulence dictionary.

|   |   |
|---|---|
| Equations | Transient incompressible Navier-Stokes |
| Algorithm | PIMPLE: outer SIMPLE-style loops around PISO pressure corrections. With one outer loop it is PISO |
| Pressure | Kinematic, m2/s2 |
| Courant number | Target 0.9 by default; below 1 for LES |
| Case writer | [`case_gen.py --study transient --end-time T`](https://tryreynolds.com/docs/toolbox/case-writing.md) |
| Template | [`viv_cylinder.py`](https://tryreynolds.com/docs/toolbox/templates.md), a cylinder on a spring as two cases |
| Runs on | Hosted, Docker, native OpenFOAM |

## What it solves

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

`constant/turbulenceProperties` decides what the eddies are: `laminar`, a `RAS` model for URANS, an `LES` block with a subgrid model, or `laminar` again for a DNS.

## When to choose it

| Choose it for | Choose something else for |
|---|---|
| Vortex shedding, blade passing, flapping, start-up | A settled answer on an attached flow: [`simpleFoam`](https://tryreynolds.com/docs/solvers/simplefoam.md) |
| LES, DES or DNS | Compressible acoustics or Mach above 0.3: [`rhoPimpleFoam`](https://tryreynolds.com/docs/solvers/rhopimplefoam.md), [`rhoCentralFoam`](https://tryreynolds.com/docs/solvers/rhocentralfoam.md) |
| A sliding mesh, prescribed motion or a rigid body on a spring | A free surface: [`interFoam`](https://tryreynolds.com/docs/solvers/interfoam.md) |
| Checking that a "steady" answer is stable | A structure that deforms: not supported, see [FSI and thermal stress](https://tryreynolds.com/docs/guides/fsi-and-thermal-stress.md) |

A steady residual that plateaus with an oscillating force is the usual reason to arrive here.

## Ask for it

> Flow past this cylinder at Re 100, transient, and give me the Strouhal number, mean drag and lift amplitude against published bands.

> Run a wall-resolved LES of this channel with WALE and van Driest damping. Average only after it has settled, and tell me where that was.

> Let the cylinder move on a spring at reduced velocity 5 and tell me whether it locks in. Check the energy balance.

## Run it yourself

```bash
python3 /work/.toolbox/case_gen.py /work/cyl --study transient --end-time 12 \
    --speed 1 --reynolds 100 --length 0.1 --body cylinder --courant 0.9
pimpleFoam
python3 /work/.toolbox/spectra.py /work/cyl --list
```

An LES, with the average started where the flow has settled:

```bash
python3 /work/.toolbox/case_gen.py /work/channel --study transient --end-time 5 \
    --turbulence WALE --les-delta vanDriest --average-from 2
```

A cylinder on a spring, as the two cases it is:

```bash
python3 /work/.toolbox/templates/viv_cylinder.py --ustar 5 --re 100 --mstar 10   # writes ./fixed and ./released
( cd fixed && pimpleFoam )       # first: the shedding frequency on this mesh
( cd released && pimpleFoam )
python3 /work/.toolbox/viv.py released
```

| `viv_cylinder.py` option | Meaning |
|---|---|
| `--diameter`, `--nu`, `--rho` | Geometry and fluid; water at 20 C by default |
| `--ustar` | Reduced velocity `U/(f_n D)`; sets the spring stiffness |
| `--re` | Reynolds number on the diameter; sets the free stream |
| `--mstar` | Body mass over displaced fluid mass |
| `--dof {1,2}` | Transverse only, which is the graded case, or free in the plane, which has no graded run behind it |
| `--stage {both,fixed,released}` | Which case to write |
| `--cycles` | Shedding cycles to run, which sets `endTime` |
| `--no-mesh` | Write the files and skip `blockMesh` |

## Settings that matter

| Setting | URANS or laminar | LES, DES or DNS |
|---|---|---|
| `ddtSchemes` | `backward` | `CrankNicolson 0.9` |
| `div(phi,U)` | `Gauss linear` | `Gauss LUST grad(U)` |
| Turbulence convection | `Gauss limitedLinear 1` | the same, where the model transports a field |
| `nOuterCorrectors` | 2 | 2 |
| `nCorrectors` | 2 | 2 |
| `nNonOrthogonalCorrectors` | 1 | 1 |
| `adjustTimeStep` | `yes`, `maxCo` 0.9, `maxDeltaT` five times the first step | the same |

- **The time step is arithmetic.** It starts at `Courant x smallest cell / speed` and is printed before the run. `--delta-t` fixes it and turns adjustment off.
- **Central convection in a transient run.** Upwind dissipation damps the instability a transient run is usually there to observe, so the writer does not use it.
- **One outer corrector is PISO.** Raising `maxCo` to 5 with `nOuterCorrectors 1` diverged outright on the measured cylinder; adding outer correctors at `maxCo` 2 was stable and slower to the same time than PISO under 1.
- **Break the symmetry.** From a symmetric start a Re 100 wake grows out of round-off and took until t = 90 to reach a quarter of its lift amplitude. `internalField uniform (1 0.05 0)` reached saturation by t of about 55 with the same Strouhal number.
- **`fieldAverage`** is written for LES and DNS with a stated start time. Default is half of the end time, which is a guess for `spectra.py` to correct.

The [time stepping](https://tryreynolds.com/docs/guides/time-stepping.md) guide has the arithmetic, and [turbulence models](https://tryreynolds.com/docs/guides/turbulence-models.md) lists the eleven LES and DES models with the fields each needs.

## Moving meshes

`case_gen.py` writes no `dynamicMeshDict`. A moving case is a tutorial or the `viv_cylinder.py` template, edited. What carries over from the runs that were paid for:

- A body held and then released is **two cases**, because `sixDoFRigidBodyMotion` reads its constraints once at start-up.
- Put the body inside the PIMPLE loop: `moveMeshOuterCorrectors yes`, three outer correctors, `accelerationRelaxation 1.0`. Loose coupling held an amplitude 13% too wide.
- Diffusion can set the limit. A refined Couette case diverged at a cell diffusion number `nu dt / dr^2` of 6.25 with two correctors and ran at 11.5 with `nCorrectors 4`.
- A `cyclicAMI` interface's error is first order in the angle slid per step, so quote `omega dt` and not only a cell count.

[Moving mesh](https://tryreynolds.com/docs/moving-mesh.md) has the benchmarks, and [the overview](https://tryreynolds.com/docs/guides/moving-mesh.md) the choices.

## Checks

| Check | Instrument |
|---|---|
| Has it stopped changing, and from when | `spectra.py`: verdict, stationary window, mean with a 95% interval on the effective sample size |
| Is the peak a frequency | Prominence over the spectrum's median. A record of too few cycles comes back `too-short` with no Strouhal number |
| Is the interface conserving | Equal and opposite torque on the two walls, exactly, in steady circular Couette flow |
| Is the amplitude physical | Net fluid work per cycle, which is zero with no structural damping |
| Is the LES an LES | The same mesh on `Gauss linear` and on `linearUpwind`. If the resolved spectrum changes, the scheme was the model |

## Parallel running

The median cost is 14.8 microseconds per time step per cell held by a rank, over 36 runs in 22 cases, about four times a steady iteration. On a 2D cylinder at 33,600 cells, 4 ranks ran 2.9 times faster than one, 8 ranks 3.6 times and 16 ranks 4.6 times; at 5,800 cells 8 ranks returned nothing over 4. Below about two thousand cells per rank the halo costs more than the arithmetic saved.

## When it goes wrong

| What you see | Cause and fix |
|---|---|
| Stops on the first step with `keyword pFinal is undefined` | The PIMPLE loop asks for `pFinal` and `UFinal` by name. The writer includes them |
| Time step collapses | A bad cell or a runaway velocity. `locate.py` for where, `log_digest.py` for when |
| Diverges on the refined member of a grid family | The diffusion number, not the Courant number. More correctors |
| Wake never starts shedding | A symmetric start, an upwinded scheme, or too short a record |
| The mean is wrong but the run is clean | The averaging window opened inside the transient. `spectra.py --from` |

## Evidence

- [Flow past a cylinder](https://tryreynolds.com/studies/vortex-shedding-cylinder.md): Strouhal 0.1653 against a published 0.164 to 0.167, with mean drag and both amplitudes inside their bands.
- [A cylinder let go](https://tryreynolds.com/studies/vortex-induced-vibration.md): St 0.166141 fixed, which is +1.10% on Williamson's fit; released tightly coupled, net work +0.04% to +0.18% of the body's energy per cycle.
- [A sliding interface](https://tryreynolds.com/studies/couette-sliding-interface.md): inner-wall torque +0.43% on a closed form, and the torque imbalance of 0.911% recorded as a failure.
- The graders are in [`benchmarks/moving_mesh`](https://github.com/InviscidAI/OpenReynolds/tree/main/benchmarks/moving_mesh), and published comparisons are on [validation](https://tryreynolds.com/validation/index.md).

## Compared with experiments

| Case | Quantity | Difference |
|---|---|---|
| [Heat transfer around a cylinder in crossflow](https://tryreynolds.com/validation/schmidt-wenner-cylinder.md)Schmidt & Wenner (1941) | Mean Nu, Re 39,800 | +13.9% |
| [Plates tumbling and fluttering down through water](https://tryreynolds.com/validation/andersen-falling-plates.md)Andersen & Wang (2005) | Nine mean speeds and rotation rates, three plates | 9.2% rms |
| [Cavity started from rest by its lid, 1:1:2, Re 1000](https://tryreynolds.com/validation/guermond-cavity-start.md)Guermond & Quartapelle (2002) | Centreline velocities at t = 12 | 3.2% 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 |
| [Vortex shedding frequency of a circular cylinder, Re 48 to 125](https://tryreynolds.com/validation/roshko-cylinder-strouhal.md)Roshko (1954) | Strouhal number, Re 50 to 122 | 2.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.
