Numerical Methods

All books

Hyperbolic

You have one of these when information travels at a finite speed along paths, and what arrives keeps the shape of what was sent.

Hyperbolic, not elliptic. Information travels at a finite speed and arrives. In an elliptic problem nothing travels, and the answer is already settled.

What you are modelling

Something carried. A pressure wave, a shock, a crowd, a flood, a gravitational wave. The model has a direction of travel in it, and that direction is the reason the class behaves differently from a diffusing one.

The model you write down

A conservation law,

∂u∂t+∇⋅F(u)=0,\frac{\partial u}{\partial t} + \nabla \cdot F(u) = 0 ,

or the wave equation, which is the same statement written twice. The flux FF says how much of uu crosses a boundary per unit time. For the simplest case F=auF = a u, and the whole solution is uu shifted along the line x=atx = a t.

What it becomes on a computer

Worked number. With wave speed a=2a=2 and Δx=0.1\Delta x=0.1, the stability limit is Δt≤Δx/a=0.05\Delta t\le \Delta x/a=0.05.

Two routes, and the first one is often forgotten:

The step is limited by the CFL condition (Courant–Friedrichs–Lewy): in one step, information must not cross more than one cell. That limit comes from the physics and the mesh, not from the diffusion of the scheme.

The CFL condition is easiest to see as an experiment. The figure sends a pulse through the scheme; below c=1c = 1 it splits into two halves and keeps its energy, and above c=1c = 1 the short modes grow.

Figure 1

The signature

Disturbances travel at a finite speed. That single fact explains almost everything about the class:

The same classification argument decides whether a problem can be evolved at all. Elliptic coordinate conditions in numerical relativity make a change inside the region felt everywhere at once, and the calculation cannot run. Hyperbolic conditions give a finite speed, and it can.

A wave that must keep its energy

Remembering has a price in the method: the answer has no decay to hide the error in, so an integrator that quietly adds or removes a little energy every step shows it.

This is the Hamiltonian case, and it is a flag rather than a box. The class has not changed; what changes is that the method must respect the structure, or a long run is worthless. A single oscillator shows it. Run the same one with a general method and with a structure-preserving one, and only one of them stays bounded.

Figure 2

Flags that matter here

Techniques

Every method named here is in Methods, A to Z, with its price and what it will not do.

Start from the model you have. Each row is a property of the model in front of you, the methods that fit it, and what the fit costs. The method-keyed table below is the same list sorted by name.

what your model is the methods that fit the price
one simple wave, and a smooth solution Method of characteristics it cannot cross a shock
a conservation law Godunov, finite volume, Riemann solvers (Roe, HLLC, exact) the Riemann problem is the work
shocks, and you want order away from them WENO, limiters, discontinuous Galerkin the limiter costs accuracy at a smooth extremum
smooth, and a fine mesh you can afford Lax–Wendroff, spectral element a shock makes it ring
linear advection on a coarse mesh Upwind numerical diffusion
a wave that must stay bounded over a long run Symplectic integration the structure has to be there to preserve
technique what it does when it wins when it is the wrong tool
Method of characteristics Solves along the paths information takes Linear or simple non-linear problems Shocks form, or the region is complex
Upwind Uses the direction of travel to choose the stencil Convection-dominated problems The wave speed changes sign
Lax–Wendroff Second-order centred, with a correction Smooth solutions Shocks: it oscillates
Godunov, finite volume Solves a Riemann problem at each face Shocks, conservation laws Smooth, low-amplitude waves where it is overkill
Riemann solvers (Roe, HLLC, exact) Decides the flux between two states Systems of conservation laws You have not checked the solver's entropy fix
WENO, limiters High order away from a shock, low across it Shocks and smooth parts in one problem A smooth answer, where high order alone is cheaper
Discontinuous Galerkin High order inside each cell, with a flux between Complex geometry, high order, parallel machines Strictly bounded problems without a limiter
Spectral element High order on large elements Smooth waves over long times Shocks
Symplectic integration Preserves the structure of a Hamiltonian problem Long-time wave and orbit problems Dissipative problems

Systems that live here

What goes wrong

symptom cause fix
The shock is smeared over many cells First-order upwind, or too much numerical diffusion Higher order with a limiter
Wiggles appear near a shock A centred scheme, or an unlimited high-order one Upwind, or a limiter
The answer behind the shock is wrong A non-conservative form, or the wrong Riemann solver Write the flux form; check the wave speeds
It blows up at a step that worked before CFL crossed, usually by a finer mesh Reduce the step, and compute it from the fastest wave
A rarefaction has a jump in it The Riemann solver has no entropy fix Add one
Energy grows without a source A method that does not respect the structure Symplectic or energy-preserving integration
The boundary at the outlet reflects A value was applied where information leaves A one-sided, non-reflecting condition

Used in this collection

No page in this collection names this class yet.

Back to the map: the nine kinds puts this class among the other eight.

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.