---
title: "A study end to end: from a question to a case, a solve and a report"
url: "https://tryreynolds.com/docs/study-lifecycle"
description: "What happens between the sentence you type and the figures you get back: the briefing, the classification, geometry, the case files, the checks before the solver starts, the watched solve, reconstruction, the measurements, the pictures and the record that lets a study be resumed weeks later."
---

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

# A study end to end

Nothing here is a fixed pipeline, and the order changes with the problem. What follows is the work a study actually contains, in the order it usually happens, so you know what to look for while it is happening and what you are holding when it is done.

## What you give it

An engineering question in engineering terms. The geometry, the fluid, the speeds or flow rates and temperatures that matter, what happens physically at each surface, and what you want measured at the end. Units of the job, not of a solver.

> Air through this manifold at 0.08 kg/s, inlet at 20 C, walls adiabatic. I want the pressure drop inlet to outlet and how the flow splits between the four outlets, and a picture of where it separates.

That is a complete brief. It names the quantity to report, which is the part people leave out and the part that most changes what the agent does. Naming a reference you want to be compared against is the other high-value sentence: a published value, a measurement of your own, a closed form. Where a comparison is part of the question, it becomes part of the answer rather than something somebody does to the answer afterwards. [Quickstart](https://tryreynolds.com/docs/quickstart.md) has more examples.

## The briefing, and what it is not

The agent starts with a short briefing: where the workspace is, what is installed, where the toolbox lives, and your own standing preferences relayed verbatim. What the briefing does not contain is a method. There is no checklist, no required order, no stage gate and no grading of the model's output, and the test suite fails the build if imperative language appears in the system prompt or the briefing. That is the single rule the harness keeps, and [How it works](https://tryreynolds.com/docs/how-it-works.md) explains why.

Preferences are the lever you have. "Render and check the mesh before any solver time is spent", "always give me a figure", "2D unless I say otherwise": these are passed through in your words. If you want approvals rather than preferences, [modes](https://tryreynolds.com/docs/modes.md) hold the compute instead.

## Reading the problem

Early on the agent establishes what kind of problem this is, from your description and from anything already in the directory. Two toolbox scripts help: one classifies a case from its own signals and prints the evidence for the reading, and one lists the solvers that can answer that class along with whether each is on this machine. [Choosing a solver](https://tryreynolds.com/docs/choosing-a-solver.md) is that machinery in full.

This is also where the dimensionless numbers get worked out, because they decide everything downstream: a Reynolds number sets whether turbulence is modelled at all, a Mach number decides pressure-based against density-based, a Richardson number says whether buoyancy matters, a Stokes number says whether particles follow the flow.

## Geometry

Geometry either arrives or is built. A STEP, IGES, STL or OBJ file you push up is read as it is; a shape described in words is built on the instance with a parametric CAD kernel or from primitives and booleans. Either way it is looked at before it is meshed: four fixed views with every facet edge drawn, the extents, the open and non-manifold edges, the connected bodies and the face-area range. A surface with a hole in it meshes into something that snaps to nothing in particular, and that is thirty seconds that saves an afternoon. [Geometry and meshing](https://tryreynolds.com/docs/geometry-and-meshing.md) is the whole story.

## The case files

With a mesh in place the case gets dressed: `0/` for the initial and boundary fields, `constant/` for the properties, `system/` for the control, schemes and solution dictionaries. The toolbox's case writer sizes all of it to the mesh in front of it: it reads the patch names and types out of `constant/polyMesh/boundary`, the cell count, the bounding box and the smallest cell out of `checkMesh`, and it raises rather than guesses when a patch has no described role. Compressible cases have their own writer, because pressure in pascals, a temperature field, thermophysical properties and an acoustic time step make them a different case in almost every file.

What comes out is an ordinary OpenFOAM case. You can read it, edit it, run it on your own cluster, or hand it to a colleague who has never heard of this product.

## Before the solver starts

The cheap questions get asked before the expensive run. One script asks all of them and answers each as a finding with what was measured, what it means and the repair if there is one: patch names against the fields that exist, the empty-patch treatment on a case that is meant to be 2D, the STL scale, the Reynolds number against the viscosity actually in the dictionary, the predicted cell count, `checkMesh`, a single-iteration probe of the solver, the Courant number the first step implies, and the disk there is.

```
python3 /work/.toolbox/preflight.py /work/case      # every cheap question, each as a finding
python3 /work/.toolbox/cells_estimate.py /work/case # what the mesh will cost before it is built
python3 /work/.toolbox/disk.py report               # what is filling the workspace
```

The one-iteration probe is the highest-value item on that list. It costs a few seconds and it is the difference between finding out that a boundary condition is wrong now and finding out after an hour of solving.

## The solve, and watching it

A solve is launched as a detached job, so it survives the call that started it and an hours-long run is not held open by a request. Where it is worth running in parallel, the mesh is decomposed first, with the rank count chosen against the cores the machine actually has rather than the cores the host reports.

While it runs, the job is polled in plain code and the interface shows elapsed time, log size, solver time, the residuals and the Courant number read straight out of the log. Now and then the model is woken with those same facts and says what it makes of them. The wake carries numbers, never advice.

The log digest is the instrument for reading a run: a residual plot, a last-iteration table, and the continuity and bounding summary, with its first lines saying how the run ended and what the residuals were doing when it did. A plateau under a steady solver on a flow that is actually unsteady is a diagnosis rather than a failure, and it is reported in those words.

```
python3 /work/.toolbox/log_digest.py log.simpleFoam    # residuals, how it ended, what they were doing
python3 /work/.toolbox/progress_report.py /work/case   # phase, time reached, pace, pictures that exist
python3 /work/.toolbox/locate.py /work/case            # where a diverging run went wrong
```

When a run does diverge, the diagnosis is a measurement too: the last written fields with their extremes, the cell and the coordinates where the extreme sits, which patch owns it and how far it is from the boundary, plus the field whose residual degraded first and when. A value that does not move when the mesh changes is set by the boundary specification rather than by the grid, and the same scan can be run on a second mesh to establish which of those it is.

## Bringing the fields back

A parallel run writes one directory per rank, and putting the fields back together is a stage that touches an enormous number of small files. The case directory lives on a network filesystem, so that stage pays for every one of them across the wire. The toolbox stages it to container-local disk instead: measured at 5m23s on the volume against 27s on local disk for one case with 160 writes. Results are copied back on a timer, so the durable copy is never more than a checkpoint behind, and an interrupted run resumes from the newest time that is whole rather than from the newest time that exists.

```
python3 /work/.toolbox/scratch.py reconstruct /work/case --latest
python3 /work/.toolbox/scratch.py run /work/case -- simpleFoam
python3 /work/.toolbox/scratch.py resume /work/case     # the newest time that is whole
```

## Measuring the answer

A solved field is not yet an answer. The answer is a number with the thing it was compared against beside it, and the toolbox has an instrument per question: a field sampled along a line or at points, the flux and pressure across every patch the mesh declares, the heat rate per patch in watts, the y+ the run actually reached, where the flow separated and came back, how fast a force history oscillates, and the same quantity on two or more meshes as a number with an error bar. [Results](https://tryreynolds.com/docs/results.md) covers all of them.

## The figures

Pictures are made on the instance, next to the data, because moving gigabytes home to make a hundred-kilobyte image is the wrong way round. Fixed cameras mean two runs are a visual diff; a frame per write time plus an encoder on the instance means an animation comes back as a finished file. The figures travel home while the session runs, and the agent reads them back, which is why the model has to be one that can see.

## The write-up

What a study reports is a set of numbers, each with where it came from, what it was compared against, and what would make it wrong. On top of that, a PDF of the whole study with a cover, the figures and a methods section read out of the dictionaries themselves, or LaTeX and Word from the same material if the document is going somewhere else. The cover's numbers are matched against the value stamped into each figure's own bytes, so a figure and the prose beside it cannot drift apart unnoticed.

## The record that survives the session

Every study keeps two plain files on the volume: a manifest of what has been produced and what each artifact is for, and a phase table saying how far the study got. They are the reason a session that ends mid-solve leaves an answer behind for the next one, and the reason a study is resumable by id weeks later with its transcript, its case and its mesh all still there.

```
openreynolds studies                        # what has run
openreynolds --study 20260829-054504-2920   # carry on with that one
openreynolds files                          # what is on the instance, and what came down
```

There is also a searchable corpus of the tutorial cases and your own finished studies: what each one set a scheme to, which cases are near this regime, and which studies hit something like this before. Every hit says which tier it came from and why it matched. [The workspace](https://tryreynolds.com/docs/workspace.md) has what lives where.

## The ladder, when a case is hard

For a case that is expensive or unfamiliar, the best first run is a smaller one whose answer is already known. The toolbox builds that ladder out of the case itself: the rungs in order, what each one adds, what to measure on it, the answer that is known in advance and where that answer comes from. A 2D section before a 3D wing, a fixed cylinder before a released one, a coarse mesh whose only job is to prove the boundary conditions are right.

It is the same instinct as the published studies' habit of running a control: the cheap wrong case run beside the real one is what turns a plausible number into a measured one. Several of the studies on this site are built that way, and [cases you can run](https://tryreynolds.com/docs/tutorials.md) is the ladder's bottom rung, available to anybody with Python.

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