Skip to main content

CrackBandModel

Struct CrackBandModel 

Source
pub struct CrackBandModel {
    pub gf: f64,
    pub ft: f64,
    pub young_modulus: f64,
    pub h: f64,
    pub d: f64,
    pub kappa: f64,
}
Expand description

Crack band model for mesh-objective softening (Bažant & Oh 1983).

Regularizes strain-softening by relating the softening curve to fracture energy G_f and the element characteristic length h. This ensures mesh independence of the energy dissipation.

Fields§

§gf: f64

Fracture energy G_f (J/m² or N/m).

§ft: f64

Tensile strength f_t (Pa).

§young_modulus: f64

Young’s modulus E (Pa).

§h: f64

Characteristic element length h (m).

§d: f64

Current damage variable.

§kappa: f64

Maximum historical strain (for irreversibility).

Implementations§

Source§

impl CrackBandModel

Source

pub fn new(gf: f64, ft: f64, young_modulus: f64, h: f64) -> Self

Create a new crack band model.

The failure strain is computed as ε_f = 2*G_f / (f_t * h).

Source

pub fn initiation_strain(&self) -> f64

Damage initiation strain: ε_0 = f_t / E.

Source

pub fn failure_strain(&self) -> f64

Failure strain: ε_f = 2*G_f / (f_t * h).

This ensures the correct fracture energy is dissipated regardless of element size.

Source

pub fn has_snapback(&self) -> bool

Check snap-back condition: ε_f must be > ε_0.

If h > 2EG_f / f_t², snap-back occurs and the element is too large.

Source

pub fn max_element_size(&self) -> f64

Maximum allowable element size to avoid snap-back.

Source

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

Update damage based on current strain.

Uses linear softening between ε_0 and ε_f.

Source

pub fn stress(&self, strain: f64) -> f64

Stress for a given strain considering damage.

σ = (1 - D) * E * ε

Source

pub fn dissipated_energy_density(&self) -> f64

Energy dissipated per unit volume so far.

For linear softening: g = 0.5 * f_t * (ε_f - ε_0) * D Total energy dissipated per unit area = g * h ≈ G_f when D=1.

Trait Implementations§

Source§

impl Clone for CrackBandModel

Source§

fn clone(&self) -> CrackBandModel

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 CrackBandModel

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.