Skip to main content

CdmDamage

Struct CdmDamage 

Source
pub struct CdmDamage {
    pub d: f64,
    pub eps0: f64,
    pub eps_f: f64,
    pub param: f64,
    pub law: DamageEvolutionLaw,
    pub kappa: f64,
}
Expand description

General CDM model with selectable damage evolution law.

Tracks a scalar damage variable D that degrades effective stress and stiffness according to the principle of strain equivalence.

Fields§

§d: f64

Current damage variable D ∈ [0, 1].

§eps0: f64

Damage initiation strain ε_0.

§eps_f: f64

Failure strain ε_f (used in linear and power-law).

§param: f64

Evolution rate parameter (exponential: a, power-law: n).

§law: DamageEvolutionLaw

The damage evolution law to use.

§kappa: f64

Maximum historical equivalent strain (for irreversibility).

Implementations§

Source§

impl CdmDamage

Source

pub fn new(eps0: f64, eps_f: f64, param: f64, law: DamageEvolutionLaw) -> Self

Create a new CDM damage model.

§Arguments
  • eps0 - Damage initiation strain
  • eps_f - Failure strain (for Linear/PowerLaw)
  • param - Rate parameter (exponential: a, power-law exponent: n)
  • law - Which evolution law to use
Source

pub fn update(&mut self, equivalent_strain: f64)

Update damage based on current equivalent strain.

Damage only increases (irreversibility via internal variable κ).

Source

pub fn effective_stiffness(&self, young_modulus: f64) -> f64

Effective stiffness: E_eff = (1 - D) * E.

Source

pub fn effective_stress(&self, nominal_stress: f64) -> f64

Effective stress: σ_eff = σ / (1 - D).

Source

pub fn compute_localization_indicator( &self, young_modulus: f64, poisson_ratio: f64, ) -> f64

Compute the strain localization indicator based on acoustic tensor analysis.

In continuum damage mechanics, strain localization (shear band initiation) occurs when the acoustic tensor Q(n) becomes singular. The indicator is:

L = D * E / ((1-D)² * (1 - 2ν) * (1 + ν) / (3*(1-ν)))

or more precisely the determinant-like measure derived from the damaged tangent modulus. Here we use a practical scalar indicator:

L = D / ((1-D)² + ε_reg)

scaled by the ratio of shear to bulk modulus terms for 3D isotropy.

§Arguments
  • young_modulus - Undamaged Young’s modulus E [Pa]
  • poisson_ratio - Poisson’s ratio ν (0 ≤ ν < 0.5)
§Returns

Localization indicator L (dimensionless, positive; → ∞ near full damage)

Trait Implementations§

Source§

impl Clone for CdmDamage

Source§

fn clone(&self) -> CdmDamage

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CdmDamage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.