Lab: numbers, not just colours
The playground pages solve a fast visual model. This section solves the actual lattice Boltzmann equation on a fixed grid, so the flow can be measured — drag, lift, shedding frequency — and compared with published values.
Flow past a cylinder
Vortex shedding, Reynolds number from 40 to 250, and a live drag / Strouhal readout you can check against the literature.
02 · airfoilAirfoil at angle of attack
A NACA 0012 section from −5° to 20°: watch lift build, the suction peak sharpen, and the wake break down as the angle climbs.
03 · two-phaseRising bubble
A gas bubble in liquid, with the interface emerging from a pseudopotential instead of being drawn. Density, speed or vorticity, plus live bubble geometry.
04 · 3DFlow through a sphere packing
D3Q19 on 160,000 cells, volume-rendered by a ray marcher. Orbit the box and switch between speed, pressure and vorticity.
Why a separate lab
The playground runs a Stable Fluids solver: a few GPU passes, 60fps, beautiful dye, but no physical units and no way to ask “how much drag”. That is the right trade for a visual toy and the wrong one for anything quantitative.
The lab runs a different method — the lattice Boltzmann equation on a D2Q9 grid, with bounce-back walls and a real relaxation time derived from the Reynolds number. Every frame is a physical time step, so forces can be integrated over the surface and compared with measurements.
What “checked” means here
Each case page carries the numbers this solver actually produces at its default settings, next to the published values. Where they disagree, the page says why — usually the blockage ratio, which is the price of fitting a real cylinder into a browser-sized box.
It is not a CFD package. There is no turbulence model, no 3D, no mesh refinement, and the domains are deliberately small. Treat it as an instrument for building intuition, not for signing off a design.