Struct ElasticMedium
pub struct ElasticMedium {
pub density_kg_m3: f64,
pub bulk_modulus_pa: f64,
pub shear_modulus_pa: f64,
pub material_ref: u32,
}Expand description
Isotropic linear elastic solid (or explicit $\mu=0$ fluid-limit) medium parameters (Schema 200).
Fields§
§density_kg_m3: f64Mass density $\rho > 0$ in $\text{kg}\cdot\text{m}^{-3}$.
bulk_modulus_pa: f64Bulk modulus $K > 0$ in $\text{Pa}$.
shear_modulus_pa: f64Shear modulus $\mu \ge 0$ in $\text{Pa}$ ($\mu > 0$ for solid; $\mu = 0$ fluid limit).
material_ref: u32Material reference ID.
Implementations§
§impl ElasticMedium
impl ElasticMedium
pub fn new_solid(
density_kg_m3: f64,
bulk_modulus_pa: f64,
shear_modulus_pa: f64,
material_ref: u32,
) -> Result<ElasticMedium, NumericalError>
pub fn new_solid( density_kg_m3: f64, bulk_modulus_pa: f64, shear_modulus_pa: f64, material_ref: u32, ) -> Result<ElasticMedium, NumericalError>
Construct and validate an isotropic linear elastic solid ($\mu > 0$).
pub fn new_fluid_limit(
density_kg_m3: f64,
bulk_modulus_pa: f64,
material_ref: u32,
) -> Result<ElasticMedium, NumericalError>
pub fn new_fluid_limit( density_kg_m3: f64, bulk_modulus_pa: f64, material_ref: u32, ) -> Result<ElasticMedium, NumericalError>
Construct the explicitly admitted $\mu = 0$ fluid limit of the elastic equations (C02-C06).
pub 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}$. Note (C02-C06): negative $\lambda$ is physically admissible when $K > 0$ and $\mu > 0$.
pub fn p_wave_modulus_pa(&self) -> f64
pub fn p_wave_modulus_pa(&self) -> f64
Longitudinal / P-wave modulus $M = \lambda + 2\mu = K + \frac{4}{3}\mu$ in $\text{Pa}$.
pub fn p_wave_speed_m_s(&self) -> f64
pub fn p_wave_speed_m_s(&self) -> f64
Compressional (P-wave) phase speed $c_P = \sqrt{(K + \frac{4}{3}\mu)/\rho}$ in $\text{m}\cdot\text{s}^{-1}$.
pub fn s_wave_speed_m_s(&self) -> f64
pub fn s_wave_speed_m_s(&self) -> f64
Shear (S-wave) phase speed $c_S = \sqrt{\mu/\rho}$ in $\text{m}\cdot\text{s}^{-1}$.
pub fn p_wave_impedance_rayl(&self) -> f64
pub fn p_wave_impedance_rayl(&self) -> f64
Longitudinal acoustic impedance $Z_P = \rho c_P = \sqrt{\rho(K + \frac{4}{3}\mu)}$ in Rayl.
pub fn s_wave_impedance_rayl(&self) -> f64
pub fn s_wave_impedance_rayl(&self) -> f64
Shear acoustic impedance $Z_S = \rho c_S = \sqrt{\rho \mu}$ in Rayl.
pub fn stress_from_tensor_strain(&self, strain: &TensorStrain6) -> CauchyStress6
pub fn stress_from_tensor_strain(&self, strain: &TensorStrain6) -> CauchyStress6
Evaluate isotropic Hooke’s law $\boldsymbol{\sigma} = \lambda\operatorname{tr}(\boldsymbol{\varepsilon})\mathbf{I} + 2\mu\boldsymbol{\varepsilon}$ from tensor small strain $(\varepsilon_{xx},\varepsilon_{yy},\varepsilon_{zz},\varepsilon_{xy},\varepsilon_{yz},\varepsilon_{xz})$.
pub fn energy_density_j_m3(
&self,
stress: &CauchyStress6,
strain: &TensorStrain6,
v: [f64; 3],
) -> f64
pub fn energy_density_j_m3( &self, stress: &CauchyStress6, strain: &TensorStrain6, v: [f64; 3], ) -> f64
Elastic strain + kinetic energy density $e = \frac{1}{2}\rho|\mathbf{v}|^2 + \frac{1}{2}\boldsymbol{\sigma}:\boldsymbol{\varepsilon}$ in $\text{J}\cdot\text{m}^{-3}$.
Trait Implementations§
§impl Clone for ElasticMedium
impl Clone for ElasticMedium
§fn clone(&self) -> ElasticMedium
fn clone(&self) -> ElasticMedium
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ElasticMedium
§impl Debug for ElasticMedium
impl Debug for ElasticMedium
§impl PartialEq for ElasticMedium
impl PartialEq for ElasticMedium
impl StructuralPartialEq for ElasticMedium
Auto Trait Implementations§
impl Freeze for ElasticMedium
impl RefUnwindSafe for ElasticMedium
impl Send for ElasticMedium
impl Sync for ElasticMedium
impl Unpin for ElasticMedium
impl UnsafeUnpin for ElasticMedium
impl UnwindSafe for ElasticMedium
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