---
title: "Tutorial: circular Couette flow across a sliding AMI interface"
url: "https://tryreynolds.com/docs/tutorials/sliding-couette"
description: "Cut a sliding interface through a concentric-cylinder flow whose answer is exact, grade velocity and torque, and find the check that fails while every usual check passes: the two wall torques."
---

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

OpenFOAM cases

# A sliding mesh against algebra

Cut a sliding interface through a concentric-cylinder flow whose answer is exact, grade velocity and torque, and find the check that fails while every usual check passes: the two wall torques.

Before a rotor goes inside a spinning zone, the spinning zone has to be trusted. Circular Couette flow has an exact answer, so you will drop an interface into the middle of it and see what it costs.

**You will learn** to test an interface by conservation rather than by its weights, to run a control without it, and to state a moving-mesh result at an `omega dt` rather than a cell count.

**You need** the agent for a fresh solve. The grader runs on a laptop on the recorded runs that ship in the repository, in about a second.

## The physics

Cylinders of radius 20 mm and 40 mm, the inner turning at 2 rad/s, in a light oil with `nu = 1e-4 m2/s` and `rho = 900 kg/m3`. While the flow is circular,

`u_theta(r) = A r + B / r`

with `A` and `B` from the two wall speeds, and the torque per unit length on the inner cylinder is

`4 pi mu omega r_i^2 r_o^2 / (r_o^2 - r_i^2)` = 1.20637e-3 N m/m.

Two more exact statements:

- the torques on the two walls are **equal and opposite**, by conservation of angular momentum,
- the flow stays circular while the Taylor number is below about 1708. Here it is 64.

## Steps

### Grade the recorded runs on your laptop

```bash
python benchmarks/moving_mesh/grade.py couette tests/data/moving_mesh/couette \
  --control tests/data/moving_mesh/couette_conformal
```

Run here, with the columns closed up and the empty verdicts left out:

```
Taylor number (Re_i^2 d/r_i)                             64  < 1708                  PASS
inner torque per length [N m/m]                 0.001211542  exact 1.2063715780e-03
inner torque error [%]                            0.4286122  |err| <= 1              PASS
outer torque per length [N m/m]                  0.00120051
inner/outer imbalance [% of inner]               -0.9105709  |x| <= 0.1 (exact 0)    FAIL
AMI sum(weights) min..max over 8152 lines      1 .. 1.000043  |w-1| <= 0.01           PASS
control inner/outer imbalance [% of inner]       0.01074638
control inner torque error [%]                  -0.03956475
imbalance, graded case / control                   84.73279
```

It exits 1, because one check failed. That failure is recorded on purpose.

### Run it fresh

```bash
openreynolds -p "$(cat benchmarks/moving_mesh/couette_ami.txt)"
openreynolds pull --study <study-id>
python benchmarks/moving_mesh/grade.py couette <case>
```

The prompt asks the agent to compute the Taylor number and say whether it agrees before trusting anything else. The published run took 27 minutes on 16 cores, for 12,000 cells run twice.

### Run the control

Ask for the same annulus meshed conformally, without the interface:

```
Build the same annulus as one continuous ring with the same cell count and time step, and no interface. Solve it and give me the same two wall torques.
```

A control that does not share the interface is what turns a measurement into a result.

## Read the result

![Left: every one of the 12,000 cells against the exact profile; at this scale they are one curve. Right: the same data as an error, magnified 400 times, never leaving 0.4% of the wall speed. It turns at r = 30 mm, the interface.](https://tryreynolds.com/assets/ami-profile-D7JlMGd_.png)

Left: every one of the 12,000 cells against the exact profile; at this scale they are one curve. Right: the same data as an error, magnified 400 times, never leaving 0.4% of the wall speed. It turns at r = 30 mm, the interface.

The velocity is within 0.16% RMS of exact and the inner torque within 0.43%. By the usual checks this case passes: the AMI weights stay within 43 parts per million of 1 over 8,152 lines.

Then the two wall torques disagree by 0.911%. The same annulus without the interface disagrees by 0.011%, **85 times smaller**. Conservation of angular momentum makes zero the exact answer, so this is error from the interface and nothing else.

![Error against cell size, with the time step scaled along. The conformal control (blue) follows second order. The sliding interface (red) follows first order.](https://tryreynolds.com/assets/ami-convergence-CuBFg1bS.png)

Error against cell size, with the time step scaled along. The conformal control (blue) follows second order. The sliding interface (red) follows first order.

The observed order is 0.79 with the interface against 1.93 without. Holding the time step and using four times the cells moved the torque error from 0.2174% to 0.2205%, so the error depends on the **angle the rotor slides per step**, `omega dt`. Grade a rerun at a stated `omega dt`, not at a stated cell count.

## Check it

- **Taylor number first.** A run above onset has vortices and the closed form does not apply.
- **The imbalance.** It is free and needs no reference.
- **The control.** Without it you cannot tell the interface from the mesh.

## Try next

1. Halve the time step at a fixed mesh and read whether the imbalance halves.
2. Run a third mesh and use [`grid.py`](https://tryreynolds.com/docs/tutorials/mesh-convergence.md) on the torque.
3. Read [the moving mesh page](https://tryreynolds.com/docs/moving-mesh.md) and the [published study](https://tryreynolds.com/studies/couette-sliding-interface.md).

## When it goes wrong

### cannot tell which forces function object is the inner and which the outer wall

The grader looks for two `forces` objects. Name them with `--inner-fo` and `--outer-fo`.

### The torque is right but the profile has a kink

The kink at `r = 30 mm` is what to look for in a first picture; the published run's step in velocity at the seam was 0.005% of the wall speed, which is not visible at a plot scale.

### The run diverges when the mesh is halved

Halving the cells doubles the cell diffusion number at a fixed time step and needs more pressure correctors. At two correctors the first attempt died. The converged study used four.

## Next

[A cylinder on a spring](https://tryreynolds.com/docs/tutorials/viv-cylinder.md).

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