---
title: "Two candidate answers, and a mesh study that tells them apart"
url: "https://tryreynolds.com/studies/hartmann-channel"
description: "Liquid metal in a magnetic field flattens into a core with thin wall layers. Agreeing with that profile only means something if the profile you would have got without the field disagrees, so this run graded itself against both."
study_id: "20261122-100431-61ea"
---

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

Applied study Magnetohydrodynamics · Run 18 · November 2026

# Two candidate answers, and a mesh study that tells them apart

Liquid metal in a magnetic field flattens into a core with thin wall layers. Agreeing with that profile only means something if the profile you would have got without the field disagrees, so this run graded itself against both.

![A magnetically flattened velocity profile lying on the exact Hartmann curve and departing visibly from the no-field parabola](https://tryreynolds.com/assets/hartmann-profile-HDC6f-Kf.png)

Figure 1 The run’s own figure, and the middle panel is the argument. Left: the solved profile (blue) against the exact Hartmann curve and, dashed, the parabola that ordinary channel flow would give at the same mean. The field has pulled the core flat and squeezed the shear into layers 0.2 of a half-height thick. Middle: both comparisons normalised on the centreline, which removes any question of a fitted constant: RMS 0.0003 against the exact form, 0.1756 against the parabola. Right: the deviation itself, for 20, 40 and 80 cells across, with the parabola’s 0.1842 drawn to the same axis so the separation is visible rather than asserted. The three solved curves sit almost on zero; the error falls 4.0x per doubling.

- **shape RMS from the exact Hartmann profile**: 3.4e-04
- **from the no-field parabola: about 500x apart**: 0.176
- **centreline speed, 1.2321 against an exact 1.2331 m/s**: -0.09%
- **error reduction per mesh doubling: second order**: 4.0x

The run · 20261122-100431-61ea

- **Asked**: “Solve liquid metal flowing in a channel with a transverse magnetic field at Hartmann number 5. Compare the velocity profile against the exact Hartmann solution. Report the RMS deviation, and also report it against the wrong (parabolic, no-field) profile so the separation between the two is visible.”
- **Run**: mhdFoam, transient to steady · Ha 5 · three meshes, 100×20 to 100×80 · 4 s, 8 s and 27 s of wall time
- **Result**: 3.4e-04 RMS from the exact Hartmann profile, 0.176 from the parabola
- **Against the exact profile**: 3.4e-04 shape RMS, worst point 0.0018
- **Against the no-field parabola**: 0.176 shape RMS, worst point 0.286: a separation of about 500x
- **Centreline speed**: 1.2321 m/s against an exact 1.2331, -0.09%
- **Mesh convergence**: error falls by 4.0 per doubling, clean second order

01 · Why a second reference

## Why a second reference is the whole point

A magnetic field across a conducting flow does something visible: it drags the core toward a uniform speed and squeezes the shear into thin layers at the walls, L/Ha thick, which here is 0.2. The exact solution is a constant minus a cosh, and matching it is the obvious thing to check.

On its own that check is weaker than it looks. A profile is a smooth curve and the parabola of ordinary channel flow is also a smooth curve, so a result can sit close to the Hartmann form without the field having been applied properly at all. The run therefore graded the same solved profile against both candidates, and the useful number is not either RMS but the ratio between them.

It came out 3.4e-04 against the exact Hartmann form and 0.176 against the parabola, about 500 times apart. That is what makes the first number evidence rather than a coincidence.

02 · Three meshes

## Three meshes, and the step the solver cannot take

It ran 100×20, 100×40 and 100×80, which puts 2, 4 and 8 cells inside the Hartmann layer, and reported the finest as the answer. The error fell by a factor of 4.0 per doubling, which is second order and means the discretisation is behaving rather than accidentally landing well.

The meshes are uniform rather than graded, which is the opposite of the usual instinct for a wall layer. The template documents the reason and the run followed it: mhdFoam's explicit magnetic terms get worse as cells shrink, so grading cells into the layer is how this solver is made to diverge. checkMesh passed on all three with zero non-orthogonality and skewness.

It also checked the things that would make a steady answer untrue. The profile changed by 1.6e-04 RMS between t = 0.5 s and t = 4 s, by 1e-05 between 1 s and 4 s and by 1.7e-07 between 3 s and 4 s, so the flow is steady by about t = 2 s and the reported profile is final. The magnetic flux divergence error stayed at or below 1e-09, so the pB projection was not quietly failing.

03 · What it did not establish

## What it did not establish

Only Ha 5 was run. The cost of raising it is the reason, and it is steep rather than incidental: holding the cells per layer fixed makes the step fall as 1/Ha^2 while the cell count rises as Ha, so the total work goes as Ha^3. Ha 20 at the same resolution is sixty-four times this run.

The transport properties are all 1, which is the template's choice. That is not a limitation of the comparison, because the exact profile depends on the Hartmann number alone, so a real liquid metal gives the same shape. The two coarser meshes' deviations are partly discretisation error rather than solver error, which is why the finest one is the number quoted.

One of the run's own observations did not survive checking. It reported the template's printed summary as quoting stale cell counts, 8,000 cells and 800 steps against the 4,000 and 400 the case has. The summary is computed from the template's constants and prints 4,000 and 400 correctly; the 8,000 and 800 appear in the docstring's cost discussion, which is explicitly about eight cells per layer rather than this case's four. The run was wrong and the template is right, and that is recorded here rather than acted on.

04 · Against the reference

## Each graded number, beside the one it answers to

The dot is this run; the shaded band, or the tick for a single value, is the reference. The axis is drawn around the two, so the gap is to scale.

- Shape RMS, against the exact Hartmann form: agrees. 3.4e-04 vs 0, the exact profile. u/u_c against (cosh Ha - cosh(Ha y/L))/(cosh Ha - 1), sampled at x = 15L over 401 points on the 100x80 mesh.
- Shape RMS, against the no-field parabola: disagrees, as it must. 0.176 vs 0 if the field had done nothing. The same solved profile against 1 - (y/L)^2. Its distance from the wrong answer is what makes the right one evidence.

05 · The verification record

## What was checked before the number was reported

Pass is a check the run made and met. Note is context a reader needs. Open is a limit the study states rather than hides.

- **Mesh convergence (pass)**: 100x20, 100x40, 100x80: error falls 4.0x per doubling, clean second order
- **checkMesh (pass)**: passed on all three, zero non-orthogonality and skewness
- **Steadiness (pass)**: profile moved 1.7e-07 RMS between t = 3 s and t = 4 s; steady by about t = 2 s
- **Magnetic flux divergence (pass)**: at or below 1e-09, so the pB projection was not failing quietly
- **Graded mesh into the wall layer (note)**: deliberately not used: mhdFoam's explicit magnetic terms diverge as cells shrink
- **The run's claim of stale cell counts in the template (note)**: checked and false: the summary computes 4,000 cells and 400 steps correctly
- **Other Hartmann numbers (open)**: not run; the work goes as Ha^3, so Ha 20 is sixty-four times this

## Run a case like this.

Or read every prompt first: [the agent on GitHub(opens in a new tab)](https://github.com/InviscidAI/OpenReynolds), MIT licence.

[Create an account](https://app.tryreynolds.com)

mhdFoam, transient to steady · Ha 5 · three meshes, 100×20 to 100×80 · 4 s, 8 s and 27 s of wall time · run 20261122-100431-61ea.

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