Skip to main content

ElectrodeKinetics

Struct ElectrodeKinetics 

Source
pub struct ElectrodeKinetics {
    pub i0: f64,
    pub alpha_a: f64,
    pub alpha_c: f64,
    pub temperature: f64,
    pub n_electrons: usize,
}
Expand description

Electrode kinetics using the Butler-Volmer formulation.

Computes exchange current density, Tafel slope, and EIS (electrochemical impedance spectroscopy) charge-transfer resistance.

Fields§

§i0: f64

Exchange current density [A/m²].

§alpha_a: f64

Anodic charge-transfer coefficient (dimensionless).

§alpha_c: f64

Cathodic charge-transfer coefficient (dimensionless).

§temperature: f64

Temperature [K].

§n_electrons: usize

Number of electrons transferred per reaction step.

Implementations§

Source§

impl ElectrodeKinetics

Source

pub fn new( i0: f64, alpha_a: f64, alpha_c: f64, temperature: f64, n_electrons: usize, ) -> Self

Construct a new ElectrodeKinetics.

Source

pub fn symmetric(i0: f64, temperature: f64) -> Self

Construct with symmetric transfer coefficients (α_a = α_c = 0.5).

Source

pub fn current_density(&self, eta: f64) -> f64

Butler-Volmer current density [A/m²] at overpotential eta [V].

j = i₀ × (exp(αa·F·η / (R·T)) − exp(−αc·F·η / (R·T)))

Source

pub fn anodic_tafel_slope(&self) -> f64

Anodic Tafel slope [V/decade].

b_a = 2.303 R T / (α_a F)

Source

pub fn cathodic_tafel_slope(&self) -> f64

Cathodic Tafel slope [V/decade].

b_c = 2.303 R T / (α_c F)

Source

pub fn charge_transfer_resistance(&self) -> f64

Linearised charge-transfer resistance [Ω·m²] (valid for small η).

From linearisation of Butler-Volmer: R_ct = R T / (n F i₀)

Source

pub fn eis_impedance(&self, omega: f64) -> (f64, f64)

EIS impedance at angular frequency omega [rad/s].

Returns (Z_real, Z_imag) [Ω·m²] using the Randles circuit approximation:

  • Charge-transfer resistance R_ct in parallel with double-layer capacitance C_dl
  • Z = R_ct / (1 + (ω R_ct C_dl)²) (real) and -ω R_ct² C_dl / (1 + (ω R_ct C_dl)²) (imag)

Assumes C_dl = 0.2 F/m² (typical double-layer capacitance).

Source

pub fn eis_magnitude(&self, omega: f64) -> f64

EIS impedance magnitude [Ω·m²] at angular frequency omega.

Source

pub fn tafel_overpotential_anodic(&self, j: f64) -> f64

Overpotential [V] required to achieve current density j [A/m²].

Uses high-overpotential Tafel approximation (anodic branch): η ≈ b_a × log10(j / i₀) for large positive j.

Source

pub fn nernst_correction(&self, e_ref: f64, c_ratio: f64) -> f64

Open-circuit potential correction (Nernst) [V].

E = E_ref − (R T / n F) ln(c_ox/c_red) where c_ratio = c_ox/c_red.

Trait Implementations§

Source§

impl Clone for ElectrodeKinetics

Source§

fn clone(&self) -> ElectrodeKinetics

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 ElectrodeKinetics

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.