Fluid simulations
Five simulations I ran in OpenFOAM. The flat ones play here from the solver’s own data, so every pixel has a value: hover to read it. The 3D ones turn when you drag them.
- Vortex streetStrouhal 0.1825
- Kelvin–HelmholtzGrows 83 per second
- Rayleigh–BénardRolls 3 × the depth
- Wind in a city block185,237 cells
- Hot room1 m² at 600 K
Vortex street
Air flows past a cylinder 1 mm across, at Reynolds number 150. Swirls peel off one side, then the other, and drift downstream in a chain. It is why flagpoles hum and power lines sing.
Loading 1.6 MB
Each swirl that lets go gives the cylinder a small sideways push, so the lift force on it swings up and down once per pair. The rhythm is the Strouhal number. This run measures 0.1825 from that force; the published value at Re 150 is 0.183.
The colour scale stops at ±4,055 per second so the wake is readable. The thin layer on the cylinder’s surface spins up to 62,000. Drag the scale to the end and most of the wake goes dark.
- Reynolds number
- 150
- Strouhal number
- 0.1825, published 0.183
- Mesh
- 20,910 cells
- Solve
- 7.3 min
Kelvin–Helmholtz
Two layers slide past each other at 0.5 m/s. The boundary between them waves, rolls up into four spirals, and the spirals merge in pairs. Clouds sometimes show the same shape.
Loading 1.1 MB
While the wave is small it grows at a fixed rate, which is a straight line on the chart’s log scale. The run grows at 83 per second. Theory for a fluid with no friction says 95. Real fluid has friction, so it should come in lower.
- Reynolds number
- 400
- Growth rate
- 83 per second, theory 95
- Mesh
- 72,080 cells
- Solve
- 19.6 min
Rayleigh–Bénard convection
A shallow box, 30 cm long and 5 cm deep, with a hot floor at 305 K and a cold lid at 295 K. Warm fluid rises, cool fluid sinks, and the flow sorts itself into rolls that turn over and over. Soup in a pan does this, and so does the surface of the Sun.
Drag to turn · ⌘ or Ctrl + scroll to zoomDrag sideways to turn · pinch to zoom
Loading 1.6 MB
The two dashed cuts, frame by frame
Loading 1.2 MB
The rolls settle at one size: a pattern 15 cm long, three times the depth of the box, so two pairs of rolls fit across it. That size is the strongest in every frame of the run.
- Rayleigh number
- 2.6 × 10⁵
- Box
- 30 × 10 × 5 cm
- Mesh
- 115,200 cells
- Solve
- 9 min
Wind in a city block
Wind at 10 m/s through a cluster of towers. On the walls, red is where the wind pushes and blue where it pulls. The lines follow the air from upstream, through the gaps and into the slow, tangled wake.
Drag to turn · ⌘ or Ctrl + scroll to zoom · hover a wallDrag sideways to turn · pinch to zoom
Loading 1.6 MB
Planners read this for wind comfort on the street, and engineers for the load on glass and cladding. The solve was stopped at 400 iterations, before it fully settled, so read it for where the loads fall rather than for exact numbers.
- Model
- Steady, k–epsilon
- Mesh
- 185,237 cells
- Solve
- 149 s, mesh 20 s
- Lines
- 32, none through a wall
Hot room
One square metre of floor at 600 K in a 10 × 5 × 10 m room, after 400 seconds. Warm air rises in a tight column, hits the ceiling and spreads out under it. Nearly all the heat ends up above head height.
Drag to turn · ⌘ or Ctrl + scroll to zoomDrag sideways to turn · pinch to zoom
Loading 0.1 MB
The air in this room spans only 3.5 K, and all but the column sits within 0.3 K. The colour scale covers that 0.3 K, so the layering shows; the column is hotter than the top of the scale, which the arrowhead marks.
- Mesh
- 108,000 cells
- Simulated
- 400 s
- Solve
- 352 s
- Volume
- 125 × 63 × 125 samples
Rendered in Blender
How these were made
Each case ran in OpenFOAM 13, in Docker on an M4 Mac. Python scripts read the fields straight from the solver’s files. From there, one path renders stills and loops in Blender; the other packs the fields into 8-bit images for this page, 5.6 MB for all five, geometry included.
The same 2D runs, rendered in Blender
On every colour bar, a clipped end gets an arrowhead and the field’s real range is printed underneath. Values you hover are read from the 8-bit images, so they are rounded.






