pub struct ElasticityTensor {
pub c: Matrix6<f64>,
}Expand description
General anisotropic elasticity tensor (6×6 Voigt).
Fields§
§c: Matrix6<f64>Full 6×6 stiffness matrix in Voigt notation
Implementations§
Source§impl ElasticityTensor
impl ElasticityTensor
Sourcepub fn orthotropic(
e1: f64,
e2: f64,
e3: f64,
nu12: f64,
nu13: f64,
nu23: f64,
g12: f64,
g13: f64,
g23: f64,
) -> Self
pub fn orthotropic( e1: f64, e2: f64, e3: f64, nu12: f64, nu13: f64, nu23: f64, g12: f64, g13: f64, g23: f64, ) -> Self
Create an orthotropic material from 9 independent constants.
Sourcepub fn stress_from_strain(&self, strain_voigt: &Vector6<f64>) -> Vector6<f64>
pub fn stress_from_strain(&self, strain_voigt: &Vector6<f64>) -> Vector6<f64>
Compute stress from strain (Voigt vectors).
Sourcepub fn compliance(&self) -> Option<Matrix6<f64>>
pub fn compliance(&self) -> Option<Matrix6<f64>>
Compliance matrix (inverse of stiffness).
Trait Implementations§
Source§impl Clone for ElasticityTensor
impl Clone for ElasticityTensor
Source§fn clone(&self) -> ElasticityTensor
fn clone(&self) -> ElasticityTensor
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 moreSource§impl Debug for ElasticityTensor
impl Debug for ElasticityTensor
Source§impl<'de> Deserialize<'de> for ElasticityTensor
impl<'de> Deserialize<'de> for ElasticityTensor
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
Auto Trait Implementations§
impl Freeze for ElasticityTensor
impl RefUnwindSafe for ElasticityTensor
impl Send for ElasticityTensor
impl Sync for ElasticityTensor
impl Unpin for ElasticityTensor
impl UnsafeUnpin for ElasticityTensor
impl UnwindSafe for ElasticityTensor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.