Crate jonswap

Source

Structs§

JonswapSpectrum
Jonswap spectrum

Constants§

PI
TWOPI

Functions§

freq_domain
Return an array of angular frequencies [rd/s] from w1 to w2, of size length.
gamma
Return gamma factor for a JONSWAP spectrum according to DNV
jonswap
Return JONSWAP spectrum.
jonswap_component_amplitude
Return the amplitude of a sinusoidal signal for each frequency component of a discretizes spectrum.
jonswap_is_valid
Return true is hs and tp are within a valid range for a JONSWAP spectrum
period_domain
Returns an array of periods [s] corresponding to the angular frequencies from the array w.
phases
Return randomised phases between -PI and PI
pierson_moskowitz
Return Pierson Moskowitz spectrum.
spectral_moment
Return the n-th spectral moment.
time_domain
Return an array of times domain [s] to be used to calculate the wave elevation.
wave_elevation
Return an array of times domain [s] to be used to calculate the wave elevation.