---
title: "Tutorial: conjugate heat transfer across a fluid and solid wall in OpenFOAM"
url: "https://tryreynolds.com/docs/tutorials/conjugate-wall"
description: "Build a two-region mesh with one interface, know the exact interface temperature before solving, and grade the only number a conjugate coupling decides. States plainly what has and has not been solved here."
---

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

OpenFOAM cases

# A conjugate wall

Build a two-region mesh with one interface, know the exact interface temperature before solving, and grade the only number a conjugate coupling decides. States plainly what has and has not been solved here.

A conjugate case has a fluid and a solid that share one face. You will build the two-region mesh, see why gravity is off, and know the two numbers the solve owes before it starts.

**You will learn** the two-block `splitMeshRegions` recipe, where a fluid's conductivity hides, and which number in a coupled case tests the coupling.

**You need** the agent or an OpenFOAM to mesh and solve. Writing the case and printing its answer needs neither.

Warning

This repository has no completed solve of this template yet. The mesh, the regions and the copied properties have been confirmed in the image; writing the initial fields automatically is the step still open. Use the agent to finish the case, and hold it to the numbers below.

## The physics

A 20 mm layer of fluid and a 10 mm layer of solid with heat along x, hot face 400 K, cold face 300 K. Gravity is zero, because a side-heated fluid layer convects at any Rayleigh number and then there is no closed form. Without convection both regions conduct and the answer is series resistance:

| Quantity | Exact |
|---|---|
| flux through both | 2944.78527607 W/m2 |
| temperature at the interface | 301.84049080 K |
| drop across the fluid | 98.159509 K |
| drop across the solid | 1.840491 K |

OpenFOAM's fluid `thermophysicalProperties` has **no conductivity entry**. `kappa` comes from the Prandtl number as `mu Cp / Pr`, so asking for `kappa = 0.6` means `Pr = 0.001 * 4181 / 0.6 = 6.968333`. Writing `kappa` somewhere sets nothing at all.

## Steps

### See the answer first

From an empty directory, with the checkout at `../OpenReynolds`:

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

Output, run here, trimmed:

```
# a conjugate wall: fluid then solid, heat along x, gravity off
  fluid  L 0.02 m  k 0.6 W/m/K  R 0.033333 m2K/W
  solid  L 0.01 m  k 16 W/m/K  R 0.000625 m2K/W
  faces  hot 400 K, cold 300 K

  what a solve of this mesh owes, exactly (conjugate.py derives and grades it):
    flux             2944.78527607 W/m2, one value through both
    T at the interface 301.84049080 K
    drop in the fluid  98.159509 K
    drop in the solid  1.840491 K

  Pr = mu Cp / kappa = 0.001 * 4181 / 0.6 = 6.968333

--no-mesh: stopping before blockMesh. The files are written.
```

### Build the two-region mesh

In an OpenFOAM shell ([the plane duct](https://tryreynolds.com/docs/tutorials/duct.md) has the Docker command):

```bash
mkdir -p /tmp/cht && cd /tmp/cht
python3 /src/openreynolds/toolbox/templates/cht_wall.py
```

It runs `blockMesh`, `splitMeshRegions -cellZones -overwrite` and `checkMesh -allRegions`, then draws each region. Two things it does that a hand-built case gets wrong: the interface faces are named in no patch, because `splitMeshRegions` makes the pair itself, and the unsplit mesh, `cellToRegion` and `0/` are removed afterwards. Per-region properties are copied from the image's own `multiRegionHeater` tutorial, and only `Pr` and `kappa` are patched.

### Ask the agent to solve it

```
Build the two-region case from cht_wall.py in the toolbox templates, gravity off. Write the initial fields for both regions from the multiRegionHeater tutorial's own T entries, solve it with chtMultiRegionSimpleFoam, and compare the interface temperature with 301.84049 K and the flux with 2944.785 W/m2. Check the fluxes on both sides of the interface against each other as well.
```

## Read the result

The interface temperature is the number to grade. The hot and cold faces are boundary data, so a run that reproduces them has demonstrated nothing. The usual failure is a smooth, plausible field with the interface in the wrong place, from a coupling that applies one of the two continuities and not the other.

| Reading | What it tests |
|---|---|
| flux on the fluid side against the solid side | flux continuity |
| temperature either side of the interface | temperature continuity |
| interface value against 301.8405 K | both together, and the conductivities you set |

For a real conjugate case, the published [finned heat sink](https://tryreynolds.com/studies/finned-heat-sink.md) ran `chtMultiRegionSimpleFoam` on 8,320 cells and closed its energy balance to 99.7%.

![That study's finned heat sink: one fin and its two channels, aluminium and air solved as one coupled system.](https://tryreynolds.com/assets/hs-temp-GfzCYTQR.png)

That study's finned heat sink: one fin and its two channels, aluminium and air solved as one coupled system.

## Check it

- **`checkMesh -allRegions`** reports both regions, and the fluid region's patches include `fluid_to_solid`. The recorded run in the image read 80 fluid cells, 40 solid cells and a maximum skewness of 1.4e-14.
- **Side walls are adiabatic by name.** If they fall into `defaultFaces` the case leaks heat, and the reference is wrong while the run converges.
- **The same wall by hand.** [Heat through a wall](https://tryreynolds.com/docs/tutorials/conjugate.md) gives the numbers for any layers.

## Try next

1. Set the fluid conductivity to 16 and work out the interface temperature before solving.
2. Turn gravity on and describe what the reference loses.
3. Change the thicknesses at the top of the template and rerun with `--no-mesh`.

## When it goes wrong

### The template refuses and names a path

It wanted the tutorial of that name under `$FOAM_TUTORIALS`. Use the workspace image rather than another OpenFOAM build, or pass `--no-properties` for the mesh alone.

### The flux is off by a factor

Check the fluid `Pr` first. `kappa = mu Cp / Pr` is where the conductivity lives.

### The solver reports a missing coupled condition

The coupled temperature entry is spelled differently in the ESI and Foundation builds. Copy it from the `T` field of the tutorial that ships with your own OpenFOAM.

## Next

[A porous duct](https://tryreynolds.com/docs/tutorials/porous-duct.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.
