Preprints
https://doi.org/10.5194/egusphere-2025-3900
https://doi.org/10.5194/egusphere-2025-3900
04 Oct 2025
 | 04 Oct 2025

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

Journal article(s) based on this preprint

13 May 2026
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 A. Catalán
Geosci. Model Dev., 19, 3953–3987, https://doi.org/10.5194/gmd-19-3953-2026,https://doi.org/10.5194/gmd-19-3953-2026, 2026
Short summary
Juan Fuenzalida, Danilo Kusanovic, Joaquín Meza, Rodrigo Meneses, and Patricio Catalan

Interactive discussion

Status: closed

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
  • RC1: 'Comment on egusphere-2025-3900', Anonymous Referee #1, 03 Dec 2025
    • AC2: 'Reply on RC1', Joaquin Meza, 24 Jan 2026
  • RC2: 'Comment on egusphere-2025-3900', Anonymous Referee #2, 06 Dec 2025
    • AC1: 'Reply on RC2', Joaquin Meza, 24 Jan 2026
    • AC3: 'Reply on RC2, Ignore precious response', Joaquin Meza, 25 Jan 2026

Interactive discussion

Status: closed

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
  • RC1: 'Comment on egusphere-2025-3900', Anonymous Referee #1, 03 Dec 2025
    • AC2: 'Reply on RC1', Joaquin Meza, 24 Jan 2026
  • RC2: 'Comment on egusphere-2025-3900', Anonymous Referee #2, 06 Dec 2025
    • AC1: 'Reply on RC2', Joaquin Meza, 24 Jan 2026
    • AC3: 'Reply on RC2, Ignore precious response', Joaquin Meza, 25 Jan 2026

Peer review completion

AR – Author's response | RR – Referee report | ED – Editor decision | EF – Editorial file upload
AR by Joaquin Meza on behalf of the Authors (03 Feb 2026)  Author's response   Author's tracked changes   Manuscript 
ED: Referee Nomination & Report Request started (03 Mar 2026) by James Kelly
RR by Anonymous Referee #2 (13 Mar 2026)
RR by Anonymous Referee #1 (18 Mar 2026)
ED: Publish subject to technical corrections (25 Mar 2026) by James Kelly
AR by Joaquin Meza on behalf of the Authors (08 Apr 2026)  Author's response   Manuscript 

Journal article(s) based on this preprint

13 May 2026
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 A. Catalán
Geosci. Model Dev., 19, 3953–3987, https://doi.org/10.5194/gmd-19-3953-2026,https://doi.org/10.5194/gmd-19-3953-2026, 2026
Short summary
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: 8,278 (including HTML, PDF, and XML)
HTML PDF XML Total BibTeX EndNote
3,808 4,286 184 8,278 113 117
  • HTML: 3,808
  • PDF: 4,286
  • XML: 184
  • Total: 8,278
  • BibTeX: 113
  • EndNote: 117
Views and downloads (calculated since 04 Oct 2025)
Cumulative views and downloads (calculated since 04 Oct 2025)

Viewed (geographical distribution)

Total article views: 8,261 (including HTML, PDF, and XML) Thereof 8,261 with geography defined and 0 with unknown origin.
Country # Views %
  • 1
1
 
 
 
 
Latest update: 23 May 2026
Download

The requested preprint has a corresponding peer-reviewed final revised paper. You are encouraged to refer to the final revised version.

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