pub struct ContinuumMedium {
pub kind: MediumKind,
pub density_kg_per_m3: f64,
pub bulk_modulus_pa: f64,
pub shear_modulus_pa: f64,
pub ambient_pressure_pa: f64,
pub flow_velocity_m_per_s: [f64; 3],
}Expand description
Validated fluid or isotropic elastic continuum medium (QAC Schema 200).
Fields§
§kind: MediumKind§density_kg_per_m3: f64Mass density $\rho > 0$ in $\text{kg}\cdot\text{m}^{-3}$.
bulk_modulus_pa: f64Adiabatic bulk modulus $K > 0$ in $\text{Pa}$.
shear_modulus_pa: f64Shear modulus $\mu \ge 0$ in $\text{Pa}$ ($\mu = 0$ for Fluid, $\mu > 0$ for IsotropicSolid).
ambient_pressure_pa: f64Ambient static pressure $p_0$ in $\text{Pa}$.
flow_velocity_m_per_s: [f64; 3]Stationary background flow velocity $\mathbf{v}_0$ in $\text{m}\cdot\text{s}^{-1}$ (zero for initial stationary solvers).
Implementations§
Source§impl ContinuumMedium
impl ContinuumMedium
Sourcepub fn new_fluid(
density_kg_per_m3: f64,
bulk_modulus_pa: f64,
ambient_pressure_pa: f64,
) -> Result<Self, AcousticCouplingError>
pub fn new_fluid( density_kg_per_m3: f64, bulk_modulus_pa: f64, ambient_pressure_pa: f64, ) -> Result<Self, AcousticCouplingError>
Admit a fluid medium ($\rho > 0, K > 0, \mu = 0$). Rejects $\rho \le 0$ (vacuum is never $\rho = 0$).
Sourcepub fn new_isotropic_solid(
density_kg_per_m3: f64,
bulk_modulus_pa: f64,
shear_modulus_pa: f64,
ambient_pressure_pa: f64,
) -> Result<Self, AcousticCouplingError>
pub fn new_isotropic_solid( density_kg_per_m3: f64, bulk_modulus_pa: f64, shear_modulus_pa: f64, ambient_pressure_pa: f64, ) -> Result<Self, AcousticCouplingError>
Admit an isotropic elastic solid medium ($\rho > 0, K > 0, \mu > 0$). Note per C02-C06: negative Lamé $\lambda = K - \frac{2}{3}\mu$ is admissible when $K > 0$ and $\mu > 0$.
Sourcepub fn from_m64_lut_entry(
entry: &Q42ConstituentLutEntry,
) -> Result<Self, AcousticCouplingError>
pub fn from_m64_lut_entry( entry: &Q42ConstituentLutEntry, ) -> Result<Self, AcousticCouplingError>
Construct from an .m64 Q42ConstituentLutEntry.
Converts Young’s modulus $E$ ($\text{MPa}$) and Poisson’s ratio $\nu$ (or $c_P$ for fluids when $\nu = 0.50$).
Sourcepub fn from_m64_strata_record(
strata: &M64StrataColumnRecord,
bulk_density_kg_per_m3: f64,
) -> Result<Self, AcousticCouplingError>
pub fn from_m64_strata_record( strata: &M64StrataColumnRecord, bulk_density_kg_per_m3: f64, ) -> Result<Self, AcousticCouplingError>
Construct an equivalent fluid/poroelastic P-wave medium from an .m64 M64StrataColumnRecord
and its referenced LUT grain density.
Sourcepub fn validate(&self) -> Result<(), AcousticCouplingError>
pub fn validate(&self) -> Result<(), AcousticCouplingError>
Validate physical bounds per C02-C06.
Sourcepub fn lame_lambda_pa(&self) -> f64
pub fn lame_lambda_pa(&self) -> f64
First Lamé parameter $\lambda = K - \frac{2}{3}\mu$ in $\text{Pa}$.
Sourcepub fn p_wave_modulus_pa(&self) -> f64
pub fn p_wave_modulus_pa(&self) -> f64
P-wave (plane-strain longitudinal) modulus $M = K + \frac{4}{3}\mu = \lambda + 2\mu$ in $\text{Pa}$.
Sourcepub fn longitudinal_speed_m_per_s(&self) -> f64
pub fn longitudinal_speed_m_per_s(&self) -> f64
Longitudinal (compressional P-wave) phase speed $c_P = \sqrt{\frac{K + \frac{4}{3}\mu}{\rho}}$ in $\text{m}\cdot\text{s}^{-1}$.
Sourcepub fn shear_speed_m_per_s(&self) -> f64
pub fn shear_speed_m_per_s(&self) -> f64
Transverse (shear S-wave) phase speed $c_S = \sqrt{\frac{\mu}{\rho}}$ in $\text{m}\cdot\text{s}^{-1}$ ($0$ for fluids).
Sourcepub fn characteristic_impedance_rayl(&self) -> f64
pub fn characteristic_impedance_rayl(&self) -> f64
Characteristic longitudinal acoustic impedance $Z_P = \rho c_P$ in $\text{Pa}\cdot\text{s}\cdot\text{m}^{-1}$ ($\text{Rayl}$).
Sourcepub fn shear_impedance_rayl(&self) -> f64
pub fn shear_impedance_rayl(&self) -> f64
Characteristic shear impedance $Z_S = \rho c_S$ in $\text{Pa}\cdot\text{s}\cdot\text{m}^{-1}$.
Trait Implementations§
Source§impl Clone for ContinuumMedium
impl Clone for ContinuumMedium
impl Copy for ContinuumMedium
Source§impl Debug for ContinuumMedium
impl Debug for ContinuumMedium
Source§impl PartialEq for ContinuumMedium
impl PartialEq for ContinuumMedium
impl StructuralPartialEq for ContinuumMedium
Auto Trait Implementations§
impl Freeze for ContinuumMedium
impl RefUnwindSafe for ContinuumMedium
impl Send for ContinuumMedium
impl Sync for ContinuumMedium
impl Unpin for ContinuumMedium
impl UnsafeUnpin for ContinuumMedium
impl UnwindSafe for ContinuumMedium
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>,
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
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> ⓘ
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> ⓘ
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