Skip to main content

SccrModel

Struct SccrModel 

Source
pub struct SccrModel {
    pub k_iscc: f64,
    pub k_ic: f64,
    pub v_plateau: f64,
    pub stage1_exponent: f64,
    pub stage1_coeff: f64,
}
Expand description

Stress corrosion cracking model.

Combines fracture mechanics (KI) with the electrochemical dissolution mechanism (anodic dissolution model).

Fields§

§k_iscc: f64

Threshold stress intensity factor KIscc [MPa·m^0.5].

§k_ic: f64

Fracture toughness KIc [MPa·m^0.5].

§v_plateau: f64

Stage II (plateau) crack velocity [m/s].

§stage1_exponent: f64

Exponent in Stage I power-law velocity: v = A·(KI − KIscc)^n.

§stage1_coeff: f64

Coefficient A in Stage I velocity [m/s · (MPa·m^0.5)^(−n)].

Implementations§

Source§

impl SccrModel

Source

pub fn new( k_iscc: f64, k_ic: f64, v_plateau: f64, stage1_exponent: f64, stage1_coeff: f64, ) -> Self

Create a new SCC model.

Source

pub fn crack_velocity(&self, ki: f64) -> f64

Crack propagation velocity [m/s] at stress intensity ki [MPa·m^0.5].

Three-stage model:

  • KI < KIscc → 0 (no crack growth)
  • KIscc ≤ KI < KIc → Stage I/II (Plateau or power-law)
  • KI ≥ KIc → catastrophic (returns f64::INFINITY)
Source

pub fn time_to_fracture( &self, a0: f64, sigma: f64, geometry_factor_y: f64, steps: usize, ) -> f64

Time to fracture [s] from an initial crack of length a0 [m] to the critical length ac [m] under constant stress sigma [MPa].

Critical crack length: ac = (KIc / (Y · σ · √π))² Uses simple trapezoidal integration over crack length.

§Arguments
  • a0 – initial half-crack length [m]
  • sigma – applied stress [MPa]
  • geometry_factor_y – geometry correction factor Y (≈ 1.0 for centre crack)
  • steps – integration steps
Source

pub fn susceptibility_index(&self) -> f64

Susceptibility index (0–1): (KIscc / KIc).

Values close to 1 indicate low susceptibility (wide safe window).

Trait Implementations§

Source§

impl Clone for SccrModel

Source§

fn clone(&self) -> SccrModel

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 SccrModel

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.