FluidLab

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.

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.