pub struct PittingModel {
pub e_pit: f64,
pub e_rp: f64,
pub critical_chloride: f64,
pub pit_growth_k: f64,
}Expand description
Pitting corrosion model.
Characterised by the pitting potential Epit (onset of stable pitting) and the repassivation potential Erp (below which pits repassivate).
Fields§
§e_pit: f64Pitting potential [V vs SHE]: above this potential, stable pits nucleate.
e_rp: f64Repassivation potential [V vs SHE]: below this, active pits repassivate.
critical_chloride: f64Critical chloride concentration for pitting [mol/L].
pit_growth_k: f64Pit growth rate constant k [m·s⁻¹·(A/m²)⁻¹].
Implementations§
Source§impl PittingModel
impl PittingModel
Sourcepub fn new(
e_pit: f64,
e_rp: f64,
critical_chloride: f64,
pit_growth_k: f64,
) -> Self
pub fn new( e_pit: f64, e_rp: f64, critical_chloride: f64, pit_growth_k: f64, ) -> Self
Create a new pitting model.
Sourcepub fn hysteresis_width(&self) -> f64
pub fn hysteresis_width(&self) -> f64
Hysteresis width: Epit − Erp [V].
A larger value indicates greater susceptibility to stable pitting.
Sourcepub fn is_pitting_active(&self, e: f64) -> bool
pub fn is_pitting_active(&self, e: f64) -> bool
Returns true if stable pit growth is expected at the given potential.
Sourcepub fn will_repassivate(&self, e: f64) -> bool
pub fn will_repassivate(&self, e: f64) -> bool
Returns true if an active pit will repassivate at potential e.
Sourcepub fn pit_radius(
&self,
i_pit: f64,
t: f64,
molar_mass: f64,
n: f64,
density: f64,
) -> f64
pub fn pit_radius( &self, i_pit: f64, t: f64, molar_mass: f64, n: f64, density: f64, ) -> f64
Hemispherical pit radius [m] after time t [s] at pit current i_pit [A/m²].
Uses Faraday’s law: V = M·Q/(n·F·ρ) with hemispherical geometry.
r = (3·M·i_pit·t / (2·π·n·F·ρ))^(1/3)
§Arguments
i_pit– pit current density [A/m²]t– time [s]molar_mass– [g/mol]n– electrons per atomdensity– [g/cm³]
Trait Implementations§
Source§impl Clone for PittingModel
impl Clone for PittingModel
Source§fn clone(&self) -> PittingModel
fn clone(&self) -> PittingModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more