Skip to main content

ElectrochemicalMaterial

Struct ElectrochemicalMaterial 

Source
pub struct ElectrochemicalMaterial {
    pub exchange_current_density: f64,
    pub alpha: f64,
    pub diffusion_coefficient: f64,
    pub partial_molar_volume: f64,
    pub youngs_modulus: f64,
    pub poisson_ratio: f64,
    pub faraday: f64,
}
Expand description

Electrochemical material model for battery electrodes.

Butler-Volmer kinetics, diffusion, and intercalation stress.

Fields§

§exchange_current_density: f64

Exchange current density i0 (A/m²).

§alpha: f64

Charge transfer coefficient α (0 to 1).

§diffusion_coefficient: f64

Diffusion coefficient D (m²/s).

§partial_molar_volume: f64

Partial molar volume Ω (m³/mol).

§youngs_modulus: f64

Young’s modulus (Pa).

§poisson_ratio: f64

Poisson’s ratio.

§faraday: f64

Faraday constant.

Implementations§

Source§

impl ElectrochemicalMaterial

Source

pub fn lithium_graphite() -> Self

Creates a lithium graphite anode model.

Source

pub fn butler_volmer(&self, overpotential: f64, temperature: f64) -> f64

Butler-Volmer current density: j = i0 * [exp(αFη/RT) - exp(-(1-α)Fη/RT)].

Source

pub fn diffusion_flux(&self, concentration_gradient: f64) -> f64

Linear diffusion flux (1D, Fick’s first law): J = -D * dc/dx.

Source

pub fn intercalation_stress(&self, concentration: f64, c_avg: f64) -> f64

Intercalation stress (hydrostatic): σ_h = -Ω * E / (3 * (1-ν)) * (c - c_avg).

Source

pub fn nernst_shift(&self, c_norm: f64, temperature: f64) -> f64

Open-circuit potential shift due to concentration (Nernst-like).

Trait Implementations§

Source§

impl Clone for ElectrochemicalMaterial

Source§

fn clone(&self) -> ElectrochemicalMaterial

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 ElectrochemicalMaterial

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.