The overall goal of SurEau soil hydraulics is calculate the soil water potential and soil water conductivity given the amount of water (mm) available
Soils 101:
Soil bulk density marbles analogy:
Imagine a box filled with marbles.
Particle density = mass of marbles / volume of marbles alone (ignores gaps)
Bulk density = mass of marbles / volume of the whole box (including gaps between marbles)
Bulk density tells how compacted the soil is. A compacted clay has high bulk density (less pore space, harder for roots). A loose sandy loam has lower bulk density (more pore space, better drainage and root growth).
Matric potential: Suction that binds water to the soil. Succion is weak when soil is saturated. The relationship between soil matric potential and Volumetric water content is non-linear. This relationship is called soil retention curve
Hydraulic Head (AKA Total potential): Is the matric potential plus the gravitational pull and is defined as the work per unit weight required to move and amount of water at some elevation
Hydraulic Conductivity: Rate of water flow for a unit gradient in potential. Coductivity decreases sharply as soil becomes drier.
Hydraulic redistribution: Process by which roots move water upward and downward in the soil
Transform soil moisture to water potential and conductance using Van Genuchten
Imagine each soil layer is a sponge sitting in a bucket.
REW (Relative Extractables Water) tells you what fraction of the sponge’s usable capacity is still filled.
REW = 1 means soaking wet
REW = 0 means only residual water trapped in the tiniest pores remains.
k_soil (hydraulic conductance) tells you how fast water can flow through that sponge. A wet sponge lets water through easily; a nearly dry one barely lets anything pass.
psi_soil (water potential) tells you how hard the sponge is holding its remaining water. A wet sponge barely holds on (ψ close to 0); a dry sponge clings to the last drops with enormous force (ψ << 0).
Infiltration through soil layers, then update psi/k.
Sureau uses a bucket model, each layer fills up to field capacity. So water above field capacity drain downward at a fraction (described by cst_infil). Layes fill sequencially no matter how dry the soil started or how intense the rainfall is. There’s no K-dependent infiltration cap.
However in real life, a intense storm on dry soil produces lots of runoff. SurEau will instead infiltrate everything (up to total profile capacity) and predict more soil moisture than actually occurs.
Picture 3 buckets stacked on top of each other, each with a small hole at the bottom.
Phase 1 Percolation (slow drip): Before rain arrives, any bucket already above its “comfortable full” line (field capacity) slowly drips into the one below.
The cst_infil parameter (0.7) means 70% of the excess drips per timestep, not everything at once, like a slow leak.
Phase 2 Add rainfall: Pour the rain into the top bucket.
Phase 3 Surcharge (overflow): If any bucket is now above its absolute maximum (saturation), the excess instantly spills into the bucket below. The bottom bucket’s overflow becomes deep drainage, water lost from the system.
Previous timestep's soil water
│
▼
┌──────────────────┐
│ PERCOLATION LOOP │ ← Drain excess above field capacity (70% per step)
│ (gravity drain) │ Water cascades downward layer by layer
└────────┬─────────┘
│
▼
┌──────────────────┐
│ ADD RAINFALL │ ← Throughfall enters top layer
└────────┬─────────┘
│
▼
┌──────────────────┐
│ SURCHARGE LOOP │ ← Drain ALL excess above saturation capacity
│ (overflow) │ Water cascades downward layer by layer
└────────┬─────────┘
│
▼
Save SWS, compute drainage,
update ψ_soil and
After a long rainy spell, the soil drains freely until each layer reaches its “comfortable full” level — field capacity. This function is the equivalent of saying “pretend it just rained enough to fill the sponge back to its comfortable level.”
Number of layers: 3
Layer thicknesses: [0.2 0.6 1.2] m
VG m parameter: [0.35483871 0.35483871 0.35483871]
V_field_capacity: [ 24.58 73.74 147.48] mm
V_saturation_cap: [ 25. 75. 150.] mm
V_wilting_point: [11.44 34.31 68.61] mm
V_residual_capacity: [ 4.9 14.7 29.4] mm
Explore the VG retention and conductivity curves on the first soil layer
# Select the parameters from the first layerREW_sweep = np.linspace(0.001, 1.0, 500)alpha_0 = soil_params.alpha_vg[0]n_0 = soil_params.n_vg[0]m_0 = soil_params.m[0]I_0 = soil_params.I_vg[0]Ksat_0 = soil_params.Ksat[0]B_GC_0 = soil_params.B_GC[0]
# Get params for the first layerpsi_sweep =-(((1/ REW_sweep) ** (1/ m_0) -1) ** (1/ n_0)) / alpha_0 /10000k_relative = REW_sweep**I_0 * (1- (1- REW_sweep ** (1/ m_0)) ** m_0) **2k_sweep =1000* Ksat_0 * B_GC_0 * k_relative
At REW = 1.0 (saturated): psi = -0.0000 MPa, k = 845.00
At REW = 0.5 (half-full): psi = -0.6350 MPa, k = 1.6989
At REW = 0.1 (very dry): psi = -12.8864 MPa, k = 0.000083
At REW = 0.01 (bone dry): psi = -726.80 MPa, k = 0.00000000
Initialise soil state using init_soil() and demonstrate compute_soil_VG()
# Use init_soil()soil = init_soil(soil_params)
soil = compute_soil_VG(soil, soil_params)
Soil water stock (mm): [ 24.58 73.74 147.48]
REW per layer: [0.9791 0.9791 0.9791]
psi_soil (MPa): [-0.033 -0.033 -0.033]
k_soil: [338.789 338.789 338.789]
Total REW: 1.0000
Demonstrate compute_infiltration() with a rainfall event
Before infiltration: [ 24.58 73.74 147.48] mm
After infiltration: [ 25. 75. 150.] mm
Change: [0.42 1.26 2.52] mm
Deep drainage: 25.80 mm
psi_soil after: [-0. -0. -0.] MPa
Simulate a 60-day drought (no rain, daily extraction)
soil = set_SWC_to_field_capacity(soil, soil_params)n_days =60root_frac = np.array([0.4, 0.45, 0.15])daily_transpiration_mm =2.5# soil.ETP is set each timestep inside run_sureau()'s hourly loop, however here# is initialized in other to run the examplesoil.ETP =3.0
for day inrange(n_days): soil = compute_evaporation(soil, soil_params, T_air=25.0, RH_air=50.0, N_hours=8.0)# Computes the demand per layer root_extraction = root_frac * daily_transpiration_mm# Caps each layer's extraction so water is never pull below residual capacity.# For each layer, it computes the maximum extractable water# (soil_water_stock[lyr] - V_residual_capacity[lyr])# and takes the minimum of that and the demand.for lyr inrange(soil_params.n_layers):# As max_extract approaches zero and the actual extraction drops to# nearly nothing max_extract =max(0, soil.soil_water_stock[lyr] - soil_params.V_residual_capacity[lyr] ) root_extraction[lyr] =min(root_extraction[lyr], max_extract) soil = update_soil_water(soil, soil_params, root_extraction)# Append results ts_REW[day] = soil.REW ts_psi[day] = soil.psi_soil ts_k[day] = soil.k_soil ts_stock[day] = soil.soil_water_stock ts_evap[day] = soil.evaporation
Before reset — stock: [ 4.9 14.7 124.98] mm
After reset — stock: [ 4.9 14.7 147.48] mm
-> Only layer number 3 was refilled. This simulates a deep water table
that keeps the bottom bucket perpetually at field capacity.