Base Model

class pybamm.electrode.ohm.BaseModel(param, domain, options=None, set_positive_potential=True)

A base class for electrode submodels that employ Ohm’s law.

  • param (parameter class) – The parameters to use for this submodel

  • domain (str) – Either ‘negative’ or ‘positive’

  • options (dict, optional) – A dictionary of options to be passed to the model.

  • **Extends (** pybamm.electrode.BaseElectrode) –


A method to set the boundary conditions for the submodel. Note: this method modifies the state of self.boundary_conditions. Unless overwritten by a submodel, the default behaviour of ‘pass’ is used a implemented in pybamm.BaseSubModel.


variables (dict) – The variables in the whole model.