---
title: "Measurement scripts: probe, balance, heat, wall, reattach, spectra, viv, grid, acoustics, wind comfort"
url: "https://tryreynolds.com/docs/toolbox/measuring"
description: "Reference for the scripts that turn a solved case into numbers: field sampling, flux and pressure balances, heat, y+, reattachment, spectra, flow-induced vibration, grid convergence, sound, wind comfort and Felix results, with every option."
---

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

Toolbox

# Toolbox: measuring a result

Reference for the scripts that turn a solved case into numbers: field sampling, flux and pressure balances, heat, y+, reattachment, spectra, flow-induced vibration, grid convergence, sound, wind comfort and Felix results, with every option.

Each of these reads what a run wrote and reports a number with where it came from. They refuse to default a constant that changes the answer, they edit nothing, and almost all of them exit 0 whatever they find.

## probe.py

Any solved field, sampled where you ask, as JSON. Choose one operation per call. A vector comes back as signed components and a magnitude; a point outside the mesh is `null`, never zero. `p_total` is derived when the case did not write it. Which fields exist is read from the case, so it works for any physics.

| Option | Default | What it does |
|---|---|---|
| `case` | required | A solved case, or a candidate directory with one solved case under it. |
| `--time TIME` | `latest` | Latest (default) or a time. |
| `--fields` |  | List what the case wrote, with kind, units and range. |
| `--line X0 Y0 X1 Y1` |  | Sample along this line. |
| `--points POINTS` |  | Sample at points, written `x,y;x,y` or `x,y,z;...`. |
| `--region XMIN YMIN XMAX YMAX` |  | Reduce the cells whose centres fall in this x-y box. |
| `--section-mean` |  | Mean of the field over the section at `--at-x`. |
| `--between X0 X1` |  | Section mean at X1 minus section mean at X0. |
| `--flux` |  | Volumetric flux through the section at `--at-x`. |
| `--streamlines` |  | Integrate U from each seed. |
| `--field FIELD` |  | The field to sample. |
| `--z Z` |  | Default: the mesh mid-plane. |
| `--n N` | `200` | Points on a line / per streamline. |
| `--stat {mean,min,max,integral}` | `mean` | The reduction for `--region`. |
| `--at-x AT_X` |  | The x position of the section. |
| `--weighted {area,flux}` | `area` | Weight a section mean by area or by the flux through each cell. |
| `--seeds SEEDS` |  | Streamline seeds, written `x,y;x,y`. |
| `--direction {forward,backward,both}` | `both` | Which way to integrate streamlines. |
| `--out OUT` |  | Also write the JSON here. |
| `--png PNG` |  | Draw the line or the streamlines. |

```bash
python3 /work/.toolbox/probe.py . --fields
python3 /work/.toolbox/probe.py . --line 0 -0.05 0 0.05 --field U --out profile.json --png profile.png
python3 /work/.toolbox/probe.py . --points "0.1,0;0.2,0" --field T
python3 /work/.toolbox/probe.py . --between 0.2 0.3 --field p_total --weighted flux
python3 /work/.toolbox/probe.py . --streamlines --seeds "0,0.01;0,0.02"
```

`--line` takes two x-y points; `--z` sets the plane, the mid-plane without it. Output is `{"op", "field", "time", "units", "case", "data", "notes"}`. A decomposed case whose processor directories hold a later time is refused until it is reconstructed. **Needs** numpy and pyvista. **Exit code** 0, non-zero with a message when something is missing.

## balance.py

Every patch with its area, signed flux, area-averaged and flux-weighted pressure, and its share of the total. Inflow and outflow are told apart by the sign of the flux and never by a name. The closure (inflow minus outflow) is stated beside the split. Pressure drop between two patches or two x-sections comes out both static and total, because quoting one as the other is the classic duct error. With the constants it also gives the loss coefficient K and the Darcy friction factor.

| Option | Default | What it does |
|---|---|---|
| `case` | required | The case directory. |
| `--time TIME` | `latest` | Latest (default) or a time. |
| `--drop FROM TO` |  | Pressure drop between two patches, on their mixed means. |
| `--sections X0 X1` |  | Pressure drop between two x-sections, through probe.py. |
| `--rho RHO` |  | Density in kg/m^3; needed for a mass flux, and for K and f wherever p is in Pa rather than kinematic. |
| `--u-ref U_REF` |  | The reference velocity K and f are referred to, in m/s. |
| `--length LENGTH` |  | Duct length L in m, for f. |
| `--dh DH` |  | Hydraulic diameter D in m, for f. |
| `--zero-tol ZERO_TOL` | `1e-06` | A patch under this fraction of the largest \|flux\| is reported as closed. |
| `--json JSON_OUT` |  | Write the numbers as JSON to this file. |
| `--png PNG` |  | Draw the split as a bar chart with the drop under it. |

```bash
python3 /work/.toolbox/balance.py . --drop inlet outlet --rho 1000 --u-ref 1.5 --length 2 --dh 0.05
python3 /work/.toolbox/balance.py . --sections 0.1 0.4 --png split.png
```

Which pressure convention the case wrote is read from the dimensions of `p` and printed with every number. **Needs** numpy and pyvista, matplotlib for the picture. **Exit code** 0; non-zero only when a constant is missing.

## heat.py

The heat a run moved. Per patch: the rate in watts, the area-weighted mean flux and the range, from the `wallHeatFlux` function object's table where the run has one, or from a written field integrated against face areas. It forms a Nusselt number from a length, a conductivity and a reference temperature, each read from the case or given, and prints which reference it used. With `--reynolds` and `--prandtl` the number is set beside the published correlation, which is refused outside its range. Hot spots come with a cell, coordinates and size.

| Option | Default | What it does |
|---|---|---|
| `case` | required | The case directory. |
| `--time TIME` |  | Read this time, not the latest written. |
| `--region REGION` |  | Report only this mesh region. |
| `--length LENGTH` |  | The length scale Nu is taken on, in metres. |
| `--conductivity K` |  | Thermal conductivity in W/m K, where the case states none. |
| `--t-wall T_WALL` |  | Wall temperature, instead of the T field's own. |
| `--t-ref T_REF` |  | A free-stream or ambient reference temperature. |
| `--ref-patch NAME` |  | Take the reference temperature over this patch. |
| `--t-ref-from {bulk,inlet,freestream}` |  | Which reference temperature convention to use (bulk is the mixed mean and the default over a patch). |
| `--reynolds REYNOLDS` |  | With --prandtl, compare Nu against the published correlation for a pipe flow at this Re. |
| `--prandtl PRANDTL` |  | With --reynolds, the Prandtl number the correlation is on. |
| `--threshold THRESHOLD` |  | The temperature a hot spot starts at, outright. |
| `--hot-fraction HOT_FRACTION` | `0.95` | Where the hot region starts as a fraction of T's own min-to-max span. |
| `--json [PATH]` |  | The same facts as JSON, on stdout or to a file. |
| `--png PATH` |  | A per-patch heat-rate chart and a temperature histogram. |

```bash
python3 /work/.toolbox/heat.py . --length 0.02 --conductivity 0.6 --ref-patch outlet
python3 /work/.toolbox/heat.py . --region solid --png heat.png
```

**Needs** numpy and matplotlib. **Exit code** 0, or 2 when the case cannot be read. See [heat transfer setup](https://tryreynolds.com/docs/guides/heat-transfer-setup.md).

## wall.py

The y+ a run actually reached, against the y+ it was predicted to reach. Per wall: minimum, maximum, mean, and the fraction in the viscous sublayer, the buffer layer and the log layer. It uses whichever source the run left: the `yPlus` function object, a written `yPlus` field, or `wallShearStress` with the first-cell height measured from the mesh. It also names the `nut` condition and the band that condition is written for.

| Option | Default | What it does |
|---|---|---|
| `case` | required | The case directory. |
| `--time TIME` |  | Read this time, not the latest written. |
| `--nu NU` |  | Kinematic viscosity, where the case does not state one. |
| `--json [PATH]` |  | The same facts as JSON, on stdout or to a file. |
| `--png PATH` |  | A per-patch y+ range plot. |

```bash
python3 /work/.toolbox/wall.py . --png yplus.png
```

A viscosity it cannot read is refused by name. **Needs** numpy and matplotlib. **Exit code** 0, or 2 when the case cannot be read. See [wall treatment](https://tryreynolds.com/docs/guides/wall-treatment.md).

## reattach.py

Where the flow left a wall and where it came back, from the sign changes in the wall shear. The primary reattachment is the downstream end of the longest reversed run, not the first sign change (a corner eddy) and not the last (a secondary bubble); both of those are printed beside it. Which sign means attached is measured from the velocity field. A bubble still reversed at the last face has no length, and it says so.

| Option | Default | What it does |
|---|---|---|
| `case` |  | The case directory, unless `--from-file` is given. |
| `--patch PATCH` |  | The wall to walk along. |
| `--field FIELD` | `wallShearStress` | The wall-shear field to read. |
| `--time TIME` |  | Defaults to the latest that has the field. |
| `--direction {x,y,z}` | `x` | The streamwise axis. |
| `--origin ORIGIN` | `0.0` | Where the wall's coordinate starts counting, e.g. the step face. |
| `--height HEIGHT` | `1.0` | The length the answer is quoted in, e.g. the step height. The default 1 divides by nothing and is labelled as an unscaled number; a coordinate already in x/h wants --units h, not --height 1. |
| `--units UNITS` |  | What the number is in, when you know and this cannot: a table already sampled in x/h read with no --height is dimensionless, and only you can say so. Sets the label on the report, the figure and the claim, and claims.py only compares two numbers whose labels match. |
| `--forward-sign {-1,1}` |  | Override which sign of tau means attached flow. |
| `--from-file FROM_FILE` |  | A table of wall shear instead of a case. |
| `--columns X TAU` | `0 3` | Columns in --from-file. |
| `--plot PLOT` |  | Draw the curve here; the figure carries the number. |
| `--no-stamp` |  | Draw the figure without stamping the claim into it. |
| `--json` |  | The same facts as JSON. |

```bash
python3 /work/.toolbox/reattach.py . --patch lowerWall --origin 0.02 --height 0.0094 --plot bfs.png
python3 /work/.toolbox/reattach.py --from-file wss.raw --columns 0 3 --units h
```

A synthetic table with a bubble that runs off the end of the wall prints:

```
the longest reversed region runs to the end of the patch at 11.98 and does not close on it -- reattachment is downstream of the mesh, so no length is reported

## sign changes (2)
 x (unrounded)  kind           face spacing there   (both columns in h)
        0.2018  reattachment   0.02
           6.3  separation     0.04
```

The figure `--plot` draws carries its number in the PNG (see [claims.py](https://tryreynolds.com/docs/toolbox/documents.md)). **Needs** numpy, matplotlib for `--plot`. **Exit code** 0.

## spectra.py

How fast a history oscillates and whether it has settled. Welch's spectrum on the detrended record, the peak with its prominence over the median, a verdict (`periodic`, `trend-dominated`, `aperiodic`, `too-short` or `no-variation`), and the stationary window with a 95% interval on the effective sample size. A Strouhal number appears only with both a length and a speed and only under a verdict that accepted the peak. On a steady run the Time column counts iterations, so a frequency is refused.

| Option | Default | What it does |
|---|---|---|
| `source` | required | A case directory (its force/coefficient history is found) or a single .dat/CSV series file. |
| `--column COLUMN` |  | Which column to analyse, or SERIES:COLUMN where the name is in more than one series (default: the first worth drawing, where the case logged only one series). |
| `--list` |  | Print the columns available and stop. |
| `--from START` |  | Ignore rows before this time; how the stationary time this reports gets used, since a startup transient is not a straight line and the detrend leaves its power in the lowest bins. |
| `--segments SEGMENTS` | `4` | Welch segments to average; 1 is a plain periodogram. |
| `--length LENGTH` |  | Length scale L for St = f L / U; nothing is assumed without it. |
| `--speed SPEED` |  | Free-stream speed U for St = f L / U. |
| `--strouhal STROUHAL` |  | The St you EXPECT (with --length and --speed): its frequency U St / L is checked against the Nyquist limit of the sampling, which is how a record that could not have held the shedding at all says so. |
| `--png PNG` |  | Write the two-panel figure here (relative to where you run). |
| `--json JSON` |  | Write the findings here as JSON (relative to where you run). |

```bash
python3 /work/.toolbox/spectra.py . --list
python3 /work/.toolbox/spectra.py . --column Cl --length 0.1 --speed 1 --from 10 --png spectrum.png
```

On a synthetic lift record shed at St 0.1655:

```
shedding: periodic -- the peak stands 2.191e+14x over the spectrum's median, above 10
strouhal: St = 0.165407  (f = 0.827033, L = 1, U = 5)
settling: settled -- from t = 10 on, the second half's mean sits 0.03 half-record standard deviations away
  mean              -0.00201505 +/- 0.05137 (95%)
  integral time     0.1863 -> 78.4 independent samples
```

**Needs** numpy and matplotlib. **Exit code** 0.

## viv.py

A moving-body run as the three numbers a flow-induced vibration answer is: transverse amplitude as A/D, the response frequency against the structure's own and the fixed body's, and the net work the fluid did per cycle. With zero structural damping that work is zero on a real limit cycle, and a loose coupling shows up nowhere else. It reads only what the solver wrote and takes every constant from a case file.

| Option | Default | What it does |
|---|---|---|
| `case` | required | The case with the body released. |
| `--fixed FIXED` |  | The same mesh with the body bolted still. |
| `--diameter DIAMETER` |  | Body diameter, m; read from the case when not given. |
| `--u U` |  | Free-stream speed, m/s; read from the case when not given. |
| `--aref AREF` |  | Reference area; read from the case. |
| `--rho RHO` |  | Fluid density; read from the case. |
| `--mass MASS` |  | Body mass; read from `dynamicMeshDict`. |
| `--stiffness STIFFNESS` |  | Spring stiffness; read from `dynamicMeshDict`. |
| `--cycles CYCLES` | `8` | Whole displacement cycles to measure over. |
| `--st-cycles ST_CYCLES` | `7` | Whole lift cycles for the fixed case's Strouhal number. |
| `--energy-cycles ENERGY_CYCLES` | `6` | Whole cycles in the energy audit. |
| `--body-fo BODY_FO` | `bodyState` | The sixDoFRigidBodyState function object's name. |
| `--out OUT` |  | Write a PNG of displacement, forces and work here. |
| `--json` |  | The same facts as JSON. |

```bash
python3 /work/.toolbox/viv.py released --fixed fixed --out viv.png
```

The amplitude is printed and not graded. **Needs** numpy, matplotlib for `--out`. **Exit code** 0, or 2 when the case cannot be read.

## grid.py

The same quantity on two or more meshes as a number with a discretisation error bar: refinement ratios, the observed order, the Richardson-extrapolated value and the Grid Convergence Index. Unequal refinement ratios are solved properly, oscillatory convergence is reported as such with no index, and an implausible observed order is printed and not used.

| Option | Default | What it does |
|---|---|---|
| `cases` |  | Two or more case directories, in any order. |
| `--quantity [SERIES:]COLUMN` |  | The column in postProcessing/*.dat, optionally qualified by its series: Cd, or torqueOuter/moment.dat:viscous_z where one column name appears in more than one series. |
| `--tail TAIL` | `1` | Average the last n rows of the series. |
| `--grid CELLS:VALUE` |  | An explicit (cell count, value) pair; repeat it. |
| `--spacing H:VALUE` |  | An explicit (representative spacing, value) pair; repeat it. |
| `--dim {2,3,auto}` |  | 2 or 3 for h ~ N**(-1/2) or N**(-1/3); auto reads it off each case's empty patches. |
| `--formal-order FORMAL_ORDER` | `2.0` | The schemes' formal order. |
| `--safety-factor SAFETY_FACTOR` |  | Roache's Fs (default 1.25 for three grids, 3 for two). |
| `--json JSON` |  | Write the same facts as JSON. |
| `--png PNG` |  | Value against h with the error bar. |

```bash
python3 /work/.toolbox/grid.py coarse medium fine --quantity Cd --dim auto --png gci.png
python3 /work/.toolbox/grid.py --spacing 1:0.97050 --spacing 2:0.96854 --spacing 4:0.96178
```

The second command is NASA Glenn's published worked example, and prints:

```
  convergence           monotone
  observed order p      1.786170
  extrapolated value    0.97130033 (Richardson, h -> 0)
  GCI on the fine grid   0.103083%
  safety factor Fs      1.25 (the default for this many grids)
## the answer
  value = 0.9705 +/- 0.001000 on h=1
```

Cell counts come from a `checkMesh` log or the mesh's own `owner` header. **Needs** the standard library and numpy through its siblings; matplotlib for `--png`. **Exit code** 0. See [mesh independence](https://tryreynolds.com/docs/guides/mesh-independence.md).

## verify.py

Whether a finished case has the evidence an answer needs, judged from its files and from no picture. [`openreynolds verify`](https://tryreynolds.com/docs/cli/verify.md) runs this script.

```bash
python3 verify.py FINE [MEDIUM COARSE ...] --quantity Cd
python3 verify.py FINE MEDIUM COARSE --quantity Cd --reference 1.39 --within 5
python3 verify.py CASE --quantity Cd --require solution,mesh,settled
```

| Option | Default | What it does |
|---|---|---|
| `cases` | required | The case, then the other meshes of its grid study. |
| `--quantity NAME` | none | The column in `postProcessing` the answer is read from, as `grid.py` takes it. |
| `--reference VALUE` | none | A published value of the quantity. |
| `--within PCT` | `5` | How close to `--reference`. |
| `--require a,b` | all of them | The checks that must pass: `solution`, `mesh`, `walls`, `conservation`, `settled`, `grid`, and `reference` when one is given. |
| `--json FILE` | none | Write the record there as well. |

It exits `0` when every required check passed, `1` when one did not or was not done, and `2` when a case could not be read. It needs numpy and matplotlib, and no OpenFOAM. The checks and their limits are on the [command's page](https://tryreynolds.com/docs/cli/verify.md).

## explain.py

What a finished case's numbers mean, in sentences, with whatever would make them wrong first. It measures nothing itself: convergence is `log_digest.py`'s, y+ is `wall.py`'s, the mesh verdict is `mesh_quality.py`'s and the coefficients are `results.py`'s.

| Option | Default | What it does |
|---|---|---|
| `case` | required | The case directory. |
| `--log LOG` |  | The solver log, where it is not in the case directory. |
| `--json JSON_OUT` |  | Also write the reading as JSON. |

```
  read this first
    !! no time directory but 0: every field here is the initial condition, whatever a
      picture of it looks like  [the case]
     ? residuals: still falling (Ux 5.0e-05, Uy 6.0e-05, p 3.1e-05)  [log.simpleFoam]
  so: do not quote these numbers
```

Its strongest positive line is "nothing here contradicts them". **Needs** numpy and matplotlib through its siblings. **Exit code** 0.

## acoustics.py

A pressure history as decibels against frequency, one-third-octave bands, and a `.wav`. The unit is the trap: an incompressible `p` is pressure over density, so a level taken from it as if it were pascals is 1.76 dB out in air and 60 dB out in water. The convention is read from the field's dimensions, and a kinematic field with no density is refused. A steady run has no time axis and is refused.

| Option | Default | What it does |
|---|---|---|
| `source` |  | A case directory (its pressure history is found) or a single probes/.dat/CSV file. |
| `--tone [HZ]` |  | Write a tone of this frequency (default 1000) at 1 Pa, measure it, and print the level beside the closed form it has to equal; needs no case and no file. |
| `--column COLUMN` |  | Which column holds the pressure (default: the first after the time column). |
| `--list` |  | Print the pressure series and columns available, and stop. |
| `--where` |  | Print what acoustic tooling is on this instance and in this case, and stop. |
| `--density DENSITY` |  | Density in kg/m3, for a case whose p is kinematic (p/rho in m2/s2); nothing is assumed without it. |
| `--pa` |  | The column is already static pressure in pascals. |
| `--from START` |  | Ignore rows before this time, for a startup transient. |
| `--segments SEGMENTS` | `4` | Welch segments to average (default 4); fewer segments buys frequency resolution with variance. |
| `--min-band MIN_BAND` |  | The lowest one-third-octave band wanted, as its nominal centre in Hz; a record too short for it says so. |
| `--wav WAV` |  | Write the predicted sound here (relative to where you run). |
| `--rate RATE` | `44100` | Audio frames per second in the .wav. |
| `--stretch STRETCH` | `1.0` | Audio seconds per physical second (default 1.0, real time); 8 plays it eight times slower and divides every frequency by eight. |
| `--png PNG` |  | Write the spectrum and band figure here. |
| `--json JSON` |  | Write the findings here as JSON. |

```bash
python3 /work/.toolbox/acoustics.py . --density 1.225 --png spl.png --wav noise.wav
python3 /work/.toolbox/acoustics.py --tone 1000
```

```
tone: 1 Pa at 1000 Hz, 44100 Hz for 1 s
  SPL exact    90.9691 dB re 2e-05 Pa
  SPL measured 90.9691 dB   (-0.0000 dB)
```

It is a near-field level, with no far-field propagation, and the output says so. **Needs** numpy and matplotlib. **Exit code** 0; `--tone` is a self-test and exits non-zero on disagreement. See [acoustics](https://tryreynolds.com/docs/guides/acoustics.md).

## wind_comfort.py

A wind rose from a `site.json`, and a pedestrian comfort map from one solved case per wind direction. The map is the fraction of the year in which the wind at a point passes a threshold, summed over the site's own 1 m/s histogram per sector. The threshold and the class bands are yours to pass, because the standards that define them could not be read.

| Option | Default | What it does |
|---|---|---|
| `--site SITE` | `site.json` | The file `openreynolds site` wrote. Default site.json. |
| `--check` |  | Compose a year whose answer is known and print it beside the closed form; needs no site file and no runs. |
| `--rose ROSE` |  | Draw the wind rose here. |
| `--run BEARING=CASE` |  | A solved case and the bearing the wind blew FROM in it. Repeat once per direction. |
| `--threshold THRESHOLD` |  | The speed whose exceedance is measured, m/s at pedestrian height. No default: see --help's note. |
| `--pedestrian-z PEDESTRIAN_Z` |  | The height the map is sampled at, metres. No default: 1.75 m and 1.5 m are both in circulation and the standards that settle it could not be read here. |
| `--bands BANDS` |  | Comma-separated class boundaries in percent of hours, e.g. 2.5,5,10,20; yours to supply. |
| `--uref UREF` |  | Override the reference speed read from each case's 0/include/ABLConditions, m/s at 10 m. |
| `--grid GRID` | `120` | Points per side of the sampling grid. |
| `--bounds XMIN YMIN XMAX YMAX` |  | Sample this box instead of the first case's own extent. |
| `--time TIME` |  | Write time to read. Default latest. |
| `--map MAP` |  | Draw the exceedance map here. |
| `--csv CSV` |  | Write the grid as x,y,percent here. |
| `--json` |  | Print the findings as JSON. |

```bash
python3 /work/.toolbox/wind_comfort.py --site site.json --rose rose.png
python3 /work/.toolbox/wind_comfort.py --site site.json --run 240=case240 --run 270=case270 --threshold 5 --pedestrian-z 1.75 --map comfort.png
python3 /work/.toolbox/wind_comfort.py --check
```

```
  K = 1: exceedance 0.200000000000, exact 0.200000000000 (+0.00e+00), uniform across the grid to 0.00e+00
  K = 2: exceedance 0.700000000000, exact 0.700000000000 (+0.00e+00), uniform across the grid to 0.00e+00
```

A partial set of directions is reported as the lower bound it is. **Needs** numpy, matplotlib for figures, pyvista to read cases. **Exit code** 0, 2 when the inputs are refused, 1 when `--check` disagrees. See [wind comfort](https://tryreynolds.com/docs/guides/wind-comfort.md).

## felix_results.py

A [Felix](https://tryreynolds.com/docs/solvers/felix.md) case's `output/` read back. Subcommands, each taking the case directory (the one holding `case.yaml`):

### summary

How the run ended, the health counters that are not zero, the probes' last values.

| Option | Default | What it does |
|---|---|---|
| `case` | required | The case directory (holding case.yaml). |

### fields

| Option | Default | What it does |
|---|---|---|
| `case` | required | The case directory (holding case.yaml). |
| `--file FILE` | `solution` | `solution`, `latest`, a step number, a snapshot name or a path. |

### slice

| Option | Default | What it does |
|---|---|---|
| `case` | required | The case directory (holding case.yaml). |
| `--field FIELD` | `velocity` | The point array to read. |
| `--component COMPONENT` |  | X, y, z or mag (vectors). |
| `--normal {x,y,z}` | `z` | Slice normal. |
| `--origin ORIGIN ORIGIN ORIGIN` |  | A point on the slice plane. |
| `--file FILE` | `solution` | `solution`, `latest`, a step number, a snapshot name or a path. |
| `-o, --output OUTPUT` |  | Where the picture goes. |

### line

| Option | Default | What it does |
|---|---|---|
| `case` | required | The case directory (holding case.yaml). |
| `--start START START START` | required | First end of the line, x y z. |
| `--end END END END` | required | Second end of the line, x y z. |
| `--field FIELD` | `velocity` | The point array to read. |
| `--component COMPONENT` |  | X, y, z or mag, for a vector. |
| `-n N` | `101` | Points on the line. |
| `--file FILE` | `solution` | `solution`, `latest`, a step number, a snapshot name or a path. |
| `--csv CSV` |  | Write the samples here. |
| `-o, --output OUTPUT` |  | Where the picture goes. |

### probes

| Option | Default | What it does |
|---|---|---|
| `case` | required | The case directory (holding case.yaml). |
| `-o, --output OUTPUT` |  | Where the picture goes. |

### forces

| Option | Default | What it does |
|---|---|---|
| `case` | required | The case directory (holding case.yaml). |
| `--csv CSV` |  | The CSV, if not where io.yaml says. |
| `--uref UREF` |  | Reference speed for coefficients. |
| `--aref AREF` |  | Reference area for coefficients. |
| `-o, --output OUTPUT` |  | Where the picture goes. |

### log

| Option | Default | What it does |
|---|---|---|
| `log` | required | The Felix log. |
| `-o, --output OUTPUT` |  | Where the picture goes. |

### all

| Option | Default | What it does |
|---|---|---|
| `case` | required | The case directory (holding case.yaml). |
| `--out OUT` |  | Where the standard set goes. |
| `--normal {x,y,z}` | `z` | Slice normal. |
| `--file FILE` | `solution` | `solution`, `latest`, a step number, a snapshot name or a path. |

```bash
python3 /work/.toolbox/felix_results.py summary /work/cavity
python3 /work/.toolbox/felix_results.py line /work/cavity --start 0.5 0 0.5 --end 0.5 1 0.5 --csv u.csv
python3 /work/.toolbox/felix_results.py forces /work/cyl --uref 0.2 --aref 0.002 -o forces.png
```

**Needs** numpy and matplotlib, and pyvista for `fields`, `slice` and `line`. **Exit code** 0, or 1 when something it needs is missing.

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