pub struct Phillips1958 {
pub alpha: f64,
pub omega: Array1<f64>,
}Expand description
The Phillips high-frequency tail
The Phillips spectrum is an early generational wave spectrum that principally captures the energy distribution in the high-frequency spectral tail. Its canonical form1 is:
$$ S(\omega) = \frac{\alpha g^2}{\omega^5} $$
where $\alpha=0.0081$ denotes the Phillips constant and $g$ is the acceleration due to gravity.
§Fields
alpha- the Phillips constant (default: 0.0081)omega- frequency range [rad/s]
§Methods
energy- calculate the energy density spectrumf_hz- return the frequency space in [Hz]to_spec1d- convert to aSpectrum1typeto_spec2d- convert to aSpectrum2type for a givenSpreadingtype
§References
O. M. Phillips, The equilibrium range in the spectrum of wind-generated waves, Journal of Fluid Mechanics, vol. 4, no. 4, pp. 426 434, 1958, doi: 10.1017/S0022112058000550. ↩
Fields§
§alpha: f64§omega: Array1<f64>Implementations§
Source§impl Phillips1958
impl Phillips1958
Trait Implementations§
Source§impl Default for Phillips1958
impl Default for Phillips1958
Source§impl SpectralCommon for Phillips1958
impl SpectralCommon for Phillips1958
Source§fn abs_error(&self) -> Result<f64, String>
fn abs_error(&self) -> Result<f64, String>
calculate the absolute error between the significant wave height and the integrated energy
Source§fn to_spec1d(&self) -> Spectrum1D
fn to_spec1d(&self) -> Spectrum1D
convert the spectrum to a 1D spectrum Type
Source§fn to_spec2d(&self, spreading: &Spreading) -> Spectrum2D
fn to_spec2d(&self, spreading: &Spreading) -> Spectrum2D
convert the spectrum to a 2D spectrum Type for a given spreading Type
Auto Trait Implementations§
impl Freeze for Phillips1958
impl RefUnwindSafe for Phillips1958
impl Send for Phillips1958
impl Sync for Phillips1958
impl Unpin for Phillips1958
impl UnsafeUnpin for Phillips1958
impl UnwindSafe for Phillips1958
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more