SOILPROM × ISMC joint meeting · 25 November 2026

The soil
in between

Following contaminants through snow, soils, rivers and aquifers: lessons from process modelling and data science

Diogo Costa

ue-hydro · University of Évora · MED & CHANGE

UE-hydro, Computational Hydrology Group, University of ÉvoraUniversidade de ÉvoraMED, Mediterranean Institute for Agriculture, Environment and DevelopmentCHANGE, Global Change and Sustainability Institute

← → navigate · N notes · G slide index · F full screen

SOILPROM × ISMC joint meeting · 25 November 2026

The soil
in between

Following contaminants through snow, soils, rivers and aquifers: lessons from process modelling and data science

Diogo Costa

ue-hydro · University of Évora · MED & CHANGE

UE-hydro, Computational Hydrology Group, University of ÉvoraUniversidade de ÉvoraMED, Mediterranean Institute for Agriculture, Environment and DevelopmentCHANGE, Global Change and Sustainability Institute

← → navigate · N notes · G slide index · F full screen

Zooming out

From one soil column to a basin

Soil type changes over metres, land use over hundreds of metres, and flow paths connect all of it to one outlet.

Land use

forest

cropland parcels

grassland

wetland, riparian

town

rock

snow

rivers, reservoir

sea

villages, town

factories, wastewater plant

tractors (fertilizer, rain season)

Solutes

nitrate

ammonium, fertilizer

effluent discharges

Soils (walls · soil map)

Leptosol thin, on ridges

Podzol under forest

Chernozem deep, dark, plains

Luvisol clay-enriched B

Gleysol waterlogged valleys

Technosol sealed, urban

Basin ≈ 35 × 35 km · relief and soil depth exaggerated · illustrative basin

drag to rotate · scroll to zoom
Trajectory

Twenty years of following solutes through different waters

FEUP · University of Porto
Porto, Portugal · 2006–2008

decision support for water management, Guadiana

Imperial College London
London, UK · 2010–2011

eutrophication of Lake Diefenbaker

ETH Zürich
CREATE · NUS
ETH Zürich · Singapore-ETH Centre
Zürich / Singapore · 2012–2016

river–aquifer contamination, Jakarta

University of Saskatchewan · GIWS
Saskatoon, Canada · 2016–2019

snow chemistry, prairie nutrients, FLUXOS, CRHM-WQ

Environment and Climate Change Canada
NHRC, Saskatoon · 2019–2022

national water-quality modelling, OpenWQ

Universidade de Évora
Évora, Portugal · 2023–now

Mediterranean and global data, ENGAGE, OpenWQ

One question throughout: once a contaminant leaves its source, where does it go, how fast, by which path, and how much arrives?

Photos: Joseolgon (FEUP, CC BY 4.0; Évora, CC BY-SA 4.0) · Shadowssettle (Imperial, CC BY-SA 4.0) · L. Lenz (ETH, CC0) · Smuconlaw (CREATE Tower, CC BY-SA 3.0) · SriMesh (USask, CC BY-SA 3.0) · Wikimedia Commons · NHRC Saskatoon: cana.ca

Where I work now

Universidade de Évora: a 16th-century university in the Alentejo

Cloister of the Colégio do Espírito Santo, University of Évora
Colégio do Espírito Santo: the Claustro Geral dos Estudos, built for the Jesuit college in the 1550s and still in use
  • 1559founded by Cardinal D. Henrique from the Jesuit Colégio do Espírito Santo; Portugal’s second university
  • 1759closed by the Marquis of Pombal when the Jesuits were expelled
  • 1973reopened in the same buildings as the Instituto Universitário de Évora
  • 1979University of Évora again; today ≈10 500 students
SPAINATLANTIC≈130 kmPortoLisbonÉvoraFaroÉvora, Alentejo: historic centreUNESCO World Heritage since 1986Boundaries: Natural Earth 1:10m

Schools and departments

School of Sciences and TechnologyBiology · Sport and Health · Rural Engineering · Physics · Mechatronics · Crop Science · Geosciences · Informatics · Mathematics · Veterinary Medicine · Landscape, Environment and Planning · Chemistry · Animal Science
School of Social SciencesEconomics · Philosophy · Management · History · Linguistics and Literature · Pedagogy and Education · Psychology · Sociology
School of ArtsArchitecture · Performing Arts · Visual Arts and Design · Music
School of Health and Human Developmenthealth and human development
São João de Deus School of NursingNursing
IIFA · research and doctoral trainingresearch centres incl. MED and CHANGE

Photo: Concierge.2C, CC BY-SA 3.0, Wikimedia Commons · uevora.pt

Who is talking

ue-hydro: computational hydrology at the University of Évora

Hydrology, hydrodynamics and water-quality modelling, with field and laboratory work.

  • Some of our modelsOpenWQ (biogeochemistry engine) · FLUXOS (2D hydrodynamics, GPU) · PULSE (snow chemistry) · WINTRA · CRHM-WQ · Jakarta river–aquifer model
  • Ongoing projectsENGAGE (Water4All) · BUR_PC (Interreg) · INTERLAYER (FCT) · NSERC Alliance (Canada) · FCT advanced computing
UE-hydro logo: Computational Hydrology Group, University of Évora
Diogo CostaDiogo CostaAssistant Professor, lead
Befekadu WoldegiorgisBefekadu WoldegiorgisPostdoctoral associate
Soheil ZehsazSoheil ZehsazPostdoctoral researcher
Afonso AlexandreAfonso AlexandrePhD researcher
Anselmo LunguanaAnselmo LunguanaPhD researcher
Mian FareedMian FareedPhD researcher
Victoria GuenterVictoria GuenterResearch assistant
Ângelo AlvesÂngelo AlvesResearch assistant
github.com/ue-hydro
Screenshot of the ue-hydro GitHub organisation: OpenWQ, FLUXOS, PULSE, SUMMA and mizuRoute repositories
openwq.readthedocs.io
Screenshot of the OpenWQ documentation on Read the Docs

ue-hydro.uevora.pt/#team-1 · github.com/ue-hydro · openwq.readthedocs.io

The thesis of this talk

Most catchment models treat soil as a box between rain and river. In every system I have studied, the soil decided the answer.

It stores, delays, transforms and releases. It sets when a load arrives, which is often more important than how large it is.

TheoryOne equation behind every model in this talk

Advection, dispersion, reaction, sources: models often differ in which terms they focus on

∂(θC)∂t
Storage

change of dissolved mass per unit volume of soil; θ varies, so storage changes even at constant C

=
−∇·(qC)
Advection

solute carried by the water flux q supplied by the host model: where hydrology errors enter

+
∇·(θD∇C)
Dispersion

mixing by diffusion and velocity variations; numerically often larger than physically

+
R(C,T,θ,…)
Reaction

kinetic or equilibrium transformations (nitrification, denitrification, uptake), dependent on T, θ, redox

−ρb∂S∂t
Sorption

exchange with the solid phase; retardation and legacy stores that release later

+Q
Sources and sinks

fertilizer, manure, deposition, residue, effluent, plant uptake: their timing often matters most

θ volumetric water content · C dissolved concentration · t time · q Darcy water flux · D dispersion tensor · T temperature · ρb soil bulk density · S sorbed concentration · Q source or sink rate

TheoryWhen does chemistry matter?

Compare the time water spends with the time a reaction needs

Da=τtransportτreaction
  • Da ≪ 1: water leaves before the reaction acts. The solute behaves as a tracer of its source.
  • Da ≫ 1: reaction completes in place. Export is set by supply and equilibrium.
  • Da ≈ 1: the hard case. Timing of flow paths and reaction rates both matter.

Snowmelt over frozen soil

Hours of contact with soil and residue: Da small, the event and its source decide export.

Soil water and aquifers

Weeks to decades: Da large, legacy and transformation dominate.

Boreal river under ice

Uptake stops below ~0 °C: Da switches seasonally.

Map of the talk

Down the profile, then out to the continent

Systems · down the profile

1Snow

solutes inside snowpacks

2Field

snowmelt over frozen soils, drains

3Landscape

connectivity and floods

4Rivers

river–aquifer exchange

5Catchment

models and their gaps

6Continent

North American and northern basins

7Global

nutrients across climates

Methods · across scales

8Models

One engine, many models: connecting to any hydrological model

9Data

From Portugal to 117 countries

10Synthesis

what this means for soil models

The bar on the left follows the same order. Each slide is tagged Theory Model Data Strategy.

Part 1

The snowpack, the first soil

Before a solute reaches soil in cold regions, it spends months in a porous, layered, reactive medium that releases it in pulses.

TheorySnowpack chemistry · the phenomenon

The first meltwater is the most concentrated

  • Ions are excluded from growing ice grains to grain surfaces during metamorphism
  • Early melt flushes the grain surfaces: an ionic pulse
  • Reported in the literature: 50–80% of snow ions released in the first third of melt
  • Ecological relevance: acid pulses, and N and P delivered to soils that are still frozen
PULSE: solid phase (grain core, grain surface) and mobile meltwater phase, layer by layer, with the state variables and fluxes.
Panel 1 of 2 · fluxes and state variables · PULSE: solid phase (grain core, grain surface) and mobile meltwater phase, layer by layer, with the state variables and fluxes.

Costa, D., Pomeroy, J., Wheater, H. (2018). A numerical model for the simulation of snowpack solute dynamics to capture runoff ionic pulses during snowmelt: The PULSE model. Advances in Water Resources 122, 37–48. doi:10.1016/j.advwatres.2018.09.008

TheorySnowpack chemistry · the phenomenon

The first meltwater is the most concentrated

layered snowpack model
Panel 2 of 2 · layered snowpack model · PULSE: solid phase (grain core, grain surface) and mobile meltwater phase, layer by layer, with the state variables and fluxes.

Costa, D., Pomeroy, J., Wheater, H. (2018). A numerical model for the simulation of snowpack solute dynamics to capture runoff ionic pulses during snowmelt: The PULSE model. Advances in Water Resources 122, 37–48. doi:10.1016/j.advwatres.2018.09.008

ModelPULSE · governing equations

Two immobile phases and one mobile phase, layer by layer

∂(θsccsc)∂t=−csc·θsc·q·ρsρl

(1) grain core loses solute as it melts

∂(θsscss)∂t=csc·θsc·q·ρsρl−E·θss

(2) grain surface gains from the core, loses to meltwater

E=α(css−cm)

(3) ion exclusion: exchange between grain surface and meltwater

∂(θmcm)∂t+∇·(θmvcm)=∇·(θmD∇cm)+E·θss

(4) meltwater advection–dispersion

v=qθm,D=d·v

(7–8) interstitial flow velocity from melt rate and mobile water fraction; dispersion scales with it

c: solute concentration in the grain core (sc), grain surface (ss) and meltwater (m) · θ: volume fractions (θm: mobile water fraction) · v: interstitial flow velocity · q: melt rate · ρs, ρl: snow and water density · α: ion-exclusion coefficient · D: dispersion coefficient · d: dispersivity

Costa, D., Pomeroy, J., Wheater, H. (2018). A numerical model for the simulation of snowpack solute dynamics to capture runoff ionic pulses during snowmelt: The PULSE model. Advances in Water Resources 122, 37–48. doi:10.1016/j.advwatres.2018.09.008

ModelPULSE · tests and sensitivity, Emerald Lake

Melt rate matters more than transport parameters

Simulated solute concentration in the snowpack: solid phase (immobile, top) and liquid phase (mobile, bottom), same time axis as the runoff panel.
Simulated solute concentration in the snowpack: solid phase (immobile, top) and liquid phase (mobile, bottom), same time axis as the runoff panel.
Snowmelt runoff concentration: observations vs PULSE, Harrington & Bales (1998) and an empirical model.
Snowmelt runoff concentration: observations vs PULSE, Harrington & Bales (1998) and an empirical model.

Best NSE 0.596 (Emerald Lake) and 0.600 (Trail Valley Creek) · nearly insensitive to dispersivity, stiff in the exclusion coefficient α · best-fit α tracks melt rate

Costa, D., Pomeroy, J., Wheater, H. (2018). A numerical model for the simulation of snowpack solute dynamics to capture runoff ionic pulses during snowmelt: The PULSE model. Advances in Water Resources 122, 37–48. doi:10.1016/j.advwatres.2018.09.008

ModelLoch Vale, Colorado · with USGS · PULSE inside the snowpack

PULSE follows the layered ion store as the pack melts

(a) Forest-gap snowpit, 1994 melt: PULSE (shading) vs observed snowpit concentrations (dots), µeq L⁻¹.
(a) Forest-gap snowpit, 1994 melt: PULSE (shading) vs observed snowpit concentrations (dots), µeq L⁻¹.
(b) Meadow snowpit, 1994 melt: shallower pack that melts out by early June.
(b) Meadow snowpit, 1994 melt: shallower pack that melts out by early June.

Ion-rich layers near the surface and base drain first · the forest-gap pack is deeper and more enriched than the meadow

Costa, D., Sexstone, G.A., Pomeroy, J.W., Campbell, D.H., Clow, D.W., Mast, A. (2020). Preferential elution of ionic solutes in melting snowpacks: improving process understanding through field observations and modeling in the Rocky Mountains. Science of the Total Environment 710, 136273. doi:10.1016/j.scitotenv.2019.136273

ModelLoch Vale, Colorado · with USGS · PULSE vs lysimeters

A slow, early melt sharpened the ionic pulse

Meltwater concentrations for nine ions, PULSE (line) vs USGS snowmelt lysimeters (crosses): calibration 1995, validation 1994.
Meltwater concentrations for nine ions, PULSE (line) vs USGS snowmelt lysimeters (crosses): calibration 1995, validation 1994.

First third of melt exported 46% NH₄, 45% SO₄, 42% NO₃ in 1994 (low snow, slow melt) vs 19%, 26%, 21% in 1995 (big snow, fast melt)

Costa, D., Sexstone, G.A., Pomeroy, J.W., Campbell, D.H., Clow, D.W., Mast, A. (2020). Preferential elution of ionic solutes in melting snowpacks: improving process understanding through field observations and modeling in the Rocky Mountains. Science of the Total Environment 710, 136273. doi:10.1016/j.scitotenv.2019.136273

DataCold laboratory · preferential flowpaths

Flow fingers flush a quarter of the nitrate in the first 1.5% of melt

  • Flow fingers carry the load. Funnels under dye-traced flowpaths took 68–75% of NO₃ and 73–75% of PO₄
  • A sharp first flush. Up to 25% of NO₃ and 20% of PO₄ left in the first 1.5% of meltwater, within 10 h; concentration factors up to 40
  • Rain-on-snow dilutes it. The early load fell to 5% (NO₃) and 12% (PO₄): warmer is not automatically flashier
Graphical abstract: lab snow box and dye tracing → wetting fronts (RC vs rain-on-snow) → PULSE concept → meltwater ion concentrations and loads.
Graphical abstract: lab snow box and dye tracing → wetting fronts (RC vs rain-on-snow) → PULSE concept → meltwater ion concentrations and loads.

Costa, D., Pomeroy, J.W. (2019). Preferential meltwater flowpaths as a driver of preferential elution of chemicals from melting snowpacks. Science of the Total Environment 662, 110–120. doi:10.1016/j.scitotenv.2019.01.091

ModelSNOWPACK–PULSE · model structure

PULSE moves from a lumped host into a layered snow model

Left: CRHM–PULSE, where CRHM passes only snow depth and melt rate to PULSE. Right: SNOWPACK–PULSE, where PULSE runs inside SNOWPACK alongside phase change and water transport, updating ion mass and concentration in the air, ice and water of every layer.
Left: CRHM–PULSE, where CRHM passes only snow depth and melt rate to PULSE. Right: SNOWPACK–PULSE, where PULSE runs inside SNOWPACK alongside phase change and water transport, updating ion mass and concentration in the air, ice and water of every layer.

Costa, D., Spolaor, A., Barbaro, E., López-Moreno, J.I., Pomeroy, J.W. (2025). Improving snowpack chemistry simulations through improved representation of liquid water movement through layered snow and rain-on-snow (ROS) episodes: application to Svalbard, Norway. Journal of Hydrology 651, 132573. doi:10.1016/j.jhydrol.2024.132573

ModelSNOWPACK–PULSE · governing equations

Layered water flow from SNOWPACK carries PULSE’s chemistry

q=K(dhdz+1)

(9) Darcy–Buckingham flux through each snow layer

h=1α(θ−1/m−1)1/n

(10) van Genuchten retention, m = 1 − 1/n

Kr=θ0.5[1−(1−θ1/m)m]2

(11) relative conductivity; α, n from grain size d (Eqs 12–13)

∂(θmcm)∂t+∇·(θmvcm)=E·θss

(14) PULSE chemistry carried by SNOWPACK’s water flow

q: liquid water flux · K: hydraulic conductivity · h: pressure head · z: depth · θ: water content · α, n, m: retention parameters (from grain size d) · Kr: relative conductivity · E: ion-exclusion exchange (PULSE)

Costa, D., Spolaor, A., Barbaro, E., López-Moreno, J.I., Pomeroy, J.W. (2025). Improving snowpack chemistry simulations through improved representation of liquid water movement through layered snow and rain-on-snow (ROS) episodes: application to Svalbard, Norway. Journal of Hydrology 651, 132573. doi:10.1016/j.jhydrol.2024.132573

ModelSvalbard · model vs snowpit chemistry

The layered host fits every ion better

  • 2015 snowpit profiles at Ny-Ålesund. Ions chosen to trace different sources, all near-stable in cold snow, so the test isolates water movement:Na⁺ sea spray (29–36% of the snow load)
    Ca²⁺ dust from local snow-free rocks
    SO₄²⁻ mixed: sea salt, marine-algae DMS, long-range pollution
    NO₃⁻ also shown in the comparison
  • SNOWPACK–PULSE lower RMSE for every ion: SO₄ 0.64 vs 0.72, Na 1.50 vs 2.01 mg L⁻¹
  • CRHM–PULSE drifts far below the 1:1 line at low concentrations; SNOWPACK–PULSE stays closer across two orders of magnitude
Study site near Ny-Ålesund (red square) and the Bayelva station (BS) that provided the forcing data; (a) the 2015 snowpit, (b) location in Svalbard.
Study site near Ny-Ålesund (red square) and the Bayelva station (BS) that provided the forcing data; (a) the 2015 snowpit, (b) location in Svalbard.
Simulated vs observed snowpack concentrations (log axes) for CRHM–PULSE (left) and SNOWPACK–PULSE (right), with the 1:1 line.
Simulated vs observed snowpack concentrations (log axes) for CRHM–PULSE (left) and SNOWPACK–PULSE (right), with the 1:1 line.

Costa, D., Spolaor, A., Barbaro, E., López-Moreno, J.I., Pomeroy, J.W. (2025). Improving snowpack chemistry simulations through improved representation of liquid water movement through layered snow and rain-on-snow (ROS) episodes: application to Svalbard, Norway. Journal of Hydrology 651, 132573. doi:10.1016/j.jhydrol.2024.132573

ModelSnow–residue model · governing equations

Three measurable parameters describe nutrient leaching from crop residue

Wheat stubble emerging through melting snow on a Saskatchewan field
Stubble in melting snow · Rosthern, SK, 2016 · photo P. Harder
Concept: snow ion exclusion from grain core to surface to meltwater, plus leaching of solutes from plant residue cells lysed by freeze–thaw
LF(t*)=αp(t*−T*)

(3) leaching factor from plant residue during melt

∫t*=0t*=1LFdt*=1

(4) mass conservation fixes αp

cD=cM×Q+LF×LTQ

(8) meltwater concentration: snow ions plus residue leaching

t*: fraction of melt time · T*: when LF = 1 · αp: leaching parameter · cM: snow-only meltwater concentration · Q: meltwater flow · LT: total residue load · cD: concentration with residue

Costa, D., Liu, J., Roste, J., Elliott, J. (2019). Temporal dynamics of snowmelt nutrient release from snow–plant residue mixtures: an experimental analysis and mathematical model development. Journal of Environmental Quality 48, 869–879. doi:10.2134/jeq2018.12.0440

ModelSnow–residue model · model vs observations

Adding residue leaching to snow ion exclusion reproduces the extra nutrient release

  • Snow only (black) vs snow + crop residue after 5 freeze–thaw cycles (red)
  • Cumulative load with residue: NSE 0.94 for NO₃ and PO₄, 0.87 for Cl
  • Cl concentrations with residue: NSE 0.95
  • Residue raises the early concentration peak and the total load, as observed
Lab set-up: snow mixed with alfalfa hay in funnels over sampling bottles. Paper Fig. 1.
Lab set-up: snow mixed with alfalfa hay in funnels over sampling bottles. Paper Fig. 1.
Observed (dots) and simulated (lines) meltwater concentrations (top) and cumulative loads (bottom) for Cl, SO₄, NO₃ and PO₄: snow only (black) and snow + plant residue, 5 FTC (red).
Observed (dots) and simulated (lines) meltwater concentrations (top) and cumulative loads (bottom) for Cl, SO₄, NO₃ and PO₄: snow only (black) and snow + plant residue, 5 FTC (red).

Costa, D., Liu, J., Roste, J., Elliott, J. (2019). Temporal dynamics of snowmelt nutrient release from snow–plant residue mixtures: an experimental analysis and mathematical model development. Journal of Environmental Quality 48, 869–879. doi:10.2134/jeq2018.12.0440

Part 2

Snowmelt over frozen soil

On the Canadian Prairies snowmelt can make up more than 80% of annual surface runoff. Here the soil surface decides what leaves the field.

ModelWINTRA · field-scale nitrate in snowmelt

Most snowmelt nitrate at the field edge comes from the soil, not the snow

  • Five phases: ion front moves through snow, reaches runoff, source switches from snow to soil as snow cover breaks up, then thawing soil only
  • Two peaks: a smaller one from the snow ion front, a larger one when bare soil patches open
  • Median NSE 0.32, range 0.97 to −7.03 across field-years
  • Snow-cover depletion is a water-quality control variable, not only a hydrology output
Wheat stubble emerging through melting snow near Rosthern, Saskatchewan, 2016: as the snow cover breaks up, runoff starts to drain the soil. Photo P. Harder (paper Fig. 2).
Wheat stubble emerging through melting snow near Rosthern, Saskatchewan, 2016: as the snow cover breaks up, runoff starts to drain the soil. Photo P. Harder (paper Fig. 2).
WINTRA conceptual model: snowpack ion front, overland runoff and the snow-to-soil source transition in five phases.
Panel 1 of 2 · a · five phases of concentration · WINTRA conceptual model: snowpack ion front, overland runoff and the snow-to-soil source transition in five phases.

Costa, D., Roste, J., Pomeroy, J., Baulch, H., Elliott, J., Wheater, H., Westbrook, C. (2017). A modelling framework to simulate field-scale nitrate response and transport during snowmelt: the WINTRA model. Hydrological Processes 31, 4250–4268. doi:10.1002/hyp.11346

ModelWINTRA · governing equations

A snow–soil mixing model driven by snow-cover depletion

cEOF=f·csnow+(1−f)·csoil

(2) edge-of-field runoff mixes snowmelt and soil water

f=tanh(1.26SWEtσ0)

(3) snow-cover fraction from snow-cover depletion

csnow=CF·csnowpack

(7) ion exclusion through a concentration factor

∂c∂t={kd·csoil,t−1SWE=00SWE>0

(6) soil nitrate depleted once the soil is bare

Snow-covered fraction f against SWE/σ₀ during melt: f stays at 1 in phases 1–3 and falls towards 0 in phase 4
Snow-covered fraction f against SWE/σ₀ during melt (Eq. 3, Essery & Pomeroy 2004): the soil is fully covered in phases 1–3 (f = 1) and becomes exposed in phase 4. Paper Fig. 3.

c: NO₃ concentration of edge-of-field runoff (EOF), snowmelt (snow), soil water (soil), pre-melt snowpack · f: snow-cover fraction · SWE: snow water equivalent · σ₀: its spatial standard deviation · CF: concentration factor · kd: soil NO₃ depletion rate

Costa, D., Roste, J., Pomeroy, J., Baulch, H., Elliott, J., Wheater, H., Westbrook, C. (2017). A modelling framework to simulate field-scale nitrate response and transport during snowmelt: the WINTRA model. Hydrological Processes 31, 4250–4268. doi:10.1002/hyp.11346

ModelWINTRA · results, six fields, three years

The model reproduces the snowmelt nitrate peaks field by field

  • Six fields in the Steppler basin, snowmelt 2009–2011, hourly
  • Small early peaks (P1–3) from the snow ion front: about 4 mg L⁻¹ (Field 9) and 2.5 mg L⁻¹ (Field 11)
  • The big peak (P4) arrives when soil contact begins: about 16 mg L⁻¹
  • Best fit NSE 0.97 (Field 11, 2009); NSE above 0.6 in 4 of 6 fields in 2009
Observed (dots) and simulated (line) edge-of-field NO₃ with simulated SWE (dashed), for six fields and three snowmelt seasons; P1–P5 mark the five phases.
Observed (dots) and simulated (line) edge-of-field NO₃ with simulated SWE (dashed), for six fields and three snowmelt seasons; P1–P5 mark the five phases.

Costa, D., Roste, J., Pomeroy, J., Baulch, H., Elliott, J., Wheater, H., Westbrook, C. (2017). A modelling framework to simulate field-scale nitrate response and transport during snowmelt: the WINTRA model. Hydrological Processes 31, 4250–4268. doi:10.1002/hyp.11346

Part 3

Connected, or not

In flat depressional landscapes, water and solutes reach the stream only when storage fills and spills. Connectivity is a threshold.

TheoryWhy we need a contributing-area relationship

Too many depressions to represent one by one

Map of the Canadian Prairies showing non-contributing drainage areas
does not drain to a stream in an average runoff year   gauged prairie drainage area   zoom at right
Mapped ponds in a 25 by 25 km window in Saskatchewan
One 25 × 25 km window NW of Saskatoon: 2 455 mapped water bodies, half smaller than 1 ha. The 1:50 000 map misses the smallest.
≈ 350 000 km²of prairie drainage area does not reach a stream in an average year
2–7 millionwetlands in the Canadian Prairie Pothole Region, depending on how wet the year is
We cannot simulate every depression in a basin or continental model. We need a relationship: contributing area as a function of storage and melt, derived from detailed 2D simulations (FLUXOS) and used inside the larger models.

Data: AAFC (2013) Watersheds Project, gross and effective drainage areas (Open Government Licence – Canada); NRCan National Hydro Network, work units 05GD, 05HG, 05HH (1:50 000); wetland count: Ducks Unlimited Canada wetland inventory, in DU International Conservation Plan

TheoryVariable contributing area · the concept

The area that drains to the stream grows and shrinks with storage

1 · Early melt, low storage

contributing areanon-contributing: water stays in depressions

Depressions absorb the melt; only land next to the stream drains to it.

2 · Fill and spill

contributing areanot yet fullfull → spill

Full depressions spill into the next one: the contributing area jumps at a storage threshold.

3 · What this means for water quality

contributing areahotspotisolated pond: retainedload

Field nutrients reach the stream only along connected paths; spill points become hotspots.

The hydrological problem. The same melt can give little or a lot of runoff depending on how full the depressions are. A fixed drainage area or runoff coefficient assumes a linear response the landscape does not have.
The water-quality problem. Loads depend on which source areas are connected, and when, not on land-use share alone. Isolated ponds retain nutrients; a spill can suddenly flush them.
Where it mattersCanadian Prairies and US Northern Great Plains · Prairie Pothole RegionCanadian Shield · bedrock basins and soil-filled valleysBoreal Plains · wetland–upland mosaics, AlbertaArctic and subarctic lowlands · permafrost ponds and polygonsArgentine Pampas · very flat, poorly drained plainsGlaciated lowlands of N Europe · kettle holes, e.g. NE Germany

Concept: Spence & Woo (2003) J. Hydrol. 279:151–166 (fill and spill); Shook & Pomeroy (2011) Hydrol. Process. 25:3890–3898; Costa et al. (2020) Water Resour. Res. 56:e2020WR027984

ModelFLUXOS-OVERLAND · governing equations

Full 2D shallow-water hydrodynamics coupled to solute transport

Most hydrological models route water along a pre-defined river network derived from the DEM, with fixed sub-basins. In depressional landscapes there is no permanent network: flow paths appear only when depressions fill and spill, so these models miss when and where water and solutes connect.
FLUXOS solves the flow in every grid cell, so the network is a result, not an input: ponds fill, spill and connect as the physics dictates, and the same velocities carry the solutes.
∂h∂t+∂(hu)∂x+∂(hv)∂y=0

(1) mass: 2D shallow-water continuity

∂(hu)∂t+∂∂x(hu2+g2h2−hρτxx)+∂∂y(hvu−hρτxy)+gh∂zb∂x+τbxρ=0

(2) momentum in x (y analogous, Eq. 3); Roe solver, MUSCL

∂(hcs)∂t+∂(hucs)∂x+∂(hvcs)∂y−∂∂x(hEx∂cs∂x)−∂∂y(hEy∂cs∂y)+S=0

(7) solute advection–dispersion–reaction

h: water depth · u, v: velocities · g: gravity · ρ: water density · zb: bed elevation · τ: turbulent (xx, xy) and bed (bx) shear stresses · cs: solute concentration · E: dispersion coefficients · S: sources and sinks

Costa, D., Shook, K., Spence, C., Elliott, J., Baulch, H., Wilson, H., Pomeroy, J.W. (2020). Predicting variable contributing areas, hydrological connectivity, and solute transport pathways for a Canadian Prairie basin. Water Resources Research 56, e2020WR027984. doi:10.1029/2020WR027984

ModelFLUXOS-OVERLAND · Steppler (MB) and St Denis (SK) · simulation

Snowmelt fills, spills and connects the depressions

Flow
Solute load
STEPPLER · MB
STEPPLER · MB
ST DENIS · SK
ST DENIS · SK

Same forcing, two prairie landscapes. Melt at 100 mm/day for 8 h, carrying a solute at 10 mg/L, is added to every cell.

Flow. Particles trace the water as ponds fill and spill into ditches and streams.

Solute. The uniform input ends up concentrated in the few pathways that connect.

St Denis is classic pothole country: closed basins hold the melt and connect only when they spill.

t = 0.2 h

FLUXOS-OVERLAND simulations for this talk, illustrative melt and solute forcing applied over the whole domain. Steppler basin (2.0 km²): NRCan HRDEM lidar, 5 m. St Denis National Wildlife Area: NRCan MRDEM, 30 m resampled to 10 m (no lidar coverage). Model: Costa et al. (2020) Water Resour. Res. 56:e2020WR027984

ModelFLUXOS-OVERLAND · Steppler basin, Manitoba

A 2D hydrodynamic model that needs no channel network

FLUXOS simulated inundation over satellite image, Views analysed (simulated water in white)
a · Views analysed (simulated water in white)
FLUXOS simulated inundation over satellite image, View A
b · View A
FLUXOS simulated inundation over satellite image, View B
c · View B
FLUXOS simulated inundation over satellite image, View C
d · View C
FLUXOS simulated inundation over satellite image, View D
e · View D
FLUXOS simulated inundation over satellite image, View E
f · View E
FLUXOS simulated inundation over satellite image, View F
g · View F
FLUXOS simulated inundation over satellite image, View G
h · View G

Simulated inundation (white dots) over satellite imagery: flooded cells follow the wet, darker vegetation strips and drainage paths in every view

Costa, D., Shook, K., Spence, C., Elliott, J., Baulch, H., Wilson, H., Pomeroy, J.W. (2020). Predicting variable contributing areas, hydrological connectivity, and solute transport pathways for a Canadian Prairie basin. Water Resources Research 56, e2020WR027984. doi:10.1029/2020WR027984

TheoryFLUXOS-OVERLAND · tipping point

Adding 0.1 km² of contributing area multiplied peak flow tenfold

  • Mean connected area ≈ (3.65 · Qp · Sinit / Dm)1/10
  • Qp peak melt runoff · Sinit water stored in depressions before melt · Dm melt duration
  • Fuller depressions and a sharper melt peak connect more; a slower melt connects less at any moment
  • Time-cumulative ≈ (a · Dm)b: grows with melt duration, faster from wetter storage
  • Contributing area 0 → 0.2 km²: little change in peak flow; the next 0.1 km²: tenfold
Connected area across the simulated melt events and storage scenarios: mean (left) and time-cumulative (right). Symbols = initial surface-water storage IC (m of water spread over the basin; 0.001 = 1 mm) · lines = power-law fits with 95% bounds.
Panel 1 of 2 · a · connected area · Connected area across the simulated melt events and storage scenarios: mean (left) and time-cumulative (right). Symbols = initial surface-water storage IC (m of water spread over the basin; 0.001 = 1 mm) · lines = power-law fits with 95% bounds.

Costa, D., Shook, K., Spence, C., Elliott, J., Baulch, H., Wilson, H., Pomeroy, J.W. (2020). Predicting variable contributing areas, hydrological connectivity, and solute transport pathways for a Canadian Prairie basin. Water Resources Research 56, e2020WR027984. doi:10.1029/2020WR027984

ModelFLUXOS-OVERLAND · chemical pathways

Nutrient-bearing flow enters the channel at a few hotspots

a–c · Biogeochemical connectivity maps for the 2009, 2010 and 2011 snowmelt events: where solute-carrying flow links fields to the channel.
a–c · Biogeochemical connectivity maps for the 2009, 2010 and 2011 snowmelt events: where solute-carrying flow links fields to the channel.
d · Connectivity vs snowmelt runoff intensity: low-intensity melts bypass more of the riparian zone.
d · Connectivity vs snowmelt runoff intensity: low-intensity melts bypass more of the riparian zone.

Pathways join the channel at hot spots · much of the riparian zone is bypassed · buffers need connectivity maps, not distance to the stream

Costa, D., Shook, K., Spence, C., Elliott, J., Baulch, H., Wilson, H., Pomeroy, J.W. (2020). Predicting variable contributing areas, hydrological connectivity, and solute transport pathways for a Canadian Prairie basin. Water Resources Research 56, e2020WR027984. doi:10.1029/2020WR027984

Part 4

Urban rivers and aquifers trade pollution

In a tropical megacity, floods, sewage and a shallow aquifer used for drinking water interact in both directions.

TheoryPhD thesis · why a coupled river–aquifer model

River and aquifer swap roles as source and sink, so they must be solved together

Exchange feedback: the direction, size and chemistry of the mass flux depend on which system is the source at each moment (river when infiltrating, aquifer when exfiltrating).
Exchange feedback: the direction, size and chemistry of the mass flux depend on which system is the source at each moment (river when infiltrating, aquifer when exfiltrating).
FLUXOS coupling: each river cell sits on a groundwater cell and exchanges infiltration (I) and exfiltration (E) fluxes every time step.
FLUXOS coupling: each river cell sits on a groundwater cell and exchanges infiltration (I) and exfiltration (E) fluxes every time step.

Costa, D. (2015). An integrated modelling framework to simulate unsteady flow and reactive-transport for urban river–aquifer systems. PhD thesis, National University of Singapore.

ModelJakarta paper 1 · Environ. Model. Softw. 2016

A river can contaminate its aquifer, and the aquifer the river, in the same reach

  • FLUXOS (first version): 2D river flow and transport coupled two-way with MODFLOW + MT3DMS, Ciliwung River in central Jakarta
  • Outfall location matters: where water levels and dilution are lowest, most pollutant enters the aquifer
  • Gaining reaches: a contaminated groundwater site raises river concentrations downstream
  • Floods: infiltration rose about 4×, yet pollutant flux to the aquifer fell to about half, because the river diluted it
Coupling scheme: a main program exchanges infiltration and exfiltration fluxes and concentrations every time step between 2dMB (surface-water hydrodynamics), QeS2 (surface-water transport), MODFLOW (groundwater hydrodynamics) and MT3DMS (groundwater transport).
Coupling scheme: a main program exchanges infiltration and exfiltration fluxes and concentrations every time step between 2dMB (surface-water hydrodynamics), QeS2 (surface-water transport), MODFLOW (groundwater hydrodynamics) and MT3DMS (groundwater transport).

Costa, D., Burlando, P., Liong, S.-Y. (2016). Coupling spatially distributed river and groundwater transport models to investigate contaminant dynamics at river corridor scales. Environmental Modelling & Software 86, 91–110. doi:10.1016/j.envsoft.2016.09.009

ModelJakarta paper 1 · governing equations

River and aquifer transport, linked by a two-way exchange flux

∂ξcs∂t+∂ξucs∂x+∂ξvcs∂y−∂∂x(ξEx∂cs∂x)−∂∂y(ξEy∂cs∂y)+S=0

(2) river transport (2D, depth-averaged)

∂θcg∂t+∇·(θvcg)−∇·(θD∇cg)−qsc−∑Rn=0

(3) groundwater transport (MT3DMS form, written compactly)

qv={−kl(ξ+zb−ψ)ψ>zb−klξψ≤zb

(8) two-way river–aquifer exchange flux

ξ: river water depth · u, v: velocities · cs, cg: river and groundwater concentrations · E: horizontal diffusivity · θ: porosity · D: dispersion tensor · qs: sources and sinks · Rn: reactions · ψ: groundwater head · zb: river-bed elevation · k/l: conductance

Costa, D., Burlando, P., Liong, S.-Y. (2016). Coupling spatially distributed river and groundwater transport models to investigate contaminant dynamics at river corridor scales. Environmental Modelling & Software 86, 91–110. doi:10.1016/j.envsoft.2016.09.009

ModelJakarta paper 1 · results, Ciliwung River

The pollutant plume crosses the riverbed where the river loses water

Pollution plume in the river and the plume entering the groundwater (load at S5).
Pollution plume in the river and the plume entering the groundwater (load at S5).
Along the reach: river concentration and depth, river–aquifer mass flux and infiltration, groundwater concentration and water table.
Along the reach: river concentration and depth, river–aquifer mass flux and infiltration, groundwater concentration and water table.

Costa, D., Burlando, P., Liong, S.-Y. (2016). Coupling spatially distributed river and groundwater transport models to investigate contaminant dynamics at river corridor scales. Environmental Modelling & Software 86, 91–110. doi:10.1016/j.envsoft.2016.09.009

DataJakarta · field campaign, Ciliwung flood of May 2013

Jakarta: floods, sewage and drinking-water wells share one river corridor

Ciliwung basin (~130 km, 390 km²): Bogor, Depok and Jakarta along the river.
Ciliwung basin (~130 km, 390 km²): Bogor, Depok and Jakarta along the river.
  • Population 2.7 → 9 million (1960–2007)
  • 3% served by sewers (2002); >900,000 septic tanks, most leaking
  • Piped water 31% (2008): wells fill the gap, abstraction ×14 in 60 years
Upstream: Ciliwung at the Bogor Botanical Gardens
(a) Upstream: Ciliwung at the Bogor Botanical Gardens
Kampung Melayu, Central Jakarta: backyards open onto the river
(b) Kampung Melayu, Central Jakarta: backyards open onto the river
The river in flood, 12 May 2013
(c) The river in flood, 12 May 2013
The street parallel to the river, same flood
(d) The street parallel to the river, same flood
A house before the flood
(e) A house before the flood
The same house ~30 min after the flood peak
(f) The same house ~30 min after the flood peak

Costa, D., Burlando, P., Priadi, C. (2016). The importance of integrated solutions to flooding and water quality problems in the tropical megacity of Jakarta. Sustainable Cities and Society 20, 199–209. doi:10.1016/j.scs.2015.09.009

ModelPhD thesis · validation, Ciliwung flood of 11–17 May 2013

Tested against a Jakarta flood: river oxygen and riverbed recharge

Monitoring stations R1j–R3j, Kampung Melayu (Central Jakarta); flow to the north.
Monitoring stations R1j–R3j, Kampung Melayu (Central Jakarta); flow to the north.
Calibration (11–13 May): DO forced at R1, simulated (solid) vs observed (dotted) 3 km (R2) and 6.75 km (R3) downstream.
Calibration (11–13 May): DO forced at R1, simulated (solid) vs observed (dotted) 3 km (R2) and 6.75 km (R3) downstream.
Validation on independent data (13–17 May): same stations; grey = with a ×4 flow-velocity correction for the DTM/bathymetry bias.
Validation on independent data (13–17 May): same stations; grey = with a ×4 flow-velocity correction for the DTM/bathymetry bias.
River-to-aquifer recharge along the river: coupled model (a) vs standalone MODFLOW/MT3DMS (b); red = over-, blue = under-predicted.
River-to-aquifer recharge along the river: coupled model (a) vs standalone MODFLOW/MT3DMS (b); red = over-, blue = under-predicted.

One calibrated oxygen-demand rate (3.7 day⁻¹) reproduces the oxygen sag through the flood · riverbed recharge error 9% coupled vs 20% standalone (RMSE 0.24 vs 0.47 m/day)

Costa, D. (2015). An integrated modelling framework to simulate unsteady flow and reactive-transport for urban river–aquifer systems. PhD thesis, National University of Singapore.

DataJakarta paper 2 · observed river chemistry, 2005–2013

Entering Jakarta, the river loses oxygen and nitrate and gains ammonium

(a) River chemistry along sampling locations 0–22 (2005, 2006, 2013; black wet, grey dry season); grey band = inside Jakarta. (b) Sampling locations.
(a) River chemistry along sampling locations 0–22 (2005, 2006, 2013; black wet, grey dry season); grey band = inside Jakarta. (b) Sampling locations.
The nitrogen cycle along the Ciliwung, Jakarta: nitrification upstream (region A), ammonium-dominated river and rising NH₃ in the shallow aquifer downstream (region B). Mean concentrations in mg/l.
The nitrogen cycle along the Ciliwung, Jakarta: nitrification upstream (region A), ammonium-dominated river and rising NH₃ in the shallow aquifer downstream (region B). Mean concentrations in mg/l.

Upstream (A): nitrate builds up from farming · inside Jakarta (B): DO falls, NH₃, BOD and coliforms rise · untreated wastewater shifts the N cycle from nitrification to ammonium

Costa, D., Burlando, P., Priadi, C., Liong, S.-Y. (2016). The nitrogen cycle in highly urbanized tropical regions and the effect of river–aquifer interactions: the case of Jakarta and the Ciliwung River. Journal of Contaminant Hydrology 192, 87–100. doi:10.1016/j.jconhyd.2016.06.004 · Right: Costa, D. (2015). An integrated modelling framework to simulate unsteady flow and reactive-transport for urban river–aquifer systems. PhD thesis, National University of Singapore, Fig. 10.12.

ModelJakarta paper 2 · J. Contam. Hydrol. 2016

Per square metre the river leaks more nitrogen; across the city, septic tanks dominate

River–aquifer model of 18 km of the Ciliwung corridor (Depok to Manggarai, 5 m cells, ~2 million cells): simulated river water depth, with zoom-ins.
River–aquifer model of 18 km of the Ciliwung corridor (Depok to Manggarai, 5 m cells, ~2 million cells): simulated river water depth, with zoom-ins.
Water (blue) and nitrogen (red) recharge to the aquifer from the river (bars, dry and wet season, scenarios S1–S5) and from septic tanks (dashed line): per unit area (left) and across the corridor (right).
Water (blue) and nitrogen (red) recharge to the aquifer from the river (bars, dry and wet season, scenarios S1–S5) and from septic tanks (dashed line): per unit area (left) and across the corridor (right).

The river recharges only ~1.7× more water than leaking septic tanks · its nitrogen load is 0.45–1.55% of theirs, even in the worst future scenario

Costa, D., Burlando, P., Priadi, C., Liong, S.-Y. (2016). The nitrogen cycle in highly urbanized tropical regions and the effect of river–aquifer interactions: the case of Jakarta and the Ciliwung River. Journal of Contaminant Hydrology 192, 87–100. doi:10.1016/j.jconhyd.2016.06.004

ModelJakarta paper 3 · Sustain. Cities Soc. 2016

Floods supply 20% of the aquifer’s recharge water but over half of its oxygen

Simulated inundation at the peak of the main flood, Kampung Melayu reach of the Ciliwung; S1–S16 are the cross-sections used to read the fluxes.
Simulated inundation at the peak of the main flood, Kampung Melayu reach of the Ciliwung; S1–S16 are the cross-sections used to read the fluxes.
Cumulative water (left) and dissolved-oxygen mass (right) infiltrated to the aquifer during the flood: flood-driven share in black, baseline in grey.
Cumulative water (left) and dissolved-oxygen mass (right) infiltrated to the aquifer during the flood: flood-driven share in black, baseline in grey.

Water recharge rises almost linearly, oxygen recharge non-linearly · a dam that flattens floods may weaken the river–aquifer system’s self-cleaning unless pollution loads fall

Costa, D., Burlando, P., Priadi, C. (2016). The importance of integrated solutions to flooding and water quality problems in the tropical megacity of Jakarta. Sustainable Cities and Society 20, 199–209. doi:10.1016/j.scs.2015.09.009

Part 5

Catchment models and their blind spots for cold regions

Process knowledge from snow, field and landscape only matters for management if it reaches catchment models. Mostly it does not.

ModelCRHM-WQ · model structure

N and P follow water through every CRHM store, then between HRUs

a · Snow and soil modules within an HRU: snowmelt and rain feed runoff, subsurface flow (ssr), depression storage (Sd), the soil layers and groundwater.
a · Snow and soil modules within an HRU: snowmelt and rain feed runoff, subsurface flow (ssr), depression storage (Sd), the soil layers and groundwater.
b · Routing module: fluxes from one HRU are partitioned among downstream HRUs and the basin outlet.
b · Routing module: fluxes from one HRU are partitioned among downstream HRUs and the basin outlet.
c · Soil nitrogen cycle (with legend)
c · Soil nitrogen cycle (with legend)
d · Soil phosphorus cycle
d · Soil phosphorus cycle

Costa, D., Pomeroy, J.W., Brown, T., Baulch, H., Elliott, J., Macrae, M. (2021). Advances in the simulation of nutrient dynamics in cold climate agricultural basins: developing new nitrogen and phosphorus modules for the Cold Regions Hydrological Modelling Platform. Journal of Hydrology 603, 126901. doi:10.1016/j.jhydrol.2021.126901

ModelCRHM-WQ · governing equations

One mass balance per species and compartment, riding on cold-region water fluxes

Water quality: CRHM-WQ

d(Vc,n·Cc,n)dt=∑i=1LLi,n

(1) mass balance of species n in each compartment c

Li,n=Fi·Ci,n

(2) each flux carries the concentration of its source

Fβ=[ftemp·fθw·fconS]·Kreaction·Cβ

(3) every transformation: rate at 20 °C scaled by temperature, moisture, saturation

Cold-region hydrology: the fluxes Fi in (2)

dSWEdt=P−∇·F−EB−M

Blowing snow (PBSM): wind transport F (saltation + suspension) and sublimation EB redistribute snow between HRUs

Qm=Q*+Qh+Qe+Qg+Qp−dUdt

Seasonal snowpack (SNOBAL, EBSM): energy balance; melt = Qm/(ρwλf), U = cold content

INF=C·S02.92·(1−SI)1.64·(273.15−TI273.15)−0.45·t00.44

Frozen soils: infiltration into frozen ground from surface saturation S0, pre-melt saturation SI and temperature TI, opportunity time t0

Also: canopy snow interception and sublimation · glacier firn and ice melt · prairie fill-and-spill depressions

V: water volume · C: concentration · c: compartment · n: N or P species · L: mass flux · F: water flux · ftemp, fθw, fconS: temperature, moisture, half-saturation factors · Kreaction: rate at 20 °C

Costa, D., Pomeroy, J.W., Brown, T., Baulch, H., Elliott, J., Macrae, M. (2021). Advances in the simulation of nutrient dynamics in cold climate agricultural basins. Journal of Hydrology 603, 126901 · Pomeroy, J.W., et al. (2022). The cold regions hydrological modelling platform for hydrological diagnosis and prediction based on process understanding. Journal of Hydrology 615, 128711 · Gray, D.M., et al. (2001). Hydrological Processes 15, 3095–3111.

ModelCRHM-WQ · results, Steppler basin fields, 2005–2011

Hourly runoff is reproduced field by field across the basin

Steppler Basin, Manitoba: each coloured field is one HRU (numbers are field IDs). Gauged fields: 554 (HRU 17), 705 (HRU 28), 582 (HRU 29), 798 (HRU 34), 514 (HRU 38).
Steppler Basin, Manitoba: each coloured field is one HRU (numbers are field IDs). Gauged fields: 554 (HRU 17), 705 (HRU 28), 582 (HRU 29), 798 (HRU 34), 514 (HRU 38).
Hourly observed (red) and simulated (black) edge-of-field streamflow at the five gauged HRUs; right panels zoom in on the low-flow fields.
Hourly observed (red) and simulated (black) edge-of-field streamflow at the five gauged HRUs; right panels zoom in on the low-flow fields.

Streamflow NSE 0.66–0.99 at 4 of 5 gauges · peak SWE NSE 0.63–0.77 · SRP NSE 0.94 at field F3

Costa, D., Pomeroy, J.W., Brown, T., Baulch, H., Elliott, J., Macrae, M. (2021). Advances in the simulation of nutrient dynamics in cold climate agricultural basins: developing new nitrogen and phosphorus modules for the Cold Regions Hydrological Modelling Platform. Journal of Hydrology 603, 126901. doi:10.1016/j.jhydrol.2021.126901

ModelCRHM-WQ · Steppler basin

About nine days a year carry a third of the nitrogen load

  • N and P cycling added to CRHM's snow, soil, depression, groundwater and routing modules
  • Snowmelt freshet: ~9 days, 21% of annual flow
  • But 30% of NO₃, 31% of NH₄, 20% of SRP, 16% of particulate P annual load
  • Monthly or daily models are structurally blind to the period that matters
Cumulative outflow and NO₃, NH₄, SRP and particulate P loads: total vs snowmelt.
Panel 1 of 3 · outflow · Cumulative outflow and NO₃, NH₄, SRP and particulate P loads: total vs snowmelt.

Costa, D., Pomeroy, J.W., Brown, T., Baulch, H., Elliott, J., Macrae, M. (2021). Advances in the simulation of nutrient dynamics in cold climate agricultural basins: developing new nitrogen and phosphorus modules for the Cold Regions Hydrological Modelling Platform. Journal of Hydrology 603, 126901. doi:10.1016/j.jhydrol.2021.126901

Part 6

OpenWQ

A biogeochemistry engine that existing hydrological models adopt as a component, so the chemistry is written once and tested in any host.

StrategyCanada · a national water-quality model

Canada has national weather and flow forecasts, but no national water-quality model

  • Nat-WQE: ECCC’s plan for water-quality prediction from days to decades
  • Built on what already runs: water quality added to ECCC’s operational chain, no new hydrological model
  • Circular: model outputs point to monitoring and research gaps, which feed back into the model
  • Hosts: ECCC’s NSRPS, MESH and CLASSIC (CanESM land surface); already in CRHM, SUMMA, mizuRoute
The scale of the task: Canada’s river network lighting up from the river mouths to the headwaters, 549,501 reaches (HydroRIVERS v1.0, line width by mean discharge). Lehner, B., Grill, G. (2013). Hydrol. Process. 27(15), 2171–2186.
Figure 1: the National Water Quality Modelling Framework (NWQMF) with Nat-WQE at its centre: forcing and human inputs, six coupled domains, predictions that feed monitoring, research and decision support.
Figure 1: the National Water Quality Modelling Framework (NWQMF) with Nat-WQE at its centre: forcing and human inputs, six coupled domains, predictions that feed monitoring, research and decision support.

Teufel, B., Bonsal, B., Clark, M., Costa, D., Fortin, V., Pietroniro, A., Spence, C., Rao, Y.R. (2025). Towards a Canadian national water quality model: challenges and opportunities. Canadian Water Resources Journal 50(4), 285–295. doi:10.1080/07011784.2025.2536031

The design problem

Water-quality models carry their own simplified hydrology. To add a reaction or process, we need to recompile the model.

OpenWQ reverses this: the host hydrological model supplies water fluxes, OpenWQ calculates chemistry, and the user supplies the hypotheses as input files. With Fortran and Python coupler interfaces (and the native C++ API), it can be coupled to any process-based model that computes water fluxes.

HOST MODELSCOUPLER INTERFACESONE ENGINEHYPOTHESESSUMMAland surfaceFortranmizuRouteriver routingFortranCRHMcold regionsC++HBVconceptualPythonLISFLOODCopernicus GloFASPythonFortran interfaceC++ API (native)Python interfaceOpenWQ coretransport · chemistry · sources / sinksdecl()run_time_start()run_space()run_time_end()same compiled enginefor every hostwater states, fluxesInput files (JSON)· species, compartments· reaction networks· rate laws, parameters· loads, outputsno recompiling to changea reaction or process
ModelOpenWQ · architecture

Four calls into the host, five module blocks, one solver

Developed withUniversity of CalgaryNCAREnvironment and Climate Change Canada
HOST MODEL SUMMA · mizuRoute · CRHM · HBV · LISFLOOD … any hydrological model Configuration Time loop Space loop water states and fluxesper HRU / cell / reach decl run_time_start run_space run_time_end hydro-link · one-way OPENWQ per species · compartment · element dM/dt = dMtransport + dMchemistry + dMsources/sinks TRANSPORT model_TD advection ± dispersion model_TS sediment (HBV-SED, MMF) model_LE lateral exchange (BOUNDMIX, donor-limited) CHEMISTRY model_CH NATIVE_BGC_FLEX JSON networks, ExprTk rate laws model_CH PHREEQC (PhreeqcRM) model_SI Langmuir · Freundlich SOURCES / SINKS loads kept apart from chemistry JSON · ASCII · HDF5; discrete or continuous SOLVER Forward Euler · SUNDIALS (CVODE) states change only inside the solver Data: arma::field (compartments) → field (species) → cube (space, 1–3D); grid inherited from the host Config: one master JSON (solver, modules, loads, outputs) · GPL · github.com/ue-hydro/openwq

Costa, D., et al. Toward flexible and interoperable biogeochemical modeling in Earth system and hydrological models: the OpenWQ framework and a continental-domain nitrate benchmark. Environmental Modelling & Software (submitted). Module codes as in its Table 1; any module can be set to NONE.

StrategyOpenWQ · hypotheses as input files

Two chemistry engines, both set up through input files

Kinetic networks

NATIVE_BGC_FLEX

Every species, transformation and rate law is written in JSON; rate laws are parsed at run time (ExprTk). Any element: N, P, C, O₂, S, metals, pathogens, pesticides.

openWQ_MODULE_NATIVE_BGC_FLEX.json

"transformations": {
  "nitrification": {
    "consumed": "NH4",
    "produced": "NO3",
    "kinetics": "k_nit * NH4 * fT(Tsoil)",
    "parameters": {"k_nit": 0.05}
  }
}
Equilibrium + kinetics

PHREEQC (PhreeqcRM)

Speciation, pH from the charge balance, ion exchange, minerals and gases, plus kinetic rates, all from a standard PHREEQC input file.

openWQ_MODULE_PHREEQC.json

{
  "MODULE_NAME": "PHREEQC",
  "FILEPATH": "nitrogen_redox_equilibrium.pqi",
  "DATABASE": "phreeqc.dat",
  "BGC_GENERAL_MOBILE_SPECIES": ["Nit", "Amm", "Oxg", "Doc"]
}

nitrogen_redox_equilibrium.pqi (excerpt)

EQUILIBRIUM_PHASES 1  Soil air
    CO2(g)  -2.0  10   # soil pCO2 = 1 %
EXCHANGE 1  Soil cation exchanger
    X  0.05   # NH4+ exchange
KINETICS 1  Soil
nitrification  # AmmH+ + 2 Oxg -> Nit- + 2 H+

Switching engines is one line in openWQ_master.json: "MODULE_NAME": "NATIVE_BGC_FLEX" or "PHREEQC". Same host, same transport, no recompiling.

ModelOpenWQ · continental nitrate benchmark

One configuration, 16 basins across North America

The 16 CAMELS-SPAT basins and the GRQA nitrate station scored at each outlet; symbol and colour = basin scale.
The 16 CAMELS-SPAT basins and the GRQA nitrate station scored at each outlet; symbol and colour = basin scale.
NATIVE_BGC_FLEX · nitrogen network
ORG_N_freshresidueORG_N_activehumusNH4-NammoniumNO3-NnitrateNH3_lossvolatilizationN2_lossto atmospherePLANT_Nplant uptakeN fixationlegumes (source)HUMIFIC.MINERAL.MINER.NITRIFICATIONVOLATIL.DENITRIF.UPTAKEUPTAKEFIXATION
"NITRIFICATION": k_nit · γT · γSW · (1 − e−c_n·NH4) · NH4
SWAT-type N cycle used for the benchmark: 9 transformations, each a JSON rate law with T and soil-moisture modifiers.

SUMMA–OpenWQ, one SWAT-type N network + land-cover loads, calibrated basin by basin · headwater, meso and macro basins, USA and Canada · 14 of 16 beat the mean-flow benchmark (KGE > −0.41) · headwater median KGE 0.66

Costa, D., et al. Toward flexible and interoperable biogeochemical modeling in Earth system and hydrological models: the OpenWQ framework and a continental-domain nitrate benchmark. Environmental Modelling & Software (submitted).

ModelOpenWQ · observed vs simulated

The same set-up follows the seasonal nitrate cycle at every scale

Cumulative nitrate KGE across all 16 stations, calibration and validation.
Cumulative nitrate KGE across all 16 stations, calibration and validation.
Simulated NO₃-N (lines) vs observations for a macro, a meso and a headwater basin.
Simulated NO₃-N (lines) vs observations for a macro, a meso and a headwater basin.

Headwater KGE 0.66 cal / 0.48 val · 14 of 16 stations beat the mean-flow benchmark (KGE > −0.41) in calibration, 9 of 15 in validation

Costa, D., et al. Toward flexible and interoperable biogeochemical modeling in Earth system and hydrological models: the OpenWQ framework and a continental-domain nitrate benchmark. Environmental Modelling & Software (submitted).

StrategyNorthern basins · where we are

Northern basins: same set-up, more chemicals

Northern basins map
SUMMA–mizuRoute–OpenWQ set-ups: calibrated (green) and in progress (orange)
Calibration status by basin and variable
KGE at the basin outlet per variable, with the formulation used (RN kinetic network, EQ / EQ-C PHREEQC). Hatched: calibration running · ↻ re-running with a longer record.
Nitrate with the kinetic network: Athabasca 0.85, Peace 0.70
Oxygen and pH through PHREEQC in the Hay: 0.90 and 0.82, from few samples
Ammonium (Hay, EQ) with 4× more samples: KGE −1.05 → −0.07; follows the peaks, still too high · re-run in progress

SUMMA–mizuRoute–OpenWQ calibrations (DDS), preliminary · observations: provincial and federal long-term monitoring at the basin outlets

ModelNorthern basins · first results

First results at the basin outlets

Observed vs simulated nitrate, oxygen, pH and ammonium in northern basins

Observed vs simulated, one point per sample; dashed line = 1:1. Hay oxygen and pH rest on 4–6 samples.

SUMMA–mizuRoute–OpenWQ calibrations (DDS), preliminary · RN kinetic network, EQ / EQ-C PHREEQC

ModelNorthern basins · zoom on the Athabasca

A boreal river calibrated zone by zone, from the mountains to Fort McMurray

Cascade zones and the scored station of each (69 reaches).
Cascade zones and the scored station of each (69 reaches).
Observed vs simulated NO₃-N at the three zone stations.
Observed vs simulated NO₃-N at the three zone stations.

Costa, D., et al. Effluent dilution under ice and open-water uptake control the nitrate regime of a large boreal river: process-based land–river modelling of the Athabasca River with a sub-basin cascade calibration (in preparation).

ModelNorthern basins · Athabasca cascade in time

Each zone reproduces the winter nitrate peak and the spring flush

  • Grey: one global parameter set; colour: after zone calibration
  • Zone 2 (Athabasca town): KGE 0.84 calibration, 0.70 validation
  • Zone 3 (Fort McMurray): 0.81 and 0.60
  • Timing and magnitude both improve over the global stage
Simulated NO₃-N at the three zone stations, global stage (grey) and zone-calibrated (colour), with observations; right: simulated vs observed.
Simulated NO₃-N at the three zone stations, global stage (grey) and zone-calibrated (colour), with observations; right: simulated vs observed.

Costa, D., et al. Effluent dilution under ice and open-water uptake control the nitrate regime of a large boreal river: process-based land–river modelling of the Athabasca River with a sub-basin cascade calibration (in preparation).

TheoryThermodynamics paper · theory step 1

How much thermodynamics does a catchment water-quality model need?

Kinetics says how fast a reaction runs; thermodynamics says whether it can.

r=k·cDKD+cD·cAKA+cA·KIKI+cI·θT−20

Kinetics (RN): Monod donor, acceptor and inhibition; says how fast, never whether

ΔGr=ΔGr∘+RTlnQ

Gibbs energy: negative = the reaction can run forward; zero = equilibrium

K=exp(−ΔGr∘RT)

Equilibrium constant: the value Q takes when ΔGr = 0

Thermodynamic factor F_T against thermodynamic distance phi: rates are limited only below phi = 3; nitrification sits near phi = 60

Worked example: nitrification

NH₄⁺ + 2 O₂ → NO₃⁻ + 2 H⁺ + H₂O, ΔG°r = −301.8 kJ mol⁻¹

Stream sample at 12 °C: Q ≈ 1.7 × 10⁻⁷, so RT ln Q ≈ −37 kJ mol⁻¹ and ΔGr ≈ −339 kJ mol⁻¹

Composition enters through a logarithm: it moves ΔGr by tens of kJ, not hundreds.

Electron acceptors, used in this order

ΔG°′ · kJ per mol CH₂O · pH 7
O₂ → H₂O−475
NO₃⁻ → N₂−448
MnO₂ → Mn²⁺−349
Fe(OH)₃ → Fe²⁺−114
SO₄²⁻ → H₂S−77
CO₂ → CH₄−58

Each is used once the one above runs out. Stumm, W., Morgan, J.J. (1996). Aquatic Chemistry, 3rd ed. Wiley.

Costa, D., Zehsaz, S., et al. How much thermodynamics do catchment water-quality models need? A controlled test on nitrate, oxygen, ammonia, pH and low-energy redox in 16 basins (in preparation, Water Resources Research).

TheoryThermodynamics paper · the energy basis

Nitrogen reactions sit far from their energy threshold

  • φ = energy the reaction still yields after the microbe’s ATP cost, in units of χRT; FT = 1 − e−φ limits rates only for φ < 3
  • Nitrification φ ≈ 58, respiration ≈ 82, denitrification ≈ 95 in every soil layer, aquifer and reach
  • Observed samples agree: nitrification φ ≈ 62 in 296 speciated samples
  • Positive control: only with forced energy demand does RN-T depart from RN
(a) Thermodynamic distance φ from daily simulations in all compartments of the 16 basins, observed samples and verification case 6. (b) Jordan Creek aquifer ammonium: RN = RN-T; F_T only bites when forced.
(a) Thermodynamic distance φ from daily simulations in all compartments of the 16 basins, observed samples and verification case 6. (b) Jordan Creek aquifer ammonium: RN = RN-T; F_T only bites when forced.

Costa, D., Zehsaz, S., et al. How much thermodynamics do catchment water-quality models need? A controlled test on nitrate, oxygen, ammonia, pH and low-energy redox in 16 basins (in preparation, Water Resources Research).

TheoryThermodynamics paper · the formulation ladder

Four nested formulations: what each adds, and what it costs

Each column adds one element to the previous one; problems (1)–(5) are the water-quality questions each element is meant to answer. Major ions: Ca²⁺, Mg²⁺, Na⁺, K⁺, Cl⁻, SO₄²⁻ and HCO₃⁻ (alkalinity).
Each column adds one element to the previous one; problems (1)–(5) are the water-quality questions each element is meant to answer. Major ions: Ca²⁺, Mg²⁺, Na⁺, K⁺, Cl⁻, SO₄²⁻ and HCO₃⁻ (alkalinity).

Costa, D., Zehsaz, S., et al. How much thermodynamics do catchment water-quality models need? A controlled test on nitrate, oxygen, ammonia, pH and low-energy redox in 16 basins (in preparation, Water Resources Research).

TheoryThermodynamics paper · the design

Same host, same data, four chemistries: a controlled test in 16 basins

  • Same host, transport, loads and calibration: only the chemistry term changes
  • RN kinetic network · RN-T + thermodynamic factor FT
  • EQ full speciation in PHREEQC · EQ-C + minerals and gases that set alkalinity
  • Each formulation calibrated independently in 16 basins
Where each increment acts: soil, aquifer and river reaches. Letters mark the element: T thermodynamic factor, E equilibria, C chemical system, P prescribed.
Where each increment acts: soil, aquifer and river reaches. Letters mark the element: T thermodynamic factor, E equilibria, C chemical system, P prescribed.

Costa, D., Zehsaz, S., et al. How much thermodynamics do catchment water-quality models need? A controlled test on nitrate, oxygen, ammonia, pH and low-energy redox in 16 basins (in preparation, Water Resources Research).

ModelThermodynamics paper · four formulations compared

Nitrate and oxygen: all four formulations equal

Cumulative distribution of KGE by formulation and problem

KGE across basins, calibration period, each formulation at its own best · interim: 3 pilot basins, the rest running on the HPC

192DDS calibrations
16 basins × 4 formulations × 3 seeds
28,800model runs
150 DDS samples per calibration
~185,000core-hours on Deucalion
(projected, EQ / EQ-C still running)
core-h total · per run
RN1,000 · 0.14EQ71,000 · 9.8
RN-T1,100 · 0.15EQ-C112,000 · 15.6

Costa, D., Zehsaz, S., et al. How much thermodynamics do catchment water-quality models need? A controlled test on nitrate, oxygen, ammonia, pH and low-energy redox in 16 basins (in preparation, Water Resources Research). Interim results.

ModelThermodynamics paper · simulations

The simulations confirmed what theory anticipated

Jordan Creek (01451800), outlet reach, each formulation at its own calibrated best; validation shaded · pH KGE<sub>sb</sub>: EQ 0.05, EQ-C 0.54
Jordan Creek (01451800), outlet reach, each formulation at its own calibrated best; validation shaded · pH KGEsb: EQ 0.05, EQ-C 0.54

RN-T = RN bit for bit · nitrate and O₂ equal in all four (median KGE 0.55 / 0.71, interim) · pH needs minerals and gases (EQ-C)

Costa, D., Zehsaz, S., et al. How much thermodynamics do catchment water-quality models need? A controlled test on nitrate, oxygen, ammonia, pH and low-energy redox in 16 basins (in preparation, Water Resources Research). pH results interim.

ModelThermodynamics paper · summary

Skill and cost by water-quality problem

Problem · metricRNRN-TEQEQ-COutcome
1 · Nitrate, KGE0.55 (−0.03)as RN0.55 (−0.04)0.52 (−0.02)Equivalent: RN on cost
2 · Dissolved O₂, KGE0.71 (0.55)as RN0.72 (0.58)0.66 (0.59)Equivalent: RN on cost
O₂ anomaly, KGE″0.33 (0.10)as RN0.25 (0.13)0.30 (0.20)
3 · Un-ionized NH₃, error factor2.6as RN2.45.3None: limited by total ammonia
4 · pH, KGEsb––−0.27 (−0.48)−0.16 (−0.16)EQ-C where stream metabolism sets pH
skill vs observed median––−0.15 (−0.49)0.05 (0.00)
Ca, HCO₃, SO₄, KGE–––−0.06, 0.30, 0.21
5 · Low-energy redox, CH₄ share (%)270.851.1–RN-T (verification case)
Cost relative to RN11.02.8 to 37≈ EQ

Median over basins, calibration period (validation in parentheses). Problem 5 from verification case 6. Interim: three basins, EQ and EQ-C searches unfinished.

Costa, D., Zehsaz, S., et al. How much thermodynamics do catchment water-quality models need? A controlled test on nitrate, oxygen, ammonia, pH and low-energy redox in 16 basins (in preparation, Water Resources Research). Table 2, interim values.

ModelOngoing · a global nitrogen model

Ongoing: OpenWQ on the Copernicus GloFAS hydrology

  • Host LISFLOOD (Copernicus GloFAS v5): 6.2 M cells at 0.05°
  • NH₄, NO₃, organic N and N₂ loss in soil, groundwater and rivers
  • Hydrology recorded once, chemistry replayed
  • Then: calibrate against ~100,000 stations (GRQA)
Estimated cost of the global calibration
~180core-h per global run (2000–2019 + spin-up; ~7 per simulated year)
~3,150runs: cascade, ~20 levels + Köppen stage, 150 DDS samples each
~0.6 Mcore-h per calibration · ~1.7 M with 3 seeds (9× the 16-basin campaign)
Live viewer, first global test year (2015, 53 weekly outputs): choose compartment and species, press play, drag to rotate, click a river. Fixed test load (10 mg L⁻¹ in infiltrating water), not calibrated.

Global LISFLOOD–OpenWQ coupling (ue-hydro, in development) · GloFAS v5 hydrology (Copernicus EMS)

Part 7

Evidence from data

Instead of asking whether a model fits one basin, ask what decades of monitoring say across thousands of basins at once.

DataThree monitoring networks

Three monitoring networks, from the Mediterranean to the Baltic

Map of Europe locating mainland Portugal, the Guadiana basin and the Gauja–Koiva basin

Dashed boxes: basin extents

National · SNIRH

Portugal

Portugal: automatic and periodic monitoring stations by major river basin

3,441 stations, 14.4 M observations, 1990–2024. Nitrate falls in the wet north and rises where irrigation expanded.

Transboundary · PT–ES

Guadiana

Guadiana basin: median nitrate at 858 stations in Portugal and Spain

1,379 stations, ~3 M observations, 2000–2025. Nitrate rises once anthropogenic cover passes ~45–50%.

Transboundary · LV–EE

Gauja–Koiva

Gauja–Koiva basin: median nitrate-N at 53 stations in Latvia and Estonia

64 stations, 35,256 measurements, 1981–2024. Basin nitrate fell 75% after Soviet agriculture collapsed; phosphorus lagged.

Portugal: Costa, Liu & Palma (2025) Sci. Total Environ. 998:180230 · Guadiana: Alexandre & Costa, J. Hydrol. Reg. Stud. (under review) · Gauja–Koiva: Zehsaz, Alves, Alexandre, Danenberga, Dace & Costa, J. Hydrol. Reg. Stud. (in revision)

TheoryReview · climate and catchment nutrients

Climate change will worsen nutrient losses almost everywhere

  • Global review: ~500 articles, land → river → lake, all climate zones
  • Leaching and overland flow rise worldwide with extreme rain; urban growth amplifies them
  • Farmland: more erosion; faster-growing crops take up more nutrients, so more fertiliser may be applied
  • Lakes: warming favours cyanobacterial blooms
Climate drivers of nutrient dynamics along the land–river–lake continuum (conceptual).
Climate drivers of nutrient dynamics along the land–river–lake continuum (conceptual).

Costa, D., Sutter, C., Shepherd, A., Jarvie, H., Wilson, H., Elliott, J., Liu, J., Macrae, M. (2023). Impact of climate change on catchment nutrient dynamics: insights from around the world. Environmental Reviews 31(1), 4–25. doi:10.1139/er-2021-0109

DataNear-global synthesis

Persistent land-cover thresholds for river water quality worldwide

Global map of 101,345 river water-quality station outlets (GRQA v1.3)

19 M measurements · 117 countries · 101,345 station outlets, each with its own upstream basin and annual ESA CCI land cover

Rise to plateau. Rainfed cropland 0–20% → 80–100%: nitrate 0.35 → 3.41 mg L⁻¹ (~10×), TN 5.7×, TP 4.4×; most of the rise in the first 20–40%.
Forests protect. Above ~40–60% forest cover, concentrations stay consistently low.
Median concentration of TDN, TN, TP, nitrate, TSS and ammonium against land-cover fraction for cropland, urban and forest classes

Costa, D., Baulch, H., Jarvie, H., Liu, J., Macrae, M. Global analysis reveals persistent land-cover thresholds for river water quality across climates and decades. Scientific Reports (in revision).

Part 8

What this means for soil models

Five lessons, one strategy, and open questions for this community.

StrategySynthesis

Five lessons from following solutes across scales

LESSON 1

Timing beats detail

Changing when the load reaches soil water raised KGE in 11 of 15 basins; the reaction network was not the bottleneck.

LESSON 2

Interfaces decide

Snow–soil, soil–drain, river–aquifer, channel under ice: export was set at the boundary between compartments.

LESSON 3

Soil is the memory

Slow soil pools store solutes for years and release them later; the timing of export depends on them.

LESSON 4

Pools must translate

Models split soil N and P differently; measured pools rarely map onto model pools. Flexible networks help.

LESSON 5

Thresholds are real

Land-use effects saturate after ~40%; linear export terms are the wrong functional form.

For discussion

Five open questions for this community

Which soil pools should a catchment model carry?

If measured pools never map onto model pools, what is the minimum set that transfers between models?

Can we predict when a soil is "full"?

The 20–40% saturation of land-use effects suggests retention capacity. Can soil models predict where that threshold sits?

How do we score dynamics, not levels?

Large-sample skill is mostly between-basin. Which metrics reward getting the timing right?

Where does thermodynamics pay?

Anoxic soils, wetlands, hyporheic zones, pH-controlled problems. Can we map them from data first?

Should soil modellers link more formally with hydrology and biogeochemistry modelling communities?

Hydrological and hydrodynamic models now meet in model-agnostic frameworks; with OpenWQ, biogeochemistry can plug in too. Shared, formal interfaces (APIs) between soil and catchment models would let each community build on the other’s progress and avoid duplicating work.

Thank you

Collaborators at GIWS and the University of Saskatchewan, ECCC, AAFC, USGS, the universities of Waterloo and Évora, ETH Zürich, colleagues in Italy and Spain, and the ue-hydro group.

Funding: ENGAGE (Water4All, EU), BUR_PC (Interreg POCTEP), NSERC, FCT/AI², MED, CHANGE

diogo.costa@uevora.pt · ue-hydro.uevora.pt

UE-hydro, Computational Hydrology Group, University of ÉvoraUniversidade de ÉvoraMED, Mediterranean Institute for Agriculture, Environment and DevelopmentCHANGE, Global Change and Sustainability Institute