This paper presents the complete mathematical and numerical foundations of the Solar-Water-Ecosystem Digital Twin (SWEDT), a computational framework for assessing climate resilience in semi-arid regions. The governing equations are derived systematically from the three-dimensional Navier-Stokes equations through a hierarchy of physical assumptions, with each assumption rigorously justified via scaling analysis of the characteristic flow regime. A formal asymptotic analysis reveals that the hydrostatic approximation is valid to
for the study site, confirming the appropriateness of the shallow water equations. The numerical implementation employs a Godunov-type finite volume method with Roe’s approximate Riemann solver, MUSCL reconstruction for second-order spatial accuracy, and a TVD-preserving van Leer limiter. A novel Implicit-Explicit (IMEX) treatment of the Manning friction term is developed to handle stiffness at low depths, with stability analysis proving the scheme remains asymptotic-preserving as water depth approaches zero. The framework is validated for a 150 km2 catchment in Kitui County, Kenya, using open-access Earth Observation data: Integrated Multi-satellitE Retrievals for GPM (IMERG) rainfall, Sentinel-1 Synthetic Aperture Radar (SAR) flood extents, Shuttle Radar Topography Mission (SRTM) topography, and in-situ gauge records. Mesh convergence analysis identifies an optimal 10 m resolution, capturing 82% of SAR-observed flood extent (F1 = 0.82), which compares favorably with recent studies using in-situ instrumentation. Truncation error analysis demonstrates that the leading-order error term scales as
, explaining the model’s sensitivity to bathymetric gradients. Scenario analyses quantify the potential of vegetative buffer strips (22% - 28% peak discharge reduction, physically attributed to increased friction length scales) and photovoltaic-battery systems (23% improvement in water supply
References
[1]
Intergovernmental Panel on Climate Change (IPCC) (2022) Climate Change 2022—Impacts, Adaptation and Vulnerability. Cambridge University Press. https://doi.org/10.1017/9781009325844
[2]
Kenya Meteorological Department (2024) Kitui County Climate Data Archive. https://en.climate-data.org/africa/kenya/kitui/kitui-11147/
[3]
Toro, E.F. (20219) Riemann Solvers and Numerical Methods for Fluid Dynamics. 3rd Edition, Springer.
[4]
LeVeque, R.J. (2002) Finite Volume Methods for Hyperbolic Problems. Cambridge University Press. https://doi.org/10.1017/cbo9780511791253
[5]
Brufau, P., García-Navarro, P. and Vázquez-Cendón, M.E. (2004) Zero Mass Error Using Unsteady Wetting-Drying Conditions in Shallow Flows over Dry Irregular Topography. International Journal for Numerical Methods in Fluids, 45, 1047-1082. https://doi.org/10.1002/fld.729
[6]
Bermudez, A. and Vazquez, M.E. (1994) Upwind Methods for Hyperbolic Conservation Laws with Source Terms. Computers & Fluids, 23, 1049-1071. https://doi.org/10.1016/0045-7930(94)90004-3
[7]
Zhou, J.G., Causon, D.M., Mingham, C.G. and Ingram, D.M. (2001) The Surface Gradient Method for the Treatment of Source Terms in the Shallow-Water Equations. Journal of Computational Physics, 168, 1-25. https://doi.org/10.1006/jcph.2000.6670
[8]
Ferziger, J.H., Peric, M. and Street, R.L. (2020) Computational Methods for Fluid Dynamics. 4th Edition, Springer.
[9]
Pope, S.B. (2000) Turbulent Flows. Cambridge University Press. https://doi.org/10.1017/cbo9780511840531
[10]
Rodi, W., Constantinescu, G. and Stoesser, T. (2017) Large-Eddy Simulation in Hydraulics. CRC Press.
[11]
Vreugdenhil, C.B. (1994) Numerical Methods for Shallow-Water Flow. Springer.
Yen, B.C. (2002) Open Channel Flow Resistance. Journal of Hydraulic Engineering, 128, 20-39. https://doi.org/10.1061/(asce)0733-9429(2002)128:1(20)
[14]
Beven, K.J. (2020) Rainfall-Runoff Modelling: The Primer. 2nd Edition, Wiley-Blackwell.
[15]
Green, W.H. and Ampt, G.A. (1911) Studies on Soil Physics: Part I “The Flow” of Air and Water through Soils. Journal of Agricultural Science, 4, 11-24.
[16]
Roe, P.L. (1981) Approximate Riemann Solvers, Parameter Vectors, and Difference Schemes. Journal of Computational Physics, 43, 357-372. https://doi.org/10.1016/0021-9991(81)90128-5
[17]
van Leer, B. (1979) Towards the Ultimate Conservative Difference Scheme. V. A Second-Order Sequel to Godunov's Method. Journal of Computational Physics, 32, 101-136. https://doi.org/10.1016/0021-9991(79)90145-1
[18]
Sweby, P.K. (1984) High Resolution Schemes Using Flux Limiters for Hyperbolic Conservation Laws. SIAM Journal on Numerical Analysis, 21, 995-1011. https://doi.org/10.1137/0721062
[19]
Harten, A. (1983) High Resolution Schemes for Hyperbolic Conservation Laws. Journal of Computational Physics, 49, 357-393. https://doi.org/10.1016/0021-9991(83)90136-5
[20]
Shu, C. and Osher, S. (1988) Efficient Implementation of Essentially Non-Oscillatory Shock-Capturing Schemes. Journal of Computational Physics, 77, 439-471. https://doi.org/10.1016/0021-9991(88)90177-5
[21]
Gottlieb, S., Shu, C. and Tadmor, E. (2001) Strong Stability-Preserving High-Order Time Discretization Methods. SIAM Review, 43, 89-112. https://doi.org/10.1137/s003614450036757x
[22]
Courant, R., Friedrichs, K. and Lewy, H. (1928) über die partiellen Differenzengleichungen der mathematischen Physik. Mathematische Annalen, 100, 32-74. https://doi.org/10.1007/bf01448839
[23]
Liang, Q. and Marche, F. (2010) Numerical Resolution of Well-Balanced Shallow Water Equations with Complex Source Terms. Advances in Water Resources, 32, 873-884. https://doi.org/10.1016/j.advwatres.2009.02.010
[24]
Roache, P.J. (2002) Code Verification by the Method of Manufactured Solutions. Journal of Fluids Engineering, 124, 4-10. https://doi.org/10.1115/1.1436090
[25]
Salari, K. and Knupp, P. (2000) Code Verification by the Method of Manufactured Solutions. Sandia Report, SAND2000-1444.
[26]
Funk, C., Peterson, P., Landsfeld, M., Pedreros, D., Verdin, J., Shukla, S., et al. (2015) The Climate Hazards Infrared Precipitation with Stations—A New Environmental Record for Monitoring Extremes. Scientific Data, 2, Article No. 150066. https://doi.org/10.1038/sdata.2015.66
[27]
Huffman, G.J., Bolvin, D.T., Braithwaite, D., et al. (2020) Integrated Multi-Satellite Retrievals for GPM (IMERG) Technical Documentation. NASA/GSFC. 2020.
[28]
European Space Agency (2021) Sentinel-1 SAR User Guide.
[29]
Farr, T.G., Rosen, P.A., Caro, E., Crippen, R., Duren, R., Hensley, S., et al. (2007) The Shuttle Radar Topography Mission. Reviews of Geophysics, 45, RG2004. https://doi.org/10.1029/2005rg000183
[30]
Buchhorn, M., Lesiv, M., Tsendbazar, N., Herold, M., Bertels, L. and Smets, B. (2020) Copernicus Global Land Cover Layers—Collection 2. Remote Sensing, 12, Article 1044. https://doi.org/10.3390/rs12061044
[31]
Lakew, H.B., Taye, M.T., Lino, O. and Dyer, E. (2025) Remote Sensing and Machine Learning Integration to Detect and Forecast Floods in Lodwar Town, Turkwel Basin, Kenya. Frontiers in Water, 7, Article 1683545. https://doi.org/10.3389/frwa.2025.1683545
[32]
Larnier, K., Garambois, P.A., Emery, C., Gal, L. and Paris, A. (2024) Coupled Hydrological-Hydrodynamic and Data Assimilation of the Entire River Network of the Maroni Basin Using SWOT River Products. EGU General Assembly 2024, EGU24-20523.
[33]
Ghorbani Bam, P., Rezaei, N., Roubanis, A., Austin, D., Austin, E., Tarroja, B., et al. (2025) Digital Twin Applications in the Water Sector: A Review. Water, 17, Article 2957. https://doi.org/10.3390/w17202957
[34]
Allen, R.G., Pereira, L.S., Raes, D. and Smith, M. (1998) Crop Evapotranspiration: Guidelines for Computing Crop Water Requirements. FAO Irrigation and Drainage Paper No. 56, FAO. https://www.fao.org/4/X0490E/x0490e00.htm
[35]
Otsu, N. (1979) A Threshold Selection Method from Gray-Level Histograms. IEEE Transactions on Systems, Man, and Cybernetics, 9, 62-66. https://doi.org/10.1109/tsmc.1979.4310076
[36]
Efron, B. and Tibshirani, R.J. (1993) An Introduction to the Bootstrap. Chapman & Hall.