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

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2wave

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

Features

  • Solves the full wave crest and action balance equations in 1-d.
  • Linear (1st order) or Stokes (3rd order) long waves
  • Infinite long-wave trains or long-wave groups
  • Effective gravity, propagation, and advection in curvilinear coordinates
  • Optionally, output all tendencies at all time steps
  • Output as Xarray Dataset

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