PyBaMM provides several physics-based lithium-ion battery models that span a wide range of fidelity and computational cost. All models are accessible from theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/pybamm-team/PyBaMM/llms.txt
Use this file to discover all available pages before exploring further.
pybamm.lithium_ion namespace.
Model comparison
SPM
Fastest. Ignores electrolyte dynamics. Best for rapid parameter sweeps and reduced-order studies.
SPMe
Adds electrolyte concentration and potential corrections to the SPM. Good balance for most simulations.
DFN
Full porous-electrode model. Highest fidelity for single-cell physics-based simulation.
MPM
Extends the SPM with a particle-size distribution. Captures heterogeneous utilisation effects.
MSMR
Multi-Site Multi-Reaction model. Uses thermodynamic site-occupancy formulations for OCP and kinetics.
Newman-Tobias
DFN-class model with uniform electrolyte concentration. Useful as a pedagogical reference.
| Model | Electrolyte dynamics | Particle distribution | Relative cost |
|---|---|---|---|
| SPM | No | No | Low |
| SPMe | Yes (composite) | No | Medium |
| DFN | Yes (full) | No | High |
| MPM | No | Yes | Medium |
| MSMR | Yes (full) | No | High |
| Newman-Tobias | No (uniform) | No | Medium |
| Yang2017 | Yes (full) | No | High |
Models
- SPM
- SPMe
- DFN
- MPM
- MSMR
- Newman-Tobias
- Yang2017
Single Particle Model
TheSPM reduces each electrode to a single representative spherical particle. Electrolyte concentration gradients are neglected, and the overpotential is determined from the leading-order electrolyte conductivity. This is the fastest lithium-ion model in PyBaMM.When to use: Rapid parameter studies, state estimation, control design, or situations where electrolyte dynamics are unimportant (low C-rates).Reference: Marquis, S. G., et al. (2019). An asymptotic derivation of a single particle model with electrolyte. Journal of The Electrochemical Society.Key model options
All lithium-ion models accept anoptions dictionary at instantiation. Options not provided take their default values.
Thermal
Thermal
Control how temperature is modelled.
| Option | Values | Default |
|---|---|---|
"thermal" | "isothermal", "lumped", "x-lumped", "x-full" | "isothermal" |
"cell geometry" | "arbitrary", "pouch", "cylindrical" | "arbitrary" |
Particle submodel
Particle submodel
Control the intra-particle concentration profile.
A 2-tuple selects different models for negative and positive electrodes:
| Option | Values | Default |
|---|---|---|
"particle" | "Fickian diffusion", "uniform profile", "quadratic profile", "quartic profile", "MSMR" | "Fickian diffusion" |
SEI growth
SEI growth
Model SEI layer formation and its effect on capacity fade.
| Option | Values | Default |
|---|---|---|
"SEI" | "none", "constant", "reaction limited", "solvent-diffusion limited", "electron-migration limited", "interstitial-diffusion limited", "ec reaction limited", "VonKolzenberg2020", "tunnelling limited" | "none" |
"SEI film resistance" | "none", "distributed", "average" | "none" (if SEI is none) |
"SEI porosity change" | "false", "true" | "false" |
Lithium plating
Lithium plating
Model metallic lithium deposition on the negative electrode.
| Option | Values | Default |
|---|---|---|
"lithium plating" | "none", "reversible", "partially reversible", "irreversible" | "none" |
"lithium plating porosity change" | "false", "true" | "false" |
Loss of active material
Loss of active material
Capture electrode active material degradation.
| Option | Values | Default |
|---|---|---|
"loss of active material" | "none", "stress-driven", "asymmetric stress-driven", "reaction-driven", "current-driven", "stress and reaction-driven" | "none" |
"particle mechanics" | "none", "swelling only", "swelling and cracking" | "none" |
Intercalation kinetics
Intercalation kinetics
Select the kinetic expression at the electrode-electrolyte interface.
| Option | Values | Default |
|---|---|---|
"intercalation kinetics" | "symmetric Butler-Volmer", "asymmetric Butler-Volmer", "linear", "Marcus", "Marcus-Hush-Chidsey", "MSMR" | "symmetric Butler-Volmer" |