pub enum PlaneMaterial {
ElasticMatrix {
d: [f64; 6],
},
Orthotropic {
ex: f64,
ey: f64,
nu_xy: f64,
g_xy: f64,
angle: f64,
},
PlaneStress {
e: f64,
nu: f64,
},
PlaneStrain {
e: f64,
nu: f64,
},
}Variants§
ElasticMatrix
A general symmetric D, given as the packed upper triangle row by
row: [d11, d12, d13, d22, d23, d33], with respect to the
engineering-shear strain vector.
Orthotropic
Orthotropic plane stress. angle is the counter-clockwise angle in
radians from global x to material axis 1; nu_xy is the major
Poisson ratio (strain in axis 2 per strain in axis 1, loading along 1).
PlaneStress
Isotropic plane stress (sigma_z = 0).
PlaneStrain
Isotropic plane strain (eps_z = 0).
Implementations§
Source§impl PlaneMaterial
impl PlaneMaterial
Sourcepub fn plane_stress(e: f64, nu: f64) -> Result<Self, PlaneMaterialError>
pub fn plane_stress(e: f64, nu: f64) -> Result<Self, PlaneMaterialError>
Isotropic plane stress; e > 0 and -1 < nu < 1.
Sourcepub fn plane_strain(e: f64, nu: f64) -> Result<Self, PlaneMaterialError>
pub fn plane_strain(e: f64, nu: f64) -> Result<Self, PlaneMaterialError>
Isotropic plane strain; e > 0 and -1 < nu < 0.5.
Sourcepub fn orthotropic(
ex: f64,
ey: f64,
nu_xy: f64,
g_xy: f64,
angle: f64,
) -> Result<Self, PlaneMaterialError>
pub fn orthotropic( ex: f64, ey: f64, nu_xy: f64, g_xy: f64, angle: f64, ) -> Result<Self, PlaneMaterialError>
Orthotropic plane stress; positive moduli and nu_xy^2 < ex / ey.
Sourcepub fn elastic_matrix(d: [f64; 6]) -> Result<Self, PlaneMaterialError>
pub fn elastic_matrix(d: [f64; 6]) -> Result<Self, PlaneMaterialError>
A general symmetric positive-definite D (packed upper triangle).
Sourcepub fn validate(&self) -> Result<(), PlaneMaterialError>
pub fn validate(&self) -> Result<(), PlaneMaterialError>
Checks the constants of a value built from the variants directly.
Sourcepub fn d_matrix(&self) -> PlaneMatrix
pub fn d_matrix(&self) -> PlaneMatrix
The constitutive matrix at the committed state (constant for every elastic variant).
Sourcepub fn trial_stress_tangent(
&self,
strain: &PlaneVector,
) -> (PlaneVector, PlaneMatrix)
pub fn trial_stress_tangent( &self, strain: &PlaneVector, ) -> (PlaneVector, PlaneMatrix)
Stress and tangent at strain, always relative to the committed state.
Sourcepub fn commit(&self, strain: &PlaneVector) -> Self
pub fn commit(&self, strain: &PlaneVector) -> Self
The new committed material after strain converged.
Trait Implementations§
Source§impl Clone for PlaneMaterial
impl Clone for PlaneMaterial
Source§fn clone(&self) -> PlaneMaterial
fn clone(&self) -> PlaneMaterial
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PlaneMaterial
impl Debug for PlaneMaterial
Source§impl PartialEq for PlaneMaterial
impl PartialEq for PlaneMaterial
impl StructuralPartialEq for PlaneMaterial
Auto Trait Implementations§
impl Freeze for PlaneMaterial
impl RefUnwindSafe for PlaneMaterial
impl Send for PlaneMaterial
impl Sync for PlaneMaterial
impl Unpin for PlaneMaterial
impl UnsafeUnpin for PlaneMaterial
impl UnwindSafe for PlaneMaterial
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.