Continuous Spectrums

WaveSpec.ContinuousSpectrums.BretschneiderType
Bretschneider(Hs, Tp)

Creates a Bretschneider spectrum instance (also known as a Modified Pierson-Moskowitz). - Hs: Significant wave height (m) - Tp: Peak period (s)

The Bretschneider spectrum is self-normalizing and follows an f⁻⁵ slope.

source
WaveSpec.ContinuousSpectrums.DonelanType
Donelan(Hs, Tp, U10)

Creates a Donelan spectrum instance. - Hs: Significant wave height (m) - Tp: Peak period (s) - U10: Wind speed at 10m height (m/s)

The Donelan spectrum follows an f⁻⁴ slope in the high-frequency equilibrium range.

source
WaveSpec.ContinuousSpectrums.JONSWAPType
JONSWAP(Hs, Tp, γ=nothing)

Creates a JONSWAP (JOint North Sea WAve Project) spectrum instance with given: - significant wave height Hs (m) -> Average height of the highest third of waves - peak period Tp (s) -> Period of waves with the most energy - optional peak enhancement factor γ -> Controls the sharpness/height of the spectrum's peak, If γ is not provided, estimated based on Hs and Tp.

source
WaveSpec.ContinuousSpectrums.TMAType
TMA(Hs, Tp, h, γ=nothing)

The TMA spectrum (Texel-Marsen-Arsloe) is a shallow-water extension of the JONSWAP spectrum (mathematically defined as a JONSWAP spectrum multiplied by the Kitaigorodskii factor Φ(f, h) ). The Φ function is essentially a depth-scaling law that describes how the equilibrium range of the spectrum (the high-frequency tail) is limited by water depth. In this model we will be implementing a Kitaigorodskii factor (Kitaigorodskii et al. (1975)) approximation.

source
WaveSpec.ContinuousSpectrums.get_fmaxMethod
get_fmax(s::AbstractSpectrum; multiplier=5.0)

Returns a recommended maximum frequency for numerical integration based on the peak frequency: fmax = multiplier * fp. According to literature, fmax between 3 to 5 times fp is sufficient to capture more than 99% of the energy.

source
WaveSpec.ContinuousSpectrums.integrateMethod
integrate(s::AbstractSpectrum, fmin, fmax; npoints, method=:symbol, order)

Returns the numeric integral of the spectrum between fmin and fmax, using npoints-1 bins and the selected method of integration

source