Skip to content
All apps

Navier-Stokes

About this app

The equation behind every flow, computed live: stir dye into the field, turn the Reynolds number from viscous to turbulent, switch scenarios from cylinder to free jet. Every term of the equation can be switched off on its own — without the nonlinear transport term the vortex street collapses at once. Plus the Millennium Problem: why vortex stretching is absent in two dimensions and present in three.

With explain mode: an AI tutor walks you through the app, points out what matters in the scene and answers your questions.

The equations

The Navier–Stokes equations describe the motion of viscous liquids and gases. For an incompressible fluid they read ρ(∂u/∂t + (u·∇)u) = −∇p + μ∇²u + f with ∇·u = 0, which is Newton’s F = m·a per unit volume. The convective term (u·∇)u is the only nonlinear one: the flow carries itself along. The Reynolds number Re = ρ·U·L/μ compares inertia with viscosity and decides between creeping, laminar and turbulent flow. Whether smooth initial data in three dimensions always keep smooth solutions is one of the Clay Mathematics Institute’s Millennium Problems.

What the app shows

A two-dimensional flow is computed live on the GPU (Stable Fluids with MacCormack advection). Scenarios include a cylinder, an airfoil and a free jet, rendered as dye, pathlines, vorticity, speed, streamlines or pressure. Each term of the equation can be switched off individually. A separate panel explains the Millennium Problem: why vortex stretching (ω·∇)u vanishes in 2D but not in 3D, with a schematic 3D vortex tube, a timeline of key results and the scaling argument.

Things to try

Turn the Reynolds number from viscous to turbulent and watch the Kármán vortex street form behind the cylinder. Then switch off the convective term: the vortex street collapses immediately. Without the pressure term the flow becomes compressible; without viscosity you are left with the Euler equations. Stir directly in the field or grab the obstacle and move it, and the wake follows live. Note that numerical diffusion on the grid acts like extra viscosity, so the Re you set is not exactly the Re you get.

Frequently asked questions

What do the Navier–Stokes equations describe?
They describe how velocity u and pressure p in a viscous liquid or gas change over time. They are Newton’s second law per unit volume: inertia and convection on one side, pressure forces, friction and external forces on the other. For incompressible flow the condition ∇·u = 0 is added.
What is the Navier–Stokes Millennium Problem?
In 2000 the Clay Mathematics Institute offered one million dollars for settling whether the three-dimensional incompressible Navier–Stokes equations always have a smooth solution for all time, given smooth initial data with finite energy, or whether the velocity can blow up in finite time. Global smoothness is proven in two dimensions; in three dimensions the question remains open for the case without external force.
What is a Kármán vortex street?
Behind a body such as a cylinder, vortices start to shed alternately from the left and right side once the Reynolds number exceeds roughly 50. They form two staggered rows of counter-rotating vortices. The pattern appears behind bridge piers and chimneys and in cloud images downwind of islands.
How accurate is the simulation in the Navier–Stokes app?
The app computes in two dimensions on a finite grid using the Stable Fluids method; it is meant for intuition, not engineering design. Numerical diffusion limits the effective Reynolds number, and vorticity confinement partly compensates for it. The Millennium Problem concerns the three-dimensional case, which the app shows only schematically.

Subject: Physics

More from Physics

A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps