TL;DR
The advection equation describes a quantity that is carried along by a flow without spreading or changing shape. If is the amount of something at position and time , and the flow moves it at constant speed , then . Its solution is the starting profile slid to the right by .
This is the simplest model of transport: a pollutant in a river, a pulse in a cable, or a traffic jam drifting backwards. It is also the test case on which numerical methods for flow problems are first checked.
Where you'll see it: in weather and ocean models as the transport part of a larger flow, in finite-volume solvers for shock waves, and as the model problem for choosing which side of a grid cell a numerical scheme should look at.
Intuition
A leaf on a moving river
Drop a leaf into a river that flows at 0.5 metres per second. The leaf moves downstream at that speed, and after an hour it has travelled 1800 metres. A cloud of dye released at the same point moves the same way: the whole cloud is carried, and it keeps roughly the same shape as long as nothing mixes it or spreads it.
The advection equation says exactly this for a quantity such as dye concentration. The rate at which changes at a fixed point, , is balanced by the rate at which the flow carries past that point, . The two terms cancel when the profile moves unchanged.
Why does the idea matter? Many physical processes are dominated by transport. Weather fronts move with the wind. Waves on a string are two advection pulses travelling in opposite directions. A numerical method that cannot move a pulse without smearing it is useless for these problems, so the advection equation is the first thing a solver must get right.
- t = 0
- t = 1, c = 2
The math
Let be defined for on the real line and , and let be a constant. The linear advection equation is
Here is the partial derivative of with respect to time and its partial derivative with respect to position (see Partial Derivative). The equation is a Partial Differential Equation of first order, and is the initial profile.
Solution by characteristics
The idea is to find curves along which the equation becomes an ordinary differential equation. Such curves are called characteristics.
- Let be a curve with , starting at some point . So .
- Define , the value of along this curve.
- By the chain rule, .
- The advection equation says this is zero, so is constant: .
- Eliminate . The solution is
Each point of the initial profile is carried along its own characteristic at speed . For the profile moves right; for it moves left.
Conservation of the total
If decays fast enough at infinity, the total is conserved, because . The sum of squares is also conserved on a periodic domain. Multiply the equation by :
- .
- Integrate over a period. The right side is a total derivative in , which integrates to zero on a periodic domain.
- So is constant in time.
A numerical scheme that fails to preserve this quantity tends to add energy or dissipate it, which shows up as spurious growth or smearing of the pulse.
Variable speed
If the speed depends on position, , the same method applies with . For example, with the characteristics satisfy , and the solution is . Check: and , so the two terms cancel.
Conservation form
The equation can also be written as , since is constant. This is the flux form, where is the flux. The flux form is the one that finite-volume solvers use, because it makes the total quantity change only through the boundaries of each cell. When is nonlinear, the same form leads to shock waves, which the constant-speed case cannot produce.
Worked examples
Let and . The solution is . Find .
- Substitute: .
- Evaluate: .
- Check: at the value at is ; after one unit of time the profile has moved to the right by , so the value that was at is now at .
Interpretation: the wave has moved three units to the right, which is why the value at has changed from its initial peak to a value near .
Let and . Then .
- At the peak is at with value .
- At the solution is , so the peak is at with value .
- The value at is now : the old peak has left, and the point it occupied is almost empty.
- The area under the curve is at both times, so the total is conserved.
Interpretation: the pulse keeps its height and width while it moves, which is the defining behaviour of advection.
Discretise on a grid with spacing and time step , with speed . The Courant number is . The upwind scheme for uses the cell to the left, because information comes from the upstream side:
Start with a single spike: at indices to . These are hand computations, not a run of code.
- .
- .
- .
- .
- The result is .
Interpretation: the spike moved right by half a cell, which is the exact distance for this step. It also spread into two cells, which is the numerical diffusion that every upwind scheme introduces. The next section explains why.
Tradeoffs and failure modes
Numerical schemes for advection face a basic trade-off: accuracy against stability and smearing.
| Situation | What goes wrong | Better choice |
|---|---|---|
| Central differences for with explicit time stepping | The scheme is unconditionally unstable and produces growing oscillations | Use an upwind difference that looks in the direction the flow comes from |
| Upwind differences | Stable, but the pulse smears over time (numerical diffusion) | Use a higher-order scheme such as Lax–Wendroff (which can oscillate near sharp fronts, so limiters are often added), or refine the grid |
| Time step too large relative to the grid | The Courant number exceeds the stability limit and the solution blows up | Keep at most 1 for the upwind scheme, as the Courant–Friedrichs–Lewy condition requires |
| Speed of the wrong sign | Upwinding on the wrong side gives an unstable scheme | Choose the upwind side from the sign of |
| Speed depends on the solution | Characteristics can cross, and smooth profiles form shocks | Use a conservative nonlinear method, as in Hyperbolic Conservation Laws |
A common mistake is to think the problem is only about speed. The shape of the pulse matters as much: a sharp front needs many grid points, and a coarse grid hides how much it has smeared.
History
Transport equations of this type appear in eighteenth-century studies of fluids and strings. The wave equation, which is a second-order relative, was studied by d'Alembert in 1747, and his solution is built from two advected pulses travelling in opposite directions.
In 1928 Richard Courant, Kurt Friedrichs and Hans Lewy published a paper on finite-difference methods for partial differential equations. It contained the condition on the time step that now bears their names, and it showed that the stability of explicit schemes depends on the ratio of speed to grid spacing. The condition is still the first thing checked for any explicit advection solver.
In 1955 Michael Lighthill and Gerald Whitham described traffic flow as a continuum in which waves of density move along the road. Their model is a nonlinear cousin of the advection equation, and it is one of the first clear uses of the idea outside physics.
Check yourself
QuestionWhat is the general solution of u_t + c u_x = 0 with initial profile u_0?Show answer
. The initial profile is shifted to the right by when is positive, and to the left when is negative. The shape is unchanged for all time.
QuestionLet u_0(x) = cos(x) and c = 2. Find u(0, 0.5).Show answer
The solution is , so . The value at the origin at time comes from the point at time , which has been carried to the origin by the flow.
QuestionWhy does an upwind difference use the grid point on the upstream side of the flow, rather than a symmetric centred difference?Show answer
Information in the advection equation travels in one direction, from upstream to downstream. A centred difference uses both neighbours equally, and with explicit time stepping it adds energy at every step, so errors grow. The upwind difference uses only the upstream neighbour, which matches the direction of the characteristics, and the scheme stays stable for small enough time steps. The cost is numerical diffusion, which smears the profile.
QuestionA pollutant flows down a river at 0.5 metres per second. Ignoring spreading, where is its peak 2 hours after release?Show answer
The distance travelled is metres, so the peak is 3.6 kilometres downstream of the release point. The advection model ignores spreading, so in reality the peak would be lower and the plume wider. This is why models for pollutants add a diffusion term to the advection equation.