---
title: "Tutorial: the Blasius boundary layer and flat plate friction"
url: "https://tryreynolds.com/docs/tutorials/blasius"
description: "Solve the Blasius equation by shooting, get the wall shear constant to nine figures, derive the plate drag coefficient from it, and learn which of two conventions your textbook used."
---

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

No OpenFOAM needed

# Flat plate friction

Solve the Blasius equation by shooting, get the wall shear constant to nine figures, derive the plate drag coefficient from it, and learn which of two conventions your textbook used.

Laminar skin friction on a flat plate is the number drag estimates start from. You will solve the similarity equation, get its one constant, and derive the rest by algebra.

**You will learn** to solve a boundary-value problem by shooting, to read an integrator's order, and to spot the factor of `sqrt(2)` between two conventions that are both in print.

**You need** the checkout from [the first case in this group](https://tryreynolds.com/docs/tutorials/poiseuille.md). Seconds, standard library only.

## The physics

The boundary layer on a plate reduces to one ordinary equation in `eta = y sqrt(U / (nu x))`:

`f''' + f f''/2 = 0`, with `f(0) = f'(0) = 0` and `f'(infinity) = 1`.

The wall slope `f''(0)` sets everything: the local friction coefficient is `cf sqrt(Re_x) = 2 f''(0)`, and the whole-plate one is `Cf sqrt(Re_L) = 4 f''(0)`.

A common alternative scales `eta` on `2 nu x` and writes `f''' + f f'' = 0`. Its `f''(0)` is 0.4696, exactly `sqrt(2)` larger. Both are right; comparing one with the other is a 41% error.

## Steps

### Solve and grade

```bash
python openreynolds/toolbox/blasius.py --check
```

Run here, trimmed to the lines that matter:

```
  f''(0)      0.3320573372 against the published 0.3320573362 (+2.977e-09)
  cf_x sqrt(Re_x)                    0.6641146744
  Cf sqrt(Re_L), whole plate         1.3282293488
  the other convention's f''(0)      0.4695999898   sqrt(2) f''(0): eta scaled on 2 nu x
  eta at f' = 0.99                   4.909989   textbook delta_99 is quoted as 5, which is +1.83% from it
  ok    f''(0) within 1e-7 of 0.3320573362  [+2.977e-09]
  ok    RK4 shows order 4 against its own refinement, 200 -> 800 steps  [3.976]
  ok    eta at f' = 0.99 is near 4.91 and NOT the textbook 5.0  [4.909989]
agrees
```

### Cut the domain short

```bash
python openreynolds/toolbox/blasius.py --eta-max 6
python openreynolds/toolbox/blasius.py --steps 200
```

| Run | `f''(0)` | Against the published value | `eta` at `f' = 0.99` |
|---|---|---|---|
| default, `eta` to 10, 2000 steps | 0.3320573372 | +2.977e-09 | 4.909989 |
| `--eta-max 6` | 0.3325659312 | +1.532e-03 | 4.854912 |
| `--steps 200` | 0.3320573378 | +4.644e-09 | 4.910312 |

Cutting the domain from 10 to 6 costs a factor of half a million. Cutting the steps from 2000 to 200 costs almost nothing. The error came from the domain, not from the step.

## Read the result

![A published run: the similarity profile, with the slope at the wall being the constant, and the dashed line where the velocity reaches 99% of the free stream.](https://tryreynolds.com/assets/blasius-profile-DV3v2pr2.png)

A published run: the similarity profile, with the slope at the wall being the constant, and the dashed line where the velocity reaches 99% of the free stream.

The thickness at 99% of the free stream is `4.91 x / sqrt(Re_x)`; the 5 in textbooks is a rounding of it. The friction coefficient at `Re_L = 1e5` is `1.3282 / sqrt(1e5) = 0.0042`, on both sides of the plate twice that.

## Check it

- **The order.** Halving the step in an RK4 solver should cut the error sixteen-fold. The grader reads 3.976 over 200 to 800 steps, against a refinement of the same solve and not against the published value, because at those counts the domain sets the error.
- **The literal in the code.** `reference_area.py` types 1.328 as the friction floor. The derivation says 1.3282293, so the literal is 0.0173% low and is now checked rather than trusted.
- **The published study** is [here](https://tryreynolds.com/studies/flat-plate-friction.md).

## Try next

1. Plot `f'(eta)` and compare with the parabola of [the channel](https://tryreynolds.com/docs/tutorials/poiseuille.md).
2. Compute the drag of a 1 m plate at 5 m/s in air, and the friction line for the same plate if it were turbulent (`0.074 Re^-0.2`).
3. Ask the agent for a flat plate in OpenFOAM at `Re = 1e5` and compare `cf sqrt(Re_x)` with 0.6641. No graded run of that case ships here.

## When it goes wrong

### My textbook says 0.4696

It scales on `2 nu x`. Multiply by `1/sqrt(2)` to compare.

### My plate's drag is twice this

Two sides. The whole-plate coefficient is per side with the area of one side.

### My CFD plate gives 5 to 10% more

The leading edge is singular in the theory and a mesh cannot follow it. Compare at stations well downstream, with the local value `cf_x`, not the average.

## Next

[Heat through a wall](https://tryreynolds.com/docs/tutorials/conjugate.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.
