---
title: "Heat transfer setup: conjugate cases, references, balances and hot spots"
url: "https://tryreynolds.com/docs/guides/heat-transfer-setup"
description: "Choosing between a passive scalar, a buoyant solver and a conjugate one, building the two-region mesh and its interface, setting a fluid's conductivity through Prandtl, reading the heat back off a run, and the reference temperature that decides the Nusselt number."
---

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

Guides

# Heat transfer setup

Choosing between a passive scalar, a buoyant solver and a conjugate one, building the two-region mesh and its interface, setting a fluid's conductivity through Prandtl, reading the heat back off a run, and the reference temperature that decides the Nusselt number.

Heat transfer is four different problems under one word, and the setup that answers one is wrong for another. This guide is how to pick, what the toolbox writes, and how to read a temperature answer back without fooling yourself.

## Which problem it is

| Question | Solver or tool | Toolbox support |
|---|---|---|
| Where does a passive scalar go | [simpleFoam](https://tryreynolds.com/docs/solvers/simplefoam.md) with `--tracer` | `case_gen.py` writes the field, the `scalarTransport` function object, the scheme and the linear solver |
| A wall heats a fluid, density constant | `simpleFoam` with a transported temperature | scalar transport, post-processed by `heat.py` |
| Buoyancy moves the fluid | [buoyantSimpleFoam](https://tryreynolds.com/docs/solvers/buoyantsimplefoam.md) or `buoyantPimpleFoam` | in the image; no template in the toolbox |
| Heat crosses a wall into a solid | [chtMultiRegionFoam](https://tryreynolds.com/docs/solvers/chtmultiregionfoam.md) or its steady twin | `cht_wall.py` writes the mesh and the target |
| Conduction in a solid only | [solidDisplacementFoam](https://tryreynolds.com/docs/solvers/soliddisplacementfoam.md) with `thermalStress yes`, or a 1D closed form | `conjugate.py`, `thermal_stress.py` |
| Radiation | `fvDOM` and `viewFactor` in OpenFOAM | not wrapped or graded here |

A tracer carries no buoyancy: a hot plume's rise is absent from it, not approximated. Use it for a concentration or a small temperature difference, not for a plume.

```bash
python3 /work/.toolbox/case_gen.py . --speed 1 --reynolds 1e5 --tracer smoke --source vent --schmidt 0.7
```

`--schmidt 0.7` becomes `alphaDt 1.42857`. Without it OpenFOAM's own turbulent Schmidt number of 1 stands, and no value is invented.

## Conjugate cases

Solving the fluid and the solid separately means supplying a heat transfer coefficient at the surface, which is usually the number you wanted. A conjugate run couples them and the interface temperature comes out.

### Build two regions and one interface

`cht_wall.py` writes two `blockMesh` blocks whose cell-zone names are `fluid` and `solid`, then runs `splitMeshRegions -cellZones -overwrite` and `checkMesh -allRegions`. The interface faces are named in no patch, so `splitMeshRegions` makes the coupled pair itself. The unsplit mesh, `cellToRegion` and `0/` have to be removed afterwards.

```bash
python3 cht_wall.py              # mesh, interface, and the exact target
python3 cht_wall.py --no-mesh    # the files only
```

### Take the dictionaries from the image's tutorial

The template copies the per-region property files, and the coupled temperature condition verbatim from the tutorial's own `T` field, rather than inventing them. Those names differ between OpenFOAM builds. Only `Pr` and `kappa` are patched, and a tutorial file that does not carry them is refused by name.

### Solve and compare with the closed form

With gravity off both regions conduct and the answer is exact: 2944.785 W/m2 and 301.840 K at the interface for the shipped wall, computed by `conjugate.py`. [Solving it](https://tryreynolds.com/docs/solvers/chtmultiregionsimplefoam.md) is the open half: a test exists that solves this case in the image, and it is opt-in and not yet completing, so the template states no result of its own.

Warning

A fluid has no `kappa` entry in OpenFOAM. Its conductivity is `mu Cp / Pr`, so asking for a conductivity means setting the Prandtl number. Writing `kappa` somewhere sets nothing and no error is raised.

### The traps in a layered wall

- **A pipe wall is not a plane wall.** Its resistance is `ln(r2/r1)/(2 pi k)`. The planar form on the inner area is 23.3152% out at a radius ratio of 1.5, and the outer area is 17.790% the other way. The log-mean area is exact.
- **Biot number.** Where it is well below 1, one region with a surface condition answers the same question more cheaply. `conjugate.py` prints it.

## Reading the heat back

```bash
python3 /work/.toolbox/heat.py /work/case
python3 /work/.toolbox/heat.py /work/case --ref-patch outlet --length 0.02
python3 /work/.toolbox/heat.py /work/case --reynolds 1e4 --prandtl 0.71 --ref-patch outlet --length 0.02
```

`heat.py` reads the `wallHeatFlux` function object's table where the run asked for one, and otherwise integrates the written field against the mesh's own face areas. It reports the rate in watts per patch, the area-weighted mean flux and the range, and the sign as OpenFOAM writes it: a flipped sign turns a cooler into a heater. Conjugate cases are read per region from `constant/regionProperties`.

### The reference temperature decides the Nusselt number

| `--t-ref-from` | Definition |
|---|---|
| `bulk` | flux-weighted mixed mean over the named patch, and the default there |
| `inlet` | area-weighted mean over the patch |
| `freestream` | a value you give with `--t-ref` |

The same wall gives three different Nusselt numbers against the three. In a duct the fluid at the wall is the hot fluid, so the area average sits above the mixed mean and a Nusselt number on it comes out low. The convention used is printed beside every number.

With `--reynolds` and `--prandtl` the number is put beside the published one: the Graetz value of 3.66 below Re 2300, Dittus-Boelter above, each against its own stated accuracy (2% and 25%). Dittus-Boelter is refused outside `Re > 1e4` and `0.7 < Pr < 160` rather than evaluated there.

### Hot spots

A maximum is a place, so it is reported with its cell, coordinates, owning patch and distance to the boundary, and with how large the region above a threshold is. `--hot-fraction` (0.95 of the span by default) or an outright `--threshold` sets that region.

## Balancing the energy

What went in has to come out, and that closes independently of any correlation. [The heat sink](https://tryreynolds.com/studies/finned-heat-sink.md) closed to 99.7% and [the natural convection cavity](https://tryreynolds.com/studies/natural-convection-cavity.md) checks the two walls against each other.

Two things a run does not tell you:

- **Temperature can be unconverged while `p` and `U` are not.** A scalar transported by a function object is not in the outer loop, so naming it in `residualControl` does nothing. One heated run stopped on `p` and `U` with temperature at 6e-3. `heat.py` compares the two last written temperature fields.
- **The wall treatment decides the flux.** A heat-transfer answer wants the sublayer resolved. See [wall treatment](https://tryreynolds.com/docs/guides/wall-treatment.md).

## Stress from the temperature

[Thermal stress](https://tryreynolds.com/docs/guides/fsi-and-thermal-stress.md) covers the solid side: `solidDisplacementFoam` reads the temperature as a rise above the stress-free state.

## Ask the agent

```
Cold plate with these four chips at 60 W each. Solve the metal and the water together and
report where the junction peaks and the energy balance.
```

```
Give me the Nusselt number on the bulk temperature, and the same number on the inlet
temperature, so I can see the convention.
```

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