Computational Physics · Fluid Dynamics
📅 March 2026⏱ 22 min read🌊 Physics / Simulation

Fluid Simulation Methods — SPH vs LBM vs MPM vs FVM

Every fluid simulator makes a fundamental choice: represent fluid as discrete particles (Lagrangian), as values on a fixed grid (Eulerian), or as a hybrid. Each choice determines accuracy, parallelisability, and what phenomena can be captured. This article surveys the four dominant approaches in games, VFX, and scientific computing.

1. Lagrangian vs Eulerian Framing

All fluid simulation methods can be classified by their reference frame:

2. SPH — Smoothed Particle Hydrodynamics

SPH represents fluid as a set of particles. Each property (density, velocity, pressure) is interpolated from neighbours using a smoothing kernel W(r, h). Originally developed for astrophysical gas dynamics (Gingold & Monaghan 1977), it is now ubiquitous in real-time water and lava simulations.

SPH density estimate at particle i: ρᵢ = Σⱼ mⱼ · W(|rᵢ − rⱼ|, h) SPH pressure force: Fᵢ_pressure = −mᵢ Σⱼ mⱼ (Pᵢ/ρᵢ² + Pⱼ/ρⱼ²) · ∇W(rᵢⱼ, h) Commonly: W = Poly6 kernel for density, Spiky kernel for pressure gradient (Müller et al. 2003 "Particle-Based Fluid Simulation for Interactive Applications")

Strengths

Weaknesses

Use SPH when: you need free surfaces, splashing, liquid-solid coupling, and can tolerate slightly compressible artefacts. Used in: games (Nvidia FleX, position-based fluids), astrophysics, ocean simulation.

3. LBM — Lattice Boltzmann Method

LBM works at the mesoscopic scale — between molecular dynamics and Navier-Stokes. Fluid is modelled as particle probability density functions f_i streaming between fixed grid cells and colliding locally. The macroscopic fluid variables emerge from moments of f.

LBM update (BGK collision): fᵢ(x + cᵢΔt, t + Δt) = fᵢ(x, t) − (1/τ)(fᵢ − fᵢᵉq) τ = relaxation time (controls viscosity: ν = (τ − 0.5)/3 in lattice units) fᵢᵉq = Maxwell-Boltzmann equilibrium distribution D2Q9 lattice: 9 velocity directions in 2D (8 diagonal/cardinal + rest) D3Q19 lattice: 19 velocity directions in 3D

Strengths

Weaknesses

Use LBM when: you need high-Re internal flows (ducts, around aerodynamic shapes), porous media flow, or want maximum GPU utilisation. The lattice-boltzmann simulation on this site uses D2Q9.

4. MPM — Material Point Method

MPM, developed by Sulsky et al. (1994) and popularised by Disney Research for Frozen (2013), is a hybrid Lagrangian-Eulerian method. Particles carry mass and deformation gradient; a background grid accumulates forces, solves momentum, and transfers velocities back to particles.

MPM loop per timestep: 1. P2G: Scatter particle mass/momentum to grid nodes (bilinear interpolation) 2. Grid update: Apply forces, boundary conditions, integrate velocities 3. G2P: Gather new velocities back to particles (APIC / FLIP transfer) 4. Advect: Move particles: x_p += v_p · dt 5. Update deformation gradient F via velocity gradient from grid

Strengths

Weaknesses

5. FVM / FEM — Grid-Based (Navier-Stokes direct)

Classic Eulerian CFD discretises the Navier-Stokes equations directly on a mesh using Finite Volume (FVM) or Finite Element (FEM) methods. The velocity-pressure coupling is enforced via a Poisson equation solved each timestep (Chorin's projection method).

Incompressible Navier-Stokes: ∂u/∂t + (u·∇)u = −(1/ρ)∇P + ν∇²u + f (momentum) ∇·u = 0 (incompressibility) Chorin projection: 1. Advect and diffuse: u* = u + dt(−(u·∇)u + ν∇²u + f) 2. Solve pressure Poisson: ∇²P = (ρ/dt)∇·u* 3. Project: u^(n+1) = u* − (dt/ρ)∇P

Strengths

Weaknesses

6. Comparison Table

Method Family Free Surfaces Parallelism Incompressibility Best For
SPH / DFSPH Lagrangian ✅ Natural Good (GPU hash) ⚠️ Iterative Splashing water, lava, astrophysics
LBM Mesoscopic grid ⚠️ Extension needed ✅ Excellent (1 cell = 1 thread) ✅ Built-in Aerodynamics, porous media, industrial CFD
MPM / APIC Hybrid ✅ Natural Good Depends on constitutive law Snow, sand, mud, multi-material VFX
FVM (projection) Eulerian grid ⚠️ Level set needed Moderate (sparse solve) ✅ Projection enforced Engineering CFD, steady flows
FLIP / PIC Hybrid ✅ Natural Good Grid projection Large-scale liquids (Houdini FLIP)

7. How to Choose