Numerical methods · Draft for technical review
The solver converged. Unfortunately, to the wrong physics.
A completed run is not yet a verified result. Make three decisions and judge the computed dye transport.
Read the article: Who Checks the Checker?The assignment
A periodic channel has dimensionless length L = 1. A dye pulse moves to the right at known velocity c = 1, without physical diffusion. Find its profile at T = 0.5. The grid has N = 80 points, Δx = 1/80. Time integration uses forward Euler.
Initial profile: u₀(x) = exp[20 (cos(2π(x − 0.25)) − 1)]. Periodicity means u(x + 1,t) = u(x,t).
Release criteria, fixed in advance: a suitable model, a complete run, a stable numerical combination, relative L² error ≤ 5%, relative mass error ≤ 10⁻¹⁰, and values in [0,1] within a rounding tolerance of 10⁻¹⁰. These accuracy requirements belong to this assignment; other transport problems need their own.
The title is provocative: this is an initial-value problem integrated to a target time, rather than an iterative solver run to a residual tolerance.
The computed result
Solid blue: computation. After the reveal, dashed orange: analytical reference. The vertical axis scales automatically; check its values.
Data table for the displayed state (all grid points)
| x | Computation | Reference |
|---|
Would you release this result?
Reveal
Reference: u(x,t) = u₀((x − t) mod 1), evaluated at the time actually reached. Error norms are discrete norms at the grid points: L¹ = Σ|eⱼ|/N, L² = √(Σeⱼ²/N), L∞ = max|eⱼ|. Relative L² error is ||e||₂/||u_ref||₂.
Mass conservation alone establishes neither the transport direction nor the pulse shape. A finite run without conspicuous growth does not prove stability. A small error in this test does not validate a real channel.
Retrace the path backwards
Inspect the time step first, then the spatial approximation and finally the model. Use the graph nodes to change your decisions and judge again.