2026 · Geoscientific Model Development
SWEpy: An Open-Source GPU-Accelerated Solver for Near-Field Inundation and Far-Field Tsunami Modeling
Juan Fuenzalida; Danilo Kusanovic; Joaquín Meza; Rodrigo Meneses and Patricio Catalan
Abstract
We present SWEpy, an open-source Python finite volume (FV) software for solving the shallow water equations (SWEs) on unstructured triangular meshes. The framework combines flexibility and high performance through GPU acceleration and a well-balanced, positivity-preserving, higher-order central-upwind (CU) scheme. These features are required for simulation of hydrodynamic phenomena such as tsunami propagation, flooding, and dam-break flows in complex and large geometries. To reduce numerical diffusion, a phenomenon commonly encountered in FV methods, SWEpy incorporates a second-order WENO reconstruction together with a third-order strong stability-preserving Runge–Kutta time integration scheme. These numerical components are particularly well-suited for far-field tsunami modeling, where minimizing artificial diffusion is essential to accurately preserve wave amplitude, phase, and dispersion over long propagation distances. The performance, stability, and accuracy of SWEpy are validated using canonical benchmarks, including Synolakis’ conical island and Bryson’s flow over a Gaussian bump. Its capabilities are further demonstrated through large-scale simulations of the 1959 Malpasset Dam failure and the 2010 Maule tsunami, highlighting its effectiveness in realistic scenarios. Overall, these results show that SWEpy framework delivers high-resolution solutions on consumer-grade hardware, providing a user-friendly and computationally efficient platform for both research applications and operational forecasting.
Other articles in these areas
- Semi-Bayesian Space-Time Hierarchical Framework for Modeling and Prediction of Seasonal and Extreme Precipitation in the U.S. Northern Great Plains2026 · Water Resources Research
- Convection-permitting climate simulations over South America: Experimentation during different phases of ENSO2025 · Atmospheric Research
- Extreme precipitation modeling and Probable Maximum Precipitation (PMP) estimation in Chile2025 · Journal of Hydrology: Regional Studies
- Ensemble modeling of the two-dimensional stochastic confined groundwater flow through the evolution of the hydraulic head's probability density function2025 · Journal of Hydrology