pub struct PyDamageMaterial {
pub critical_energy_release: f64,
pub softening_slope: f64,
pub undamaged_modulus: f64,
}Expand description
Continuum damage mechanics material (isotropic scalar damage).
Fields§
§critical_energy_release: f64Critical strain energy release rate G_c (J/m³).
softening_slope: f64Softening slope (negative, in Pa per unit damage).
undamaged_modulus: f64Undamaged Young’s modulus E₀ (Pa).
Implementations§
Source§impl PyDamageMaterial
impl PyDamageMaterial
Sourcepub fn new(
critical_energy_release: f64,
softening_slope: f64,
undamaged_modulus: f64,
) -> Self
pub fn new( critical_energy_release: f64, softening_slope: f64, undamaged_modulus: f64, ) -> Self
Create a new damage material.
Sourcepub fn damage_variable(&self, strain_energy: f64) -> f64
pub fn damage_variable(&self, strain_energy: f64) -> f64
Scalar damage variable d ∈ [0, 1] for a given strain energy density.
d = 0 → undamaged; d = 1 → fully failed.
Sourcepub fn effective_modulus(&self, strain_energy: f64) -> f64
pub fn effective_modulus(&self, strain_energy: f64) -> f64
Effective (damaged) stiffness E_eff = (1 − d) E₀.
Trait Implementations§
Source§impl Clone for PyDamageMaterial
impl Clone for PyDamageMaterial
Source§fn clone(&self) -> PyDamageMaterial
fn clone(&self) -> PyDamageMaterial
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 PyDamageMaterial
impl Debug for PyDamageMaterial
Source§impl Default for PyDamageMaterial
impl Default for PyDamageMaterial
Source§impl<'de> Deserialize<'de> for PyDamageMaterial
impl<'de> Deserialize<'de> for PyDamageMaterial
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 PyDamageMaterial
impl RefUnwindSafe for PyDamageMaterial
impl Send for PyDamageMaterial
impl Sync for PyDamageMaterial
impl Unpin for PyDamageMaterial
impl UnsafeUnpin for PyDamageMaterial
impl UnwindSafe for PyDamageMaterial
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.