Numerical Methods

All books

Elliptic

You have one of these when the answer is a value at every point in a region, and nothing travels.

Elliptic, not averaging. The answer is a value at every point. An average is one number over what you cannot list, and it comes with an error bar.

What you are modelling

A settled state. The system has had time to reach equilibrium, so there is no rate of change left in the model. What remains is a balance that has to hold at every point, with conditions given on the edge.

The model you write down

−∇⋅(k∇u)=fin Ω,-\nabla \cdot \big(k \nabla u\big) = f \quad \text{in } \Omega ,

with uu given on part of the boundary and its derivative given on the rest. The simplest case is Laplace's equation, with f=0f = 0: no source, and a value on every edge.

What it becomes on a computer

Worked number. For −u′′=1-u''=1 on [0,1][0,1] with u=0u=0 at both ends, u(x)=x(1−x)/2u(x)=x(1-x)/2, whose maximum is 1/81/8 at x=1/2x=1/2.

A mesh, one unknown at each node, and a large sparse linear system

Au=b.A u = b .

The matrix is symmetric and positive definite in the simple case, which is a strong statement: it has a fast, reliable iterative method, and the answer is unique.

The cost is in solving that system. A direct solve is fine in two dimensions and becomes a memory problem in three. An iterative method is cheap per step and needs to move information across the whole mesh.

The system is the problem. The figure solves a one-dimensional version by conjugate gradients. The field moves toward the exact curve, and the residual below it falls to the floor in at most one iteration per cell.

Figure 1

The signature

There is no speed of propagation, because there is no propagation. A change in one boundary value changes the solution everywhere immediately. A smoother is one sweep of Jacobi or Gauss–Seidel; multigrid uses a coarse mesh for the part of the error a sweep cannot see. A method that moves information one cell per step needs a number of steps that grows with the width of the mesh. Jacobi and Gauss–Seidel need of order the width squared. A Krylov method such as conjugate gradients, which the figure uses, does better — of order the width — but still grows. Multigrid is the one whose count does not grow with the mesh at all.

Two consequences follow:

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
a constant coefficient, and a small mesh Sparse direct (Cholesky, LU) cubic in the unknowns
a constant coefficient, and a large mesh Conjugate gradients, multigrid, algebraic multigrid the iteration count depends on the mesh
a coefficient that varies or jumps Preconditioners (ILU, AMG, Jacobi), domain decomposition the preconditioner decides the rate
a non-symmetric term GMRES, BiCGSTAB no short recurrence, so storage grows
a simple operator on a rectangle Fast Fourier transform, Jacobi, Gauss–Seidel, SOR the geometry has to be simple
a boundary value on a large domain Boundary element a dense system in the boundary unknowns
technique what it does when it wins when it is the wrong tool
Sparse direct (Cholesky, LU) Factorises the matrix once Two dimensions; many right-hand sides Three dimensions: the factors fill in
Conjugate gradients Minimises the energy over a Krylov subspace Symmetric positive definite Any coupling or convection makes it fail
GMRES, BiCGSTAB Krylov methods for general matrices Not symmetric; a constraint is present A symmetric problem, where CG is cheaper
Jacobi, Gauss–Seidel, SOR Simple sweeps over the mesh As a smoother inside multigrid Alone: the step count grows with the mesh
Multigrid, algebraic multigrid Solves on several meshes at once Large, smooth, elliptic problems Non-elliptic problems; jumping coefficients without AMG
Preconditioners (ILU, AMG, Jacobi) Makes the system easier for a Krylov method Almost always, in practice You have not measured the iteration count
Domain decomposition Splits the region into pieces Very large problems on many cores The interface problem is not solved well
Fast Fourier transform Diagonalises a constant-coefficient operator Periodic, constant coefficients Varying coefficients or complex boundaries
Boundary element Solves on the boundary only Linear, homogeneous, unbounded regions Varying coefficients inside the region

Systems that live here

What goes wrong

symptom cause fix
The iteration count grows as the mesh is refined No preconditioner, or a smoother used alone Multigrid, or AMG
It ran all night and moved nowhere The method moves information one cell per step A method that sees the whole region at once
Conjugate gradients stalls or returns nonsense The matrix is not symmetric positive definite Check symmetry; use GMRES or MINRES
The answer looks right but the flux is wrong The boundary condition is on the wrong quantity Check whether the value or its derivative was given
Refining the mesh changes the answer a lot A point load or a re-entrant corner Graded mesh, or a formulation that expects it
Two different solvers agree but the numbers differ The system is ill-conditioned Scale the unknowns; check the residual, not the answer

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.