pub struct StrainTensor {
pub components: [f64; 6],
}Expand description
Symmetric strain tensor (6 independent components, Voigt notation).
Components: [εxx, εyy, εzz, γxy, γyz, γxz] where γ = engineering shear strain (γ = 2ε_ij for shear components).
Fields§
§components: [f64; 6]Implementations§
Source§impl StrainTensor
impl StrainTensor
Sourcepub fn new(exx: f64, eyy: f64, ezz: f64, gxy: f64, gyz: f64, gxz: f64) -> Self
pub fn new(exx: f64, eyy: f64, ezz: f64, gxy: f64, gyz: f64, gxz: f64) -> Self
Create from individual components (engineering shear strain convention).
Sourcepub fn volumetric(&self) -> f64
pub fn volumetric(&self) -> f64
Volumetric strain: ε_vol = εxx + εyy + εzz
Sourcepub fn deviatoric(&self) -> Self
pub fn deviatoric(&self) -> Self
Deviatoric strain tensor.
Sourcepub fn effective_strain(&self) -> f64
pub fn effective_strain(&self) -> f64
Von Mises equivalent strain.
ε_eq = sqrt(2/3 * (e_xx² + e_yy² + e_zz² + γxy²/2 + γyz²/2 + γxz²/2)) where e_ij are deviatoric strain components.
Trait Implementations§
Source§impl Add for StrainTensor
impl Add for StrainTensor
Source§impl Clone for StrainTensor
impl Clone for StrainTensor
Source§fn clone(&self) -> StrainTensor
fn clone(&self) -> StrainTensor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StrainTensor
impl Debug for StrainTensor
Source§impl Default for StrainTensor
impl Default for StrainTensor
Source§impl<'de> Deserialize<'de> for StrainTensor
impl<'de> Deserialize<'de> for StrainTensor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for StrainTensor
impl Display for StrainTensor
Source§impl Mul<f64> for StrainTensor
impl Mul<f64> for StrainTensor
Source§impl PartialEq for StrainTensor
impl PartialEq for StrainTensor
Source§impl Serialize for StrainTensor
impl Serialize for StrainTensor
Source§impl Sub for StrainTensor
impl Sub for StrainTensor
impl Copy for StrainTensor
impl StructuralPartialEq for StrainTensor
Auto Trait Implementations§
impl Freeze for StrainTensor
impl RefUnwindSafe for StrainTensor
impl Send for StrainTensor
impl Sync for StrainTensor
impl Unpin for StrainTensor
impl UnsafeUnpin for StrainTensor
impl UnwindSafe for StrainTensor
Blanket Implementations§
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