A hydrodynamic modulation model for short surface gravity waves riding on longer waves.
- 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
pip install git+https://github.com/wavesgroup/2wave
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
git clone https://github.com/wavesgroup/2wave
cd 2wave
python3 -m venv venv
source venv/bin/activate
pip install -U .
pytest
Open a new issue on GitHub.