Stellar Grove · Concrete Mathematical Modelling
Cleaning up a polluted lake
Once the pollution stops, how long until the lake is safe again?
Chapter 1 · Growth and decay: dynamical systems. 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: With the discharge stopped, the lake falls from 20 to 5 µg/L in 6.2 years. If the inflow is only cut to 6 µg/L, it never gets there.
- 6.2 yrsto reach the 5 µg/L safe level after a full shutdown
- 4 yrsresidence time V/F: how long water stays in the lake
- 2.8 yrsfor the excess pollution to halve, whatever its level
The problem
A factory has been discharging into the river that feeds a lake of volume km³. River water flows in and out at km³ a year, and the lake now holds 20 µg/L of the pollutant. The factory is closed, so the inflow carries only a background 1 µg/L. How long until the lake drops below the safe level of 5 µg/L?
The model
Treat the lake as well mixed: what flows out has the lake's own concentration . The amount of pollutant changes by what comes in minus what goes out:
This is linear and first order. Its solution decays exponentially toward the inflow level, with rate , the reciprocal of the residence time:
Setting and solving for gives the clean-up time:
With the numbers above, years.
Try it
Lake clean-up explorer
Drag the sliders; hover the chart to read values.
Key findings
- Clean-up time scales with the residence time years: double the lake's volume or halve its flow and every clean-up takes twice as long.
- The excess pollution halves every years, so the last stretch to the target takes as long as the first stretch of the same ratio.
- The lake settles at the inflow level. Cutting the inflow only to 6 µg/L, above the 5 µg/L target, means the lake never becomes safe (T = ∞): the source must be cleaned, not just reduced.
from books.concrete_mathematics import growth as g
print(round(g.lake_cleanup_time(c0=20.0, c_target=5.0, c_in=1.0, flow=3.0, volume=12.0), 2))
print(g.lake_cleanup_time(c0=20.0, c_target=5.0, c_in=6.0, flow=3.0, volume=12.0))
c, T = g.lake_symbolic() # the same results, derived symbolically
print(T)
# → 6.23
# → inf
# → V*log((-c_0 + c_in)/(c_in - c_target))/F
Assumptions and extensions
- Well mixed. Real lakes stratify; a layered model (two compartments) slows the clean-up of the deep water.
- Constant flow. Seasonal flow makes a function of time;
growth.lake_rhsaccepts a time-varying inflow concentration andgrowth.solveintegrates it. - No decay or settling. A pollutant that also breaks down at rate clears at rate instead.