pub struct CauchyStress6 {
pub xx_yy_zz_xy_yz_xz_pa: [f64; 6],
}Expand description
Six-component symmetric Cauchy stress tensor ([xx, yy, zz, xy, yz, xz], tensile-positive) per C02-C04 / QAC Mode 01.
Fields§
§xx_yy_zz_xy_yz_xz_pa: [f64; 6]Implementations§
Source§impl CauchyStress6
impl CauchyStress6
Sourcepub fn from_isotropic_strain(
medium: &ContinuumMedium,
strain: &TensorStrain6,
) -> Self
pub fn from_isotropic_strain( medium: &ContinuumMedium, strain: &TensorStrain6, ) -> Self
Compute isotropic Cauchy stress from tensor strain: $\sigma_{ij} = \lambda \operatorname{tr}(\varepsilon)\delta_{ij} + 2\mu \varepsilon_{ij}$.
Sourcepub fn trace_pa(&self) -> f64
pub fn trace_pa(&self) -> f64
Trace $\operatorname{tr}(\sigma) = \sigma_{xx} + \sigma_{yy} + \sigma_{zz}$ in $\text{Pa}$.
Sourcepub fn mechanical_pressure_pa(&self) -> f64
pub fn mechanical_pressure_pa(&self) -> f64
Mechanical hydrostatic pressure $p = -\frac{1}{3}\operatorname{tr}(\sigma)$ in $\text{Pa}$ (compressive-positive).
Sourcepub fn from_matrix(m: &[[f64; 3]; 3]) -> Self
pub fn from_matrix(m: &[[f64; 3]; 3]) -> Self
Construct from a $3\times 3$ symmetric matrix.
Sourcepub fn rotate_to_parent(&self, rot: &ActiveHamiltonRotation) -> Self
pub fn rotate_to_parent(&self, rot: &ActiveHamiltonRotation) -> Self
Rotate stress tensor into parent frame via $R(q),\sigma,R(q)^T$ per C02-C04.
Trait Implementations§
Source§impl Clone for CauchyStress6
impl Clone for CauchyStress6
impl Copy for CauchyStress6
Source§impl Debug for CauchyStress6
impl Debug for CauchyStress6
Source§impl Default for CauchyStress6
impl Default for CauchyStress6
Source§impl PartialEq for CauchyStress6
impl PartialEq for CauchyStress6
impl StructuralPartialEq for CauchyStress6
Auto Trait Implementations§
impl Freeze for CauchyStress6
impl RefUnwindSafe for CauchyStress6
impl Send for CauchyStress6
impl Sync for CauchyStress6
impl Unpin for CauchyStress6
impl UnsafeUnpin for CauchyStress6
impl UnwindSafe for CauchyStress6
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.