Preprints
https://doi.org/10.5194/egusphere-2025-3900
https://doi.org/10.5194/egusphere-2025-3900
04 Oct 2025
 | 04 Oct 2025
Status: this preprint is open for discussion and under review for Geoscientific Model Development (GMD).

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, a new Python GPU-accelerated open-source finite volume (FV) software designed to solve the Saint-Venant system of shallow water equations (SWE) on unstructured triangular grids. SWEpy is designed for flexibility and performance, considering a well-balanced, positivity-preserving, and higher-order central-upwind FV scheme, intended to solve tsunami wave propagation, flooding, and dam-break scenarios, among others.

In this regard, we enhance the minimization of numerical diffusion, a phenomenon frequently found in this sort of FV schemes, by using a second-order WENO reconstruction operator as well as a third-order strong stability-preserving Runge-Kutta time integrator. With this in mind, a modular software architecture is presented that can support a range of initial and boundary conditions and source terms.

SWEpy's performance, stability, and accuracy are verified using canonical benchmarks, including Synolakis' conical island and Bryson's flow over a Gaussian bump, and further demonstrated in large-scale simulations of the 1959 Malpasset Dam failure and the Mw8.8 2010 Maule tsunami. SWEpy delivers high-resolution results on consumer-grade hardware, offering a user-friendly platform for both research and operational forecasting.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. While Copernicus Publications makes every effort to include appropriate place names, the final responsibility lies with the authors. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.
Share
Juan Fuenzalida, Danilo Kusanovic, Joaquín Meza, Rodrigo Meneses, and Patricio Catalan

Status: open (until 29 Nov 2025)

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
Juan Fuenzalida, Danilo Kusanovic, Joaquín Meza, Rodrigo Meneses, and Patricio Catalan
Juan Fuenzalida, Danilo Kusanovic, Joaquín Meza, Rodrigo Meneses, and Patricio Catalan

Viewed

Total article views: 66 (including HTML, PDF, and XML)
HTML PDF XML Total BibTeX EndNote
54 10 2 66 0 0
  • HTML: 54
  • PDF: 10
  • XML: 2
  • Total: 66
  • BibTeX: 0
  • EndNote: 0
Views and downloads (calculated since 04 Oct 2025)
Cumulative views and downloads (calculated since 04 Oct 2025)

Viewed (geographical distribution)

Total article views: 66 (including HTML, PDF, and XML) Thereof 66 with geography defined and 0 with unknown origin.
Country # Views %
  • 1
1
 
 
 
 
Latest update: 06 Oct 2025
Download
Short summary
This study presents SWEpy, an open-source Python tool using GPUs to simulate water flows in floods and tsunamis, without the need for costly hardware or complex code. By refining methods to reduce wave spread errors, we tested it on standard cases and real events like a French dam break and a major Chilean earthquake tsunami. Results show SWEpy predicts wave heights and speeds effectively, potentially enhancing early warnings and saving lives in flood-prone areas.
Share