Conceptintro
Eulerian and Lagrangian viewpoints
Also called Eulerian versus Lagrangian.
Describe a fluid by values at fixed points of space, or by values carried with the moving fluid; grids follow the first view, particles the second, and the material derivative links them.
A fluid can be described in two ways. In the Eulerian view, you stand at fixed points of space and record what passes: the velocity, the temperature or the density at each point and time, as fields . In the Lagrangian view, you ride on the bits of fluid and record what each one carries: its position, its velocity and its temperature, as functions of time for each bit. Both views describe the same flow. The material derivative converts between them: it is the rate of change seen by a bit of fluid, written with Eulerian fields. In simulation, the Eulerian view leads to grids, the Lagrangian view leads to particles, and many methods for animation mix the two, because each view makes a different part of the work easy.
In plain words
Think of a river. You can stand on a bridge and measure how fast the water passes under one spot. That is the Eulerian view: the spot stays, the water moves through it.
Or you can drop a cork in the water and follow it, writing down where it goes and how fast. That is the Lagrangian view: you move with the water.
The two give different answers to the question "how fast does the temperature change?". On the bridge, the temperature may stay the same all day, while the cork drifts from cold water into warm water and feels it heat up. The material derivative adds the change at the spot to the change from moving. A computer keeps fluid either on a fixed grid, like many bridges, or on moving particles, like many corks.
The idea
Two descriptions. An Eulerian field gives a quantity at each point of space and each time . A Lagrangian description labels each bit of fluid, for example by its position at time 0, and follows its path , with
The quantity that the bit carries is .
The material derivative. The chain rule gives the rate of change that the bit sees:
The operator in the bracket is the material derivative,
The first term is the change at a fixed point. The second is the change that comes from moving through a field that differs from place to place. For a vector, is the acceleration of a bit of fluid. The momentum equation of the Navier-Stokes equations is Newton's law for a bit of fluid, .
Laws in both views. A quantity that each bit keeps satisfies . In Eulerian form this is the advection equation , and in Lagrangian form it says only that does not change. Conservation of mass reads . So a flow in which each bit keeps its density is exactly a flow with , the incompressible flows of most animation solvers.
From views to methods. Each view makes some steps easy and others hard.
- Eulerian grids. Neighbors are fixed, so differences, the pressure Poisson equation and boundary conditions on walls are simple. Advection is hard: the term moves values across a fixed grid, an explicit scheme must respect the CFL condition, and interpolation smooths the values at each step. A free surface is not on the grid and needs a level set or another marker.
- Lagrangian particles. Advection is trivial: move each particle with its velocity, and holds exactly. The mass is where the particles are, and a free surface comes for free. But particles have no fixed neighbors, so each step must find them, and incompressibility and pressure are harder to impose.
- Hybrids. Particles carry the fluid, and a grid solves for the pressure. This uses each view for what it does well, at the cost of transfers between them, which can smooth or add noise.
- Semi-Lagrangian advection. Values stay on a grid, but each grid point is traced back along the flow for one step by the method of characteristics, and the value at the start point is interpolated. The step is Lagrangian in thought and Eulerian in storage.
Examples
A steady field and a warming particle. Let air move along at m/s through the steady temperature field (K, with in m). At every fixed point, : a thermometer on a post reads a constant. A bit of air that starts at is at , and its temperature is , so it warms at K/s. The material derivative gives the same: K/s.
A carried pattern. Let for any profile and constant . At a fixed point, , which is not zero. Along a bit of fluid, is constant, so the bit keeps its temperature. Check: . The pattern moves; nothing in it changes.
A steady flow that accelerates. Let with , which does not depend on time. At each fixed point, . But a bit of fluid at follows , and its acceleration is . The material derivative gives . At m, both give m/s². A steady Eulerian field does not mean that the fluid is not accelerating.
One semi-Lagrangian step by hand. On a 1D grid with spacing 1, let at the points , with and . Each point traces back to and takes the linear interpolation there, which is the mean of and . The result is . A particle carrying the value 10 would still carry 10, now at . The sum is the same, 10, but the peak has dropped by half. This smoothing at every step is the numerical dissipation of grid advection, which BFECC and vorticity confinement try to reduce or hide.
Where it is used
- Grid (Eulerian) methods. Stable fluids and the Foster-Metaxas method store the velocity on the MAC grid. The level set method and the volume of fluid method track a liquid surface with Eulerian fields. Height field water and the shallow water equations are Eulerian in two dimensions. In scientific computing, the finite volume method is the usual Eulerian discretization.
- Particle (Lagrangian) methods. Smoothed particle hydrodynamics, weakly compressible SPH, position based fluids and the vortex particle method carry the fluid on particles.
- Hybrid methods. The marker and cell method moves marker particles through an Eulerian grid to tell fluid from air. The particle in cell method, FLIP, APIC and the material point method carry the state on particles and solve on a grid. The particle level set method uses particles to correct an Eulerian level set.
- Semi-Lagrangian advection. Stable fluids, BFECC and the unconditionally stable MacCormack method trace grid points back along the flow.
- The problem. Fluid simulation for animation lists the methods in both views and what they cost.
References
- Robert Bridson, Fluid Simulation for Computer Graphics, second edition, CRC Press, 2015, the chapter The Equations of Fluids (the Lagrangian and Eulerian viewpoints and the material derivative) and the chapter Advection Algorithms
- G. K. Batchelor, An Introduction to Fluid Dynamics, Cambridge University Press, 1967 (paperback 2000), chapter 2, the kinematics of the flow field (the two descriptions and the rate of change following a material element)
- Francis H. Harlow and J. Eddie Welch, Numerical calculation of time-dependent viscous incompressible flow of fluid with free surface, The Physics of Fluids 8(12), 2182-2189, 1965, the marker and cell method, an Eulerian grid with Lagrangian marker particles
- J. J. Monaghan, Smoothed particle hydrodynamics, Annual Review of Astronomy and Astrophysics 30, 543-574, 1992, a fully Lagrangian method, the equations written with the derivative that follows the particle
- Jos Stam, Stable fluids, Proceedings of SIGGRAPH 1999, 121-128, the advection step that stores values on a grid and traces each grid point back along the flow
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag ZA2F6K Edit this page History Report an error Markdown