---
title: "Tutorial: vortex-induced vibration of a cylinder at Re 100"
url: "https://tryreynolds.com/docs/tutorials/viv-cylinder"
description: "Run a cylinder bolted still, then on a spring, on a morphing mesh. Use the Strouhal number as a gate and an energy audit that is exactly zero to find that a clean limit cycle was 13 per cent too wide."
---

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

OpenFOAM cases

# A cylinder on a spring

Run a cylinder bolted still, then on a spring, on a morphing mesh. Use the Strouhal number as a gate and an energy audit that is exactly zero to find that a clean limit cycle was 13 per cent too wide.

A cylinder on a spring in a stream vibrates when its natural frequency meets its shedding frequency. You will use the fixed cylinder to test the mesh, release it, and find a wrong answer that passed every usual check.

**You will learn** to gate one solve on another, to use an energy audit with no reference in it, and to read a short frequency record without fooling yourself.

**You need** the agent for a fresh run. The published run took two hours and twenty-three minutes on 51,150 cells. The grader runs on a laptop on the recorded cases.

## The physics

A cylinder 10 mm across in water at 0.01 m/s, so `Re = 100` on the diameter. Mass ratio 10 on displaced mass, no structural damping, spring chosen so the reduced velocity `U / (f_n D)` is 5, close to `1/St`.

- **Fixed cylinder.** Williamson's shedding frequency is `St = 0.164` at this Reynolds number; published correlations span 0.1643 to 0.1671.
- **Released cylinder.** With zero damping the fluid does **exactly zero net work** per cycle in a settled state. There is nothing to compare with.
- **Added mass.** A cylinder's added mass is its displaced mass, so in water it rings at `sqrt(m*/(m*+1))` = 0.953 of its natural frequency in a vacuum.

## Steps

### Write the two cases

The template needs no OpenFOAM to write its files:

```bash
python openreynolds/toolbox/templates/viv_cylinder.py --no-mesh
```

Run here:

```
Re 100 on D = 0.01 m  ->  U = 0.01 m/s
displaced fluid mass 7.853982e-04 kg, body mass 7.853982e-03 kg (m* 10)
f_n = 0.2 Hz  ->  k = 1.240251e-02 N/m, T_n = 5 s
f_n with the added mass = 0.190693 Hz   (a cylinder's added mass is its own displaced mass, Lamb art. 68)
expected fixed shedding f = 0.164 U/D = 0.164 Hz (T = 6.09756 s)
blockage D / H = 2.50%, cells 51150
wrote .../fixed
wrote .../released

next: solve fixed/ and check the Strouhal number before solving released/,
```

`fixed/` is the same mesh with the cylinder bolted. `released/` uses `dynamicMotionSolverFvMesh` with a spring.

### Solve the fixed one and gate on it

```bash
openreynolds -p "$(cat benchmarks/moving_mesh/viv.txt)"
```

The prompt asks for the fixed result first and says a mesh that does not land near 0.164 is not ready for a moving body.

### Read the record with spectra.py

```bash
python openreynolds/toolbox/spectra.py tests/data/moving_mesh/viv_fixed \
  --length 0.01 --speed 0.01 --column Cl --strouhal 0.164 --segments 1
```

Run here on the recorded case, trimmed:

```
  bin width         0.02759 Hz
  dominant          0.166199 Hz (bin 0.165517 Hz)
shedding: periodic -- the peak stands 1.039e+10x over the spectrum's median, above 10
strouhal: St = 0.166199  (f = 0.166199, L = 0.01, U = 0.01)
```

With the default of four segments the same record puts the peak in bin 2 of 146 and the script declines to call it a Strouhal number, printing 0.167666 as a division and not a measurement. Six cycles are too few to split four ways. Use one or two segments on a short record.

### Grade the recorded released cases

```bash
python benchmarks/moving_mesh/grade.py viv tests/data/moving_mesh/viv_fixed tests/data/moving_mesh/viv_loose
python benchmarks/moving_mesh/grade.py viv tests/data/moving_mesh/viv_fixed tests/data/moving_mesh/viv_tight
python openreynolds/toolbox/viv.py tests/data/moving_mesh/viv_tight --fixed tests/data/moving_mesh/viv_fixed
```

Run here, one column per case:

|   | loose coupling | tight coupling |
|---|---|---|
| Strouhal, fixed | 0.1661407, PASS | 0.1661407, PASS |
| A/D over 8 cycles | 0.6401929 | 0.5670282 |
| frequency | 0.1952112 Hz | 0.1939371 Hz |
| frequency over the natural one | 0.976 | 0.970 |
| lock-in | PASS | PASS |
| net fluid work per cycle | -10.37% to -10.09%, **FAIL** | +0.04% to +0.18%, PASS |
| exit status | 1 | 0 |

## Read the result

![The check that rejected the first answer. Top: the body's mechanical energy over fifteen cycles, flat. Bottom: that energy as a difference (blue) against the work the recorded fluid force did (orange). With zero damping the two must agree, and they do not.](https://tryreynolds.com/assets/viv-energy-YxzFQYrC.png)

The check that rejected the first answer. Top: the body's mechanical energy over fifteen cycles, flat. Bottom: that energy as a difference (blue) against the work the recorded fluid force did (orange). With zero damping the two must agree, and they do not.

The loose run looked clean: stationary, sinusoidal, spectrally sharp, locked in, and at A/D = 0.640. The energy audit says the fluid took out 10% of the body's energy each cycle, which nothing physical can do. The scheme, not the flow, was holding the amplitude. Coupled tightly inside the PIMPLE loop, the audit closes and A/D is 0.567, **13% lower**.

![The whole run. Top: the body ringing up to A/D = 0.640, then the tight continuation decaying to 0.567. Below: the final limit cycle, the fixed-cylinder stage and the lift spectrum.](https://tryreynolds.com/assets/viv-response-zDHRp2rc.png)

The whole run. Top: the body ringing up to A/D = 0.640, then the tight continuation decaying to 0.567. Below: the final limit cycle, the fixed-cylinder stage and the lift spectrum.

`A/D` carries no verdict here. The nearest published amplitudes are on different bodies: Menon and Mittal's 0.56, read off a figure, on a mass ratio defined differently, and a peak of 0.58 of Placzek and others on lighter cylinders. Close, and not a validation.

## Check it

- **The gate.** Strouhal, fixed, inside 2% of 0.164.
- **The audit.** Net work per cycle within 1% of the body's energy.
- **The mesh at full excursion.** Run `checkMesh` there and not only at the start. The published run's worst cell was compressed 28.7% with no negative volumes.
- **The published study** is [here](https://tryreynolds.com/studies/vortex-induced-vibration.md).

## Try next

1. Sweep the reduced velocity with `--ustar 4`, `5`, `6` and find the lock-in edge.
2. Free the cylinder in x as well with `--dof 2`.
3. Change `--mstar` to 2 and read how far the added-mass correction shifts the frequency.

## When it goes wrong

### The energy audit fails

Tighten the coupling: `moveMeshOuterCorrectors yes` and `accelerationRelaxation 1.0`, which the template ships. A negative net work means the scheme is damping the motion.

### St is 1 to 3% above 0.164

Blockage. The cylinder is 2.5% of the channel, which raises the shedding frequency. The published correlations also disagree by more than that error.

### My amplitude is nowhere near 0.57

Check the mass ratio definition first. One paper defines it as `2m / (rho D^2)`; its 10 is 6.37 on displaced mass.

## Next

[Vortex shedding from a fixed cylinder](https://tryreynolds.com/docs/tutorials/vortex-shedding.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.
