Previous topic

Ohmic

Next topic

Leading Order Model

This Page

Base Model

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

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

Parameters:
  • param (parameter class) – The parameters to use for this submodel
  • domain (str) – Either ‘Negative’ or ‘Positive’

Extends: pybamm.electrode.BaseElectrode

set_boundary_conditions(variables)

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.

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