Skip to content

A hydrodynamic modulation model for surface waves

License

Notifications You must be signed in to change notification settings

wavesgroup/2wave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2wave

A hydrodynamic modulation model for short surface gravity waves riding on longer waves.

Features

  • Solves the nonlinear wave crest and action balance equations in 1-d.
  • Wave types:
    • 1st order linear wave
    • 3rd order Stokes wave
    • Fully nonlinear wave using SSGW by Clamond & Dutykh (2018, JFM)
  • Infinite long-wave trains or long-wave groups
  • Effective gravity, propagation, and advection in curvilinear coordinates
  • Output as Xarray Dataset
  • Optionally, output all tendencies at all time steps

Getting started

Install 2wave

pip install git+https://github.com/wavesgroup/2wave

Run the model

from twowave import WaveModulationModel

m = WaveModulationModel()  # import the model
m.run()  # run the model
ds = m.to_xarray()  # convert the model output to an xarray dataset

Running the tests

git clone https://github.com/wavesgroup/2wave
cd 2wave
python3 -m venv venv
source venv/bin/activate
pip install -U .
pytest

Questions or issues?

Open a new issue on GitHub.

About

A hydrodynamic modulation model for surface waves

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages