Skip to content

Hydrological modelling in lsdtt3

This page covers the three hydrology tools in lsdtt3 and the two column models of lsdtt-distributed-hydrology (TOPMODEL and S-HYPE): what each computes, when to use it, where the theory comes from, and how the tools differ. For parameter names and defaults, see the CLI references for lsdtt-drainage-analysis, lsdtt-distributed-hydrology and lsdtt-graphflood.

New to lsdtt3 hydrology? Read The three tools, then When to use each tool. The equations are collected in Governing equations.


Overview

  1. lsdtt-drainage-analysis computes static topographic indices: drainage area, Topographic Wetness Index, Soil Topographic Index and connectivity. It has no time, rainfall or water balance.

  2. lsdtt-distributed-hydrology is a rainfall-driven simulation with a full water balance. column_model selects one of two models:

    • topmodel (default): a raster TOPMODEL on every pixel. Water moves vertically (interception, infiltration, root zone, unsaturated zone, saturated zone) and laterally (surface and subsurface routing). It simulates a storm.
    • hype: a simplified S-HYPE, from the Swedish Meteorological and Hydrological Institute (SMHI), run on sub-basins split into land-use × soil classes at daily steps, with snow and seasonal evapotranspiration. It simulates seasons and years.
  3. lsdtt-graphflood is a stationary, graph-based hydraulic solver with Manning friction. It routes a supplied water input over an evolving water surface (z + h, bed elevation plus depth) and returns the depths that input produces.

The second tool generates discharge from rainfall and routes it through time. The third takes a steady input and solves for depth. They answer different questions.

lsdtt-drainage-analysis lsdtt-distributed-hydrology lsdtt-graphflood
Inputs DEM, optional soil data DEM, rainfall, PET, optional soil and land-cover data (hype also needs temperature, land-use and soil rasters, parameter tables) DEM, roughness field, rainfall-rate field (optionally a point inflow)
Computes Static drainage and wetness metrics Rainfall-runoff response and outlet hydrograph Flow depth and inundation for the supplied water
Has time No Yes No (stationary solver)
Generates discharge No Yes No
First question it answers Where is the catchment prone to wetness? How does this storm produce runoff? Where does this steady input inundate?

The three tools

lsdtt-drainage-analysis: static topographic indices

This tool describes catchment structure from the DEM and, optionally, a soil data table. It produces rasters only, needs no calibration, and has no weather input. The metrics are:

  • Drainage area (A): the accumulated upslope area for each cell. D8, D-infinity and MFD are all available (write_d8_drainage_area_raster gives the D8 field). D8 is excluded only from the indices built on specific area: twi_method and sti_method do not offer it, because sending a cell's whole area to one neighbour stripes the index.
  • Topographic Wetness Index (TWI): ln(a / tan β), where a is the specific contributing area (area per unit contour width) and β the local slope. High values mark convergent topography with a large upslope area, where water gathers; low values mark ridges and hillslopes. TWI is the basis of TOPMODEL, and lsdtt-distributed-hydrology also uses it to diagnose saturation.
  • Soil Topographic Index (STI): ln(a / tan β) weighted by soil transmissivity. Beven & Kirkby (1979) showed that saturated areas group along contours of constant ln(a/tan β), so the index stands in for the areal pattern of saturation. This tool computes STI from measured soil data (soil series and an optional land-use table) rather than a generic proxy.
  • Index of Connectivity (IC): how readily sediment and water move from a cell to a downslope target (Cavalli et al. 2013). IC = log10(D_up / D_down). The upslope component D_up = W̄ S̄ √A combines mean weighting factor, mean slope and contributing area over the upslope region. The downslope component D_down = Σ d_i / (W_i S_i) accumulates path length along the flow route, penalised by local weighting and slope. The weighting factor is a roughness measure (connectivity_roughness_method, default madk2), so rough surfaces impede connection. The controls are write_connectivity_raster, connectivity_drainage_area_method, connectivity_area_threshold_m2 (default 1e6), connectivity_window_radius_metres (default 100), connectivity_slope_method (default polyfit_direct) and connectivity_roughness_method.

lsdtt-distributed-hydrology: TOPMODEL with distributed stores

This tool simulates what happens to water during a rainfall event, at whatever timestep you choose. It is a raster implementation of TOPMODEL (Beven & Kirkby 1979) with these additions:

  • Stores per cell: optional canopy interception, root zone, unsaturated zone, saturated zone and surface-routing storage.
  • Infiltration excess (optional): rain that falls faster than the soil can absorb it runs overland immediately.
  • Saturation excess: when the saturated zone fills (deficit reaches zero), water spills as overland flow.
  • Velocity field: speed depends on depth, slope and roughness (Manning). Low-order channels are slower because they are shallower and have coarser bed material.
  • Two saturated-zone modes: a quasi-steady index mode (the TOPMODEL-compatible validation mode) and a prognostic dynamic mode with one saturated-zone store per cell.
  • Land-cover scenarios: the tool reads measured soil profiles keyed on (soil series, land use). Converting a pixel from grazing to woodland re-keys the lookup to the measured transmissivity for that soil under that cover, with no universal multiplier.

Input: DEM, rainfall and PET time series, soil data table, and optionally LAI (Leaf Area Index) scenarios and a vector channel network.

Output: outlet streamflow, plus rasters of saturation deficit, saturation, velocity, travel time and TWI. Runs with uniform transmissivity need calibration of ln_t0 (default 5.0) and the unsaturated-zone delay td_hours_per_metre (default 50.0). STI-table runs derive spatial transmissivity from the supplied measured profiles.

lsdtt-distributed-hydrology with column_model: hype: simplified S-HYPE

column_model: hype runs a reimplementation of the land and river processes of HYPE (Lindström et al. 2010), the model behind SMHI's national S-HYPE set-up for Sweden, with HYPE's default model options. It does not run on pixels. The spatial unit is a sub-basin × class pair:

  • Sub-basins are incremental basins between outlets you choose, using one of three modes whose keys are lsdtt-basin-extraction's: supplied outlet points (select_basins_from_outlets with basin_outlet_fname), every junction basin of one Strahler order (select_all_basins_of_stream_order), or every junction basin within an order range (filter_basins_by_stream_order). In the stream-order modes, a trunk that reaches base level yields two junction basins: the one just above the base-level pixel, and that pixel's own edge strip. They are merged into one sub-basin with its outlet at base level.
  • Classes are (land use, soil) pairs. Land use comes from landcover_fname and soil codes from hype_soil_class_fname. Every pair present needs a row in the class table (hype_classes_fname, HYPE's GeoClass), which sets soil-layer depths and stream depth.
  • Sub-basin properties (HYPE's GeoData) are derived from the DEM: area, mean and standard deviation of elevation, each class's area fraction and elevation offset from the sub-basin mean, mean slope, and the lengths of the local and main rivers. Slope is slope_mean = 100 × mean gradient (m/m), the percent form HYPE expects; no angle is computed. River lengths are lsdtt3 flow distances (see S-HYPE).

Each class runs HYPE's soil column on its own state (snow and up to three soil layers). Class runoff is area-weighted into its sub-basin, and sub-basins are routed upstream first through HYPE's local and main rivers.

Input: DEM, daily precipitation (rainfall_fname) and air temperature (temperature_fname), optional observed PET (otherwise HYPE's temperature-index PET is calculated), hype_start_date (for day of year), land-use and soil rasters, and four parameter tables in HYPE's own names: general (hype_general_parameters_fname), land use (hype_landuse_parameters_fname), soil (hype_soil_parameters_fname) and classes (hype_classes_fname). You supply the soil data; none ships with lsdtt3. One precipitation series and one temperature series drive the whole domain.

Output: daily discharge per sub-basin (_hype_discharge.csv), a sub-basin table (_hype_subbasins.csv), the domain water balance (_hype_water_balance.csv), and optionally the sub-basin raster and the derived set-up as HYPE GeoData.txt and GeoClass.txt (write_hype_geodata), so the same set-up can be run in HYPE.

Restrictions, enforced at start-up: daily steps only (dt_seconds defaults to 86400 and any other value is fatal); fsceff = 0 (no fractional snow cover); no snow sublimation, tile drainage, frozen soil, lakes, regional groundwater, nutrients or regional parameter corrections. Negative and out-of-range parameters are rejected.

lsdtt-graphflood: graph-based hydraulic routing

This tool solves for the steady-state flow depths produced by a supplied water input, using graph-based hydraulic routing with Manning friction. It does not generate water from rainfall through a soil column, and it does not evolve water through time. It computes:

  • Water depth in each cell as flow accumulates downslope.
  • Inundation extent and depth, including floodplains and out-of-bank flow.
  • Flow direction from the water surface (z + h), which can differ from the bed surface.

Input: a DEM, a rainfall-rate raster (rainfall_rate_fname, m/s) and a friction-coefficient raster (friction_coefficient_fname). Both rasters are required, and the tool exits if either is missing. use_point_inflow and point_inflow_discharge_m3_per_s add a single point inflow. Routing is MFD by default (flow_routing_method: mfd, mfd_exponent: 1.0) or D-infinity.

Output: rasters of bed elevation, water depth, water surface elevation, qin, qout, dhw, hydraulic slope, specific discharge and total discharge. The hydraulic slope is the water-surface slope; there is no separate bed-slope output.

There is no discharge time series

Graphflood does not accept a hydrograph. The water input is a rate field, and the solver is stationary. n_steps (default 100) is the maximum number of stationary hydraulic iterations, and hydraulic_dt (default 1e-3 s) is a relaxation parameter that sets how fast the iteration approaches its fixed point. Neither is physical time. An lsdtt-distributed-hydrology hydrograph cannot be fed into this tool, and questions about flood propagation, wave celerity or the timing of a flood peak are outside what it can answer.

The implementation is conceptually inspired by the graph-based routing approach of Gailleton et al. (2024). It uses Manning friction, with settable depth and slope exponents to accommodate other friction laws (Chézy, etc.).


When to use each tool

lsdtt-drainage-analysis

Use it to:

  • understand catchment structure without rainfall data or a time dimension;
  • get static metrics such as TWI or STI for a paper or as input to other analyses;
  • see where water tends to gather at a new study site;
  • check a model's TWI against observed saturated areas, such as imagery or field surveys.

lsdtt-distributed-hydrology

Use it to:

  • simulate streamflow, groundwater levels or saturation patterns from rainfall and PET time series;
  • test land-cover scenarios, such as the effect of planting trees on the hydrograph;
  • study infiltration-excess flooding, saturation-excess flooding or both;
  • model canopy interception, which matters for Natural Flood Management (NFM) studies with newly planted woodland;
  • work from measured soil data rather than a black-box emulator.

The tool has not been calibrated against observed catchments. It is an event-scale grid model, not a 2D groundwater model. In index mode the quasi-steady topographic-index assumption can break down during rapid transients. Use dynamic mode and check timestep sensitivity in that case.

lsdtt-distributed-hydrology with column_model: hype

Use it for:

  • daily flows over seasons to years: snow accumulation and melt, summer evapotranspiration deficits, low flows;
  • results per sub-basin at gauges or chosen confluences, not per pixel;
  • a set-up you can check against, or hand to, HYPE itself, since it is written in HYPE's file formats with HYPE's parameter names.

It takes daily steps only, so it cannot resolve storm hydrographs, and it uses one forcing series for the whole domain. Like the TOPMODEL column, it has not been calibrated against an observed catchment.

lsdtt-graphflood

Use it to:

  • map the inundation depth and extent of a steady input, such as a design rainfall rate or a constant point inflow;
  • compare scenarios: different roughness fields, a modified DEM, a different input rate;
  • include out-of-bank flow and floodplain routing with physically based friction.

You supply the water input. It is a hydraulic model (depth from a given input), not a hydrological one (discharge from weather). Manning's equation suits subcritical flow at low Froude number and degrades in steep cascades and hydraulic jumps.

The solver is stationary. It converges to the depth field that a sustained input would produce and has no time axis, so flood propagation, wave celerity and peak timing are out of reach. Those need an unsteady hydraulic model, which lsdtt3 does not provide.

Coupling the tools

Flood forecasting needs a hydrological model to generate the discharge and a hydraulic model to route it, and an unsteady one if timing matters. lsdtt3 does not connect the two. lsdtt-graphflood takes a rainfall-rate field, so there is no parameter through which an lsdtt-distributed-hydrology outlet time series can be passed to it. The two tools answer adjacent questions on the same DEM; they are not a pipeline. Coupling them would need either an unsteady hydraulic solver or a convention for turning a hydrograph into a sequence of stationary solves. Neither exists yet.


Provenance and validation

lsdtt-distributed-hydrology: TOPMODEL lineage

The core is TOPMODEL, introduced by Beven & Kirkby (1979) as a semi-distributed rainfall-runoff model built on the Topographic Wetness Index. The index ln(a/tan β) predicts which parts of a catchment saturate during a storm. Beven & Kirkby showed that the model reproduced observed hydrographs using this structure plus a simple subsurface-routing assumption (a water table parallel to a steady-recharge solution).

The column equations follow TOPMODEL 95.02 (Beven et al. 1995). Eight CTest suites cover the hydrology modules: unit_topmodel_column, unit_topmodel_dynamic, unit_infiltration_excess, unit_canopy_interception, unit_hydro_roughness, unit_hydro_routing, unit_hydro_velocity_field and unit_giuh_discharge. They check mass conservation, closed-form solutions (the exponential baseflow recession, the Green-Ampt infiltration capacity, the index relation as the steady state of the dynamic saturated zone), limiting behaviours and convergence.

These are implementation checks. They do not replace calibration and evaluation against observed data, and the tool has not been calibrated against any observed catchment. Unlike the flow-routing and cosmogenic work, these suites are not yet written up in Benchmarking and testing in lsdtt3, so the test sources are the only record of what they measured.

The distributed form draws on:

  • Dynamic TOPMODEL (Beven & Freer 2001): a prognostic saturated zone where the saturation deficit D_i is a state variable at every cell, not derived from a catchment mean.
  • SD-TOPMODEL (Gao, Holden & Kirkby 2015): spatially distributed roughness and velocity fields built on Darcy-Weisbach resistance, with depth-dependent velocity. Zhu et al. (2025) report calibrations of this approach on UK sites.
  • Routing numerics from Li, Simons & Stevens (1975) (implicit kinematic wave), Cunge (1969) and Ponce & Yevjevich (1978) (Muskingum-Cunge, matching diffusion), and Ponce, Li & Simons (1978) on when kinematic routing is valid.

A TOPMODEL parameter set published for another basin does not substitute for calibration. The uniform ln_t0 and the recession scale szm_metres (default 0.032 m) are catchment-specific. Index mode reproduces the classic TOPMODEL formulation; that does not establish predictive skill at a new site.

lsdtt-distributed-hydrology, column_model: hype: HYPE 5.36.0

The column and river routing are written from the equations in the Fortran source of HYPE 5.36.0 (SMHI, LGPLv3; Lindström et al. 2010), with default model options. The order of operations, the caps and the clips are reproduced, including several behaviours that are easy to miss:

  • rain on snow bypasses the snowpack;
  • percolation runs twice per step with a shared rate cap;
  • soil runoff takes its pressure level from the soil water before evapotranspiration but its available water from after it.

HYPE's output variables have their own definitions too. melt is the liquid water leaving the snowpack, not the melt rate, and sml1 excludes water standing above the pore volume.

Testing against HYPE. The suites unit_hype_column, unit_hype_routing and unit_hype_model compare lsdtt3 against output files written by HYPE 5.36.0, compiled from the release source, for seven cases: snow, evapotranspiration, diversion, percolation, soil runoff, routing, and all default processes together. The files are committed under tests/expected/hype/. CTest reads only these files and never downloads or compiles HYPE. tests/scripts/generate_hype_oracle.py records how they were made and regenerates them byte for byte. HYPE runs in single precision and lsdtt3 in double, so the tolerances come from running HYPE twice, in single and double precision. The largest difference was 1.08e-4 mm, in layer-3 soil water, which holds about 440 mm.

unit_hype_parameters, unit_subbasin_partition and unit_hype_raster_setup cover parameter validation and set-up from rasters. unit_hype_thread_invariance checks that results are bitwise identical at any thread count. As with the TOPMODEL column, these are implementation checks, and the model has not been calibrated against any observed catchment.

lsdtt-graphflood: Gailleton et al. (2024)

The implementation is conceptually inspired by the graph-based hydraulic-routing ideas of Gailleton et al. (2024), with Manning friction over a routing graph derived from the water surface.

The routing graph is rebuilt, not fixed. Flow directions come from z + h, so the ordering can change as depth changes. The solver tracks this with dirty tiles: mark_dirty() flags a tile whose depths moved, dirty_topology_still_valid() checks whether the ordering within it survived, and rebuild_topology() re-derives it when it did not. reuse_topology, dirty_tile_size (default 64) and full_validation_every (default 128) control how often this happens, and the run reports topology_rebuilds. The flow path therefore responds to a rising water surface, which matters for backwater.

The depth update is explicit. Each iteration applies forward Euler, h ← max(0, h + (Δt/A)(q_in − q_out)). Stability comes from a flux limiter that caps outflow at the water physically present, q_available = q_in + h·A/Δt, so a cell cannot discharge more than it holds. That is why hydraulic_dt can be small without instability, and why it is a relaxation parameter and not a physical timestep.

Treating routing as a network problem on a directed acyclic graph, rather than a grid stencil, makes the method parallel within each topological level and avoids the checkerboard artifacts of some stencil schemes.

Graphflood produces depths with standard Manning friction, so they are directly comparable to observations and to regulatory design-flood models. The limitation is that the solution is a steady state, so nothing about flood timing can be read from it.

lsdtt-drainage-analysis: Beven & Kirkby indices

TWI and STI rest on Beven & Kirkby (1979) and variable-source-area hydrology: saturated areas expand and contract through a storm as the water table rises and falls. The water table is shallowest where topography is convergent and the upslope area is large, so saturation starts there. The ln(a/tan β) index captures this pattern, and its histogram over a catchment predicts the shape of the saturated-area curve.

STI adds measured soil transmissivity (from the HOST database or your own field surveys), keyed on soil series and land use. This is closer to the physics than a single basin-wide ln_t0, because soils differ in structure and permeability within one catchment.

The tool produces no discharge, so there is nothing to validate against gauge data. The TWI pattern can still be checked in the field: look for seeps, spring lines and saturated patches during rain or after snowmelt. If your TWI does not match them, suspect the DEM (an inverted hillshade, undetected levees, feet on a metre grid) or the routing method (D8 versus D-infinity).

Steep slopes: tan β or sin β. The index uses tan β, the small-slope form of the hydraulic gradient. For flow parallel to the slope through a soil whose thickness is measured perpendicular to it, the hydraulic gradient is sin β, and tan β overstates it by 1/cos β: 3 % at a gradient of 0.25 and 41 % at a gradient of 1. SINMAP and the Dupuit groundwater model of lsdtt-slope-stability use sin β (see Slope stability), so in steep landscapes sin β may be the better slope term. It is not implemented for TWI, STI or lsdtt-distributed-hydrology: they keep ln(a/tan β) for continuity with published TOPMODEL parameter sets and earlier LSDTopoTools. Any change would have to be a deliberate, tested option.


Cross-comparison

Hydrological and hydraulic models

lsdtt-distributed-hydrology lsdtt-graphflood
Input forcing Rainfall and PET; generates discharge internally Rainfall-rate field, optional point inflow
Vertical process Full water balance: interception, infiltration, storage, groundwater None
Horizontal process Routes generated runoff over hillslopes and channels Routes the supplied input over the water surface with friction
Time Simulated, hours to days for a storm (topmodel) or daily steps (hype) None; stationary solution
Calibration Streamflow or groundwater observations Friction coefficients
Output Hydrograph, saturation pattern, water-table depth Inundation map, flow depth, water-surface slope

Land-cover change: measured soil data and multipliers

SD-TOPMODEL, like many hydrological models, represents land-cover change as a multiplier. Converting grazing to woodland multiplies the conductivity Ks by, say, 1.5 for reduced compaction. Transmissivity T0 is Ks × profile depth, so the multiplier propagates.

lsdtt-distributed-hydrology takes ln_t0 from a lookup table keyed on (soil series, land use). Converting a pixel from grazing to woodland replaces the measured profile for that soil under grazing with the measured profile for the same soil under woodland. The two profiles can differ in transmissivity, and the change can go either way: a clay soil might be less permeable under woodland (root reinforcement, less tillage), while a sandy soil gains permeability (less compaction). The model captures that variation instead of asserting one multiplier.

For NFM work this is closer to the physics, but it needs measured data, either from field observations at your site or from a soil-survey database such as the UK's HOST or USDA SSURGO. Made-up multipliers add no physics.


Governing equations

This section collects the equations each model solves, in the form the code solves them. Gradients are dimensionless rise over run (m/m) throughout. tan β is TOPMODEL's notation for the local gradient, not a trigonometric function of a computed angle.

TOPMODEL

The column runs on units that are either raster cells or TWI histogram bins, each with a topographic index TWI_i = ln(a/tan β) and an area fraction. Each unit has a root-zone deficit S_rz and an unsaturated-zone storage S_uz [m]. In index mode the saturated zone is one catchment-mean deficit S̄ [m].

Local saturation deficit (index mode, quasi-steady water table):

D_i = S̄ + m (λ − TWI_i)        clipped at 0
λ   = Σ_i f_i TWI_i            areal mean of the index

where m is szm_metres and f_i the area fractions.

Column, per step (TOPMODEL 95.02 order):

S_rz ← S_rz − P                          rain fills the root-zone deficit;
                                         any surplus passes to S_uz
q_se = max(0, S_uz − D_i)                saturation excess; S_uz capped at D_i
q_v  = min(S_uz, S_uz / (D_i t_d Δt))    drainage to the saturated zone
E_a  = E_p (1 − S_rz / S_rmax)           capped at S_rmax − S_rz

t_d is td_hours_per_metre, Δt is dt_hours, S_rmax is srmax_metres, and E_p is the PET passed down (after canopy interception, if enabled).

Baseflow and the catchment deficit (index mode, explicit in S̄):

Q_b = exp(ln T_0 + ln Δt − λ) · exp(−S̄ / m)
S̄  ← S̄ − Σ_i f_i q_v,i + Q_b

ln T_0 is ln_t0 (T_0 in m² h⁻¹).

Dynamic mode replaces the single S̄ with a deficit D_i per cell, updated from its own recharge and a lateral saturated flux routed down the flow graph:

q_i = T_0 exp(−D_i / m) tan β_i          per unit contour width

Under uniform steady recharge this has the equilibrium D_i + m TWI_i = constant, which is the index-mode relation. The test suite checks that limit.

Infiltration excess (Green-Ampt with exponentially declining conductivity), canopy interception and the routing schemes are described under The process modules.

GraphFlood

GraphFlood iterates water depth h [m] on a grid of cell size Δx (cell area A = Δx²) towards the stationary depth field produced by a steady input. Flow directions are taken on the water surface η = z + h, not the bed z.

Source per cell:

Q_src,i = R_i A  (+ Q_point at the inflow cell, if use_point_inflow)

with R_i the rainfall rate [m s⁻¹] from rainfall_rate_fname.

Discharge accumulation (MFD on η, in topological order of η):

S_ik  = (η_i − η_k) / d_ik                         for each lower neighbour k
w_ik  = S_ik^p · W_ik / Σ_k (S_ik^p · W_ik)
Q_in,i = Q_src,i + Σ_donors j  w_ji Q_in,j

d_ik is Δx for cardinal and √2 Δx for diagonal neighbours, p is mfd_exponent (default 1), and the flow width W_ik is d_ik unless receiver_width is set. The accumulated quantity is the inflow. At the stationary state every cell passes on what it receives, so the routed discharge is the steady discharge.

Outflow through the steepest-descent link, with a power-law friction law:

S_i     = max(max_k S_ik, S_min)
Q_cap,i = W_i k_i h_i^a S_i^b
Q_out,i = min(Q_cap,i,  Q_in,i + h_i A / Δt)

S_min is hydraulic_min_slope (default 1e-4), W_i the width of the steepest link, k_i the friction coefficient from friction_coefficient_fname, and a, b are friction_depth_exponent and friction_slope_exponent. The defaults a = 5/3, b = 1/2 with k = 1/n give Manning's equation for a wide channel, q = (1/n) h^(5/3) S^(1/2) per unit width. The second argument of the min is the flux limiter: a cell cannot release more than it receives plus what it holds.

Depth update (explicit):

h_i ← max(0, h_i + (Δt / A)(Q_in,i − Q_out,i))

Δt is hydraulic_dt, a relaxation parameter. The fixed point, Q_out = Q_in everywhere water flows, is the solution. The path the iteration takes to reach it is not a flood history.

S-HYPE

All land quantities are in mm per daily step and temperatures in °C, as in HYPE. Parameter names are HYPE's. The sequence below is HYPE's soilmodel_0 with the default options, run on each class j of each sub-basin.

Class forcing. Temperature is lapsed by the class's elevation offset Δh_j [m] from the sub-basin mean, and a fixed land-use fraction of precipitation is lost as interception (HYPE has no interception store):

T_j = T − tcalt · Δh_j / 100
P_j = P (1 − pcluse)

Rain and snow (linear ramp around the threshold T_t = ttmp + ttpd):

a_rain = 0                                  T ≤ T_t − ttpi
       = (T − (T_t − ttpi)) / (2 ttpi)      |T − T_t| < ttpi
       = 1                                  T ≥ T_t + ttpi
rain = a_rain P_j,   snowfall = (1 − a_rain) P_j

Snowpack (degree-day melt, liquid water holding capacity):

M     = cmlt (T − ttmp)                     if snow > 0 and T ≥ ttmp, capped at the frozen pack
L_max = whcsnow · max(0, S_ice − M) / (1 − whcsnow)

Liquid water above L_max leaves the pack as snow runoff. Rain on snow does not enter the pack.

Potential evaporation (temperature index with a seasonal factor; replaced by observed PET when pet_fname is given):

c_e   = cevp [1 + cevpam sin(2π (day − 1 − cevpph) / 365)]
E_pot = c_e (T − ttmp)                      if T > ttmp, else 0

Soil storage. Each layer k of thickness d_k [m] has three stacked pore volumes [mm], not cumulative contents:

W_wp,k = 1000 wcwp d_k     below wilting point
W_fc,k = 1000 wcfc d_k     wilting point to field capacity (plant-available)
W_ep,k = 1000 wcep d_k     above field capacity (drainable)
W_pw,k = W_wp,k + W_fc,k + W_ep,k

The state W_k is the total water in the layer. Each layer starts at W_wp,k + W_fc,k.

Infiltration and diversion. With G = rain + snow runoff, and only if G > mactrinf and W_1 > mactrsm (W_wp,1 + W_fc,1):

Q_mac = macrate (G − mactrinf)              macropore flow
Q_ie  = srrate  (G − mactrinf)              infiltration-excess surface runoff
I     = G − Q_mac − Q_ie                    into layer 1

macrate and srrate are rescaled to sum to 1 if their sum exceeds it.

Percolation (rate-capped, from water above field capacity, limited by the receiving layer's free space):

p1_max = min(W_1 − W_wp,1 − W_fc,1,  mperc1 − P_1,prev)
p2_max = min(W_pw,3 − W_3,           mperc2 − P_2,prev)
P_2    = min(max(W_2 − W_wp,2 − W_fc,2 + p1_max, 0),  p2_max)
P_1    = min(p1_max,  max(P_2 − (W_2 − W_pw,2), 0))

Percolation runs twice per step, before evapotranspiration and after macropore water is added. P_prev is what the first call moved, so the two together respect mperc1 and mperc2.

Actual evapotranspiration from the upper two layers, when T > ttmp:

E_k = E_pot f_k · min(1, (W_k − W_wp,k) / (lp · W_fc,k))      capped at W_k − W_wp,k
f̃_1 = d_1 exp(−epotdist z_1 / 2),   f̃_2 = d_2 exp(−epotdist (z_1 + d_2 / 2)),   f_k = f̃_k / Σ f̃

where z_k is the depth to the bottom of layer k.

Soil runoff to the stream, from each layer, when the class's stream depth d_d is above zero. With the water-table height in a layer δ_k = d_k (W_k − W_wp,k − W_fc,k) / W_ep,k and the pressure level Δh_k built from δ_k, the depth of the drainage level within the layer, and saturated layers above:

Q_soil,k = r_k (Δh_k / d_k) W_ep,k                     capped at the water available
r_0 = min(1, rrcs1) + rrcs3 · slope_mean   (≤ 1),       r_n = min(1, rrcs2)
r_k = r_0 exp(−b z_k),   b = ln(r_0 / r_n) / ((z_n − d_n/2) − d_1/2)

slope_mean is the sub-basin's mean slope in percent, 100 × the mean gradient. It is the default model's only direct topographic control on runoff generation. The depth decay of r_k is HYPE's discrete-layer analogue of TOPMODEL's exponential transmissivity profile.

Saturation excess and macropores:

Q_se = max(0, min(1, srrcs) (W_1 − W_pw,1))             removed from layer 1

Q_mac is then placed in the layer holding the groundwater table, overflowing upwards into the layers above.

Class and sub-basin runoff. Class runoff is Σ_k Q_soil,k + Q_se + Q_ie. Sub-basin runoff is its class-area-fraction-weighted sum.

River routing. Each sub-basin has a local river, fed by its own runoff, and a main river, fed by the local river's outflow plus the outflow of upstream sub-basins. Both use a pure translation followed by one linear damping box:

t_tot   = L / (rivvel Δt)                   [steps]
t_trans = (1 − damp) t_tot = y + x          (integer y, fraction x)
k       = damp · t_tot

translation:  Q_trans = (1 − x) V_(t−y) + x V_(t−y−1)
damping box:  Q = r_1 I + r_2 (S − I),   r_1 = 1 − k (1 − e^(−1/k)),   r_2 = 1 − e^(−1/k)

I is this step's inflow to the box and S its storage (dead volume zero in this version). River lengths are lsdtt3 D8 flow distances FD:

main river   L = FD(p_in) − FD(p_out)
local river  L = mean over the sub-basin's pixels of the flow distance to the nearest
                 downstream main-river pixel

where p_out is the sub-basin outlet and p_in the upper end of its main river. For a sub-basin with upstream neighbours, p_in is the receiver of the largest upstream sub-basin's outlet. For a headwater sub-basin, it is the pixel where a walk up the largest-area donor drops below the channel threshold (threshold_contributing_pixels).


The process modules

lsdtt-distributed-hydrology is assembled from library modules. Each has its own physics and provenance and can be tested separately. This section covers the modules where you have to make decisions.

Roughness: three regimes, and where Manning stops working

Roughness is split into three regimes because different things set them. Hillslope and floodplain n come from land cover. Channel n is a grain-size property.

A land-cover scenario, such as planting a field or aerating a soil, must therefore leave channel n untouched, because changing what grows on the bank does not change the bed material. rigorous_roughness_partition asserts this.

Channel roughness follows Strickler, n ~ D50^(1/6), combined with Sternberg (1875) downstream fining, D50 ~ A^-b with b ~ 0.3-0.7. Channel n therefore falls downstream as A^(-0.05..-0.12). This adds a second reason, beside depth, for low-order channels to be slower: headwater channels are both shallower and rougher.

At low relative submergence Manning's form is wrong, not just imprecise. In headwater channels h/D84 is often 1-3, where resistance rises steeply and no constant n describes it. Two modes address this:

Mode Form Note
jarrett n = 0.39 S^0.38 R^(-0.16) Fitted to high-gradient streams. Depends on depth and slope, so n is not a constant field.
ferguson_vpe Variable power equation Drops Manning's form, then reports the equivalent n that would give the same velocity.

ferguson_vpe reports an equivalent n, so everything downstream still consumes a roughness raster even though the physics underneath is not Manning's. Both modes are depth-dependent. A static n raster alone does not determine travel time, because velocity depends on depth.

Infiltration excess: Green-Ampt with declining conductivity

Infiltration-excess generation is a Green-Ampt wetting front in a soil whose saturated conductivity falls exponentially with depth (Beven 1984). It is a port of TOPMODEL 95.02's EXPINF.

It was ported from the FORTRAN, not from the C. tmod9502.c's translation of EXPINF is structurally broken:

  • IROF, DF and CUMF are passed by value where FORTRAN passes them by reference as outputs, so the ponding state and the infiltration increment never reach the caller.
  • DTH is re-declared as an uninitialised local that shadows the parameter, so cd = hf*dth is garbage.
  • fx is a typo for fc in the series and is never assigned.
  • rint, a rainfall rate, is declared int, which truncates any realistic storm to zero.

The C author's header records that it was only validated with infex = 0, and the shipped params.dat sets exactly that, so the path was never exercised.

The FORTRAN has two latent defects of its own, and lsdtt3 departs from it on both:

  1. TP (time to ponding) and CONST (the definite-integral constant) are local variables that the next call reads back when ponding persists. Correctness depended on the compiler giving locals static storage. Many F77 compilers did, but the standard does not require it. Here they are explicit state on infiltration_state.
  2. The final test is IF (F .LT. CUMF + RINT), which compares a depth with a depth plus a rate. Dimensionally it needs CUMF + RINT*DT. The published demo runs at DT = 1 hour, where the two coincide numerically, which is probably why the error survived. use_dimensional_ponding_test selects the corrected form. The default reproduces the original, so a run that wants dimensional consistency has to ask for it.

Canopy interception

A Rutter-type interception store, with both canopy parameters driven by LAI:

C = k_S · LAI          canopy storage capacity, k_S ~ 0.2 mm
p = exp(−κ · LAI)      free throughfall fraction, κ ~ 0.5–0.7

C follows Dickinson (1984) and the S ~ S_L·LAI form of van Dijk & Bruijnzeel (2001). The Beer-Lambert gap fraction for p follows Aston (1979).

Wet-canopy evaporation is E_canopy = min(S, PET · evap_factor), and the residual demand passed on is PET_residual = PET − E_canopy/evap_factor. The division by evap_factor is easy to drop. evap_factor exists because wet-canopy evaporation can exceed grass-reference PET for tall, aerodynamically rough vegetation, whose canopy is better ventilated than the reference surface. With evap_factor = 2, one millimetre of canopy evaporation consumes only half a millimetre of transpiration demand, so total evapotranspiration can exceed PET. Subtracting E_canopy directly would cap total ET at PET and understate forest water use.

Seasonality changes the result

Winter deciduous LAI is about 0.5–1 against about 5 in summer, an order of magnitude in interception capacity. UK flood events are winter-dominated, so newly planted deciduous woodland intercepts least when it matters most. A study that runs winter storms with annual-mean or summer LAI overstates the benefit of planting. lai_seasonal_factor multiplies LAI at construction. Set it deliberately, because the default applies summer conditions to a January storm.

Velocity field and routing

The velocity field converts the roughness field into travel times, and the routing module moves water along them. Three routing schemes are available: a linear reservoir, Muskingum-Cunge and a kinematic wave. The numerics follow Li, Simons & Stevens (1975), Cunge (1969), Ponce & Yevjevich (1978), and Ponce, Li & Simons (1978) on when kinematic routing is valid.

GIUH

The geomorphological instantaneous unit hydrograph is computed from the width function, the distribution of flow-path lengths to the outlet. Velocities are scaled by slope, v_i = v_ref (S_i/S_ref)^β with β = 0.5, giving travel time τ = L/v. It follows Rodriguez-Iturbe & Valdes (1979) and Mesa & Mifflin (1986).

The GIUH lives in lsdtt-sediment-routing, not in any of the three tools above, so it is a fourth route into catchment hydrology in lsdtt3.


Known limitations

Index and dynamic mode (distributed-hydrology)

Index mode computes the saturation deficit at each cell from one catchment-mean value plus the TWI. It is cheap and reproduces TOPMODEL's published parameter sets exactly, but it assumes a water table everywhere parallel to a steady-recharge solution. In rapid transients (sudden heavy rain or snowmelt), different parts of the catchment dry at different rates and the assumption breaks down.

Dynamic mode makes the saturation deficit a state variable at every cell. It is more expensive and should be checked for timestep sensitivity. Its lateral flux follows the flow graph; it is not a 2D Dupuit-Boussinesq groundwater solution.

Manning's assumptions (graphflood)

Manning's equation is a semi-empirical correlation tuned for subcritical flow in natural channels and floodplains (Froude number below 1, shallow submergence, moderate slopes). It is reasonable for floods, with three exceptions:

  • It breaks down in steep cascades (Fr > 1, hydraulic jumps, shooting flow).
  • It degrades at very low relative submergence, where depth is comparable to grain size. In headwater channels where depth is millimetres to centimetres, n is not constant. Ferguson's (2007) variable power equation is more accurate but needs D84 grain size, not just roughness.
  • It ignores air entrainment, which matters in highly turbulent cascades.

For UK upland applications, the design target for lsdtt3, Manning is reasonable in most channel and floodplain cells. Headwater channels may need special treatment.


References

TOPMODEL core

  • Beven, K.J., & Kirkby, M.J. (1979). A physically based, variable contributing area model of basin hydrology. Hydrological Sciences Bulletin 24(1):43–69.
  • Beven, K.J., Lamb, R., Quinn, P., Romanowicz, R., & Freer, J. (1995). TOPMODEL. Computer models of watershed hydrology. Water Resources Publications, pp. 627–668.
  • Beven, K.J., Kirkby, M.J., Freer, J.E., & Lamb, R. (2021). A history of TOPMODEL. Hydrology and Earth System Sciences 25(2):527–549. doi:10.5194/hess-25-527-2021

HYPE

  • Lindström, G., Pers, C., Rosberg, J., Strömqvist, J., & Arheimer, B. (2010). Development and testing of the HYPE (Hydrological Predictions for the Environment) water quality model for different spatial scales. Hydrology Research 41(3–4):295–319. doi:10.2166/nh.2010.007
  • SMHI. HYPE source code, release 5.36.0 (2026), LGPLv3. https://sourceforge.net/projects/hype/

Distributed TOPMODEL

  • Gao, H., Holden, J., & Kirkby, M. (2015). A distributed TOPMODEL for modelling impacts of land-cover change on river flow in upland peatland catchments. Hydrological Processes 29(13):2867–2879. doi:10.1002/hyp.10408
  • Beven, K.J., & Freer, J. (2001). A dynamic TOPMODEL. Hydrological Processes 15:1993–2011.
  • Zhu, S., Klaar, M.J., Willis, T., & Holden, J. (2025). Use of spatially distributed TOPMODEL to assess the effectiveness of diverse natural flood management techniques in a UK catchment. Hydrological Processes 39(4):e70122. doi:10.1002/hyp.70122

Routing and hydrology numerics

  • Li, R.M., Simons, D.B., & Stevens, M.A. (1975). Nonlinear kinematic wave approximation for water routing. Water Resources Research 11(2):245–252.
  • Cunge, J.A. (1969). On the subject of a flood propagation computation method (Muskingum method). Journal of Hydraulic Research 7(2):205–230.
  • Ponce, V.M., & Yevjevich, V. (1978). Muskingum-Cunge method with variable parameters. Journal of the Hydraulics Division, ASCE 104(12):1663–1667.
  • Ponce, V.M., Li, R.M., & Simons, D.B. (1978). Applicability of kinematic and diffusion models. Journal of the Hydraulics Division, ASCE 104(3):353–360.

Hydraulic routing

  • Gailleton, B., Steer, P., Davy, P., Schwanghart, W., & Bernard, T. (2024). GraphFlood 1.0: an efficient algorithm to approximate 2D hydrodynamics for landscape evolution models. Earth Surface Dynamics 12(6):1295–1313. doi:10.5194/esurf-12-1295-2024

Soil transmissivity and Green-Ampt infiltration

  • Beven, K.J. (1984). Infiltration into a class of vertically non-uniform soils. Hydrological Sciences Journal 29(4):425–434.

Interception and vegetation

  • Dickinson, R.E. (1984). Modeling evapotranspiration for three-dimensional global climate models. Climate Processes and Climate Sensitivity, Geophysical Monograph 29:58–72.
  • van Dijk, A.I.J.M., & Bruijnzeel, L.A. (2001). Modelling rainfall interception by vegetation of variable density using an adapted analytical model. Part 1. Model description. Journal of Hydrology 247:230–238.
  • Aston, A.R. (1979). Rainfall interception by eight small trees. Journal of Hydrology 42:383–396.

Roughness and flow resistance

  • Strickler, A. (1923). Beiträge zur Frage der Geschwindigkeitsformel und der Rauhigkeitszahlen für Ströme, Kanäle und geschlossene Leitungen. Mitteilungen des Eidgenössischen Amtes für Wasserwirtschaft 16, Bern.
  • Sternberg, H. (1875). Untersuchungen über Längen- und Querprofil geschiebeführender Flüsse. Zeitschrift für Bauwesen 25:483–506.
  • Jarrett, R.D. (1984). Hydraulics of high-gradient streams. Journal of Hydraulic Engineering 110(11):1519–1539. doi:10.1061/(ASCE)0733-9429(1984)110:11(1519)

Unit hydrograph theory

  • Rodríguez-Iturbe, I., & Valdés, J.B. (1979). The geomorphologic structure of hydrologic response. Water Resources Research 15(6):1409–1420. doi:10.1029/WR015i006p01409
  • Mesa, O.J., & Mifflin, E.R. (1986). On the relative role of hillslope and network geometry in hydrologic response. In: Gupta, V.K., Rodríguez-Iturbe, I. & Wood, E.F. (eds), Scale Problems in Hydrology: Runoff Generation and Basin Response. Springer Netherlands, Dordrecht, pp. 1–17. doi:10.1007/978-94-009-4678-1_1

Sediment and hydrological connectivity

  • Cavalli, M., Trevisani, S., Comiti, F., & Marchi, L. (2013). Geomorphometric assessment of spatial sediment connectivity in small Alpine catchments. Geomorphology 188:31–41. doi:10.1016/j.geomorph.2012.05.007

Indices and catchment structure

  • Leopold, L.B., & Maddock, T. (1953). The hydraulic geometry of stream channels and some physiographic implications. U.S. Geological Survey Professional Paper 252. doi:10.3133/pp252
  • Rickenmann, D., & Recking, A. (2011). Evaluation of flow resistance in gravel-bed rivers through a large field data set. Water Resources Research 47:W07538. doi:10.1029/2010WR009793
  • Ferguson, R. (2007). Flow resistance equations for gravel- and boulder-bed streams. Water Resources Research 43(5):W05427. doi:10.1029/2006WR005422