Physics First Series
Learning Library › Computational Fluid Dynamics › How D2Q9 lattice Boltzmann works
Computational Fluid Dynamics · Method

How D2Q9 lattice Boltzmann works

D2Q9 evolves nine particle populations on every two-dimensional grid node. A local collision step and a neighbor-to-neighbor streaming step recover fluid motion at larger scales.

Adapted from the published 2026 edition of Computational Fluid Dynamics and the Lattice Boltzmann Method, Chapters 11–14. By Ronald H. Miller.

Nine populations, three macroscopic fields

One population rests, four travel along the coordinate axes, and four travel diagonally. Their low-order moments give density and momentum:

ρ = Σᵢ fᵢ,    ρu = Σᵢ fᵢcᵢ.

The individual populations are mesoscopic bookkeeping variables. Density and velocity are the physical fields reconstructed from them.

Collision relaxes toward equilibrium

In the single-relaxation-time BGK model, each population moves partway toward a discrete equilibrium:

fᵢ* = fᵢ − (1/τ)(fᵢ − fᵢeq).

The relaxation time τ controls the kinematic viscosity after lattice units are chosen. Collision is local, which makes the method naturally parallel.

Streaming moves information

After collision, each post-collision population shifts to the adjacent node in its lattice direction:

fᵢ(x + cᵢΔt, t + Δt) = fᵢ*(x,t).

Repeating collision and streaming generates the macroscopic evolution. Boundary rules—such as bounce-back for a no-slip wall—replace populations that would otherwise arrive from outside the domain.

Recovery is not magic

A Chapman–Enskog analysis shows how the discrete kinetic update approaches the Navier–Stokes equations in the low-Mach, long-wavelength limit. The collision model, lattice symmetry, forcing scheme, boundaries, and resolution all affect accuracy and stability.

Common misconception: matching a visually plausible velocity field is not validation. A credible implementation checks mass conservation, grid convergence, symmetry, known analytical solutions, and sensitivity to relaxation and boundary parameters.

A minimal verification ladder

Begin with periodic advection or diffusion, then plane Poiseuille flow, lid-driven cavity flow, and only afterward complex geometry or multiphase physics. Each step isolates a smaller set of possible errors.

Go deeper

This is a short guide to one idea. The full derivations, worked problems and exercises are in Computational Fluid Dynamics.

See the bookAll the books
← Why does finite volume conserve?