Struct TensorStrain6
pub struct TensorStrain6 {
pub components: [f64; 6],
}Expand description
Six-component symmetric small-strain tensor in canonical QAC order:
[\varepsilon_{xx}, \varepsilon_{yy}, \varepsilon_{zz}, \varepsilon_{xy}, \varepsilon_{yz}, \varepsilon_{xz}].
Off-diagonal components are true tensor shear strains $\varepsilon_{ij} = \frac{1}{2}(\partial_i u_j + \partial_j u_i)$, NOT engineering shear strains $\gamma_{ij} = 2\varepsilon_{ij}$ (C02-C04).
Fields§
§components: [f64; 6]Components [xx, yy, zz, xy, yz, xz].
Implementations§
§impl TensorStrain6
impl TensorStrain6
pub const fn new(components: [f64; 6]) -> TensorStrain6
pub const fn new(components: [f64; 6]) -> TensorStrain6
Construct from explicit tensor strain components [xx, yy, zz, xy, yz, xz].
pub fn from_engineering_voigt(v: [f64; 6]) -> TensorStrain6
pub fn from_engineering_voigt(v: [f64; 6]) -> TensorStrain6
Construct from engineering Voigt strain [exx, eyy, ezz, gamma_xy, gamma_yz, gamma_xz]
by halving the three engineering shear components ($\varepsilon_{ij} = \frac{1}{2}\gamma_{ij}$).
pub fn to_engineering_voigt(&self) -> [f64; 6]
pub fn to_engineering_voigt(&self) -> [f64; 6]
Convert to engineering Voigt strain [exx, eyy, ezz, 2*exy, 2*eyz, 2*exz].
Trait Implementations§
§impl Clone for TensorStrain6
impl Clone for TensorStrain6
§fn clone(&self) -> TensorStrain6
fn clone(&self) -> TensorStrain6
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TensorStrain6
§impl Debug for TensorStrain6
impl Debug for TensorStrain6
§impl PartialEq for TensorStrain6
impl PartialEq for TensorStrain6
impl StructuralPartialEq for TensorStrain6
Auto Trait Implementations§
impl Freeze for TensorStrain6
impl RefUnwindSafe for TensorStrain6
impl Send for TensorStrain6
impl Sync for TensorStrain6
impl Unpin for TensorStrain6
impl UnsafeUnpin for TensorStrain6
impl UnwindSafe for TensorStrain6
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