pub struct CreviceModel {
pub gap: f64,
pub depth: f64,
pub resistivity: f64,
pub e_crevice_critical: f64,
pub i_passive: f64,
}Expand description
Crevice corrosion model based on critical geometry criterion.
Crevice attack initiates when the IR drop within the crevice is large enough to shift the local potential below the critical crevice potential.
Fields§
§gap: f64Crevice gap width [m].
depth: f64Crevice depth [m].
resistivity: f64Electrolyte resistivity [Ω·m].
e_crevice_critical: f64Critical crevice potential (below which active dissolution occurs) [V].
i_passive: f64Passive current density [A/m²].
Implementations§
Source§impl CreviceModel
impl CreviceModel
Sourcepub fn new(
gap: f64,
depth: f64,
resistivity: f64,
e_crevice_critical: f64,
i_passive: f64,
) -> Self
pub fn new( gap: f64, depth: f64, resistivity: f64, e_crevice_critical: f64, i_passive: f64, ) -> Self
Create a new crevice model.
Sourcepub fn ir_drop(&self) -> f64
pub fn ir_drop(&self) -> f64
IR drop along the crevice [V] using 1-D ohmic model.
ΔV = i_passive · ρ · L² / (2 · g)
where L = depth, g = gap, ρ = resistivity.
Sourcepub fn critical_depth(&self, e_external: f64) -> Option<f64>
pub fn critical_depth(&self, e_external: f64) -> Option<f64>
Critical depth [m] at which crevice attack initiates for a given external potential.
L_crit = sqrt(2 · g · ΔV_crit / (i_passive · ρ))
Sourcepub fn geometry_factor(&self, e_external: f64) -> f64
pub fn geometry_factor(&self, e_external: f64) -> f64
Geometry factor x = i_passive · ρ · depth² / (2 · gap · ΔV).
Crevice attack expected when x > 1.
Trait Implementations§
Source§impl Clone for CreviceModel
impl Clone for CreviceModel
Source§fn clone(&self) -> CreviceModel
fn clone(&self) -> CreviceModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more