Skip to main content
wave-attenuation-1d: An idealized one-dimensional framework for wave attenuation through coastal vegetation using Numba-accelerated shallow water equations

wave-attenuation-1d: An idealized one-dimensional framework for wave attenuation through coastal vegetation using Numba-accelerated shallow water equations

This is a Preprint and has not been peer reviewed. This is version 1 of this Preprint.

Add a Comment

You must log in to post a comment.


Comments

There are no comments or no comments have been made public for this article.

Downloads

Download Preprint

Supplementary Files

Authors

Sandy Hardian Susanto Herho , Iwan Pramesti Anwar, Theo Raynold Evontianus Buala Nama Ndruru, Rusmawan Suwarman, Dasapta Erwin Irawan

Abstract

Coastal vegetation provides crucial wave attenuation for shoreline protection, yet existing models are either computationally prohibitive or lack transparency for educational purposes. This study presents wave-attenuation-1d, an open-source Python package implementing linearized shallow water equations with vegetation-induced drag to simulate wave propagation through coastal vegetation. The governing equations are derived from first principles through systematic application of shallow water assumptions, depth-integration, and linearization, yielding coupled continuity and momentum equations where vegetation effects enter as a dissipative drag term proportional to velocity. The numerical implementation employs fourth-order Runge-Kutta time integration with implicit treatment of drag terms on a staggered grid, achieving unconditional stability for stiff dissipative terms. Numerical experiments with monochromatic waves propagating through a 40-meter vegetation patch demonstrate transmission coefficients ranging from 0.799 for sparse vegetation to 0.011 for dense vegetation, corresponding to wave height reductions of 20.1% and 98.9%, respectively. While the one-dimensional framework necessarily simplifies three-dimensional flow structures, turbulence generation, and flexible vegetation dynamics, the model provides a transparent, computationally efficient baseline for understanding fundamental wave-vegetation interactions. The package features standardized NetCDF output with CF-compliant metadata, and modular architecture that facilitates both educational applications and extensions toward more sophisticated models. This work bridges the gap between research-grade simulations and accessible tools for coastal engineering education, providing a foundation for exploring nature-based solutions for coastal protection.

DOI

https://doi.org/10.31223/X59J13

Subjects

Applied Mechanics, Environmental Engineering, Fluid Dynamics, Numerical Analysis and Computation, Oceanography

Keywords

coastal protection, Coastal Vegetation, Nature-based solutions, numerical modeling, shallow water equations, Wave Attenuation

Dates

Published: 2025-08-07 00:08

Last Updated: 2025-08-07 00:08

License

CC BY Attribution 4.0 International

Additional Metadata

Conflict of interest statement:
None

Data Availability (Reason not available):
https://github.com/sandyherho/suppl_wave_attenuation_1d