Skip to content

Pond Simulator · How it works

Checks and limits.

How uncertain the predictions are, how we checked the code, and what the simulator doesn’t do yet.

The 200 Latin hypercube runs, and what the band means

Many numbers are uncertain, so the layers and well-mixed models run 200 times, each run drawing every uncertain number from its range.

Each range is cut into 200 slices of equal chance. Every slice is used exactly once, in a shuffled order, so each range is covered evenly (a Latin hypercube). Ranges spanning more than tenfold are sampled on a log scale. The charts show the median run and a band from the 5th to the 95th percentile of the 200 runs.

The band covers uncertain numbers only. It doesn't cover the model's own structure: the other kill rule (shown separately), the three views' different simplifications, or the estimates the runs hold fixed. Read it as the smallest the real uncertainty could be. The map and side slice run once, with the central value of every number.

Changed Nov 8, 2026. Until then there were 40 runs. With 40, the median knock-down moved by about ±6 points with the random seed; with 200 it moves by about ±3.

How we checked it

284automated tests
35scenarios in a separate Python version
23checks of the page in a real browser
  • 284 automated tests (74 for the well-mixed model, 96 for the layers model, 114 for the map and side slice). They check that:
    • a fully mixed pond gives the same answer as the well-mixed model;
    • stronger wind never makes the stirred layer shallower;
    • the lab calibrations give exactly 50% at each EC50;
    • colonies that simply follow the water stay evenly spread.
  • An independent Python version of the well-mixed model, written separately from the website's code, matches it to 1 part in 10¹⁰ across 35 scenarios.
  • Mass balance. Product, cells and toxin add up to within 1 part in 10¹⁰ for all 13 combinations of product and application method, in all three views: nothing appears or disappears.
  • Convergence. We halved and quartered the time step, used 12 to 40 layers, doubled the number of tracked colonies and ran up to 1,000 uncertainty runs. That is why the layers model now takes 5-minute steps and the page runs 200 times.
  • Cited values against their sources. Every value labelled SOURCED was checked against the paper it cites. Where a paper couldn't be opened, the simulator's notes say so, and values without a checkable citation are labelled ESTIMATE, citation pending.

What the tests can't show is that the predictions match a real pond. That needs real pond data: product concentrations at a few spots and depths after a treatment, plus before-and-after bloom counts and oxygen readings. If you can help with that, tell us.

What it doesn't do yet

The simulator

  • No check against a real pond. The tests show the math does what it says. Matching a real pond needs before-and-after measurements in a treated pond.
  • Real weather comes from a weather model for the area, not a station at the pond. Forecasts lose skill after about a week, and a sheltered pond can be calmer than the area's wind.
  • No inflows or outflows.
  • No waves, and so no wave drift on top of the surface current.
  • No sloshing of the thermocline after the wind changes (internal seiches); the tilt is the steady one.
  • No plume right at an injection hose: the dense layer starts already spread over each treated square.
  • No colonies sinking a little by day and rising at night.
  • Copper's harm to animals follows hardness only, not the dissolved organic carbon or pH that also matter.
  • The idealized day's sunshine is an estimate, and the stirred layer has a 2.5-ft minimum by day. On a run of sunny days the top of a 6-ft pond warms about 11 °F by afternoon, at the high end of what small ponds show.
  • Pond size changes the wind only through tree shelter; an open pond mixes the same at any size.
  • No oxygen in the cool bottom water of a layered pond.
  • In a strong wind, colonies that simply drift with the water can still gather up to about 10% too thickly along the shores of the map. In the side slice, colonies at the very top move at the top level's average speed rather than the faster top centimetre.

The ranking

Pairs are predictions, the input data is sparse (15 of 52 target values exist), test lengths don't always match, Bliss independence can fail, and the ranking scores selectivity, not how well a product controls the bloom. The full list is on the ranking's limits page.