wavelength
Nessuna licenza
Solves the dispersion relation for ocean surface waves
USAGE:
[L,e,c] = wavelength(T,d,U,delta,alpha,tol)
DESCRIPTION:
Simple program that solves the
dispersion relation for ocean
surface waves using the
Newton-Raphson method
It can also account for wave-current
interaction by solving a modified form
of the dispersion relation proposed be
Jonsson (1970)
INPUT VARIABLES:
T = Wave Period, (seconds)
d = Water Depth, (m)
U = Current Velocity, (m/s)
delta = direction of current (rad) with
respect to the cross-shore direction
alpha = direction of waves (rad) with
respect to the cross-shore direction
tol = Maximum tolerance allowed for L
the default is 1e-6 (Generally 3 iterations)
OUTPUT VARIABLES:
L = Wave length, (m)
e = Relative error of L
c = Iteratios
NOTES:
For deep water - L = g*T^2/2/pi
For shallow water - L = T*sqrt(gd)
REFERENCES
Eckart, C. (1952) The Propagation of Gravity
Waves From Deep to Shallow Water, Natl. Bur. Standards,
Circular 521, Washington, DC, pp 165-173.
Jonsson, I.G., Skougaard, C., and Wang, J.D. (1970)
Interaction between waves and currents, Preceedings
of the 12th Coastal Engineering Conference,
ASCE, 489-507
nargin==0 runs a demo
Cita come
Alex Sanchez (2024). wavelength (https://www.mathworks.com/matlabcentral/fileexchange/10557-wavelength), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Sciences > Earth, Ocean, and Atmospheric Sciences > Oceanography and Hydrology >
- Mathematics and Optimization > Optimization Toolbox > Systems of Nonlinear Equations > Newton-Raphson Method >
- Engineering > Civil and Environmental Engineering > Coastal Engineering >
Tag
Community
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 | update |