---
title: "One bar, two idealisations, and the ratio that has to hold between them"
url: "https://tryreynolds.com/studies/constrained-bar-thermal-stress"
description: "A heated bar that is not allowed to expand has an exact answer under plane stress and a different exact answer under plane strain. Their ratio is 1/(1-nu) and nothing else, which makes it the one number a solver cannot fit its way into."
study_id: "20261122-100836-41e1"
---

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

Applied study Thermal stress · Run 19 · November 2026

# One bar, two idealisations, and the ratio that has to hold between them

A heated bar that is not allowed to expand has an exact answer under plane stress and a different exact answer under plane strain. Their ratio is 1/(1-nu) and nothing else, which makes it the one number a solver cannot fit its way into.

![Axial stress falling linearly through a heated bar under two idealisations, and their ratio converging on the exact value](https://tryreynolds.com/assets/bar-stress-thickness-C8SRq_uH.png)

Figure 1 The run’s own figure. Left: axial stress through the bar for both idealisations, solver points sitting on the exact lines, reaching -220.0 MPa and -314.2857 MPa at the hot face. Right: the ratio of the two through the thickness, for 10 to 80 cells across, against the exact 1/(1-nu) = 1.42857 drawn as the vertical line. The bulk of every mesh lies on it. The scatter at the top and bottom is the end cells, where the stress is a small fraction of its peak and dividing two small numbers amplifies their error, which is why the reported ratio is fitted over the profile rather than read point by point.

- **plane strain over plane stress, against an exact 1/(1-nu)**: 1.4285714
- **plane-stress axial stress, on the exact value**: -220.0 MPa
- **plane-strain axial stress, on the exact value**: -314.2857 MPa
- **stress profile against the exact line, 80 cells across**: 0.056%

The run · 20261122-100836-41e1

- **Asked**: “Solve a bar heated on one face and not allowed to expand. Compare the axial stress against the exact plane-stress and plane-strain values, and report the ratio of the two against its exact value.”
- **Run**: solidDisplacementFoam, steady · plane stress and plane strain · four meshes each, 10 to 80 cells across · 5.5 s of solver time in total
- **Result**: -220.0000 MPa and -314.2857 MPa, and a ratio of 1.4285714 against an exact 1/(1-nu)
- **Plane stress, hot face**: -220.0 MPa against an exact -220.0 MPa
- **Plane strain, hot face**: -314.2857 MPa against an exact -314.2857 MPa
- **Ratio of the two**: 1.4285714 against 1/(1-nu) = 1.428571, to seven digits
- **Through the thickness**: fitted ratio 1.42855 on 80 cells, error falling 4x per halving

01 · Why the ratio

## Why the ratio is the real test

Heat one face of a bar, forbid it from expanding, and the stress that results is exactly calculable. Under plane stress it is -220.0 MPa for this steel and this hundred-degree rise; under plane strain, where the out-of-plane strain is held at zero as a long prism would hold it, it is -314.2857 MPa. Both are closed forms, so each is checkable on its own.

But checking them separately is weaker than checking them together, because the ratio between them depends on one material constant and nothing else: 1/(1 - nu), which for nu = 0.3 is 1.428571. Mesh resolution does not enter it. A material property fudged to make one case agree would break the ratio, and a solver applying the wrong idealisation would land on the wrong one of the two.

The run solved both as the two `planeStress yes/no` cases and got 1.4285714, right to seven digits, with the hot-face values landing on -220.0000 MPa and -314.2857 MPa.

02 · Four meshes

## Four meshes, and the cell where the check goes bad

It ran 10, 20, 40 and 80 cells across for each idealisation, eight solves in 5.5 s of solver time, and checkMesh passed on every one. Through the thickness the fitted ratio reads 1.42709, 1.42817, 1.42847 and 1.42855, with the error shrinking about 4x per halving of cell size. The stress profile itself converges first order, agreeing with the exact linear distribution to 0.45% of peak stress on 10 cells and 0.056% on 80.

The interesting part is a check it had to abandon. Taking the ratio point by point through the thickness gives a poor answer in the cell next to the cold face, 1.516 on every mesh, however fine. That is not a solver error: sigma_xx there is only about 2% of its peak, so dividing two small numbers amplifies their discretisation error without bound. It fitted the ratio over the profile instead, and said why.

It also reported a residual it did not have to mention. The exact out-of-plane stress is zero, and the solver leaves a small sigma_yy in the cell beside the hot face, of equal size and opposite sign beside the cold face. On 20 cells it is about 0.75% of peak sigma_xx and it halves with each refinement, which is the signature of a boundary-cell discretisation error rather than a physics fault. It said that is how it read it.

> The raw point-by-point ratio is poor in the cold-face cell, at 1.516 on every mesh, because sigma_xx is only about 2% of its peak there. This is why I fit the ratio instead.

03 · What it changed

## What it changed, and what it left alone

The steady answer is only the right reference if the run actually reached steady state, so it checked: the transient ran to 100 s, about 44 conduction e-folding times, by which point the temperature residual was around 1e-10 and the temperature matched the linear profile to about 1e-09 of the imposed rise.

It also changed the mesh, and reported that as a change rather than a detail. It found the template's mesh coming out as 1,600 prisms rather than hexahedra and added its own transfinite structured setting to get clean square cells. That claim has not been reproduced outside this run and the template does request recombination, so it is recorded here as what the run did and saw, not as a defect established in the template. The answer does not depend on it: the stresses are exact on both meshes.

The exact solution does not depend on the bar's length and scales linearly with the temperature rise, so neither needed varying to establish the result.

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.

- Plane strain / plane stress ratio: agrees to seven digits. 1.4285714 vs 1.428571, exactly 1/(1-nu). Depends on Poisson's ratio alone, so no mesh resolution or fudged property can reach it.

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.

- **checkMesh (pass)**: passed on every mesh it built
- **Did it reach steady state (pass)**: ran to 100 s, about 44 e-folding times; temperature residual about 1e-10
- **Mesh convergence of the fitted ratio (pass)**: 1.42709 to 1.42855 over 10 to 80 cells, error falling about 4x per halving
- **Point-by-point ratio in the cold-face cell (note)**: 1.516 on every mesh: sigma_xx is 2% of peak there, so the ratio was fitted instead
- **Residual out-of-plane stress, exactly zero (note)**: about 0.75% of peak on 20 cells, halving with refinement: a boundary-cell error
- **The run's prism-mesh finding (note)**: it meshed its own hexahedra; not reproduced outside the run, and the stresses are exact either way
- **Displacement against its exact value (open)**: not checked

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

solidDisplacementFoam, steady · plane stress and plane strain · four meshes each, 10 to 80 cells across · 5.5 s of solver time in total · run 20261122-100836-41e1.

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