Welcome to PyBaMM’s documentation!

Python Battery Mathematical Modelling (PyBAMM) solves continuum models for batteries, using both numerical methods and asymptotic analysis.

PyBaMM is hosted on GitHub. This page provides the API, or developer documentation for pybamm.

Quickstart

PyBaMM is available on GNU/Linux, MacOS and Windows.

Using pip

GNU/Linux and Windows

pip install pybamm

macOS

brew install sundials && pip install pybamm

Using conda

PyBaMM is available as a conda package through the conda-forge channel.

conda install -c conda-forge pybamm

Optional solvers

Following GNU/Linux and macOS solvers are optionally available:

Installation

API documentation

Examples

Detailed examples can be viewed on the GitHub examples page, and run locally using jupyter notebook, or online through Google Colab.

Contributing

Contributions to PyBaMM and its development are welcome! If you have ideas for features, bug fixes, models, spatial methods, or solvers, we would love to hear from you.

Before contributing, please read the Contribution Guidelines.