stokeswavesuperposition#
[Eta, t, Etaij] = stokeswavesuperposition(h, a, T, Phi, fs, duration, kCalcMethod, dispout)
Description#
Superposition second order stokes’ waves
Inputs#
- h
Mean water depth in (m)
- a
Wave amplitude in (m)
- T
Wave mean period in (s)
- Phi
Phase (radian)
- fs=32;
Sample generation frequency (Hz), number of data points in one second
- duration=10;
Duration time that data will be generated in (s)
- kCalcMethod=’beji’;
- Wave number calculation method‘hunt’: Hunt (1979), ‘beji’: Beji (2013), ‘vatankhah’: Vatankhah and Aghashariatmadari (2013)‘goda’: Goda (2010), ‘exact’: calculate exact value
- dispout=’no’;
Define to display outputs or not (‘yes’: display, ‘no’: not display)
Outputs#
- Eta
Water Surface Level Time Series in (m)
- t
Time in (s)
- Etaij
Separated Water Surface Level Time Series in (m)
Examples#
[Eta,t,Etaij]=stokeswavesuperposition(5,[0.1;0.2;0.3;0.4],[1;1.5;2;2.5],[pi/2;pi/4;pi/16;pi/32],32,10,'beji','yes');
References#
Beji, S. (2013). Improved explicit approximation of linear dispersion relationship for gravity waves. Coastal Engineering, 73, 11-12.
Goda, Y. (2010). Random seas and design of maritime structures. World scientific.
Hunt, J. N. (1979). Direct solution of wave dispersion equation. Journal of the Waterway Port Coastal and Ocean Division, 105(4), 457-459.
Vatankhah, A. R., & Aghashariatmadari, Z. (2013). Improved explicit approximation of linear dispersion relationship for gravity waves: A discussion. Coastal engineering, 78, 21-22.