Stellar Grove · Concrete Mathematical Modelling
A spill drifting downstream
500 kg of a chemical is spilled into a river. When does it reach the town's water intake 10 km downstream, how strong, and for how long?
Chapter 11 · Further flow and diffusion. A worked example rebuilt from the chapter's topic in Mike Mesterton-Gibbons, *A Concrete Approach to Mathematical Modelling*; the scenario and numbers are our own illustration, not the book's text.
Headline: The pollution peaks at the intake 5.5 hours after the spill, at 3.89 mg/L, 78 times the 0.05 mg/L limit. The intake should close for about 3.6 hours (4.0 to 7.6 h after the spill).
- 5.5 huntil the peak reaches the intake
- 3.89 mg/Lpeak concentration at the intake
- 3.6 habove the 0.05 mg/L limit
The problem
A tanker spills kg of a soluble chemical into a river with cross-section m² flowing at m/s. Turbulence and the uneven velocity across the channel spread the cloud along the river (longitudinal dispersion m²/s), and the chemical breaks down with a half-life of 24 hours. The town's intake is 10 km downstream.
The model
Conservation of mass with transport by the current (advection), spreading (dispersion, Fick's law) and first-order decay gives the advection-diffusion-reaction equation:
For an instantaneous release the solution is a Gaussian cloud whose centre moves at , whose width grows like , and whose mass decays exponentially:
At the intake the Péclet number is large, so the cloud arrives as a compact pulse centred near h. Maximising over gives the peak; solving on either side gives the closure window.
Try it
Spill explorer
Drag the sliders; hover the chart to read values.
Key findings
- Distance buys dilution, slowly: doubling the distance to 20 km cuts the peak from 3.89 to 2.34 mg/L (a factor of 1.66; dispersion alone gives about √2 = 1.41, decay adds the rest), while the time above the limit grows from 3.6 to 4.8 h.
- Dispersion lowers the peak and lengthens the closure: doubling D to 60 m²/s gives a peak of 2.76 mg/L and 4.9 h above the limit (try the dispersion slider).
- Arrival is predictable from the current alone: the peak comes at 5.5 h, close to h, which gives the water company its warning time.
from books.concrete_mathematics import flow as fl
import math
k = math.log(2) / (24.0 * 3600)
t, c = fl.spill_peak(x=10000, mass=500, area=40, u=0.5, D=30, k=k)
print(round(t / 3600, 2), "h;", round(c * 1000, 3), "mg/L")
print([round(s / 3600, 2) for s in fl.time_above(10000, 0.05 / 1000, 500, 40, 0.5, 30, k)])
# → 5.51 h; 3.888 mg/L
# → [4.0, 7.6]
Assumptions and extensions
- Fully mixed across the channel. Near the spill the cloud hugs one bank; the 1-D model applies only after a mixing length of a few kilometres.
- Constant river. Tributaries add water (dilution) and change the speed; split the river into reaches.
- For a continuous leak instead of a spill, the steady solution is
flow.steady_plume; the numerical schemeflow.advection_diffusionhandles any initial shape.