pub struct CauchyStress6 {
pub xx: f64,
pub yy: f64,
pub zz: f64,
pub xy: f64,
pub yz: f64,
pub xz: f64,
}Expand description
Symmetric 6-component Cauchy stress tensor in Pa (tensile-positive).
Fields§
§xx: f64§yy: f64§zz: f64§xy: f64§yz: f64§xz: f64Implementations§
Source§impl CauchyStress6
impl CauchyStress6
pub const ZERO: Self
pub fn from_wire_f32(s: [f32; 6]) -> Self
pub fn to_wire_f32(self) -> [f32; 6]
Sourcepub fn hydrostatic_pressure_pa(self) -> f64
pub fn hydrostatic_pressure_pa(self) -> f64
Mechanical pressure p = -trace(sigma) / 3 under tensile-positive sign convention.
pub fn deviatoric(self) -> Self
Sourcepub fn rotate(self, q: &QuaternionXyzw) -> Self
pub fn rotate(self, q: &QuaternionXyzw) -> Self
Active frame rotation R * sigma * R^T.
Sourcepub fn traction_pa(self, n: [f64; 3]) -> [f64; 3]
pub fn traction_pa(self, n: [f64; 3]) -> [f64; 3]
Traction vector t = sigma * n acting on surface with outward unit normal n.
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 From<CauchyStress6> for CauchyStress6
impl From<CauchyStress6> for CauchyStress6
Source§fn from(s: ProfileCauchyStress6) -> Self
fn from(s: ProfileCauchyStress6) -> Self
Converts to this type from the input type.
Source§impl From<CauchyStress6> for CauchyStress6
impl From<CauchyStress6> for CauchyStress6
Source§fn from(s: NumericalCauchyStress6) -> Self
fn from(s: NumericalCauchyStress6) -> Self
Converts to this type from the input type.
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