First-Principles Deconstruction of RDII in SWMM5

Stripping every inherited assumption from Rainfall-Dependent Infiltration & Inflow modeling. What survives is what's real. Everything else was a choice.

01 Inherited Assumptions

What almost everyone takes for granted when working with RDII — users calibrating, developers coding, educators teaching, researchers publishing. Each of these is treated as "how it works" when it's actually "how we chose to model it."

1.1 The RTK Triangular Unit Hydrograph arbitrary

Convention: RDII response to rainfall is modeled as a triangular unit hydrograph parameterized by R (fraction), T (time-to-peak), and K (recession ratio). Up to three triangles can be superimposed per month.

Why it's inherited: The triangular UH was chosen in the 1990s for computational simplicity and parameter identifiability. It became "the RDII method" not because sewer systems produce triangular hydrographs, but because three parameters were calibration-friendly and computationally cheap.

1.2 Linear Time-Invariant (LTI) Superposition arbitrary

Convention: RDII response is linearly proportional to rainfall depth. Double the rain, double the RDII volume. Responses from different time steps superimpose additively.

Reality check: A saturated soil column, a surcharged pipe, and a flooded depression are all nonlinear, state-dependent systems. The soil doesn't care about our superposition principle.

1.3 Infiltration vs. Inflow as Separate Phenomena arbitrary

Convention: I/I is taught and modeled as two categories — infiltration (groundwater entering through defects below the water table) and inflow (surface/roof runoff entering through direct connections). SWMM5's RTK lumps them together, but the mental model persists.

Reality check: In a real system, the boundary is blurred. A cracked joint at 4 feet depth may be "infiltration" during dry weather and "inflow" during a storm when the depression fills. The soil-pipe interface is a continuum, not a binary.

1.4 Monthly Seasonal Variation as Discrete States arbitrary

Convention: RTK parameters vary by calendar month (12 discrete states). January parameters, February parameters, etc.

Reality check: Soil moisture and groundwater response are continuous functions of antecedent precipitation, evapotranspiration, temperature, and season — not step functions that jump on the 1st of each month.

1.5 Spatial Homogeneity Within a Sewershed arbitrary

Convention: One set of RTK parameters represents an entire sewershed (or a few sub-areas). The spatial variability of soil types, pipe materials, water table depth, and connection density is averaged out.

Reality check: A sewershed with mixed clay soil, aging VCP, and shallow groundwater on one end, and sandy soil with new PVC and deep water table on the other, does not have a single RTK response.

1.6 Antecedent Moisture is Captured by Monthly Variation arbitrary

Convention: The "wet" vs. "dry" state of the system is implicitly handled by having different monthly parameters. January is assumed wetter than August.

Reality check: A 3-week drought in March produces different conditions than a 3-day gap between storms in March. Antecedent moisture is event-specific, not month-specific.

1.7 The System is Fully Drained Between Events arbitrary

Convention: Unit hydrograph theory assumes the system returns to baseline before the next event. The RTK method inherits this assumption implicitly.

Reality check: Groundwater mounding around pipes can persist for days or weeks. Soil storage doesn't fully drain between closely spaced storms. Baseflow-like sustained RDII between events is common.

1.8 Rainfall is the Only Forcing Function treated as sacred

Convention: RDII is driven solely by rainfall at the surface. Other forcings are ignored.

Reality check: Tidal fluctuations, snowmelt, irrigation return flows, rising regional groundwater, upstream reservoir releases, and even barometric pressure changes can drive water into or out of sewer pipes. Rainfall is dominant but not exclusive.

1.9 Calibration as Truth arbitrary

Convention: If you calibrate RTK parameters to observed flow data, you have "captured" the RDII process.

Reality check: Calibration captures the input-output behavior during the calibration period. With 3–9 free parameters per month (up to 3 triangles × 3 params), you have enormous degrees of freedom. Equifinality is rampant — many parameter sets produce similar fits. The calibrated parameters may not be physically meaningful or transferable.

1.10 The Model Boundary is the Pipe Network treated as sacred

Convention: RDII is modeled at the point where water enters the pipe network. Everything upstream of that entry point is a black box described by the UH.

Reality check: The actual processes — surface depression storage, soil infiltration, lateral subsurface flow, groundwater mounding, pipe-soil interface hydraulics — are physically continuous. Treating the pipe boundary as the model boundary discards all mechanistic information.

02 Bedrock Truths

What is fundamentally, provably true about the physical system — independent of SWMM5, RTK, unit hydrographs, or any modeling framework. Only conservation laws, physics, and logic.

2.1 Conservation of Mass fundamental

Every molecule of water that enters a sewer pipe came from somewhere and went through some pathway. The total mass balance is inviolable:

V_rainfall = V_surface_runoff + V_evap + V_ET + V_infiltration_to_soil + V_RDII + V_other_sinks

At the pipe boundary:
  V_RDII = V_groundwater_in + V_surface_in + V_depression_overflow_in + V_other_direct_entries

This is not a modeling assumption — it's physics. Any model that violates mass balance is wrong.

2.2 Gravity and Pressure Gradients Drive Flow fundamental

Water moves from high hydraulic head to low hydraulic head. In a sewer pipe, the head inside is typically lower than the surrounding saturated soil or surface depression storage during a storm. This head difference is the fundamental driving force for RDII.

Q_RDII ∝ f(H_soil - H_pipe, soil_hydraulic_conductivity, pipe_defect_geometry)

This is Darcy's Law + orifice/weir equations at defects.
Not a triangle. Not a unit hydrograph. Physics.

2.3 Soil is a Stateful, Nonlinear Reservoir fundamental

The vadose zone (unsaturated soil above the water table) stores water, transmits water nonlinearly (Richards' equation), and has a capacity that changes with antecedent conditions. This is the primary "delay and attenuate" mechanism for infiltration-type RDII.

Soil state S(t) ∈ [0, S_max]
  dS/dt = P(t) - ET(t) - K(S) · ∇H - Q_deep
  where K(S) is highly nonlinear (exponential in many soil models)

The soil's "unit hydrograph" is not a triangle — it's the impulse
response of a nonlinear reservoir that changes shape with state.

2.4 Pipe Defects are Physical Orifices and Weirs fundamental

Water enters pipes through cracks, joint gaps, deteriorated walls, and broken laterals. Each defect is a small hydraulic structure governed by orifice or weir flow equations, depending on the head differential and submergence.

For a defect at depth d below surface:
  If H_soil(d) > H_pipe(d):
    Q_defect = C_d · A_defect · √(2g · ΔH)    [orifice flow]
  If defect is partially submerged:
    Q_defect = C_w · L_defect · (ΔH)^1.5        [weir flow]

Total RDII = Σ Q_defect(i) for all defects i
This is additive but NOT linear in rainfall — it depends on H_soil(t),
which is a state variable.

2.5 The Water Table is a Continuous Boundary Condition fundamental

Groundwater elevation is a spatially and temporally continuous field. It responds to recharge (rainfall infiltration), discharge (to streams, pipes, ET), and regional flow. The water table elevation at each pipe location determines the head available to drive infiltration.

2.6 Surface Hydraulics Connect to Subsurface fundamental

Surface depressions, direct connections (roof drains, catch basins), and surcharged conditions create direct hydraulic pathways. These are governed by surface hydraulics (Manning's, weir/orifice) and are separate from the subsurface pathway but physically connected at the surface.

2.7 Time is Continuous, Not Discrete Monthly States fundamental

The physical system evolves continuously. Soil moisture, groundwater elevation, and surface conditions are continuous functions of time. Any discretization into "monthly parameters" is a modeling convenience, not a physical truth.

2.8 Spatial Variability is Real and Significant fundamental

Pipe age, material, soil type, depth to water table, land use, and connection density all vary spatially. The spatial distribution of RDII potential within a sewershed is a measurable (or at least estimable) physical reality.

03 Rebuild from Bedrock

Starting only from the truths in Section 02, here is the minimal viable model, its invariants, necessary trade-offs, and cleanest expression.

3.1 Minimal Viable Model

The simplest physically-grounded RDII model needs:

  1. A soil moisture state variable S(t) that tracks wetness continuously
  2. A groundwater head H_gw(t) at each modeled location
  3. A pipe internal head H_pipe(t) from the hydraulic model
  4. A transfer function from head difference to flow through defects
  5. A surface pathway for direct inflow
┌─────────────┐ │ RAINFALL │ │ P(t) │ └──────┬──────┘ │ ┌────▼────────────────────────┐ │ SURFACE LAYER │ │ Depression storage D(t) │──── Direct inflow Q_di(t) │ D(t) = min(P·Δt, D_max) │ (if connected) └────┬────────────────────────┘ │ infiltration rate I(t) ┌────▼────────────────────────┐ │ VADOSE ZONE (Soil) │ │ State: S(t) ∈ [0, S_max] │ │ dS/dt = I - ET - Q_lateral │ │ Nonlinear K(S) │ └────┬────────────────────────┘ │ recharge to GW ┌────▼────────────────────────┐ │ WATER TABLE │ │ H_gw(t) — continuous field │ └────┬────────────────────────┘ │ head difference ┌────▼────────────────────────┐ │ PIPE-SOIL INTERFACE │ │ ΔH = H_gw - H_pipe │ │ Q_rdii = f(ΔH, defects) │──── RDII into network └─────────────────────────────┘

3.2 Key Invariants

  • Mass conservation — always, everywhere. No exceptions.
  • Q_RDII ≥ 0 — water only flows into pipes, never out (unless surcharged, which is a separate failure mode).
  • Monotonicity in ΔH — higher head difference → higher flow. Always.
  • State dependence — the same rainfall on wet soil produces more RDII than on dry soil. This is an invariant of the physical system that any valid model must capture.
  • Temporal continuity — S(t) and H_gw(t) are continuous. No jumps except from instantaneous rainfall (which is itself a modeling fiction at sub-timestep scales).
  • Diminishing returns — soil has finite capacity. As S → S_max, infiltration rate drops. This is physics, not a parameter choice.

3.3 Cleanest Mathematical Expression

// STATE VARIABLES (per spatial unit)
S(t)     // soil moisture [0, S_max], volume/volume
H_gw(t)  // groundwater head [m above datum]

// FORCING
P(t)     // rainfall intensity [m/s]
ET(t)    // evapotranspiration rate [m/s]
H_pipe(t)// pipe hydraulic head [m] (from flow model)

// PHYSICS
// 1. Soil moisture balance
dS/dt = P(t) · f_inf(S) - ET(t) - K_sat · g(S) · (∂H/∂z)

where:
  f_inf(S) = infiltration fraction = (1 - S/S_max)^β   // Green-Ampt-like
  g(S)     = relative conductivity = exp(α·(S - S_0))   // exponential

// 2. Groundwater response (simplified lumped)
dH_gw/dt = (1/S_y) · [K_sat · g(S) · (∂H/∂z) - Q_drain(H_gw)]

where S_y = specific yield, Q_drain = lateral/baseflow

// 3. RDII transfer
ΔH(t) = max(0, H_gw(t) - H_pipe(t))
Q_rdii(t) = C · A_defects · √(2g · ΔH(t))   // orifice equation

// 4. Surface inflow (direct connections)
Q_direct(t) = η · [P(t) - f_inf(S)·P(t)]   // η = connection fraction

// TOTAL RDII
Q_total(t) = Q_rdii(t) + Q_direct(t)

3.4 Necessary Trade-offs

No model is the territory. Here's what we trade away honestly:

Trade-offWhat We SimplifyWhat We Keep
Lumped vs. distributed soil Spatial variability in soil properties State-dependent nonlinear response
1D groundwater Full 3D groundwater flow Head-driven flow with storage
Effective defect area Individual crack geometry Aggregate orifice behavior with ΔH dependence
Simplified ET Full energy balance Seasonal drying capacity
No explicit surface routing 2D surface hydraulics Depression storage → direct connection
The rebuild has more parameters than RTK in raw count (S_max, K_sat, α, β, S_y, C, A_defects, η). But these parameters have physical meaning, measurable correlates, and bounded ranges. RTK's parameters have neither physical meaning nor transferability — they are pure curve-fitting knobs.

04 Contrast: Legacy vs. Rebuilt

What the Rebuilt Version Changes

Legacy (RTK)

  • Linear response to rainfall
  • Monthly discrete states
  • No antecedent moisture tracking
  • No physical basis for parameters
  • Same rainfall → same RDII regardless of soil state
  • Calibration-dependent; not transferable
  • No mechanism for between-event sustained RDII
  • Cannot respond to non-rainfall forcings

Rebuilt (State-Based)

  • Nonlinear, state-dependent response
  • Continuous soil moisture evolution
  • Explicit antecedent moisture via S(t)
  • Parameters tied to soil physics & pipe condition
  • Same rainfall → different RDII based on S(t)
  • Transferable across similar soil/pipe conditions
  • Sustained baseflow RDII from slow GW drainage
  • Can accept tidal, snowmelt, irrigation forcings

What Improves

  • Event-based accuracy: First storms after dry periods correctly produce less RDII than later storms in a series. RTK can only do this if you manually adjust monthly parameters.
  • Continuous simulation: No artificial boundaries between "events." The model runs forward continuously, which is what the physical system does.
  • Climate sensitivity: Changing precipitation patterns (more intense, less frequent; or longer wet seasons) produce physically reasonable RDII changes without recalibration.
  • Infrastructure planning: "What happens if we reline 30% of the pipes?" becomes answerable by reducing A_defects — a physically meaningful change. In RTK, you'd have to guess how R changes.

Legacy Constraints That Become Optional or Obsolete

Legacy ElementStatus in Rebuilt ModelWhy
Triangular unit hydrograph Obsolete Replaced by physically-derived impulse response from soil + GW dynamics. Shape emerges from physics, not assumed.
R, T, K parameters Obsolete Replaced by measurable physical properties: S_max, K_sat, defect area, etc. No more curve-fitting knobs.
Monthly parameter tables Obsolete Replaced by continuous state evolution. Seasonality emerges from ET(T), not from a lookup table.
Up to 3 superimposed triangles Obsolete The "fast/slow" separation was a workaround for the triangular UH's inability to produce complex response shapes. The soil/GW model produces the correct shape directly.
Event separation Obsolete Continuous simulation eliminates inter-event assumptions entirely.
Calibration-dependent parameters Replaced Parameters have physical meaning. Calibration refines estimates but isn't the sole source of parameter values. Lab tests, soil surveys, CCTV inspection data, and literature values all constrain parameters.
RDII as a black-box input Obsolete RDII becomes a mechanistic output of coupled soil-GW-pipe physics.

Surprising New Capabilities

1. Predictive Power Without Calibration Data

With soil surveys, pipe inspection data, and water table monitoring, you can estimate RDII for unmonitored sewersheds. RTK requires flow monitoring to calibrate — there is no "un-calibrated RTK prediction."

2. What-If Scenario Analysis

Questions that are currently unanswerable become straightforward:

  • "If we reline all pipes installed before 1970, how does peak RDII change?" → Reduce A_defects for pre-1970 pipes.
  • "If the water table rises 2 feet due to a new reservoir, what happens?" → Adjust H_gw boundary condition.
  • "If we get 20% more intense but 20% less frequent storms under climate change?" → Change P(t) forcing — the soil state dynamics respond naturally.

3. Spatially Distributed RDII Maps

With GIS data on soil type, pipe age/material, and water table depth, you can produce spatially explicit RDII potential maps. These inform targeted rehabilitation — spend money where A_defects is high AND H_gw is high.

4. Coupled Surface-Subsurface-Pipe Modeling

The rebuilt framework naturally couples with 2D surface models (for direct inflow) and 3D groundwater models (for H_gw). This enables modeling of surcharge-induced exfiltration, flooding-induced infiltration, and other bidirectional phenomena that RTK cannot represent.

5. Diurnal and Sub-Daily Patterns

ET has a diurnal cycle. Tidal influence has sub-daily cycles. The continuous state model naturally captures these. RTK, with its event-based framework, cannot.

6. Model Degradation Over Time

Pipes deteriorate. Defect areas grow. The rebuilt model can include a time-dependent A_defects(t) that increases with age, allowing you to model system degradation and predict when rehabilitation becomes cost-effective.

05 Radically Different Architecture

Once the old scaffolding is removed, the software architecture changes fundamentally.

5.1 Legacy Architecture (SWMM5 RTK)

┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ Rainfall │────▶│ RTK Lookup │────▶│ RDII as │ │ Time Series │ │ (per month) │ │ Lateral │ └──────────────┘ └──────────────┘ │ Inflow │ └──────────────┘ Data flow: P(t) → UH convolution → Q_rdii(t) State: None. Pure input-output. Parameters: R, T, K (×3 triangles ×12 months = 108 max)

5.2 Rebuilt Architecture

┌──────────┐ ┌──────────┐ ┌──────────┐ │Rainfall │ │ ET(T) │ │ Tidal/ │ │ P(t) │ │ │ │ Other │ └────┬─────┘ └────┬─────┘ └────┬─────┘ │ │ │ ▼ ▼ │ ┌─────────────────────────┐ │ │ SOIL MOISTURE MODULE │ │ │ S(t) state variable │ │ │ dS/dt = f(P,ET,K(S)) │ │ └────────────┬────────────┘ │ │ recharge │ ▼ ▼ ┌─────────────────────────────────────┐ │ GROUNDWATER MODULE │ │ H_gw(t) — head field │ │ dH/dt = f(recharge, drain, BC) │ └────────────┬────────────────────────┘ │ ΔH = H_gw - H_pipe ▼ ┌─────────────────────────────────────┐ │ DEFECT TRANSFER MODULE │ │ Q = f(ΔH, A_defects, geometry) │ │ │◀── Pipe network │ + Surface direct inflow module │ (provides H_pipe) └─────────────────────────────────────┘ │ ▼ Q_rdii(t) → Sewer Network

5.3 Key Architectural Differences

AspectLegacyRebuilt
Coupling One-way: rain → RDII → pipes Two-way: pipes ↔ soil ↔ atmosphere
State Stateless (memoryless UH) Stateful (S, H_gw evolve continuously)
Temporal Event-based with inter-event gaps Continuous
Spatial Lumped per sewershed Distributed (can be as fine as data supports)
Modularity Monolithic RTK block Separable modules (soil, GW, defects, surface)
Extensibility Cannot add new forcings Any forcing can be added to the state equations
Data integration Needs flow monitoring for calibration Can use soil data, CCTV, GW monitoring, flow data

5.4 Implementation Minimalism

The rebuilt model can be implemented with surprisingly few components:

// Pseudocode: Minimal State-Based RDII Module

class RDIISoilGWModel {
  // State
  S       // soil moisture ratio [0,1]
  H_gw    // groundwater head [m]
  
  // Parameters (physical, bounded, estimable from data)
  S_max       // max soil moisture capacity [m³/m³]
  K_sat       // saturated hydraulic conductivity [m/s]
  S_y         // specific yield [-]
  A_defects   // effective defect area [m²]
  eta         // direct connection fraction [-]
  C_d         // discharge coefficient [-]
  
  step(P, ET, H_pipe, dt) {
    // 1. Infiltration (Green-Ampt-like)
    f_inf = pow(max(0, 1 - S/S_max), 1.5)
    I = P * f_inf
    
    // 2. Soil moisture update
    K_rel = exp(10 * (S - 0.7))  // relative conductivity
    drain = K_sat * K_rel
    dS = (I - ET - drain) * dt
    S = clamp(S + dS, 0, S_max)
    
    // 3. Groundwater update
    recharge = drain
    gw_drain = 0.01 * (H_gw - H_base)  // simple linear drain
    dH_gw = (recharge / S_y - gw_drain) * dt
    H_gw += dH_gw
    
    // 4. RDII via defects
    dH = max(0, H_gw - H_pipe)
    Q_rdii = C_d * A_defects * sqrt(2 * 9.81 * dH)
    
    // 5. Direct inflow
    Q_direct = eta * P * (1 - f_inf)
    
    return Q_rdii + Q_direct
  }
}

That's ~30 lines of core logic. The RTK implementation in SWMM5 is similarly compact — but the above captures physics that RTK structurally cannot represent.

06 Interactive Comparison

See the difference. Adjust parameters and observe how the rebuilt state-based model responds to repeated rainfall events vs. the legacy RTK approach.

Rebuilt model (state-based)   Legacy RTK (stateless)   Rainfall   Note how the rebuilt model produces less RDII for the first storm (dry soil) and more for subsequent storms (wet soil). RTK produces the same response every time.

Key Observation

The rebuilt model shows diminishing response on first storm, amplifying response on subsequent storms. This is physically correct: dry soil absorbs more rainfall (less becomes RDII), wet soil passes more through to the water table. RTK produces identical responses for every storm — a fundamental flaw for continuous simulation and design storm analysis.

07 Summary: What's Sacred, What's Arbitrary

ElementStatusVerdict
Conservation of mass fundamental Non-negotiable. Any model must conserve mass.
Head-driven flow through defects fundamental Physics. Darcy + orifice/weir. Cannot be simplified away without losing predictive power.
Soil as stateful nonlinear reservoir fundamental This is the mechanism that creates the "hydrograph shape." Ignoring it means assuming the shape.
Triangular unit hydrograph arbitrary A convenient approximation from 1930s hydrology. Sewer systems don't produce triangles.
R, T, K parameterization arbitrary Chosen for calibratability, not physical meaning. Swap it for physics-based parameters.
Monthly parameter variation arbitrary A discretization hack. The physical system is continuous.
Linear superposition arbitrary Violated by every nonlinear soil and surcharged pipe in existence.
Infiltration/inflow separation arbitrary A useful accounting distinction but not a physical boundary. Model the continuum.
Rainfall as sole forcing arbitrary Dominant but not exclusive. Tidal, snowmelt, and GW interactions are real.
SWMM5's computational architecture arbitrary A product of 1980s computational constraints. We can do better now.
The core insight: RTK doesn't model RDII. It models the shape of the output hydrograph and calls it RDII. The rebuilt model models the process that creates the hydrograph and lets the shape emerge. This is the difference between curve-fitting and simulation — and it's the difference that matters for prediction, scenario analysis, and infrastructure investment decisions.