Struct CauchyStress6
pub struct CauchyStress6 {
pub components: [f64; 6],
}Expand description
Six-component symmetric Cauchy stress tensor in canonical QAC order:
[\sigma_{xx}, \sigma_{yy}, \sigma_{zz}, \sigma_{xy}, \sigma_{yz}, \sigma_{xz}] in Pascals (tensile-positive).
Fields§
§components: [f64; 6]Components [xx, yy, zz, xy, yz, xz] in Pa.
Implementations§
§impl CauchyStress6
impl CauchyStress6
pub const fn new(components: [f64; 6]) -> CauchyStress6
pub const fn new(components: [f64; 6]) -> CauchyStress6
Construct from [xx, yy, zz, xy, yz, xz] in Pa.
pub fn trace(&self) -> f64
pub fn trace(&self) -> f64
Stress trace $\operatorname{tr}(\boldsymbol{\sigma}) = \sigma_{xx} + \sigma_{yy} + \sigma_{zz}$ in Pa.
pub fn mechanical_pressure_pa(&self) -> f64
pub fn mechanical_pressure_pa(&self) -> f64
Mechanical compressive pressure $p = -\frac{1}{3}\operatorname{tr}(\boldsymbol{\sigma})$ in Pa (C02-C04).
pub const fn to_matrix3(&self) -> [[f64; 3]; 3]
pub const fn to_matrix3(&self) -> [[f64; 3]; 3]
Convert to a full $3\times 3$ symmetric matrix.
pub fn from_symmetric_matrix3(m: [[f64; 3]; 3]) -> CauchyStress6
pub fn from_symmetric_matrix3(m: [[f64; 3]; 3]) -> CauchyStress6
Construct from a symmetric $3\times 3$ matrix.
pub fn traction_vector(&self, n: [f64; 3]) -> [f64; 3]
pub fn traction_vector(&self, n: [f64; 3]) -> [f64; 3]
Surface traction vector $\mathbf{t} = \boldsymbol{\sigma}\cdot\mathbf{n}$ on a boundary with unit normal $\mathbf{n}$.
pub fn project_free_surface_axis(&self, axis: usize) -> CauchyStress6
pub fn project_free_surface_axis(&self, axis: usize) -> CauchyStress6
Enforce free-surface vacuum boundary ($\boldsymbol{\sigma}\cdot\mathbf{n} = \mathbf{0}$) along an axis-aligned normal
(axis = 0 for $x$, 1 for $y$, 2 for $z$).
pub fn project_fluid_interface_axis(
&self,
axis: usize,
p_fluid_pa: f64,
) -> CauchyStress6
pub fn project_fluid_interface_axis( &self, axis: usize, p_fluid_pa: f64, ) -> CauchyStress6
Enforce fluid-solid interface traction condition for a fluid with acoustic pressure p_fluid_pa
along an axis-aligned normal (axis = 0, 1, 2):
normal stress $\sigma_{nn} = -p_{\text{fluid}}$, tangential shear stresses $\sigma_{nt} = 0$.
pub fn principal_invariants(&self) -> (f64, f64, f64)
pub fn principal_invariants(&self) -> (f64, f64, f64)
Principal invariants $(I_1, I_2, I_3)$ of the Cauchy stress tensor, which remain invariant under any proper orthogonal rotation $\mathbf{R}\boldsymbol{\sigma}\mathbf{R}^T$.
Trait Implementations§
§impl Clone for CauchyStress6
impl Clone for CauchyStress6
§fn clone(&self) -> CauchyStress6
fn clone(&self) -> CauchyStress6
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 CauchyStress6
§impl Debug for CauchyStress6
impl Debug for CauchyStress6
Source§impl From<CauchyStress6> for CauchyStress6
impl From<CauchyStress6> for CauchyStress6
Source§fn from(s: ProfileCauchyStress6) -> Self
fn from(s: ProfileCauchyStress6) -> Self
Source§impl From<CauchyStress6> for CauchyStress6
impl From<CauchyStress6> for CauchyStress6
Source§fn from(s: NumericalCauchyStress6) -> Self
fn from(s: NumericalCauchyStress6) -> Self
§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>,
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