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.
- Parameters:
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) –
- 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 as implemented in
pybamm.BaseSubModel.- Parameters:
variables (dict) – The variables in the whole model.