---
title: "Magnetohydrodynamics, lattice Boltzmann, rotating machinery, sound and wind"
url: "https://tryreynolds.com/docs/solvers-special"
description: "mhdFoam for liquid metal in a magnetic field, a lattice Boltzmann solver for geometry that is a mask rather than a mesh, frozen-rotor and sliding-interface rotation, moving bodies, acoustics from a pressure history, and pedestrian wind comfort over a year of weather."
---

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

# Fields, rotation, sound and wind

The families that answer a question the ordinary flow solvers cannot: a conducting fluid in a field, a voxelised geometry, a rotor, a body the flow moves, a noise level, and a year of wind.

## Magnetohydrodynamics

**What it is.** `mhdFoam` is transient and incompressible, with the Lorentz force on the momentum equation and the magnetic field transported beside the velocity.

**When it is the one.** A conducting liquid in an imposed magnetic field where the field is part of the answer rather than a boundary condition: a liquid-metal duct, an electromagnetic pump, a Hartmann layer, a metallurgical melt. The Hartmann number sets the wall layer thickness, and that layer is what fixes the cost of the mesh, so the template chooses its cell height against the layer rather than grading into it blindly.

**What it is held to.** A closed form, which is why this is the magnetohydrodynamics case here rather than a liquid-metal experiment: fully developed Hartmann flow has a profile that is a constant minus a cosh, exactly. Graded on every commit at 0.001360 RMS from its own closed form, against 0.175542 from the wrong one, a separation of 129. The grader also runs the same profile against five wrong ones and requires that they fail, because a number that only agrees with itself is not evidence.

```
python3 mhd_hartmann.py        # channel, blockMesh, a complete mhdFoam case, the exact profile
mhdFoam
postProcess -func sample -latestTime     # the profile across the channel
```

Two things the template bakes in because they cost a run to learn: the permeability in that case's transport properties is a magnetic permeability in henries per metre and not a dynamic viscosity, and the case does not start without its magnetic pressure field. The published run is [two candidate answers, and a mesh study that tells them apart](https://tryreynolds.com/studies/hartmann-channel.md), at 3.4e-04 RMS from the exact profile against 0.176 from the no-field parabola.

![Velocity across a channel, flattened in the middle with steep layers at both walls, drawn against the exact Hartmann profile and against the no-field parabola for contrast](https://tryreynolds.com/assets/hartmann-profile-HDC6f-Kf.png)

The field flattens the core and squeezes the shear into thin wall layers. The exact profile and the parabola the same channel would have without a field are both drawn, which is what makes the agreement mean something.

## Lattice Boltzmann

**What it is.** `lbm.py` is a D2Q9 two-relaxation-time lattice Boltzmann solver in numpy, with nothing compiled. It streams and collides over a boolean array, so its geometry is a solid mask rather than a mesh.

**When it is the one.** The geometry is already a mask, or meshing it is the expensive part of the question: an awkward internal passage, a porous sample, a CT scan, a shape that arrived as voxels. No mesh generation, no patch naming, no `checkMesh`: a boolean array and a result. It is explicit, weakly compressible and second order, and it runs anywhere numpy does.

**What it is held to.** Two references, one exact and one published. Flow down a channel has an exact parabola, and it comes back to 5.17e-11 of the peak speed, with the single-relaxation-time scheme run alongside at 3.66e-3 as the control that makes the first number mean something. The lid-driven cavity at Reynolds 1000 is the most-measured flow in the field, and against Ghia's two published tables it comes back at 0.736% and 0.749% RMS on the two centrelines, inside the spread of the reference itself. Ghia's tables ship in the toolbox's `references/` directory with their citation and ordinate convention, so a run reads them rather than recalling them.

```
python benchmarks/lbm/grade.py poiseuille         # the exact parabola
python benchmarks/lbm/grade.py cavity --n 128      # Ghia 1982, Tables I and II
python3 /work/.toolbox/lbm.py --mask mask.npy --re 100
```

The published runs are [a result at the floor of what arithmetic can represent](https://tryreynolds.com/studies/flow-down-a-channel.md) and [the most measured flow there is](https://tryreynolds.com/studies/cavity-against-ghia.md).

![Velocity along the vertical and horizontal centrelines of a lid-driven cavity at Reynolds 1000, the solved curves passing through the published reference points](https://tryreynolds.com/assets/lbm-cavity-centrelines-BE7T8T5W.png)

The lid-driven cavity's two centrelines against Ghia's tables. The reference points are published numbers, and the toolbox now ships the table so a run reads it.

## Rotating machinery

There are two ways to turn a rotor, and they answer different questions. Both run on the ordinary incompressible and compressible solvers, so the choice is about the mesh treatment rather than about the solver.

### A frozen rotor

**What it is.** A multiple reference frame: the mesh never moves, and inside a named cell zone the momentum equation picks up the rotating-frame source terms with the flux taken relative to a frame turning at the rotor's rate. The blade stays an ordinary stationary no-slip wall.

**When it is the one.** A rotor in a uniform condition, where the steady answer is what you want: thrust, torque, shaft power, head, the pressure field around the blades. It is dramatically cheaper than turning a mesh through thousands of time steps, and for sizing work it is the right treatment.

**Worked example.** [Static thrust from a drone propeller](https://tryreynolds.com/studies/propeller-static-thrust.md), a two-bladed 0.254 m model at 4,014 rpm, came back at 0.957 N of thrust and 10.4 W of shaft power, with the forces flat to 0.02% over the final 200 iterations. Hover is the hardest condition to set up, because the standard far-field condition divides by a freestream speed that is exactly zero, and that study diagnosed the divide and replaced the condition with the right one.

**The template.** `rotating.py` writes a bladed mixer as a complete case: a vessel with a six-bladed impeller, two cell zones, the rotation rate given in radians per second against an editable rpm with the conversion stated in the case and in the output, and every dictionary a solver needs rather than a stub. The exact check it ships with needs no reference data: the torque on the impeller and the torque on the vessel wall must be equal and opposite.

```
python3 rotating.py            # vessel, impeller, two cell zones, MRFProperties
simpleFoam
postProcess -func 'forces' -latestTime   # torque on the impeller and on the wall
```

![Velocity magnitude in a bladed mixing vessel, fastest at the blade tips and decaying out towards the vessel wall](https://tryreynolds.com/assets/mixer-velocity-BHy9IMQ8.png)

A frozen-rotor mixer: one blade angle, solved steadily, with the rotating-frame source terms active inside the rotor zone.

### A mesh that slides

**What it is.** A real rotating mesh, with a sliding interface between the turning region and the static one.

**When it is the one.** The unsteadiness matters: blade passing, the wake a blade leaves behind it, interaction between a rotor and something downstream, noise. A frozen rotor holds one blade angle by construction, so anything periodic in blade passing is a question only a moving mesh answers.

**Worked example.** [A mesh that slides, checked against an answer that cannot be argued with](https://tryreynolds.com/studies/couette-sliding-interface.md): circular Couette flow between two cylinders has an exact solution, and the sliding-interface run landed velocity within 0.16% of it and torque within 0.43%. [Moving mesh](https://tryreynolds.com/docs/moving-mesh.md) has the benchmarks and how the interface is checked.

## A body the flow moves

A body on a spring, free to respond to the flow it sits in, is a two-way problem: the fluid moves the body, the body moves the mesh, and the mesh changes the fluid. OpenFOAM does this with a motion solver and a rigid body on a linear spring, and the toolbox ships the study as the two cases it actually is: one with the body bolted still, whose job is to establish the shedding frequency on that mesh, and one with it released.

**The check that needs no paper.** With zero structural damping nothing can dissipate energy, so the fluid does no net work on the body per cycle on a real limit cycle. That audit is a free, exact test of the coupling, and it is the one that catches a scheme that is advancing the mesh too loosely.

```
python3 viv_cylinder.py              # writes ./fixed and ./released off one O-grid
python3 viv_cylinder.py --dof 2      # free in x and y, isotropic spring
python3 /work/.toolbox/viv.py ./released   # amplitude, frequency, lock-in, energy balance
```

**What it reported.** The Strouhal number on the fixed mesh came in +1.10% of Williamson's fit, and the released run's net fluid work per cycle is zero to the precision of the audit. The published run is [a cylinder let go in its own wake](https://tryreynolds.com/studies/vortex-induced-vibration.md), and the audit is the reason the amplitude in it is 13% smaller than the first answer: the cheaper coupling scheme held a limit cycle too wide, and only the energy balance saw it.

## Sound

Out of a case, sound is a column of pressure against time, and the distance between that and a decibel is arithmetic plus a reference level. `acoustics.py` turns a pressure history into a level against frequency, writes a `.wav` of it, and prints the reference on every figure, because a level without its reference is not a level. `spectra.py` is the companion for forces: how fast a history oscillates and whether it has stopped moving yet.

```
python openreynolds/toolbox/acoustics.py --tone          # a pure tone, derived against measured
python openreynolds/toolbox/acoustics.py --bands p.csv   # octave bands, and the sum check
python3 /work/.toolbox/spectra.py /work/case --field forces
```

**What it reported.** A pure tone comes back at 90.9691 dB derived against 90.9691 dB measured, which is the definition of a decibel satisfied, and written to a `.wav` and read back the tone recovers at 1000.043 Hz, +0.004%. Octave bands across 22.4 Hz to 22.4 kHz recombine to the overall level with the residual zero by construction. The published runs are [a level is not a level without the thing it is measured against](https://tryreynolds.com/studies/a-pure-tone.md) and [bands that have to add back up](https://tryreynolds.com/studies/octave-bands.md).

![Octave band levels as bars with the overall level drawn across them, beside a narrowband spectrum with a tone standing clear of the broadband content](https://tryreynolds.com/assets/acoustics-bands-BSy_NDRj.png)

Octave bands with the overall level across them, and the narrowband spectrum beside it with a tone standing clear. The reference level is printed on the axis, which is the discipline the case is about.

## Wind around buildings

Pedestrian wind comfort is one solved case per wind direction, composed over a year of recorded weather. Three scripts carry it. `site_stl.py` turns OpenStreetMap building footprints and a terrain elevation grid into STL, extruding footprints into closed solids so an L-shaped or notched terrace comes out as its own shape. `site_abl.py` writes the atmospheric boundary layer inlet, using OpenFOAM's own atmospheric inlet conditions rather than reimplementing them. `wind_comfort.py` builds the wind rose and the comfort map: an exceedance probability, which is the fraction of the year in which the wind where a person stands passes a threshold.

```
python3 /work/.toolbox/site_stl.py site.json          # footprints and terrain as STL
python3 /work/.toolbox/site_abl.py site.json --out .  # the atmospheric inlet
python openreynolds/toolbox/wind_comfort.py --check   # the exceedance arithmetic, exactly
```

**What it reported.** The exceedance arithmetic comes back at 0.200000000000 against an exact 0.2, and 0.700000000000 with an amplification factor applied, which grades the spreading inside a wind-speed bin that a cruder method misses by 0.1. The solved side is [where the wind speeds up around a tower](https://tryreynolds.com/studies/pedestrian-wind-comfort.md), whose worst corner accelerated the reference wind by 1.16 times, and the weather side is [exceedance to twelve decimal places](https://tryreynolds.com/studies/a-year-of-wind.md).

![Two histograms of wind speed over a year, each with a comfort threshold line and the exceeding hours shaded, one with the threshold on a bin boundary and one inside a bin](https://tryreynolds.com/assets/wind-distribution-BKMwZOVF.png)

A year of wind as hours per speed bin, with the hours above the comfort threshold shaded. Where the threshold lands inside a bin rather than on its edge is where the method has to be careful.

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