MPET is a battery simulator written in Python, which extends the classical porous electrode theory (PET) originally developed by John Newman to multiphase materials.
Source code for MPET is hosted on Bitbucket: https://bitbucket.org/bazantgroup/mpet/src/master/
MPET is now available on the Python Package Index (PyPI): https://pypi.org/project/mpet/