Skip to main content

ButlerVolmer

Struct ButlerVolmer 

Source
pub struct ButlerVolmer {
    pub i0: f64,
    pub alpha_a: f64,
    pub alpha_c: f64,
    pub temperature: f64,
}
Expand description

Butler-Volmer electrode kinetics.

Models the current–overpotential relationship: i = i₀ · [exp(αa · F · η / RT) − exp(−αc · F · η / RT)]

Fields§

§i0: f64

Exchange current density i₀ [A/m²].

§alpha_a: f64

Anodic charge-transfer coefficient αa (dimensionless, typically 0.5).

§alpha_c: f64

Cathodic charge-transfer coefficient αc (dimensionless, typically 0.5).

§temperature: f64

Absolute temperature T [K].

Implementations§

Source§

impl ButlerVolmer

Source

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

Create a new Butler-Volmer model.

Source

pub fn f_over_rt(&self) -> f64

Compute the dimensionless factor F/(RT) [V⁻¹].

Source

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

Current density [A/m²] at overpotential eta [V].

Source

pub fn charge_transfer_resistance(&self) -> f64

Linearised charge-transfer resistance [Ω·m²] near equilibrium (η → 0).

Rct = RT / [i₀ · (αa + αc) · F]

Source

pub fn tafel_slope_anodic(&self) -> f64

Anodic Tafel slope [V/decade].

ba = ln(10) · RT / (αa · F)

Source

pub fn tafel_slope_cathodic(&self) -> f64

Cathodic Tafel slope [V/decade].

bc = ln(10) · RT / (αc · F)

Source

pub fn tafel_overpotential(&self, i_target: f64) -> f64

Overpotential [V] for a target current density using the Tafel approximation.

Valid for |η| >> RT/F (large overpotential limit). Sign follows the input i_target: positive → anodic branch.

Trait Implementations§

Source§

impl Clone for ButlerVolmer

Source§

fn clone(&self) -> ButlerVolmer

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 ButlerVolmer

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.