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. 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 is a triangular unit hydrograph parameterized by R (fraction), T (time-to-peak), K (recession ratio). Up to three triangles per month.

Why it's inherited: Chosen in the 1990s for computational simplicity and parameter identifiability. Three calibration-friendly parameters became "the RDII method" — not because sewers produce triangles.

1.2 Linear Time-Invariant Superposition arbitrary

Convention: Double the rain, double the RDII. Responses superimpose additively.

Reality: Saturated soil, surcharged pipes, and flooded depressions are nonlinear and state-dependent.

1.3 Infiltration vs. Inflow as Separate Phenomena arbitrary

Convention: I/I taught as two categories. The mental model persists even though SWMM5's RTK lumps them.

Reality: A cracked joint at 4 ft is "infiltration" in dry weather and "inflow" when the depression fills. The boundary is a continuum.

1.4 Monthly Seasonal Variation as Discrete States arbitrary

Convention: RTK varies by calendar month — 12 discrete states that jump on the 1st.

Reality: Soil moisture is a continuous function of antecedent rain, ET, and temperature — not a step function.

1.5 Spatial Homogeneity Within a Sewershed arbitrary

Convention: One RTK set represents an entire sewershed.

Reality: Clay/VCP/shallow GW on one end vs. sand/PVC/deep GW on the other does not have one response.

1.6 Antecedent Moisture Captured by Monthly Variation arbitrary

A 3-week drought in March ≠ a 3-day gap between storms in March. Antecedent moisture is event-specific, not month-specific.

1.7 System Fully Drains Between Events arbitrary

Unit hydrograph theory assumes return to baseline. But GW mounding persists for days. Baseflow-like sustained RDII between events is common.

1.8 Rainfall is the Only Forcing Function treated as sacred

Tidal fluctuations, snowmelt, irrigation, rising GW, barometric pressure — all can drive water into pipes. Rainfall is dominant but not exclusive.

1.9 Calibration as Truth arbitrary

With 3–9 free parameters per month, equifinality is rampant. Many parameter sets produce similar fits. Calibrated parameters may not be physically meaningful or transferable.

1.10 The Model Boundary is the Pipe Network treated as sacred

Treating the pipe boundary as the model boundary discards all mechanistic information about the soil-pipe continuum.

02 Bedrock Truths

What is fundamentally, provably true — independent of SWMM5, RTK, or any framework.

2.1 Conservation of Mass fundamental

Every molecule of water that enters a pipe came from somewhere through some pathway. Mass balance is inviolable.

V_rain = V_runoff + V_evap + V_ET + V_soil_infil + V_RDII + V_other
At the pipe boundary:
  V_RDII = V_gw_in + V_surface_in + V_depression_in + V_other_entries

2.2 Gravity and Pressure Gradients Drive Flow fundamental

Q_RDII ∝ f(H_soil - H_pipe, K_soil, defect_geometry)
This is Darcy's Law + orifice/weir at defects.
Not a triangle. Not a unit hydrograph. Physics.

2.3 Soil is a Stateful, Nonlinear Reservoir fundamental

Soil state S(t) ∈ [0, S_max]
  dS/dt = P(t) - ET(t) - K(S)·∇H - Q_deep
  K(S) is highly nonlinear (exponential in many models)
The soil's "unit hydrograph" changes shape with state.

2.4 Pipe Defects are Physical Orifices and Weirs fundamental

For defect at depth d:
  Q_defect = C_d · A_defect · √(2g · ΔH)   [orifice]
  Q_defect = C_w · L_defect · (ΔH)^1.5      [weir]
Total RDII = Σ Q_defect(i) — additive but NOT linear in rainfall.

2.5 Water Table is a Continuous Boundary Condition fundamental

GW elevation is spatially and temporally continuous. It responds to recharge, discharge, and regional flow.

2.6 Surface Hydraulics Connect to Subsurface fundamental

Depressions, direct connections, and surcharged conditions create direct hydraulic pathways — separate from subsurface but physically connected at the surface.

2.7 Time is Continuous fundamental

Soil moisture, GW elevation, and surface conditions are continuous functions. Monthly discretization is a convenience, not physics.

2.8 Spatial Variability is Real fundamental

Pipe age, material, soil type, water table depth, land use, and connection density all vary spatially. This is measurable.

03 Rebuild from Bedrock

3.1 Minimal Viable Model

The simplest physically-grounded RDII model needs:

  1. A soil moisture state S(t) tracking wetness continuously
  2. A groundwater head H_gw(t) at each location
  3. A pipe internal head H_pipe(t) from the hydraulic model
  4. A transfer function from head difference to defect flow
  5. A surface pathway for direct inflow
RAINFALL P(t) — intensity [mm/hr] SURFACE LAYER Depression storage D(t) · Direct connections I(t) = P · (1 − S/S_max)^β Q_direct = η·P·(1−f_inf) infiltration I(t) VADOSE ZONE (Soil) State: S(t) ∈ [0, S_max] dS/dt = I − ET − K(S)·∇H K(S) = exp(α·(S − S₀)) — nonlinear ET(t) recharge WATER TABLE H_gw(t) — continuous head field dH/dt = (1/S_y)·[recharge − Q_drain] ΔH = H_gw − H_pipe PIPE-SOIL INTERFACE Q_rdii = C_d · A_defects · √(2g·ΔH) + Q_direct from surface SEWER NETWORK
Physical pathway model: rainfall → surface → soil → groundwater → pipe interface → sewer network

3.2 Key Invariants

  • Mass conservation — always, everywhere. No exceptions.
  • Q_RDII ≥ 0 — water only flows in (unless surcharged, a separate failure mode).
  • Monotonicity in ΔH — higher head difference → higher flow. Always.
  • State dependence — same rainfall on wet soil → more RDII than on dry soil.
  • Temporal continuity — S(t) and H_gw(t) are continuous.
  • Diminishing returns — soil has finite capacity. As S → S_max, infiltration drops.

3.3 Cleanest Mathematical Expression

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

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

// 1. Soil moisture balance
dS/dt = P(t)·f_inf(S) − ET(t) − K_sat·g(S)·(∂H/∂z)
  f_inf(S) = (1 − S/S_max)^β        // Green-Ampt-like
  g(S)     = exp(α·(S − S₀))         // relative conductivity

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

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

// 4. Surface direct inflow
Q_direct(t) = η·[P(t) − f_inf(S)·P(t)]

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

3.4 Necessary Trade-offs

Trade-offSimplifiedKept
Lumped vs. distributed soilSpatial variabilityState-dependent nonlinear response
1D groundwaterFull 3D GW flowHead-driven flow with storage
Effective defect areaIndividual crack geometryAggregate orifice behavior
Simplified ETFull energy balanceSeasonal drying capacity
No explicit surface routing2D surface hydraulicsDepression storage → direct connection
The rebuild has more parameters than RTK in raw count. But these 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

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 between-event sustained RDII mechanism
  • 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 conditions
  • Sustained baseflow RDII from slow GW drainage
  • Accepts tidal, snowmelt, irrigation forcings
Legacy ElementStatusWhy
Triangular unit hydrographObsoleteShape emerges from soil/GW physics, not assumed.
R, T, K parametersObsoleteReplaced by measurable physical properties.
Monthly parameter tablesObsoleteContinuous state evolution. Seasonality from ET(T).
Up to 3 superimposed trianglesObsoleteComplex shapes produced directly by the physics.
Event separationObsoleteContinuous simulation eliminates inter-event assumptions.
Calibration-only parametersReplacedLab tests, soil surveys, CCTV, literature all constrain values.
RDII as black-box inputObsoleteMechanistic output of coupled soil-GW-pipe physics.

1. Predictive Power Without Calibration Data

With soil surveys, pipe inspection, and GW monitoring — estimate RDII for unmonitored sewersheds. RTK requires flow monitoring; there is no un-calibrated RTK prediction.

2. What-If Scenario Analysis

  • "Relining pre-1970 pipes?" → Reduce A_defects for those pipes.
  • "Water table rises 2 ft from new reservoir?" → Adjust H_gw boundary.
  • "20% more intense but 20% fewer storms?" → Change P(t) — soil dynamics respond naturally.

3. Spatially Distributed RDII Maps

GIS data on soil, pipe age/material, and water table depth → spatially explicit RDII potential maps for targeted rehabilitation.

4. Coupled Surface-Subsurface-Pipe Modeling

Natural coupling with 2D surface and 3D GW models. Enables surcharge-induced exfiltration, bidirectional phenomena.

5. Diurnal and Sub-Daily Patterns

ET has a diurnal cycle. Tidal influence has sub-daily cycles. The continuous model captures these naturally.

6. Model Degradation Over Time

Include time-dependent A_defects(t) that grows with age. Predict when rehabilitation becomes cost-effective.

05 Radically Different Architecture

5.1 Legacy Architecture

RAINFALL P(t) time series [no state] RTK LOOKUP 12 monthly tables × 3 triangles UH convolution: linear, stateless 108 max parameters No physical meaning Q_rdii(t) Lateral inflow to sewer network One-way pipeline. No feedback. No state. No physics.
Legacy SWMM5 RTK: a stateless, one-way lookup pipeline

5.2 Rebuilt Architecture

RAINFALL P(t) EVAP TRANS ET(T, land cover) TIDAL / OTHER H_boundary(t) PIPE MODEL H_pipe(t) SOIL MOISTURE MODULE S(t) — stateful, continuous dS/dt = f(P, ET, K(S)) nonlinear · memory · physically bounded GROUNDWATER MODULE H_gw(t) — head field dH/dt = f(recharge, drain, BC) continuous · head-driven · stateful ΔH DEFECT TRANSFER + SURFACE Q = f(ΔH, A_defects) + Q_direct orifice/weir physics modular · extensible · physically coupled Q_rdii(t) → SEWER NETWORK feedback Two-way coupled. Stateful. Physics-driven. Extensible to any forcing.
Rebuilt architecture: coupled, stateful, physics-driven modules with feedback loops

5.3 Key Architectural Differences

AspectLegacyRebuilt
CouplingOne-way: rain → RDII → pipesTwo-way: pipes ↔ soil ↔ atmosphere
StateStateless (memoryless UH)Stateful (S, H_gw evolve continuously)
TemporalEvent-based with gapsContinuous
SpatialLumped per sewershedDistributed (as fine as data supports)
ModularityMonolithic RTK blockSeparable modules
ExtensibilityCannot add new forcingsAny forcing → state equations
Data integrationNeeds flow monitoringSoil data, CCTV, GW monitoring, flow

5.4 Implementation Minimalism

class RDIISoilGWModel {
  S, H_gw                              // state
  S_max, K_sat, S_y, A_defects, C_d   // physical params

  step(P, ET, H_pipe, dt) {
    f_inf  = (1 - S/S_max)^1.5
    I      = P * f_inf
    K_rel  = exp(10 * (S - 0.7))
    drain  = K_sat * K_rel
    S     += (I - ET - drain) * dt
    H_gw  += (drain/S_y - 0.01*(H_gw - H_base)) * dt
    dH     = max(0, H_gw - H_pipe)
    return C_d * A_defects * sqrt(2*9.81*dH) + η*P*(1-f_inf)
  }
}

~15 lines of core logic. RTK is similarly compact — but this captures physics RTK structurally cannot represent.

06 Interactive Comparison

See the difference. The rebuilt model shows less RDII for the first storm (dry soil) and more for subsequent storms (wet soil). RTK produces the same response every time.

Rebuilt (state-based)   Legacy RTK (stateless)   Rainfall

07 What's Sacred, What's Arbitrary

ElementStatusVerdict
Conservation of massfundamentalNon-negotiable.
Head-driven flow through defectsfundamentalDarcy + orifice/weir. Cannot be simplified away.
Soil as stateful nonlinear reservoirfundamentalThe mechanism that creates the hydrograph shape.
Triangular unit hydrographarbitrary1930s convenience. Sewers don't produce triangles.
R, T, K parameterizationarbitraryCalibratability, not physical meaning.
Monthly parameter variationarbitraryDiscretization hack. System is continuous.
Linear superpositionarbitraryViolated by every nonlinear soil in existence.
Rainfall as sole forcingarbitraryDominant but not exclusive.
SWMM5's computational architecturearbitrary1980s 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.

08 How to Share This

This is a single self-contained HTML file — no dependencies, no build step, no server required. Here's every way to share it:

Recommended: For quick sharing with colleagues, just save and send the file. For a permanent reference link, use Netlify Drop (option 4) — it takes literally 5 seconds and gives you a clean URL.