pub struct PowerLawAcousticAttenuation {
pub omega_0_rad_s: f64,
pub c_0_m_per_s: f64,
pub alpha_0_np_per_m_rad_s_y: f64,
pub exponent_y: f64,
}Expand description
Power-law acoustic attenuation & Kramers-Kronig causal dispersion model (Szabo / Waters law): $\alpha(\omega) = \alpha_0 |\omega|^y$ ($\text{Np}\cdot\text{m}^{-1}$).
Fields§
§omega_0_rad_s: f64Reference angular frequency $\omega_0 > 0$ ($\text{rad}\cdot\text{s}^{-1}$).
c_0_m_per_s: f64Phase speed $c(\omega_0) > 0$ at reference frequency ($\text{m}\cdot\text{s}^{-1}$).
alpha_0_np_per_m_rad_s_y: f64Power-law prefactor $\alpha_0 \ge 0$ in $\text{Np}\cdot\text{m}^{-1}\cdot(\text{rad/s})^{-y}$.
exponent_y: f64Power-law exponent $y \in (0, 2]$.
Implementations§
Source§impl PowerLawAcousticAttenuation
impl PowerLawAcousticAttenuation
pub fn validate(&self) -> Result<(), AcousticCouplingError>
Sourcepub fn attenuation_np_per_m(
&self,
omega_rad_s: f64,
) -> Result<f64, AcousticCouplingError>
pub fn attenuation_np_per_m( &self, omega_rad_s: f64, ) -> Result<f64, AcousticCouplingError>
Attenuation $\alpha(\omega) = \alpha_0 \omega^y$ in $\text{Np}\cdot\text{m}^{-1}$.
Sourcepub fn phase_velocity_m_per_s(
&self,
omega_rad_s: f64,
) -> Result<f64, AcousticCouplingError>
pub fn phase_velocity_m_per_s( &self, omega_rad_s: f64, ) -> Result<f64, AcousticCouplingError>
Kramers-Kronig causal phase velocity $c(\omega)$ in $\text{m}\cdot\text{s}^{-1}$:
- For $y = 1$: $\frac{1}{c(\omega)} = \frac{1}{c(\omega_0)} - \frac{2\alpha_0}{\pi}\ln\left(\frac{\omega}{\omega_0}\right)$
- For $y \ne 1, y < 2$: $\frac{1}{c(\omega)} = \frac{1}{c(\omega_0)} + \alpha_0 \tan\left(\frac{\pi y}{2}\right)\left(\omega^{y-1} - \omega_0^{y-1}\right)$
- For $y = 2$ (thermoviscous Stokes limit): nondispersive to leading order, $c(\omega) = c(\omega_0)$.
Trait Implementations§
Source§impl Clone for PowerLawAcousticAttenuation
impl Clone for PowerLawAcousticAttenuation
impl Copy for PowerLawAcousticAttenuation
Source§impl Debug for PowerLawAcousticAttenuation
impl Debug for PowerLawAcousticAttenuation
impl StructuralPartialEq for PowerLawAcousticAttenuation
Auto Trait Implementations§
impl Freeze for PowerLawAcousticAttenuation
impl RefUnwindSafe for PowerLawAcousticAttenuation
impl Send for PowerLawAcousticAttenuation
impl Sync for PowerLawAcousticAttenuation
impl Unpin for PowerLawAcousticAttenuation
impl UnsafeUnpin for PowerLawAcousticAttenuation
impl UnwindSafe for PowerLawAcousticAttenuation
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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