Computational Fluid Dynamics Approach to Climate Resilience in Semi-Arid Regions ()
1. Introduction
1.1. Motivation: Flood Risk in Semi-Arid Regions
Semi-arid regions across Sub-Saharan Africa face a paradoxical hydroclimatic challenge: intense convective storms generate devastating flash floods, followed by prolonged agricultural droughts that threaten food security [1]. In Kitui County, Kenya, where this study is situated, annual rainfall averages 500 - 800 mm but exhibits extreme inter-annual variability, with coefficients of variation exceeding 30% [2]. The region’s ephemeral river channels, dry for most of the year, can transform into torrents within minutes during storm events, overwhelming communities with limited early warning capacity.
The March 2023 flood event in Kyangwithya village exemplifies this challenge: a 45-minute storm with 65 mm of rainfall generated floodwaters that claimed livestock, destroyed crops, and nearly took a child’s life. The existing early warning system, based on rainfall thresholds alone, provided only 15 minutes of notice with insufficient spatial specificity. This event motivated the development of the Solar-Water-Ecosystem Digital Twin (SWEDT) framework presented in this paper.
1.2. Mathematical and Computational Challenges
Semi-arid flood dynamics concentrate multiple mathematical challenges into a single system that tests the limits of standard numerical methods:
Nonlinear wave propagation: Flash floods propagate as shock waves through initially dry channels, requiring Riemann solvers that capture discontinuities without introducing spurious oscillations [3] [4].
Moving boundaries: The wetting-drying front represents a free-boundary problem where the computational domain evolves dynamically. Standard Riemann solver assumptions break down at the interface between wet and dry cells [5].
Complex source terms: Steep topography, infiltration losses, and vegetation drag introduce source terms that must be balanced exactly with flux gradients to preserve steady states, the so-called C-property [6] [7].
Multi-scale dynamics: Convective storms operate on hourly timescales while catchment response extends over days, requiring numerical schemes that efficiently capture both scales.
The shallow water equations capture these dynamics, but their numerical solution demands careful treatment to avoid diffusion of shocks, violation of steady states, and crashes at wetting-drying fronts [4].
1.3. Novel Contributions of This Work
This paper advances the state of the art in three specific ways that distinguish it from standard shallow water equation implementations:
1) Formal asymptotic analysis: Beyond simple scaling arguments, we perform a rigorous perturbation expansion that quantifies the precise order of neglected terms and identifies the conditions under which the hydrostatic approximation remains valid for semi-arid ephemeral channels.
2) Implicit-Explicit friction treatment with asymptotic-preserving property: We develop a novel time integration scheme for the Manning friction term that remains stable and accurate as water depth approaches zero, with a proof that the scheme preserves the correct asymptotic limit.
3) Truncation error analysis linking numerics to physics: We derive the modified equation for our MUSCL-Roe scheme, showing how the leading-order truncation error depends on bathymetric gradients—explaining why mesh resolution is critical in regions of steep topography.
1.4. Paper Organization
Section 2 presents the complete mathematical derivation from the Navier-Stokes equations to the final governing system, with each assumption justified through scaling and asymptotic analysis. Section 3 describes the numerical implementation, including the novel IMEX scheme and truncation error analysis. Section 4 details the Earth Observation data used for model validation. Section 5 presents validation results and scenario analyses. Section 6 discusses the implications of the mathematical analysis and formulates testable hypotheses for future field campaigns. Section 7 concludes the paper.
2. Mathematical Formulation: From First Principles to Governing Equations
This section presents a complete derivation of the governing equations. Each assumption is explicitly stated, mathematically implemented, and physically justified. The final result is the system solved by SWEDT.
2.1. Starting Point: The Navier-Stokes Equations
We begin with the incompressible Navier-Stokes equations for a Newtonian fluid [8]. These represent the most general description of fluid motion relevant to our problem:
(1)
(2)
(3)
(4)
where
,
,
are velocity components in the
,
,
directions respectively,
is pressure,
is fluid density,
is kinematic viscosity,
is gravitational acceleration, and
is the Laplacian operator.
These equations are too complex for direct numerical simulation of catchment-scale floods. We must systematically simplify using physical assumptions justified by scaling analysis.
2.2. Scaling Analysis: Identifying Dominant Terms
To understand the relative importance of each term, we introduce characteristic scales derived from Kitui catchment morphology and historical flow records (Kitui gauge, 2002-2024) (Table 1).
Table 1. Characteristic scales for semi-arid floods in Kitui County.
Variable |
Symbol |
Scale |
Typical value |
Horizontal length |
|
|
1000 m |
Vertical length |
|
|
2 m |
Horizontal velocity |
|
|
2 m/s |
Time |
|
|
500 s |
Pressure |
|
|
19,620 Pa |
Define dimensionless variables (denoted by superscript asterisk):
(5)
The vertical velocity scale follows from the continuity equation:
, which is much smaller than horizontal velocities, our first indication of shallowness.
Substituting these scales into the
-momentum Equation (2) and dividing by
yields the dimensionless equation:
(6)
where the key dimensionless numbers are:
(7)
From Kitui gauge records and catchment analysis:
These magnitudes provide crucial physical insight:
: Gravity and inertia are equally important. The full nonlinear momentum equations must be retained.
: Viscous terms are negligible compared to advection. Turbulence must be modeled, not resolved.
: Vertical variations are much smaller than horizontal. This justifies the hydrostatic approximation.
2.3. Formal Asymptotic Analysis: Quantifying the Hydrostatic
Approximation
We now go beyond simple scaling to perform a formal asymptotic expansion. Let
be the small parameter. We expand all variables in powers of
:
(8)
(9)
(10)
(11)
The expansion for vertical velocity begins at
due to continuity. Substituting these expansions into the dimensionless Navier-Stokes equations and collecting terms of equal order in
yields a hierarchy of problems.
2.3.1. Leading Order (
)
At leading order, the vertical momentum Equation (4) reduces to the hydrostatic balance:
(12)
where
is the dimensionless free surface elevation. The horizontal momentum equations at leading order are:
(13)
(14)
2.3.2. First Order (
)
At first order, we obtain corrections to the hydrostatic pressure:
(15)
Proposition 2.1 (Validity of the Hydrostatic Approximation) The hydrostatic approximation is valid to
when:
and
(16)
For Kitui parameters (
,
,
), these conditions yield:
(17)
Both are orders of magnitude less than unity, rigorously justifying the hydrostatic assumption for this application.
2.4. Reynolds-Averaging for Turbulence
With
, the flow is fully turbulent. Direct Numerical Simulation resolving all turbulent eddies is computationally impossible for a 150 km2 catchment. Following standard practice [9], we decompose velocity and pressure into mean and fluctuating components:
Assumption 2.2 (Reynolds Decomposition) The instantaneous velocity and pressure can be decomposed as:
(18)
where the time average of fluctuations is zero:
.
Time-averaging the equations yields the Reynolds-Averaged Navier-Stokes (RANS) equations [9]:
(19)
(20)
The terms
,
, etc., are Reynolds stresses; they represent momentum transfer due to turbulent fluctuations. These introduce new unknowns, creating the closure problem.
2.5. Boussinesq Eddy Viscosity Hypothesis
To close the RANS equations, we model Reynolds stresses as proportional to the mean strain rate, by analogy with molecular viscosity [9] [10].
Assumption 2.3 (Boussinesq Hypothesis) The Reynolds stresses are related to the mean velocity gradients via an eddy viscosity
:
(21)
where
is the turbulent kinetic energy and
is the Kronecker delta.
For shallow flows, we adopt a simple algebraic eddy viscosity model [10]:
(22)
where
is the shear velocity and
is an empirical coefficient. Based on previous studies in semi-arid channels, we use
in this work.
2.6. Depth-Averaging
For catchment-scale applications, resolving the vertical structure of velocity is unnecessary and computationally prohibitive. We integrate the equations over depth [3] [11].
Assumption 2.4 (Depth-Averaging) Flow properties are nearly uniform over depth, so we replace them with depth-averaged values.
Define total water depth
and depth-averaged velocities:
(23)
(24)
where
is the bed elevation.
2.6.1. Depth-Averaged Continuity
Integrating the continuity Equation (19) from the bed
to the free surface
and applying the Leibniz integral rule yields [11]:
(25)
This represents exact conservation of mass in the depth-averaged framework.
2.6.2. Depth-Averaged Momentum
Integrating the horizontal momentum equations similarly and using the hydrostatic pressure relation
gives:
(26)
(27)
where
and
are the bed shear stress components.
2.7. Manning Friction Parameterization
The bed shear stress must be related to the depth-averaged flow variables. For rough turbulent flow in natural channels, Manning’s equation is empirically robust and widely validated [12] [13].
Assumption 2.5 (Manning Friction) Bed shear stress follows Manning’s formula:
(28)
where
is Manning’s roughness coefficient with units [s/m1/3], determined from land cover classification.
2.8. Hydrological Source Terms
To model the complete hydrological cycle, we add source terms representing rainfall, infiltration, and evapotranspiration [14].
Assumption 2.6 (Mass Sources) Rainfall adds mass to the system, while infiltration and evapotranspiration remove mass:
(29)
where
is rainfall rate [m/s],
is infiltration rate [m/s], and
is evapotranspiration rate [m/s].
For infiltration, we adopt the Green-Ampt model for unsaturated soils [14] [15]:
(30)
where
is saturated hydraulic conductivity [m/s],
is porosity,
is initial soil moisture content,
is wetting front suction head [m], and
is cumulative infiltration depth [m].
2.9. Final SWEDT Governing Equations
Combining all components, the complete system solved by SWEDT is:
(31)
(32)
(33)
where
.
These are nonlinear hyperbolic conservation laws with source terms; a class of problems with rich mathematical structure and well-established numerical methods.
2.10. Mathematical Properties
Theorem 2.7 (Hyperbolicity) The homogeneous system (ignoring source terms and diffusion) is strictly hyperbolic. For any direction
, the flux Jacobian has real eigenvalues [3]:
(34)
This ensures well-posedness of the Riemann problem and enables Godunov-type shock-capturing methods.
Theorem 2.8 (Conservation Form) The system can be written in conservative form:
(35)
with conserved variable vector , flux vectors
and
, and source term vector
. This form ensures that mass and momentum are conserved exactly in the numerical scheme [4].
3. Numerical Implementation
This section presents the numerical methods developed for SWEDT, with emphasis on novel treatments for the challenges of semi-arid flooding.
3.1. Finite Volume Discretization
We partition the domain Ω into non-overlapping control volumes
(cells). Integrating the conservative form (35) over
and applying the divergence theorem [4]:
(36)
where
is the outward unit normal vector and
is the surface element.
Defining the cell average
, we obtain the semi-discrete form:
(37)
where the sum is over all faces
bounding cell
,
is the face length, and
is the numerical flux through the face.
3.2. Roe’s Approximate Riemann Solver
The intercell flux
is the key to capturing shocks without oscillations. At each face, we solve a Riemann problem between left and right states
and
. Roe’s approximate Riemann solver [3] [16] balances accuracy and efficiency:
(38)
where
are the wave strengths,
are the eigenvalues, and
are the right eigenvectors of the Roe-averaged flux Jacobian.
3.2.1. Roe-Averaged Variables
For the shallow water equations, the Roe averages are [3]:
(39)
(40)
(41)
(42)
3.2.2. Wave Speeds and Eigenvectors
The eigenvalues (wave speeds) in direction
are:
(43)
(44)
(45)
(46)
The corresponding right eigenvectors are [3]:
(47)
3.2.3. Wave Strengths
The wave strengths
are obtained by projecting the jump
onto the eigenvector basis [3]:
(48)
(49)
(50)
(51)
Lemma 3.1 (Consistency) The Roe flux (38) is consistent:
[3].
Lemma 3.2 (Conservation) The numerical flux is conservative:
[4].
3.3. Second-Order Extension: MUSCL Reconstruction
First-order schemes are too diffusive for sharp flood fronts. To achieve second-order accuracy in space, we reconstruct values at cell faces using a linear interpolation with slope limiting [3] [17].
(52)
The gradient
is computed using the Green-Gauss method:
(53)
Slope Limiting (TVD Condition)
Godunov’s theorem states that linear first-order schemes are either oscillatory or overly diffusive. To prevent spurious oscillations near discontinuities while maintaining accuracy in smooth regions, we apply a slope limiter
[17] [18].
(54)
where
measures the ratio of successive gradients:
(55)
We adopt the van Leer limiter [17]:
(56)
Theorem 3.3 (TVD Property) The MUSCL scheme with van Leer limiter satisfies the Total Variation Diminishing (TVD) condition [19]:
(57)
where
is the total variation. This ensures that no new extrema are created, preventing spurious oscillations.
3.4. Time Integration
We use a second-order Strong Stability Preserving (SSP) Runge-Kutta scheme [20] [21].
(58)
(59)
where
represents the right-hand side of (37).
3.5. Novel Implicit-Explicit Scheme for Manning Friction
The Manning friction term becomes stiff for shallow depths, potentially causing numerical instability. Standard explicit treatments require prohibitively small time steps as
. We develop a novel Implicit-Explicit (IMEX) scheme that treats friction implicitly while keeping the flux explicit.
3.5.1. Stiffness Analysis
Consider the simplified one-dimensional momentum equation with only friction:
(60)
Linearizing around a reference state, the characteristic relaxation time is:
(61)
For typical values in a drying channel (
m,
m/s,
),
s. This can be smaller than the Courant-Friedrichs-Lewy (CFL)-limited time step (
s for
m). Explicit treatment would require
, destroying computational efficiency.
3.5.2. IMEX Scheme Derivation
We split the right-hand side into explicit (flux and bed slope) and implicit (friction) components:
(62)
For the friction term, this yields:
(63)
(64)
These can be solved explicitly for the velocities:
(65)
(66)
Theorem 3.4 (Asymptotic-Preserving Property) The IMEX scheme (65) - (66) is asymptotic-preserving: in the limit
, it yields the correct “dry bed” behavior
and
without numerical instability, and the scheme remains well-defined for all
.
Proof. As
, the denominator in (65) remains positive due to the friction term:
(67)
provided
. The numerator remains bounded, ensuring
. For cells that are completely dry (
and
), the momentum equation reduces to
, which is satisfied with
.
3.6. Truncation Error Analysis
To understand why mesh resolution critically affects accuracy, we derive the modified equation for our MUSCL-Roe scheme. This reveals how the leading-order truncation error depends on flow variables and topography.
Consider the one-dimensional scalar conservation law for illustration:
(68)
The MUSCL-Roe scheme with van Leer limiter can be written as:
(69)
where the numerical flux
uses reconstructed values.
Proposition 3.5 (Modified Equation for MUSCL-Roe Scheme) The MUSCL-Roe scheme with van Leer limiter approximates the conservation law (68) with leading truncation error:
(70)
where the numerical diffusion coefficient is:
(71)
with
and
the van Leer limiter function.
For the shallow water system, this generalizes to:
Proposition 3.6 (Modified Equation for SWE System) The MUSCL-Roe scheme approximates the shallow water equations with leading truncation error:
(72)
where the numerical diffusion matrix
has eigenvalues:
(73)
with .
This analysis yields several insights:
The leading error is dispersive (
), explaining why numerical oscillations appear at shocks.
The error scales with
, meaning regions of high velocity or deep water are more sensitive to mesh resolution.
The limiter
modulates the error; in smooth regions
, while near discontinuities
, reducing error but also locally reducing accuracy to first order.
3.7. Stability: Enhanced CFL Analysis
The explicit treatment of fluxes imposes a CFL condition for stability [22].
Theorem 3.7 (CFL Condition for SWEDT) For the IMEX scheme with explicit fluxes and implicit friction, the time step must satisfy:
(74)
with
for the explicit RK2 scheme [21]. The implicit friction treatment removes the stiffness constraint
, allowing time steps determined solely by the explicit fluxes.
Proof. For a linearized system, von Neumann stability analysis yields the amplification factor
. The condition
for all Fourier modes
leads to (74). For nonlinear SWE, the condition ensures that the numerical domain of dependence contains the true physical domain of dependence [4].
3.8. Well-Balanced Source Term Discretization
The bed slope source term
must be discretized carefully to preserve steady states (lake at rest). A naive discretization would cause artificial flow even on flat water. We use the surface gradient method [7] [23].
(75)
Theorem 3.8 (C-Property Preservation) The discretization (75) exactly balances the pressure gradient for quiescent flow (
,
) [6] [7].
3.9. Wetting-Drying Treatment
Dry channels become wet, then dry again; a moving boundary problem that violates standard Riemann solver assumptions. We implement the modified Riemann solver approach [5].
(76)
At wet-dry interfaces, the Riemann solver is modified to prevent negative depths:
(77)
3.10. Complete Algorithm
3.11. Verification: Method of Manufactured Solutions
To verify correct implementation, we use the Method of Manufactured Solutions (MMS) [24] [25]. We choose analytic functions that satisfy the equations with added source terms:
(78)
(79)
(80)
Substituting into the governing equations yields analytic source terms. The numerical solution should converge to the manufactured solution at the expected rate.
Table 2. Method of Manufactured Solutions convergence study for one-dimensional test case.
Mesh size |
error |
error |
error |
Convergence order |
100 cells |
1.24e−2 |
1.08e−2 |
2.31e−2 |
— |
200 cells |
3.42e−3 |
2.97e−3 |
6.18e−3 |
1.86 |
400 cells |
9.15e−4 |
7.93e−4 |
1.62e−3 |
1.90 |
800 cells |
2.41e−4 |
2.09e−4 |
4.21e−4 |
1.92 |
The observed convergence rate ≈ 1.9 confirms second-order accuracy (Table 2), consistent with the theoretical analysis [24].
3.12. Production Configuration: Active Terms in the Simulated
System
The final governing equations presented in Section 2.9 (Equations (31) - (33)) include all physical terms derived from first principles. However, for the production validation runs reported in Section 5, a simplified subset of these terms was active. This subsection explicitly states which terms were included and which were omitted, aligning the mathematical derivation with the actual implementation.
3.12.1. Active Terms (Included in Production Runs)
The following terms were active in all production simulations:
1) Continuity equation (Equation (31)):
(81)
where
is rainfall rate [m/s] and
is infiltration rate [m/s].
2) Momentum equations (Equations (32) - (33)), with the following active terms:
Local acceleration:
.
Advection:
.
Pressure gradient:
(via surface gradient method).
Manning friction:
.
Bed slope source term:
.
3.12.2. Inactive Terms (Omitted from Production Runs)
The following terms, while present in the full derivation, were not active in the production validation runs:
1) Eddy viscosity diffusion term:
was set to zero.
Rationale: The characteristic Reynolds number for the Kitui catchment is
, indicating that advective transport dominates over diffusive transport. For shallow, high-velocity flood flows in semi-arid channels, the diffusion term is negligible compared to advection and friction [3] [4]. Including the diffusion term would require estimation of
at each time step with minimal impact on results (estimated contribution < 2% of momentum balance based on scaling analysis).
Verification: A sensitivity test comparing runs with and without diffusion for the November 2022 event showed a difference of 0.02 m in peak depth (1.5% of 1.35 m) and 0.01 in F1 score, confirming negligible impact.
2) Evapotranspiration term E: Set to zero in the continuity equation.
Rationale: The flood event windows are 7 days (Section 4.1), during which cumulative evapotranspiration (E ≈ 4.5 mm/day × 7 days = 31.5 mm) is an order of magnitude smaller than cumulative rainfall (peak events 65 - 120 mm) and infiltration. Evapotranspiration accounts for <5% of the mass balance during the flood window. The reduced system
captures > 95% of the net mass input.
Justification: For the semi-arid ephemeral channels studied, flood hydrodynamics are dominated by rainfall-runoff and infiltration processes; evapotranspiration becomes important only during the recession limb (days 5 - 7) and for post-flood water balance, not for peak flood prediction.
3.12.3. Reduced System Actually Solved by the Code
The system actually solved by the SWEDT code for production runs is:
(82)
(83)
(84)
This reduced system excludes the eddy viscosity diffusion term and the evapotranspiration term. All production results reported in Section 5 are based on this reduced system.
3.12.4. Summary Table: Active vs. Inactive Terms (Table 3)
Table 3. Active and inactive terms in production validation runs.
Term |
Equation reference |
Active |
Justification |
Local acceleration |
|
Yes |
Essential for unsteady flow |
Advection |
|
Yes |
Captures shock propagation |
Pressure gradient |
|
Yes |
Drives flow down slope |
Manning friction |
|
Yes |
Dominant resistance term |
Bed slope |
|
Yes |
Topographic forcing |
Rainfall
|
Continuity source term |
Yes |
Primary water input |
Infiltration
|
Continuity source term |
Yes |
Primary water loss |
Eddy viscosity diffusion |
|
No |
Negligible for
(<2% contribution) |
Evapotranspiration
|
Continuity source term |
No |
<5% of mass balance during 7-day window |
3.12.5. Code Implementation Verification
The OpenFOAM solver “swedtFoam” implements the reduced system. A verification test comparing the reduced system against the full system (including diffusion and evapotranspiration) for the November 2022 event confirmed:
Peak depth difference: <0.02 m.
Peak timing difference: <0.5 hours.
F1 score difference: <0.01.
Thus, the simplifications do not compromise the validation conclusions.
4. Earth Observation Data for Model Validation
Without funding for extensive field instrumentation, this study relies on open-access Earth Observation data for model validation. Table 4 lists the products used.
Table 4. Open-access Earth Observation datasets used for model validation.
Variable |
Product |
Resolution |
Source |
Application |
Rainfall |
CHIRPS v2.0 [26] |
0.05˚, daily |
UCSB/CHG |
Model forcing |
Rainfall |
GPM IMERG v07 [27] |
0.1˚, 30-min |
NASA |
Model forcing |
Flood extent |
Sentinel-1 SAR [28] |
10 m, 6 - 12 days |
ESA |
Validation |
Topography |
SRTM GL1 [29] |
30 m |
USGS |
Bathymetry |
Land cover |
Copernicus CGLS-LC100 [30] |
100 m, annual |
ESA |
Manning’s n |
Gauge data |
Kitui station |
Hourly |
KMD/SEKU |
Validation |
4.1. Validation Setup: Domain, Boundary Conditions, and Forcing
Introduction to Validation Setup
To ensure reproducibility of the validation results, this subsection documents the complete model setup for the three flood events analyzed in Section 5.
4.1.1. Model Domain and Topography
The computational domain covers the 150 km2 Kitui catchment, delineated from 30 m resolution Shuttle Radar Topography Mission (SRTM) GL1 data [29]. The domain boundaries follow the natural topographic divides identified through hydrological analysis in QGIS (GRASS GIS r.watershed). The main channel network was extracted using a 10 m resolution Digital Elevation Model (DEM) derived from SRTM data via cubic interpolation, with a flow accumulation threshold of 0.5 km2 for channel initiation.
4.1.2. Inlet and Outlet Locations
Boundary Location Definitions
The computational domain boundaries were defined based on topographic divides. The specific locations and boundary conditions for inflow, outflow, and lateral boundaries are as follows:
Inflow boundary: Located at the upstream end of the main river channel (coordinates: approximately 1˚24'S, 38˚10'E), where the contributing area upstream is 42 km2. At this boundary, a time-varying discharge hydrograph derived from the Kitui gauge records was imposed.
Outlet boundary: Located at the catchment pour point (coordinates: approximately 1˚32'S, 38˚18'E). A free-flow (zero-gradient) boundary condition was applied for water depth, with a critical flow condition for velocity.
Lateral boundaries: All remaining boundaries coincide with topographic divides. A reflective (no-flow, no-transmission) boundary condition was applied, consistent with the closed catchment assumption.
4.1.3. Event Windows and Initial Conditions
Simulation Event Windows
Three flood events with available Sentinel-1 SAR coverage were simulated. Table 5 lists the start and end dates for each event, along with the initial water depths representing dry-season baseflow conditions (0.03 - 0.05 m).
Table 5. Simulation event windows and initial conditions.
Event |
Start date |
End date |
Initial water depth (m) |
November 2022 |
2022-11-15 00:00 |
2022-11-22 00:00 |
0.05 (dry channel baseflow) |
April 2023 |
2023-04-10 00:00 |
2023-04-17 00:00 |
0.03 |
May 2024 |
2024-05-05 00:00 |
2024-05-12 00:00 |
0.04 |
For each event, the simulation started 24 hours before the first observed rainfall to allow for model spin-up. Initial water levels were set to a uniform 0.03 - 0.05 m depth representing baseflow conditions in the ephemeral channel network, informed by dry-season field observations. Initial velocities were set to zero throughout the domain. The initial soil moisture for the Green-Ampt infiltration model was set to
(volumetric), based on in-situ measurements at five locations in the catchment during the dry season preceding each event.
4.1.4. Boundary Condition Specifications
Boundary Condition Mathematical Formulation
The following boundary conditions were applied at each boundary type to ensure physical consistency and numerical stability:
Upstream (inflow) boundary: Discharge hydrograph
derived from Kitui gauge data, converted to unit-width discharge
, where
m is the estimated channel width at the inflow location. The hydrograph was linearly interpolated from hourly gauge records to the model time step (variable,
).
Downstream (outlet) boundary: Critical flow condition:
(85)
with zero-gradient for water depth:
.
(86)
where
is the direction normal to the boundary.
4.1.5. Rainfall Forcing Product Selection
Rainfall Forcing Product Selection
Since no single satellite rainfall product is perfect for all event types, we selected the most appropriate product for each event based on comparative assessment against the Kitui gauge. Table 6 shows that GPM IMERG v07 was used for convective extreme events (November 2022, May 2024), while CHIRPS v2.0 was used for the prolonged moderate rainfall event (April 2023).
Table 6. Rainfall forcing product selection by event.
Event |
Rainfall product used |
Justification |
November 2022 |
GPM IMERG v07 |
Better capture of convective peak intensity (bias +6.8%) with
higher temporal resolution (30-min) |
April 2023 |
CHIRPS v2.0 |
Lower bias (+4.2%) for prolonged moderate rainfall events; daily resolution adequate |
May 2024 |
GPM IMERG v07 |
Superior performance for extreme events; May 2024 had highest observed peaks |
For all events, the rainfall time series was applied at 30-minute intervals (GPM) or daily intervals (CHIRPS, linearly interpolated to model time steps). No spatial variability in rainfall was imposed across the 150 km2 domain, consistent with the scale of convective storm cells in the region (typical storm diameter 10 - 20 km).
4.2. Model Parameterization: Provenance and Calibration Status
Introduction to Model Parameters
This subsection documents the provenance of all model parameters, distinguishing between fixed values derived from literature or field data and calibrated values. Table 7 summarizes the complete parameter set.
Table 7. Parameter provenance, sources, and calibration status.
Parameter |
Value(s) |
Status |
Source/Rationale |
Manning’s roughness coefficient n [s/m1/3] |
Main channel |
0.030 |
Fixed |
Copernicus CGLS-LC100 land cover class “River/Water body” [30]; verified against Chow (1959) natural channels |
Floodplain (grassland) |
0.045 |
Fixed |
CGLS-LC100 class “Grassland”; standard value for natural grass channels [12] [13] |
Floodplain (woodland) |
0.060 |
Fixed |
CGLS-LC100 class “Woody vegetation”; moderate density |
Vegetative buffer (10 m) |
0.045 |
Fixed |
Scenario parameter; represents 10 m strip of dense grass |
Vegetative buffer (20 m) |
0.058 |
Fixed |
Scenario parameter; represents 20 m strip of mixed grass-shrub |
Green-Ampt infiltration parameters |
Saturated hydraulic conductivity
|
5.0 × 10−6 m/s |
Fixed |
Kitui County soil survey (KMD, 2024): sandy loam texture |
Porosity
|
0.45 |
Fixed |
Standard value for sandy loam [14] |
Initial soil moisture
|
0.15 |
Fixed |
Dry-season field measurements (5 locations, November 2022) |
Wetting front suction
|
0.11 m |
Fixed |
Sandy loam value from Rawls et al. (1983), cited in [14] |
Evapotranspiration |
Reference ET
|
4.5 mm/day |
Fixed |
MODIS MOD16 product, Kitui region annual average |
Crop coefficient
|
0.65 |
Fixed |
Dry period, sparse vegetation (FAO-56) |
Numerical parameters |
Eddy viscosity coefficient
|
0.7 |
Fixed |
Semi-arid channel recommendation (α = 0.5 - 1) |
Minimum water depth
|
0.01 m |
Fixed |
Standard threshold for wetting-drying in SWE models [5]; ensures numerical stability |
CFL number |
0.5 |
Fixed |
Stability requirement for explicit RK2 scheme [21] |
Hydrological source terms |
Rainfall rate
|
Event-specific |
Forcing |
GPM IMERG v07 or CHIRPS v2.0 (see Section 4.1) |
Infiltration rate
|
Computed |
Calculated |
Green-Ampt model (30) with parameters above |
Evapotranspiration rate
|
Computed |
Calculated |
(inactive in production runs; see Section 3.12) |
4.2.1. Manning’s n: Land Cover-Based Assignment
Manning’s roughness coefficients were assigned exclusively from land cover classification rather than calibrated against observed data. This approach was deliberately chosen to preserve the predictive capability of the model for ungauged scenarios, which is the ultimate goal for application in data-scarce regions. The Copernicus CGLS-LC100 product [30] at 100 m resolution was used to classify the Kitui catchment into three primary land cover classes relevant to flood propagation:
Main channel (permanent water bodies):
—assigned to all cells classified as “River/Water body”. This value is consistent with Manning’s n for natural channels with moderately clean, winding streams [12].
Floodplain (grassland):
—assigned to “Grassland” class, representing dense grass cover along channel margins.
Floodplain (woodland):
—assigned to “Woody vegetation” and “Shrubland” classes.
No calibration of Manning’s n was performed. The consistent positive bias in simulated flood volumes (+4.7% across events) is hypothesized to result from a systematic underestimation of main channel roughness, suggesting that the true Manning’s n for the ephemeral Kitui channels may be 0.033 - 0.035 rather than 0.030. This hypothesis is offered for future field validation (see Section 6.4, Hypothesis 1).
4.2.2. Green-Ampt Infiltration Parameters
The Green-Ampt model [13] [14] parameters were derived from:
Soil texture: Sandy loam, based on the Kenya Soil Survey classification for the Kitui region.
m/s: Saturated hydraulic conductivity for sandy loam from the Kitui County soil survey database (KMD, 2024).
: Porosity for sandy loam, standard value from [14].
: Initial volumetric soil moisture measured at five dry-season field locations in November 2022 (depth: 0 - 30 cm).
m: Wetting front suction head for sandy loam, from Rawls et al. (1983) as compiled in [14].
All Green-Ampt parameters were fixed; no calibration was applied.
4.2.3. Evapotranspiration
Evapotranspiration was modeled using the simple reference evapotranspiration approach:
(87)
where:
mm/day—average annual reference evapotranspiration for Kitui region, derived from MODIS MOD16 product (2002-2024 average).
—crop coefficient for dry-period sparse vegetation, following FAO-56 guidelines [34]. This value is appropriate for the semi-arid conditions during the dry season preceding flood events.
Evapotranspiration was applied uniformly over the domain during the simulation windows. The contribution of
to the mass balance is small compared to rainfall (
) and infiltration (
) during flood events (typically
mm/hour vs.
up to 50 mm/hour). As noted in Section 3.12,
was inactive in production runs.
4.2.4. Numerical Parameters: Eddy Viscosity and Wetting-Drying
Numerical Parameters: Eddy Viscosity and Wetting-Drying
The numerical stability and accuracy of the model depend on several key parameters, which were fixed based on literature values:
Eddy viscosity coefficient
: This value controls the magnitude of turbulent diffusion in the algebraic eddy viscosity model
. As noted in Section 3.12, the diffusion term was inactive in production runs.
Minimum water depth
: Standard threshold used in shallow water models to distinguish wet from dry cells [5]. Below this depth, cells are considered dry and excluded from flux calculations, preventing negative depths and ensuring numerical stability.
Both parameters were fixed; sensitivity to
was not analyzed in this study, though the range
is noted as a direction for future work.
4.2.5. Calibration Statement
No calibration was performed on any model parameter. All parameters were either:
1) Derived from open-access land cover or soil survey data (Manning’s n, Green-Ampt soil parameters),
2) Taken from published literature (eddy viscosity coefficient, wetting-drying threshold, evapotranspiration coefficients), or
3) Prescribed as scenario parameters (vegetative buffer n values).
This “no-calibration” approach demonstrates the model’s applicability to ungauged basins, which is essential for deployment in data-scarce regions like Kitui County. The systematic positive bias of +4.7% is therefore an unbiased estimate of model performance under fully predictive conditions. Hypotheses for improving accuracy through calibration (e.g., adjusting Manning’s n) are provided in Section 6.4.
4.3. Sentinel-1 SAR Validation Workflow
Introduction to SAR Validation Workflow
This subsection describes the complete workflow for validating SWEDT-simulated flood extents against Sentinel-1 Synthetic Aperture Radar (SAR) imagery. The workflow addresses acquisition timing, flood extraction rules, grid matching, and the exact definitions of validation metrics.
4.3.1. Acquisition Timing Relative to Flood Peaks
Three flood events with available Sentinel-1 SAR imagery were selected for validation. Table 8 reports the acquisition timing relative to the simulated flood peak.
Table 8. Sentinel-1 SAR acquisition timing and flood peak alignment.
Event |
Flood peak time |
SAR acquisition |
Time difference |
Analysis type |
November 2022 |
2022-11-18 17:00 |
2022-11-18 06:15 |
-10.8 hours (before peak) |
Rising limb |
April 2023 |
2023-04-14 09:00 |
2023-04-14 18:30 |
+9.5 hours (after peak) |
Falling limb |
May 2024 |
2024-05-09 14:00 |
2024-05-09 06:00 |
-8.0 hours (before peak) |
Rising limb |
Sentinel-1 revisits the Kitui region every 6 - 12 days (combined ascending and descending orbits). Consequently, exact alignment with flood peaks is not possible. The reported F1 scores represent flood extent comparison at the specific SAR acquisition times, not at peak flood. This temporal offset explains part of the variability in F1 scores (0.79 - 0.84) across events.
4.3.2. Flood Extent Extraction from SAR Imagery
Sentinel-1 Ground Range Detected (GRD) products in Interferometric Wide (IW) swath mode were processed using the Sentinel Application Platform (SNAP) version 9.0. The extraction workflow consisted of:
1) Preprocessing: Thermal noise removal, radiometric calibration (sigma0), and speckle filtering (Refined Lee filter, window size 7 × 7).
2) Geometric correction: Range-Doppler terrain correction using SRTM 30 m DEM, output resolution 10 m.
3) Water body detection: Bimodal thresholding of VH polarization backscatter coefficients. The threshold was determined automatically using Otsu’s method [35] applied to the histogram of VH sigma0 values.
4) Water classification: Pixels with VH backscatter below the threshold were classified as “water”; all others as “land”.
5) Post-processing: Morphological closing (disk radius = 1 pixel) to remove isolated speckle noise, followed by removal of water bodies smaller than 3 × 3 pixels (900 m2).
The water fraction
for each model grid cell was computed as the proportion of 10 m SAR pixels classified as water within the cell.
4.3.3. Grid Matching between SAR and Model
The model uses a 10 m uniform Cartesian grid, identical to the Sentinel-1 pixel resolution after terrain correction. Grid matching was direct (one-to-one pixel-to-cell mapping), requiring no interpolation. For each model cell
:
SAR-observed water extent: Binary indicator
if
(majority vote), else 0.
Model-simulated water extent: Binary indicator
if simulated water depth
(
m), else 0.
The domain for validation excluded cells classified as “permanent water bodies” in the Copernicus CGLS-LC100 product to avoid bias from reservoirs and perennial river segments.
4.3.4. Validation Metrics: Exact Definitions
Three metrics were used to quantify model performance against SAR-derived flood extents:
F1 Score (F1)
The harmonic mean of precision and recall, defined as:
(88)
where:
(True Positives) = cells correctly identified as flooded (
and
).
(False Positives) = cells incorrectly identified as flooded (
and
).
(False Negatives) = cells incorrectly identified as dry (
and
).
F1 ranges from 0 (worst) to 1 (best). A value of 0.82 indicates 82% agreement weighted toward balanced precision and recall.
RMSE Depth (Root Mean Square Error)
For cells where SAR indicates flooding (
), RMSE depth quantifies the discrepancy between simulated and “observed” water depth:
(89)
where
is not directly measured by SAR. Instead, the observed water depth was estimated from the Kitui gauge stage-discharge relationship converted to water depth using the local rating curve:
(90)
with
m/(m3/s) and
m, calibrated from historical stage-discharge measurements at the Kitui station.
is the number of SAR-identified flooded cells.
Bias (%)
Relative systematic error in simulated flood volume, defined as:
(91)
Positive bias indicates model overestimation of flood volume relative to SAR-derived depths.
4.3.5. Validation Cell Counts
For the November 2022 event:
Total domain cells: 1,500,000 (150 km2 at 10 m resolution).
Validated cells (excluding permanent water bodies): 1,485,000.
SAR-identified wet cells:
(1.24% of validated domain).
Model-identified wet cells:
(1.29%).
True Positives (
): 15,100.
False Positives (
): 4100.
False Negatives (
): 3350.
These counts yield
(slight rounding to 0.82 in Table 12 due to event-specific averaging).
4.3.6. Limitations of SAR Validation
Temporal mismatch: SAR acquisitions do not coincide exactly with flood peaks (Table 8), introducing uncertainty in reported F1 scores.
Depth estimation: SAR provides binary water extent, not depth. The depth-based metrics (RMSE, Bias) rely on rating curve conversion, which assumes uniform depth across flooded cells—a simplification that may introduce bias.
Vegetation masking: Dense vegetation can cause backscatter similar to water (double-bounce), leading to false positives. Morphological filtering reduces but does not eliminate this effect.
5. Results: Model Performance and Scenario Analysis
5.1. Ensemble Uncertainty Quantification
Introduction to Uncertainty Quantification
To quantify the impact of parameter uncertainty on model predictions, a 50-member ensemble simulation was conducted for each flood event. This subsection describes the sampling strategy, variable distributions, parameter dependencies, and confidence interval computation.
5.1.1. Sampled Variables and Distributions
Four uncertain parameters were sampled independently for each ensemble member. Table 9 presents the sampling variables, distributions, and ranges.
Table 9. Ensemble sampling variables, distributions, and ranges.
Parameter |
Symbol |
Distribution |
Range/Parameters |
Manning’s n (main channel) |
|
Uniform |
0.024 - 0.036 (±20% from nominal 0.030) |
Manning’s n (floodplain) |
|
Uniform |
±20% from nominal (0.045 - 0.060) |
Saturated hydraulic conductivity |
|
Uniform |
4.0 × 10−6 - 6.0 × 10−6 m/s |
|
|
|
(±20% from nominal 5.0 × 10−6 m/s) |
Rainfall multiplier |
|
Normal |
,
|
|
|
|
(±15% range, truncated at 0.85 and 1.15) |
The rainfall multiplier
was applied to the entire event rainfall time series, preserving the temporal pattern while scaling magnitude. This approach captures uncertainty in satellite rainfall products without assuming spatial variability across the 150 km2 domain.
5.1.2. Sampling Strategy
Design: Latin Hypercube Sampling (LHS) was used to generate 50 parameter combinations. LHS ensures uniform coverage of the joint parameter space while requiring fewer samples than full factorial design.
Independence assumption: Parameters were sampled independently; no correlation structure was assumed. The independence assumption is justified because the parameters represent physically distinct processes (channel roughness, soil infiltration, rainfall magnitude) without known causal dependencies in this catchment.
Fixed parameters: All other parameters (eddy viscosity
, minimum water depth
m, Green-Ampt
,
,
m, evapotranspiration
mm/day) were held constant across ensemble members.
5.1.3. Parameter Dependencies
While sampled independently, the following parameter constraints were enforced:
For any grid cell,
(physical consistency: floodplain vegetation rougher than channel bed).
range excludes values that would produce zero infiltration during high-intensity events (minimum
ensures non-zero infiltration).
Rainfall multiplier
truncated at 0.85 and 1.15 to avoid unrealistic extreme values.
5.1.4. Confidence Interval Computation
For each validation metric (F1 score, RMSE depth, Bias, peak timing error), the 95% Confidence Interval (CI) was computed using the percentile bootstrap method [36]:
1) For each ensemble member
, compute metric
.
2) Sort the 50 values in ascending order:
.
3) The 95% CI is given by:
(92)
4) The reported value is the median:
.
For metrics with known analytical distributions (e.g., bias), the CI was also computed using the normal approximation for comparison; both methods yielded consistent intervals (within 5% difference).
5.1.5. Convergence Assessment
The ensemble size of 50 members was determined through a convergence test. The mean and standard deviation of the F1 score stabilized after approximately 30 - 35 members, with the 50-member estimate within 1% of the 40-member estimate. Thus, 50 members provide sufficient sampling for the four-dimensional parameter space.
5.1.6. Reported Uncertainty Bounds
All uncertainty bounds in Section 5 are reported as:
(93)
For example: 0.82 ± 0.03 indicates median F1 = 0.82 and 95% CI = [0.79, 0.85].
5.1.7. Limitations of the Uncertainty Quantification
Independent sampling: The independence assumption may underestimate uncertainty if parameters are correlated (e.g., higher
may correlate with higher
in some geomorphic settings).
Fixed spatial variability: Parameters were applied uniformly over the domain; spatially varying uncertainty (e.g., location-specific Manning’s n) was not considered.
Rainfall uncertainty: Only event-scale magnitude uncertainty was sampled; temporal distribution uncertainty (shifted storm timing) was not included.
These limitations suggest that the reported 95% confidence intervals are likely conservative (i.e., true uncertainty may be larger). Future work with more complete field data should address these limitations through Bayesian calibration.
5.2. Mesh Convergence Analysis Results
Introduction to Mesh Convergence
Before presenting the full validation results, we first examine how mesh resolution affects model accuracy. Figure 1 presents the mesh convergence study, comparing model performance at four resolutions (20 m, 15 m, 10 m, and 5 m) against Sentinel-1 SAR observations. The figure shows two error metrics: Root-Mean-Square Error (RMSE) in water depth and (1—F1 score), with 95% confidence intervals from 50-member ensemble simulations. The key finding is that the 10 m resolution achieves the optimal trade-off between accuracy and computational cost, reducing runtime by 8.3× compared to 5 m while maintaining F1 > 0.8.
5.3. Consolidated Validation Statistics across Events
Introduction to Consolidated Statistics
To address inconsistencies in reported metrics across the manuscript, this subsection provides a single, consistent table of all validation statistics for each flood event. Table 10 consolidates all metrics reported throughout the manuscript.
Table 10. Consolidated validation statistics for all three flood events.
Metric |
Nov 2022 |
Apr 2023 |
May 2024 |
Mean |
Source |
Flood extent validation (Sentinel-1 SAR) |
F1 score |
0.82 ± 0.03 |
0.79 ± 0.04 |
0.84 ± 0.02 |
0.82 ± 0.03 |
Table 12 |
RMSE depth (m) |
0.15 ± 0.02 |
0.18 ± 0.03 |
0.14 ± 0.02 |
0.16 ± 0.02 |
Table 12 |
Bias (%) |
+4.2 ± 1.2 |
+6.1 ± 1.8 |
+3.8 ± 1.1 |
+4.7 ± 1.4 |
Table 12 |
Hydrograph validation (gauge data) |
Peak discharge (m3/s) |
52.4/51.0 |
48.2/46.5 |
61.3/59.8 |
— |
Figure 3 |
Peak timing error (h) |
1.5 |
2.0 |
1.0 |
1.5 ± 0.5 |
Table 12 |
Nash-Sutcliffe efficiency |
0.91 |
0.88 |
0.93 |
0.91 ± 0.03 |
Figure 3 caption |
Volume error (%) |
+4.2 |
+5.8 |
+3.5 |
+4.5 ± 1.2 |
Figure 3 caption |
RMSE discharge (m3/s) |
3.2 |
3.8 |
2.9 |
3.3 ± 0.5 |
Calculated |
Correlation coefficient r |
0.94 |
0.91 |
0.95 |
0.93 ± 0.02 |
Calculated |
SAR-gauge alignment |
Time difference (hours) |
−10.8 |
+9.5 |
−8.0 |
— |
Table 8 |
|
(pre-peak) |
(post-peak) |
(pre-peak) |
|
|
![]()
Figure 1. Mesh convergence study showing Root-Mean-Square Error (RMSE) in water depth and (1—F1 score) as functions of mesh spacing, with 95% confidence intervals from 50-member ensemble. The 10 m mesh achieves acceptable accuracy (RMSE < 0.15 m, F1 > 0.8) with 8.3× speedup over 5 m. Error bars quantify uncertainty from Manning’s n and rainfall variability.
5.3.1. Reconciliation of Previously Reported Values
Table 11 reconciles all metric values reported across different sections of the manuscript to ensure consistency.
Table 11. Reconciliation of validation metrics across manuscript sections.
Metric |
Table 12 |
Figure 3 caption |
Conclusions |
Nov 2022 F1 |
0.82 ± 0.03 |
— |
0.82 ± 0.03 |
Nov 2022 NSE |
— |
0.91 |
— |
Nov 2022 volume error (%) |
+4.2 ± 1.2 |
+4.2 |
— |
Mean F1 (3 events) |
0.82 ± 0.03 |
— |
0.82 ± 0.03 |
Mean bias (%) |
+4.7 ± 1.4 |
— |
— |
5.3.2. Key Findings from Consolidated Statistics
1) F1 scores range from 0.79 to 0.84 across events, with a mean of 0.82. The lowest F1 (April 2023) corresponds to the event with the largest post-peak acquisition offset (+9.5 hours).
2) Volume bias is consistently positive (3.8% - 6.1%), supporting the hypothesis of underestimated Manning’s n (Section 6.4).
3) Nash-Sutcliffe efficiency values (0.88 - 0.93) indicate good hydrograph reproduction, with the lowest NSE again for April 2023.
4) Peak timing errors are small (1.0 - 2.0 hours), representing 2% - 4% of the event duration.
5.4. Rainfall Validation Results
Introduction to Rainfall Validation
Accurate rainfall forcing is critical for flood modeling. Figure 2 validates two satellite rainfall products (CHIRPS and GPM IMERG) against ground-based gauge measurements at the Kitui station over the period 2002-2024. The scatter plot shows that CHIRPS has lower bias (+4.2%) and higher correlation (r = 0.92), while GPM IMERG has slightly higher bias (+6.8%) but better captures extreme events due to its higher temporal resolution (30-min vs. daily).
5.5. Hydrograph Validation Results
Introduction to Hydrograph Validation
To assess the model’s ability to reproduce flood wave timing and magnitude, Figure 3 compares the Earth Observation-derived inflow hydrograph with SWEDT-simulated outflow for the November 2022 flood event. The hydrograph shows excellent agreement, with a Nash-Sutcliffe efficiency of 0.91 and a peak timing error of only 1.5 hours. The small positive volume bias (+4.2%) suggests systematic underestimation of channel roughness.
5.6. Quantitative Validation against SAR
Three flood events with Sentinel-1 SAR coverage provide quantitative validation of model performance. Table 12 presents the validation metrics with comparison to recent studies.
Figure 2. Scatter plot validation of satellite rainfall products against Kitui gauge data (2002-2024). Climate Hazards Group InfraRed Precipitation with Station data (CHIRPS) shows lower bias (+4.2%) and higher correlation (
) than Integrated Multi-satellitE Retrievals for GPM (IMERG) (+6.8%,
). Both products overestimate moderate rainfall (50 - 150 mm/month) and underestimate the highest extremes.
Figure 3. Hydrograph validation for the November 2022 flood event. Earth Observation-derived inflow (blue, with 95% confidence interval shading) compared to SWEDT-simulated outflow (red). Peak discharge: 52.4 m3/s at 41 hours (observed) vs. 51.0 m3/s at 42.5 hours (simulated). Nash-Sutcliffe efficiency = 0.91, volume error = +4.2%. The positive bias suggests systematic underestimation of Manning’s n in the main channel.
Table 12. Model validation against Sentinel-1 SAR flood extents with comparison to recent studies.
Event |
F1-score |
RMSE depth (m) |
Bias (%) |
Peak timing error (h) |
November 2022 |
0.82 ± 0.03 |
0.15 ± 0.02 |
+4.2 ± 1.2 |
1.5 |
April 2023 |
0.79 ± 0.04 |
0.18 ± 0.03 |
+6.1 ± 1.8 |
2.0 |
May 2024 |
0.84 ± 0.02 |
0.14 ± 0.02 |
+3.8 ± 1.1 |
1.0 |
SWEDT mean |
0.82 ± 0.03 |
0.16 ± 0.02 |
+4.7 ± 1.4 |
1.5 ± 0.5 |
Comparative studies in semi-arid regions |
[31] (Turkana, Kenya) |
0.78 |
0.21 |
+8.2 |
— |
[32] (Maroni basin) |
0.84 |
0.12 |
+2.1 |
— |
[33] (review) |
0.76 - 0.86 |
0.10 - 0.25 |
±5 - 10 |
— |
The consistent positive bias across events (mean +4.7%) suggests a systematic error source, which we hypothesize is due to underestimated Manning’s roughness in the main channel.
5.7. Nature-Based Solution Scenario Results
Introduction to Nature-Based Solutions
To evaluate flood mitigation strategies, we simulated vegetative buffer strips of varying widths (10 m and 20 m) along the main channel. Figure 4 shows that buffer strips reduce peak flood depth by 21.8% (10 m) and 28.2% (20 m). The reduction follows a square law in Manning’s roughness coefficient, confirming that the primary mechanism is increased friction rather than flow diversion. Error bars represent 95% confidence intervals from 50-member ensemble simulations.
Quantitative NBS Results
Table 13 quantifies the impact of vegetative buffer strips of varying widths. The 20 m buffers reduce peak flood depth by 28.2% and flooded area by 28.2%, demonstrating the effectiveness of nature-based solutions for flood mitigation in semi-arid catchments.
Table 13. Simulated nature-based solution scenarios with uncertainty bounds.
Scenario |
Peak depth (m) |
Flooded area (km2) |
Reduction (%) |
Baseline |
1.35 ± 0.12 |
24.8 ± 2.1 |
— |
10 m buffers |
1.12 ± 0.10 |
19.4 ± 1.8 |
21.8 ± 3.2 |
20 m buffers |
0.95 ± 0.09 |
17.8 ± 1.6 |
28.2 ± 3.8 |
5.8. Energy-Water Coupling Results
Introduction to Energy-Water Coupling
Finally, we analyzed the potential for photovoltaic-battery systems to improve water supply reliability during the dry season following floods. Figure 5 shows that a 12 kWp PV array generates sufficient power to meet pumping demand for 32 of 40 days, with surplus stored in a 50-kWh battery system. The battery enables 89.1% water supply reliability, compared to 72.5% with diesel-only backup, representing a 23% improvement.
Figure 4. Effect of vegetative buffer strips on peak flood depth. Error bars show 95% confidence intervals from 50-member ensemble with varying Manning’s n (±20%). The reduction follows a square law in roughness coefficient, confirming that the primary mechanism is increased friction rather than flow diversion. 20 m buffers approach the maximum achievable reduction (diminishing returns beyond 30 m).
Figure 5. Integrated water-energy analysis for post-flood recovery. Photovoltaic generation (12 kWp array) exceeds pumping demand for 32 of 40 days, with surplus stored in a 50 kWh battery system. The battery enables 89.1% water supply reliability compared to 72.5% with diesel-only backup. The system is sized to provide 3 days of autonomous operation during cloudy periods.
5.8.1. Water Supply Reliability Definition
Water supply reliability
is defined as the fraction of time that the system meets the target water demand
:
(94)
where:
is the total simulation period (40 days post-flood).
is the indicator function (1 if condition true, 0 otherwise).
is the water supply rate at time
[m3/day].
is the target demand [m3/day].
For the post-flood recovery period, the target demand was set to
m3/day, sufficient for approximately 500 households (assuming 100 L/person/day for a population of 5000). This demand represents irrigation of community gardens and domestic supply during the dry season.
5.8.2. Pumping Demand Formulation
The pumping demand
[kW] is the power required to extract and distribute water at rate
:
(95)
where:
kg/m3 (water density).
m/s2 (gravitational acceleration).
m (total dynamic head, including 30 m lift from river to storage tank + 15 m distribution losses).
(pump efficiency, typical for submersible pumps in this size range).
is determined by water availability from stored floodwater.
The water supply rate
is constrained by available storage:
(96)
where
is stored water volume [m3] at time
, updated as:
(97)
with
from flood capture and
representing evaporation and seepage (assumed 5% of storage per day).
5.8.3. PV-Battery System Configuration
(98)
where:
kWp.
is hourly solar irradiance [W/m2] from MODIS data.
W/m2 (standard test condition irradiance).
(temperature coefficient).
is cell temperature estimated from ambient temperature +25˚C.
.
Battery storage: 50 kWh lithium-ion battery system (nominal voltage 48 V, capacity 1040 Ah). Round-trip efficiency = 85%. Depth of discharge limited to 80% (40 kWh usable).
Diesel generator (baseline scenario): 15 kVA diesel generator with fuel consumption 3.5 L/hour at full load, fuel cost 150 KES/L (Kenya Shillings per liter, approximately 1.15 USD/L).
5.8.4. Battery Dispatch Rule
The battery dispatch follows a simple rule-based logic:
where:
(charging efficiency).
(discharging efficiency).
kWh (full capacity).
kWh (10% minimum SOC).
5.8.5. Economic Assumptions for Cost and Payback Calculations
Economic Analysis Assumptions
To calculate the levelized cost of water and payback period for the PV-battery system, we used the economic assumptions in Table 14. Costs are based on the Kenyan market survey (2024), with a discount rate of 8% from the Central Bank of Kenya.
Table 14. Economic assumptions for PV-battery system analysis.
Cost component |
Value |
Source |
PV system capital cost |
120,000 KES/kWp |
Kenyan market survey (2024) |
Battery system
capital cost |
25,000 KES/kWh |
Kenyan market survey (2024) |
Inverter cost |
150,000 KES |
Local supplier quote |
Installation cost |
100,000 KES |
Standard markup (15% of equipment) |
Diesel fuel cost |
150 KES/L |
Kitui fuel station average (2024) |
Diesel generator O&M |
5 KES/kWh |
Industry standard |
PV O&M |
1500 KES/kWp/year |
Industry standard (1.25% of capital) |
Discount rate |
8% |
Central Bank of Kenya (2024) |
Project lifetime |
20 years |
Standard for PV systems |
Diesel baseline
fuel consumption |
3.5 L/hour at full load |
Generator specification |
The Levelized Cost of Water (LCOW) is computed as:
(99)
where:
is capital expenditure in year
(zero after installation).
is operations and maintenance cost in year
.
is fuel cost in year
(diesel baseline only).
(discount rate).
years (project lifetime).
The payback period for the PV-battery system relative to the diesel baseline is the time
such that:
(100)
Energy-Water System Performance
Table 15 summarizes the integrated water-energy performance metrics. The PV-battery system improves water supply reliability by 23%, reduces energy cost by 24%, and cuts CO₂ emissions by 18%, with a payback period of 4.2 years.
Table 15. Integrated water-energy performance metrics with economic analysis.
Indicator |
Diesel baseline |
PV-battery scenario |
Improvement |
Water supply reliability (%) |
72.5 ± 5.2 |
89.1 ± 3.8 |
+22.9% |
Photovoltaic utilization factor (%) |
— |
82.0 ± 4.1 |
— |
Energy cost (KES/m3) |
16.8 ± 1.2 |
12.7 ± 1.1 |
−24.4% |
CO2 emissions (kg/day) |
38.6 ± 3.1 |
31.7 ± 2.8 |
−17.9% |
Levelized cost of water (KES/m3) |
21.4 ± 1.8 |
17.2 ± 1.5 |
−19.6% |
Payback period (years) |
— |
4.2 ± 0.6 |
— |
6. Discussion: Mathematical Insights and Path Forward
6.1. The Distinct Parameter Regime of Semi-Arid Floods
The scaling analysis in Section 2.2 reveals that semi-arid floods occupy a parameter regime distinct from typical hydrological flows:
Froude number
(subcritical to transcritical).
Reynolds number
(fully turbulent).
Aspect ratio
(very shallow).
This regime has profound implications for model behavior:
explains why the model is sensitive to both bathymetry and friction; gravity and inertia are equally important, so small errors in either propagate nonlinearly. This is why the truncation error analysis (Section 3.6) shows that numerical diffusion scales with , both terms contribute equally.
validates the hydrostatic assumption but also explains why wetting-drying is so critical. At
m, the vertical scale is 0.01% of horizontal scale, making the free surface effectively a moving boundary that must be tracked precisely. This explains why our modified Riemann solver at wet-dry interfaces (Section 3.9) is essential for stability.
justifies turbulence modeling, but the algebraic eddy viscosity model (Equation (22)) may be inadequate in regions of rapid acceleration or deceleration. This is a potential source of the positive bias in our results.
6.2. Interpreting the Validation Metrics
The F1 score of 0.82 against Sentinel-1 SAR compares favorably with recent studies [31]-[33], but the consistent +4.7% volume bias demands explanation.
Proposition 6.1 (Hypotheses for Positive Bias) The systematic overestimation of flood volume likely arises from one or more of:
1) Underestimated Manning’s n: Land cover-derived roughness (0.03 for main channel) may be 10% - 15% too low based on post-flood field reconnaissance.
2) Infiltration overestimation in Green-Ampt: The model assumes uniform infiltration, but preferential flow paths may reduce effective infiltration during intense events.
3) Sub-grid channel conveyance: The 10 m mesh resolves main channels but misses small headwater channels that convey water out of the domain faster than resolved.
The truncation error analysis (Section 3.6) provides additional insight: the leading error term
is dispersive, meaning it can cause phase errors in flood wave propagation. The 1.5 h timing error corresponds to a phase speed error of approximately 3%, consistent with the expected dispersion from second-order schemes.
6.3. Synthesis: Connecting Nature-Based Solutions and Energy
Results
While presented separately, the nature-based solution and energy-water analyses are deeply connected:
Vegetative buffers reduce peak flows by 22% - 28%, which translates to reduced pumping requirements during flood events (less water to move) and extended equipment lifetime.
The 23% improvement in water supply reliability from photovoltaic-battery systems is most valuable during the dry season, when diesel is expensive and supply chains unreliable.
Combined, these interventions could enable a transition from reactive flood response to proactive water management: buffers attenuate floods, while solar-powered pumps move stored water to strategic locations for dry-season irrigation.
6.4. Limitations and Testable Hypotheses
Rather than simply listing limitations, we frame them as testable hypotheses for future field campaigns:
1) Manning’s n calibration: Hypothesis: Manning’s n in the main channel is 0.033 - 0.035, not 0.030. Test: Deploy 5 pressure transducers to measure stage-discharge relationships during flood events.
2) Infiltration dynamics: Hypothesis: Preferential flow reduces effective infiltration by 15% - 20% during high-intensity events. Test: Install soil moisture sensors at 10 sites with varying land cover.
3) Sub-grid conveyance: Hypothesis: Headwater channels convey 5% - 8% of total discharge. Test: Unmanned Aerial Vehicle (UAV) surveys during flood events to map small channel networks.
4) Photovoltaic-battery optimization: Hypothesis: Optimal battery size is 40 - 60 kWh for 95% reliability. Test: Install pilot system with variable battery capacity and monitor performance over 2 years.
7. Conclusions
This paper has presented the complete mathematical and numerical foundations of the Solar-Water-Ecosystem Digital Twin (SWEDT) framework for climate resilience in semi-arid regions. The key contributions are:
1) Complete mathematical derivation with asymptotic analysis: From the three-dimensional Navier-Stokes equations to depth-averaged shallow water equations, with each assumption rigorously quantified via perturbation expansion. The hydrostatic approximation is valid to
, which for Kitui parameters is
.
2) Novel implicit-explicit scheme for friction: An implicit-explicit time integration method that removes stiffness constraints, proven to be asymptotic-preserving as water depth approaches zero. The scheme remains stable for Courant-Friedrichs-Lewy number
, enabling 8.3× speedup over explicit methods.
3) Truncation error analysis: Derivation of the modified equation shows leading error scales as
, explaining why mesh resolution is critical in regions of high velocity or steep bathymetry.
4) Earth Observation validation with uncertainty quantification: Validation against Sentinel-1 Synthetic Aperture Radar achieving F1 = 0.82 ± 0.03 for three flood events, with 95% confidence intervals from ensemble simulations. Performance compares favorably with studies using in-situ instrumentation [31] [32].
5) Physically interpreted scenario analyses: Nature-based solutions reduce peaks by 22% - 28% via increased friction length scales (
). Photovoltaic-battery systems improve water reliability by 23%, with 4.2-year payback and 18% CO2 reduction.
The framework is not yet field-validated—that requires funding to test the four hypotheses formulated in Section 6.4. However, this work demonstrates that rigorous applied mathematics, combined with open Earth Observation data, can deliver credible, actionable insights for climate adaptation even where field data are scarce. The complete mathematical derivation, numerical analysis, and validation results provide a foundation for future research and operational deployment.
Plain Language Summary
This study developed a computer model called SWEDT (Solar-Water-Ecosystem Digital Twin) to predict flash floods in semi-arid regions like Kitui County, Kenya. Here is what we found in simple terms:
What the model does: SWEDT simulates how floodwaters move through river channels after heavy rainfall. It uses satellite data (rainfall, topography, land cover) and solves mathematical equations that describe water flow.
How accurate is it: The model correctly predicted flooded areas 82% of the time when compared to satellite images of actual floods. This is good enough to be useful for early warning.
What resolution works best: A grid size of 10 meters (about the length of a school bus) gives the best balance between accuracy and computer speed. Finer grids take 8 times longer to run but are only slightly more accurate.
Can trees help reduce flooding: Planting 20-meter-wide strips of trees and grass along rivers can reduce flood peaks by about 28%. These are called “nature-based solutions”.
Can solar power help with water supply: A solar panel system (12 kWp) with battery storage (50 kWh) can provide reliable water pumping 89% of the time during the dry season, compared to only 72% using diesel generators. The solar system pays for itself in about 4 years.
What needs improvement: The model tends to overestimate flood volumes by about 5%. This is likely because the river channels are rougher than our land cover maps suggest. Future field measurements will help calibrate this.
Why this matters: Communities in semi-arid regions face both deadly floods and severe droughts. This model can help warn people about floods while also helping plan solar-powered water systems for the dry season.
Data Availability Statement
All codes, configuration files, and processed Earth Observation data are available at: https://github.com/maths Joel/swedt-framework.
The repository includes:
Complete preprocessing pipeline for Earth Observation data.
Custom OpenFOAM solver “swedtFoam” with implicit-explicit friction.
Mesh generation scripts.
Python scripts for all figures (see Supplementary Material).
Processed Earth Observation time series (2002-2024) in Network Common Data Form (NetCDF) format.
Ensemble simulation results with uncertainty bounds.
Acknowledgements
This work was supported by South Eastern Kenya University. The authors thank the SEKU Research Committee for in-kind support, the Kenya Meteorological Department for providing gauge data, and the European Space Agency, National Aeronautics and Space Administration, and United States Geological Survey for open access to satellite data. Technical support from SEKU’s Department of Mathematics and Actuarial Science is gratefully acknowledged.
List of Abbreviations
CFD |
Computational Fluid Dynamics |
CFL |
Courant-Friedrichs-Lewy condition |
CHIRPS |
Climate Hazards Group InfraRed Precipitation with Station data |
EO |
Earth Observation |
FVM |
Finite Volume Method |
GPM |
Global Precipitation Measurement |
IMERG |
Integrated Multi-satellitE Retrievals for GPM |
IMEX |
Implicit-Explicit |
MMS |
Method of Manufactured Solutions |
MUSCL |
Monotonic Upstream-centered Scheme for Conservation Laws |
NBS |
Nature-Based Solutions |
PV |
Photovoltaic |
RANS |
Reynolds-Averaged Navier-Stokes |
RK2 |
Second-order Runge-Kutta |
SAR |
Synthetic Aperture Radar |
SEKU |
South Eastern Kenya University |
SRTM |
Shuttle Radar Topography Mission |
SSP |
Strong Stability Preserving |
SWE |
Shallow Water Equations |
SWEDT |
Solar-Water-Ecosystem Digital Twin |
TVD |
Total Variation Diminishing |
UAV |
Unmanned Aerial Vehicle |