Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Phase 1 — 1D Fundamentals: Advection, Diffusion, and Burgers

Authors
Affiliations
University of Valencia

The geophysical models later in this book are built from three elementary processes: transport (advection), smoothing (diffusion), and their nonlinear coupling. Each one already contains a numerical lesson that survives all the way up to the shallow-water and quasi-geostrophic models — the CFL limit of explicit advection, the much tighter stability limit of explicit diffusion, and the steepening-versus-smoothing balance that sets the grid Péclet number. This chapter develops the three in one dimension, where the physics is transparent and the somax models run in milliseconds LeVeque (2002)Durran (2010).

What you will learn

  • Why linear advection on a periodic ring is a pure phase shift, and what the CFL number controls

  • Why explicit diffusion is limited by Δt≲Δx2/(2ν)\Delta t \lesssim \Delta x^2 / (2\nu), not Δx\Delta x

  • How the nonlinear Burgers flux steepens a smooth wave into a shock, and how viscosity arrests it

1. Linear advection — transport without distortion

The 1-D linear advection equation moves a field u(x,t)u(x,t) at constant speed cc without changing its shape,

∂tu+c ∂xu=0,\partial_t u + c\,\partial_x u = 0,

with exact solution u(x,t)=u0(x−ct)u(x,t) = u_0(x - ct) — the initial profile translated rigidly. On a periodic domain the solution returns to its start after one transit time L/cL/c. The numerical challenge is that an explicit scheme can only see information within a few cells per step, so the time step is bounded by the Courant–Friedrichs–Lewy (CFL) condition

CFL  =  c ΔtΔx  ≤  CFLmax⁡,\mathrm{CFL} \;=\; \frac{c\,\Delta t}{\Delta x} \;\le\; \mathrm{CFL}_{\max},

where CFLmax⁡\mathrm{CFL}_{\max} is an O(1)O(1) constant set by the time integrator. Above it the scheme is unstable; well below it, numerical diffusion smears the profile. Equation (2) is the one-dimensional ancestor of the gravity-wave CFL that governs every shallow-water run.

watermark extension not installed; skipping reproducibility readout.

We advect a smooth Gaussian pulse one full transit around a periodic ring. The exact solution returns it to the start; the discrete solution shows the small numerical dispersion/diffusion an explicit upwind scheme introduces over one revolution.

advection CFL = 0.400

Figure 1 overlays the initial pulse and the field after one full revolution. With the CFL number printed above (well inside the stable range) the pulse returns close to where it started; the slight amplitude loss and broadening is the scheme’s numerical diffusion.

<Figure size 1200x500 with 1 Axes>
A Gaussian pulse advected one full transit of a periodic domain at unit speed. The dashed curve is the initial condition; the solid curve is the numerical solution after returning to its start. The small broadening is implicit numerical diffusion from the upwind reconstruction.

Figure 1:A Gaussian pulse advected one full transit of a periodic domain at unit speed. The dashed curve is the initial condition; the solid curve is the numerical solution after returning to its start. The small broadening is implicit numerical diffusion from the upwind reconstruction.

2. Diffusion — smoothing and the parabolic time-step limit

The 1-D diffusion (heat) equation spreads a field at rate set by the diffusivity ν\nu,

∂tu=ν ∂xxu.\partial_t u = \nu\,\partial_{xx} u .

A Gaussian stays Gaussian, with its variance growing linearly in time, so a blob of initial width σ0\sigma_0 has width σ02+2νt\sqrt{\sigma_0^2 + 2\nu t}. The crucial numerical fact is that an explicit discretisation of (3) is stable only for

ν ΔtΔx2  ≤  12,\frac{\nu\,\Delta t}{\Delta x^2} \;\le\; \frac{1}{2},

a limit that scales with Δx2\Delta x^2, not Δx\Delta x. Refining the grid by two therefore demands a four-fold smaller step — the reason stiff diffusion is the term somax tags implicit for IMEX integration (see the composable-models tutorial).

diffusion number  nu*dt/dx^2 = 0.040  (must be <= 0.5)

Figure 2 shows the blob broadening and flattening through successive intervals while conserving its integral — the hallmark of a diffusive process.

<Figure size 1200x500 with 1 Axes>
A Gaussian blob diffusing under . Each curve is a later time; the peak drops and the profile widens while the area underneath is preserved.

Figure 2:A Gaussian blob diffusing under (3). Each curve is a later time; the peak drops and the profile widens while the area underneath is preserved.

3. Burgers — nonlinear steepening meets viscous smoothing

The viscous Burgers equation couples nonlinear self-advection to diffusion,

∂tu+u ∂xu=ν ∂xxu,\partial_t u + u\,\partial_x u = \nu\,\partial_{xx} u ,

and is the canonical one-dimensional caricature of the Navier–Stokes balance between inertia and viscosity Burgers (1948). Where uu is large the wave moves faster, so a smooth profile steepens on its leading edge; the viscous term resists, and the two balance in a thin front of width ∼ν/U\sim \nu / U. The relevant dimensionless number is the grid Péclet number PeΔ=U Δx/ν\mathrm{Pe}_{\Delta} = U\,\Delta x / \nu: when it exceeds ∼2\sim 2 the front is under-resolved and the upwind/WENO reconstruction (the operators chapter) controls the spurious oscillations.

grid Peclet number  U*dx/nu = 1.95

Figure 3 follows the sine wave as its compressive half steepens toward a near-shock while viscosity keeps the front finite — the steepening/smoothing competition that motivates flux-limited advection schemes.

<Figure size 1200x500 with 1 Axes>
A sine wave evolving under the viscous Burgers equation . The leading edge steepens as the nonlinear flux compresses it; viscosity holds the front at finite width instead of letting it break.

Figure 3:A sine wave evolving under the viscous Burgers equation (5). The leading edge steepens as the nonlinear flux compresses it; viscosity holds the front at finite width instead of letting it break.

Summary

The three building blocks and their numerical signatures, gathered in Table 1:

Table 1:The three 1-D processes and the time-step limit each imposes on an explicit scheme.

Process

Equation

Explicit step limit

Advection

(1)

hyperbolic, c Δt/Δx≤O(1)c\,\Delta t/\Delta x \le \mathcal{O}(1)

Diffusion

(3)

parabolic, ν Δt/Δx2≤1/2\nu\,\Delta t/\Delta x^2 \le 1/2

Burgers

(5)

both, plus grid-Péclet resolution of the front

  • Linear advection is a pure translation; the CFL number (2) bounds the explicit step and is the ancestor of the gravity-wave CFL in the shallow-water models.

  • Explicit diffusion carries the far tighter parabolic limit (4) — the reason somax offers an IMEX path for the stiff Laplacian.

  • Burgers couples the two: the nonlinear flux steepens, viscosity smooths, and the grid Péclet number decides whether the front is resolved.

The next chapter lifts these processes into two dimensions and adds the elliptic (Poisson) problem that ties velocity to pressure.

References
  1. LeVeque, R. J. (2002). Finite Volume Methods for Hyperbolic Problems. Cambridge University Press. 10.1017/CBO9780511791253
  2. Durran, D. R. (2010). Numerical Methods for Fluid Dynamics: With Applications to Geophysics (2nd ed., Vol. 32). Springer. 10.1007/978-1-4419-6412-0
  3. Burgers, J. M. (1948). A mathematical model illustrating the theory of turbulence. Advances in Applied Mechanics, 1, 171–199. 10.1016/S0065-2156(08)70100-5