scientimate.wavedispersionds#
k, L, C, Cg = scientimate.wavedispersionds(h, T, Uc=0)
Description#
Solve water wave dispersion relation with presence of current (Doppler shift)
Calculate wave number (k), wave length (L), wave celereity (C), and wave group velocity (Cg) using linear wave theory
Inputs#
- h
Water depth in (m)
- T
- Wave period in (s)If peak wave frequency (Tp) is used, calculated values represent peak wave
- Uc=0
- Current velocity in (m/s), for Doppler shiftUc should have a same size as hNote: inputs can be as a single value or a 1-D vertical array
Outputs#
- k
Wave number in (radian/m)
- L
Wave length in (m)
- C
Wave celerity in (m/s)
- Cg
Wave group celerity in (m/s)
Examples#
import scientimate as sm
import numpy as np
k,L,C,Cg=sm.wavedispersionds(1,3,1)
k,L,C,Cg=sm.wavedispersionds([1,1.1],[3,3.1],[1,1])
k,L,C,Cg=sm.wavedispersionds(np.array([1,1.1]),np.array([3,3.1]),np.array([1,1]))