Fluid Dynamics
Click and drag to add density and velocity to the fluid.
The Science: Navier-Stokes Equations
This simulation solves a simplified form of the Navier-Stokes equations for incompressible flow in real time. These fundamental partial differential equations describe how the velocity field of a viscous fluid evolves over time, governing everything from ocean currents to airflow over a wing.
The Navier–Stokes Equations
Fluid motion is governed by the Navier–Stokes equations, derived by Claude-Louis Navier and George Gabriel Stokes independently in the early 19th century. For an incompressible viscous fluid, they express conservation of momentum:
ρ(Du/Dt) = −∇p + μ∇²u + ρf
where ρ is density, u is the velocity field, p is pressure, μ is dynamic viscosity, and f is external body force. A second equation ensures incompressibility: ∇·u = 0.
Whether these equations always have smooth solutions is one of the seven Millennium Prize Problems — unsolved, worth $1 million.
The Reynolds Number
The Reynolds number Re = ρvL/μ is the most important dimensionless quantity in fluid mechanics. It compares inertial forces to viscous forces:
- Re < 2,300 — laminar flow: smooth, parallel streamlines
- 2,300 < Re < 4,000 — transitional flow: unstable and intermittent
- Re > 4,000 — turbulent flow: chaotic eddies and vortices
In this simulation, reducing viscosity increases the effective Reynolds number, driving the transition from smooth to chaotic flow. Observe how vortices form and cascade to smaller scales — the energy cascade of turbulence.
Numerical Simulation Methods
This simulation uses a grid-based Eulerian approach, solving the velocity and pressure fields on a fixed grid:
- Advection — moving velocity along itself (semi-Lagrangian method)
- Diffusion — spreading momentum due to viscosity (Gauss–Seidel relaxation)
- Pressure projection — enforcing incompressibility (∇·u = 0) with a Poisson solve
This approach, pioneered by Jos Stam in his 1999 paper “Stable Fluids”, produces unconditionally stable simulations regardless of timestep size.
Fluid Dynamics in Science
Navier–Stokes equations underpin much of modern engineering and science:
- Aerodynamics — aircraft wing design, Formula 1 cars, wind turbines
- Oceanography — ocean circulation, tsunami propagation, mixing
- Meteorology — weather prediction, storm modelling, climate simulation
- Biomedical — blood flow in arteries, drug delivery optimisation
- Industrial — chemical reactor design, heat exchangers, HVAC
Modern computational fluid dynamics (CFD) runs on supercomputers solving these equations billions of times per timestep, enabling the design of jets, ships, and buildings.
Key Equations
| Concept | Equation | Description |
|---|---|---|
| Momentum equation | ρ(Du/Dt) = −∇p + μ∇²u + ρf | Navier–Stokes; conservation of momentum |
| Incompressibility | ∇·u = 0 | Continuity equation; fluid volume is conserved |
| Reynolds number | Re = ρvL / μ | Ratio of inertial to viscous forces; governs flow regime |
| Bernoulli (inviscid) | p + ½ρv² + ρgh = const | Pressure + kinetic + potential energy per unit volume |
| Vorticity | ω = ∇ × u | Local rotation of fluid; vortices are high-ω regions |
| Kolmogorov scale | η = (ν³/ε)1/4 | Smallest turbulent length scale; where energy dissipates |
Curriculum Links
| Level | Topics |
|---|---|
| GCSE Physics | Pressure, density, viscosity, upthrust, flow |
| A-Level Physics | Fluid statics and dynamics, Bernoulli, laminar vs. turbulent flow, Re |
| A-Level Further Maths | Partial differential equations, vector calculus, divergence and curl |
| University (Engineering) | Computational fluid dynamics, finite difference/volume/element methods |
| University (Physics) | Continuum mechanics, turbulence theory, Navier–Stokes derivation |
| Postgraduate | Turbulence modelling (RANS, LES), DNS, Kolmogorov energy cascade |
🔒 Unlock All 32 Simulations
Get unlimited access to all 32 interactive simulations including Fluid Dynamics, Orbital Gravity, Double Pendulum, Quantum Mechanics, and more with MySimulator Premium.
View Premium PlansShare this simulation
Send this page to students or colleagues.
Related simulations
Continue with similar experiments.
๐ Recommended Reading
Deepen your understanding with our in-depth articles.