Hydrology lab · 50 km of river · 1 spill · 1 town

How much warning does the town get?

At the top of the river a tank leaks. Downstream, a town drinks from the same water. Move the dials, drop the dye, and read the clock nobody asked for.

Drag across the river to move the town's intake.

Real-world setups, scaled to this river

Guess first

How many hours of warning will the town get? Set your guess, then press Spill now.

10 h

Warning time—until the intake first passes the safe level
Peak at intake—
Time above safe level—how long the intake stays unsafe
Extra lead from sensor—

Along the river · dots: numerical model · line: exact solution

In continuous mode the exact line is the sum of many tiny pulses.

Diffusion budget

Physical dispersion D
Numerical diffusion from the grid
Courant number = Cell Péclet number =

An upwind grid smears a front by about u·Δx/2·(1−Courant). When its bar is longer than the physical one, you are watching the grid, not the river.

At the town intake · concentration over time

The operator's seat

You run the intake. Close the valve when you think the plume is arriving; reopen it once it has passed. Every unsafe hour let in is a risk. Every clean hour cut off is a town without water.

0.0Unsafe hours let in
0.0Clean hours cut off
0.0Unsafe hours blocked

Your river, your numbers

Find a gauge near you for the discharge Q, then estimate width, depth and slope. The model turns them into u and D.

Fischer's rough formula: D ≈ 0.011·u²W²/(H·u*), with u* = √(g·H·S). Real rivers can differ several-fold; a dye test is the honest answer.

What each dial does

u

Flow speed

Advection. Everything rides the current, so arrival time ≈ distance ÷ u. Double the speed and the warning halves.

D

Dispersion

Spreading. Bends, shear and dead zones stretch the plume along the river. Higher D: earlier arrival at low levels, longer duration, lower peak.

k

Decay

Loss. Sunlight, microbes and reactions remove a fixed share each hour, so the plume shrinks by e^(−kt). Metals don't decay; they only dilute.

M

Spill mass

Grams released per m² of river cross-section. Double it and every concentration doubles: the plume arrives together but crosses the safe level sooner and stays above it longer.

x

Intake position

Farther is safer: more time to spread and decay. But warning is only distance ÷ speed, and a town 10 km down gets very little.

C*

Safe level

A regulatory line. Warning time is when the plume first crosses it, not when it first arrives.

Δx

Grid size

The river is cut into cells. Coarse cells smear the plume, wider and lower than the physics says. Switch grids and watch the dots leave the line.

ε

Numerical error

We use explicit upwind differences: simple and stable, but their truncation error behaves like extra diffusion, D_num ≈ u·Δx/2·(1−Courant). Refine the grid, or use higher-order schemes (QUICK, Lax–Wendroff, flux limiters).

The equation behind it

∂C/∂t + u ∂C/∂x = D ∂²C/∂x² − kC C(x,t) = M / √(4πDt) · exp(−(x − x₀ − ut)² / 4Dt) · e^(−kt)

Left: the plume is carried at speed u. Right: it spreads with D and fades with k. The line is the exact pulse solution; the dots are a finite-difference approximation.

Try this

Rivers have already run this experiment

Operators use models like this one, on bigger computers, to decide when to close an intake. Load a setup and compare. These are teaching numbers, not reconstructions.

  1. 1986

    Sandoz warehouse fire · Rhine

    Fire-fighting water carried agrochemicals into the Rhine at Basel. Fish died for hundreds of kilometres. It led to the Rhine Action Programme and an international warning system.

  2. 2000

    Baia Mare cyanide spill · Tisza, Danube

    A tailings dam in Romania released cyanide-bearing water that travelled through Romania, Hungary and Serbia. The Danube Accident Emergency Warning System followed.

  3. 2005

    Songhua River benzene slick

    After a chemical plant explosion in Jilin, a benzene-laden slick moved downstream. Harbin, a city of millions, shut its water supply for about four days while it passed.

  4. 2012

    Tone River formaldehyde

    Chemicals discharged upstream turned into formaldehyde at treatment plants. Water supply was suspended or restricted in several cities of the Kanto region.

  5. 2014

    Elk River MCHM spill

    A tank leaked a coal-washing chemical about 1.5 miles above a water intake in Charleston, West Virginia. Around 300,000 people were told not to use tap water.

  6. 2015

    Gold King Mine release

    Mine wastewater burst out during cleanup work in Colorado and ran orange down the Animas and San Juan rivers. Towns and Navajo farms closed their intakes and waited.

  7. 2023

    East Palestine derailment

    A train carrying chemicals derailed and burned in Ohio. Some utilities downstream on the Ohio River used travel-time estimates to time their intake closures.

Ask your own water utility

People and tools to follow

Starting points for deeper reading. Search the names: each leads to papers, code or data.

Person

G. I. Taylor

In 1953 he explained why a dissolved patch spreads along a flow far faster than molecules alone allow: the root of "dispersion".

Person

Hugo B. Fischer et al.

Berkeley authors of Mixing in Inland and Coastal Waters, the standard text and the source of the rough D formula used here.

Person

H. W. Streeter & E. B. Phelps

Studied the Ohio River in 1925 and built the first transport-and-decay model of river pollution.

Person

Steven C. Chapra

Tufts professor; Surface Water-Quality Modeling is the classic course text for this equation and its numerics.

Person

Kenneth E. Bencala & Robert L. Runkel

USGS hydrologists behind the transient-storage model OTIS, which explains the long tails real plumes have.

Person

Harvey E. Jobson

USGS: empirical rules for travel time and dispersion in rivers, built for spill response.

Person

Randall J. LeVeque

University of Washington; free notes and the Clawpack solvers for finite-difference and finite-volume methods, including numerical diffusion.

Person

Andrew Whelton

Purdue engineer who studied what happened inside household plumbing after the Elk River spill: the last kilometres from river to tap.

Tool

Lewis A. Rossman · EPANET

US EPA's open-source model that follows a contaminant from the treatment plant through the pipes to the taps.

Tool

USGS dye tracing · Rhodamine WT

Hydrologists who time rivers with pink dye. It is the colour of this page.

Tool

WASP · HEC-RAS · Delft3D

Free or open modelling suites that take a 1D model like this one to whole river networks.

Network

ICPR · ICPDR

Commissions where countries share spill alerts and run travel-time models in real time.

Network

CNEMC · MLIT

National agencies publishing live river water-quality and hydrology data.

Sources and data for deeper diving

Everything listed is real and can be found by searching its name. The numbers on this page are teaching numbers, not measurements from any incident.

Theory: the equation and dispersion
Numerics: why grids smear
Field methods and models
Incident reports
Open data: live gauges and water quality