pub struct PyPlasticMaterial {
pub yield_stress: f64,
pub hardening_modulus: f64,
pub youngs_modulus: f64,
}Expand description
Elastoplastic material with linear isotropic hardening (von Mises).
Fields§
§yield_stress: f64Initial yield stress σ_y (Pa).
hardening_modulus: f64Isotropic hardening modulus H (Pa).
youngs_modulus: f64Young’s modulus E (Pa) — needed for elastic predictor.
Implementations§
Source§impl PyPlasticMaterial
impl PyPlasticMaterial
Sourcepub fn new(
yield_stress: f64,
hardening_modulus: f64,
youngs_modulus: f64,
) -> Self
pub fn new( yield_stress: f64, hardening_modulus: f64, youngs_modulus: f64, ) -> Self
Create a new plastic material.
Sourcepub fn yield_function(
&self,
equivalent_stress: f64,
accumulated_plastic_strain: f64,
) -> f64
pub fn yield_function( &self, equivalent_stress: f64, accumulated_plastic_strain: f64, ) -> f64
Von Mises yield function f(σ_eq, α) = σ_eq − (σ_y + H α).
Returns a positive value when yielding; zero or negative when elastic.
Sourcepub fn current_yield_stress(&self, accumulated_plastic_strain: f64) -> f64
pub fn current_yield_stress(&self, accumulated_plastic_strain: f64) -> f64
Current yield stress given the accumulated plastic strain.
Trait Implementations§
Source§impl Clone for PyPlasticMaterial
impl Clone for PyPlasticMaterial
Source§fn clone(&self) -> PyPlasticMaterial
fn clone(&self) -> PyPlasticMaterial
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 PyPlasticMaterial
impl Debug for PyPlasticMaterial
Source§impl Default for PyPlasticMaterial
impl Default for PyPlasticMaterial
Source§impl<'de> Deserialize<'de> for PyPlasticMaterial
impl<'de> Deserialize<'de> for PyPlasticMaterial
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 PyPlasticMaterial
impl RefUnwindSafe for PyPlasticMaterial
impl Send for PyPlasticMaterial
impl Sync for PyPlasticMaterial
impl Unpin for PyPlasticMaterial
impl UnsafeUnpin for PyPlasticMaterial
impl UnwindSafe for PyPlasticMaterial
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.