Single Particle Model (SPM)

class pybamm.lithium_ion.SPM(options=None, name='Single Particle Model', build=True)

Single Particle Model (SPM) of a lithium-ion battery, from [1].

  • options (dict, optional) – A dictionary of options to be passed to the model. For a detailed list of options see BatteryModelOptions.

  • name (str, optional) – The name of the model.

  • build (bool, optional) – Whether to build the model on instantiation. Default is True. Setting this option to False allows users to change any number of the submodels before building the complete model (submodels cannot be changed after the model is built).


>>> import pybamm
>>> model = pybamm.lithium_ion.SPM()
'Single Particle Model'


Extends: pybamm.lithium_ion.BaseModel

class pybamm.lithium_ion.BasicSPM(name='Single Particle Model')

Single Particle Model (SPM) model of a lithium-ion battery, from [2].

This class differs from the pybamm.lithium_ion.SPM model class in that it shows the whole model in a single class. This comes at the cost of flexibility in combining different physical effects, and in general the main SPM class should be used instead.


name (str, optional) – The name of the model.


Extends: pybamm.lithium_ion.BaseModel