pub struct DiffusionLayer {
pub thickness: f64,
pub diffusivity: f64,
pub bulk_concentration: f64,
}Expand description
Nernst diffusion layer model.
Models mass-transport limitations across a stagnant diffusion layer.
Fields§
§thickness: f64Diffusion layer thickness δ (m)
diffusivity: f64Diffusivity D (m²/s)
bulk_concentration: f64Bulk concentration C_bulk (mol/m³)
Implementations§
Source§impl DiffusionLayer
impl DiffusionLayer
Sourcepub fn limiting_current(&self, n_electrons: u32, f_const: f64, area: f64) -> f64
pub fn limiting_current(&self, n_electrons: u32, f_const: f64, area: f64) -> f64
Limiting current density.
j_L = n · F · D · C_bulk / δ
§Arguments
n_electrons— number of electrons transferred per mole of reactantf_const— Faraday constant (C/mol)area— electrode area (m²)
Sourcepub fn concentration_at_surface(
&self,
current_density: f64,
n_electrons: u32,
f_const: f64,
) -> f64
pub fn concentration_at_surface( &self, current_density: f64, n_electrons: u32, f_const: f64, ) -> f64
Concentration at the electrode surface.
C_s = C_bulk − j · δ / (n · F · D)
§Arguments
current_density— current density (A/m²)n_electrons— electrons per molef_const— Faraday constant (C/mol)
Sourcepub fn diffusion_overpotential(
&self,
c_surface: f64,
_temp: f64,
f_over_rt: f64,
) -> f64
pub fn diffusion_overpotential( &self, c_surface: f64, _temp: f64, f_over_rt: f64, ) -> f64
Diffusion overpotential.
η_d = (RT/F) · ln(C_s / C_bulk)
§Arguments
c_surface— surface concentration (mol/m³)temp— temperature (K) — kept for API symmetry; used implicitly viaf_over_rtf_over_rt— F / (R·T) (1/V)
Auto Trait Implementations§
impl Freeze for DiffusionLayer
impl RefUnwindSafe for DiffusionLayer
impl Send for DiffusionLayer
impl Sync for DiffusionLayer
impl Unpin for DiffusionLayer
impl UnsafeUnpin for DiffusionLayer
impl UnwindSafe for DiffusionLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more