---
title: "A jump the second law will not let you run backwards"
url: "https://tryreynolds.com/studies/shock-in-a-nozzle"
description: "Air through a converging-diverging nozzle with a shock standing in it. The relations are closed forms, so the test is not whether the arithmetic is right but whether the identity that grades it is independent of the formulas it grades."
study_id: "20261122-101452-4a13"
---

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

Applied study Compressible · Run 28 · November 2026

# A jump the second law will not let you run backwards

Air through a converging-diverging nozzle with a shock standing in it. The relations are closed forms, so the test is not whether the arithmetic is right but whether the identity that grades it is independent of the formulas it grades.

![Mach number rising through a nozzle throat and dropping discontinuously at a shock in the diverging section](https://tryreynolds.com/assets/nozzle-mach-shock-BLyisMYk.png)

Figure 1 The run’s own figure. The flow accelerates through the throat, crosses Mach 1 exactly where the area is smallest, runs supersonic down the divergent section, and falls discontinuously from 2.0 to 0.577 at the shock. The lower panel is the duct itself, so the shock position can be read against the geometry rather than against an abscissa. The jump is drawn as a vertical line because in this model it is one: quasi-one-dimensional theory gives a shock no thickness at all, which is the first thing a real calculation has to put back.

- **Mach either side of the normal shock**: 2.0 to 0.577
- **the Prandtl relation, derived independently of the jump formulas**: M1* M2* = 1
- **an expansion shock: the algebra allows it, the second law does not**: refused
- **no boundary layer, no shock thickness, no 2D structure**: quasi-1D

The run · 20261122-101452-4a13

- **Asked**: “Compute quasi-1D flow through a converging-diverging nozzle with a normal shock in the diverging section, verify the Prandtl relation across it, and confirm an expansion shock is refused rather than computed.”
- **Run**: closed-form quasi-one-dimensional relations for a perfect gas · no mesh, no solve, seconds of one core
- **Result**: A shock from Mach 2.0 to 0.577, graded by an identity derived independently of the jump formulas
- **The shock**: Mach 2.0 ahead of it, 0.577 behind, standing in the diverging section
- **What grades it**: the Prandtl relation, which is derived independently of the jump formulas it checks
- **The refusal**: an expansion shock is declined rather than computed, because entropy would have to fall
- **What this is not**: no boundary layer, no shock thickness, no two-dimensional structure

01 · Grading a formula with something else

## Grading a formula with something that is not that formula

Quasi-one-dimensional nozzle flow is a set of closed forms: area ratio gives Mach number, Mach number gives pressure, and the normal-shock relations give the jump. Checking those against themselves proves nothing, so the run used the Prandtl relation, which states that the product of the characteristic Mach numbers either side of a shock is exactly one.

That identity follows from the conservation laws rather than from the jump formulas, so it is an outside check on them rather than a restatement. It held across the range tested, which is what licenses the rest of the numbers on the page.

The case itself is a shock standing in the diverging section, with Mach 2.0 ahead of it dropping to 0.577 behind, and the figure shows the Mach number climbing through the throat, running supersonic down the divergent, and falling discontinuously at the shock.

02 · The interesting answer is a refusal

## The interesting answer is a refusal

The second half of the question was whether an expansion shock, a jump the other way from subsonic to supersonic, can be computed. Every relation involved is algebraically happy to do it. The formulas have a solution, and a program that simply evaluates them will print one.

This one refuses, because that solution requires entropy to decrease across the jump, which the second law forbids. The physics is not in the arithmetic; it is in knowing which root of the arithmetic exists.

That is a small thing that stands for a larger one. A solver that returns an answer for an impossible question is more dangerous than one that fails, because the answer looks exactly like the answers that are real.

03 · 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.

- **Is the grader independent of what it grades (pass)**: yes: the Prandtl relation follows from the conservation laws, not from the jump formulas
- **Expansion shock (pass)**: refused: it would require entropy to fall across the jump
- **Shock position (pass)**: set by the back pressure, in the diverging section, as the figure shows
- **What a real nozzle adds (open)**: a boundary layer, a shock of finite thickness and 2D structure, none of which is here

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

closed-form quasi-one-dimensional relations for a perfect gas · no mesh, no solve, seconds of one core · run 20261122-101452-4a13.

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