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 more