Previous topic

Base Model

Next topic

Event

This Page

Base Battery Model

class pybamm.BaseBatteryModel(options=None, name='Unnamed battery model')[source]

Base model class with some default settings and required variables Extends: pybamm.BaseModel

new_empty_copy()[source]

See pybamm.BaseModel.new_empty_copy()

process_parameters_and_discretise(symbol, parameter_values, disc)[source]

Process parameters and discretise a symbol using supplied parameter values and discretisation. Note: care should be taken if using spatial operators on dimensional symbols. Operators in pybamm are written in non-dimensional form, so may need to be scaled by the appropriate length scale. It is recommended to use this method on non-dimensional symbols.

Parameters:
Returns:

Processed symbol

Return type:

pybamm.Symbol

set_external_circuit_submodel()[source]

Define how the external circuit defines the boundary conditions for the model, e.g. (not necessarily constant-) current, voltage, etc

set_soc_variables()[source]

Set variables relating to the state of charge. This function is overriden by the base battery models