A hydrodynamic modulation model for short surface gravity waves riding on longer waves.
- 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
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.