Training material for the PyBaMM Battery Modelling Conference 2026, 15–16 October 2026, Rogel Ballroom, Michigan Union, Ann Arbor, Michigan, USA.
The conference combines two science-focused days of invited plenaries and student and early-career talks. Its themes are:
- Physics-based models, including novel chemistries and degradation mechanisms
- Numerical methods, solver improvements, differentiable programming and software advances
- Data-driven models, machine learning, state estimation and parameter estimation
- System-level models (such as pack models) and techno-economic analysis
- Agentic workflows and integration with other workflow automation tools
Organised by Venkat Viswanathan (University of Michigan), Valentin Sulzer (Ionworks), Anoushka Bhutani and Amal S Sebastian (University of Michigan).
There is a 1.5 hour training session on each day: a ~30 minute talk, followed by ~1 hour of self-guided work through the notebooks, with members of the PyBaMM team on hand to help. You are welcome to bring your own problems.
Day 1: PyBaMM basics and practical simulations — training/day_1
Slides: day_1_slides.pdf
| Notebook | Topics |
|---|---|
01-getting-started |
Models, parameters, experiments, outputs, and what a model is under the hood |
02-power-vs-energy |
C-rate sweeps, energy vs power, electrode thickness |
03-simulating-long-experiments |
Hundreds of cycles, summary variables, saving selected cycles |
04-rpt-experiment |
Ageing cycles with reference performance tests |
05-custom-experiments |
Custom terminations, explicit and implicit control |
Day 2: the model zoo, custom models and performance — training/day_2
Slides: day_2_slides.pdf, plus a one-slide
model zoo overview: model_zoo_slide.pdf
Day 2 has two tracks. The talk covers both; for the self-guided hour, pick the model track (notebooks 01–02: the model zoo and writing your own model) or the performance track (notebooks 03–04: input parameters and solvers).
| Notebook | Topics |
|---|---|
01-model-zoo |
Finding, loading and testing models from the PyBaMM model zoo |
02-custom-zoo-model |
Writing a standalone model (a thermal DFN) in the zoo format, validating it, and contributing it |
03-input-parameters |
Re-running simulations efficiently with input parameters |
04-pybamm-solvers |
The IDAKLU solver: time stepping, tolerances, output variables, parallel solves, sensitivities |
The custom model lives in training/day_2/custom_model/thermal_dfn,
laid out exactly like a model zoo
entry. Run its contract checks and physics tests with:
cd training/day_2/custom_model
pytestYou need Git (or download this repository as a ZIP from the green Code button). The install downloads a few hundred MB, so please run it before the session. Both routes below install PyBaMM 26.10.1.0 and the PyBaMM model zoo 0.1.1, the versions the notebooks were tested with.
uv is a fast Python package and project manager.
It reads pyproject.toml and the lockfile
uv.lock, so everyone gets exactly the same package versions. It
also downloads the right Python for you, so you don't need to install Python
first, and there is no environment to activate. If you haven't used it before,
the uv getting started guide is a
short introduction.
Install uv, then open a new terminal so the uv command is found. Homebrew,
WinGet and other options are in the
installation guide.
# macOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | sh# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Then, on any OS:
git clone https://github.com/pybamm-team/pybamm-con-2026
cd pybamm-con-2026
uv sync
uv run jupyter labuv sync creates a .venv folder with Python 3.13 and the locked packages.
Next time, just run uv run jupyter lab from the repository folder. For the
custom model tests, run uv run pytest instead of pytest.
You need Python 3.10–3.15.
requirements.txt is exported from uv.lock, so pip
installs the same versions as uv.
git clone https://github.com/pybamm-team/pybamm-con-2026
cd pybamm-con-2026
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
jupyter labOn Debian or Ubuntu, if python3 -m venv fails, install the venv module first
with sudo apt install python3-venv.
git clone https://github.com/pybamm-team/pybamm-con-2026
cd pybamm-con-2026
py -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt
jupyter labIf PowerShell refuses to run Activate.ps1, allow local scripts once with
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned, or use Command Prompt and
run .venv\Scripts\activate.bat instead.
Activate the environment again before starting Jupyter:
source .venv/bin/activate on macOS and Linux, .venv\Scripts\Activate.ps1 on
Windows.