pybop.models.empirical#
Submodules#
Classes#
Overwrites and extends BaseModel class for circuit-based PyBaMM models. |
|
The Thevenin class represents an equivalent circuit model based on the Thevenin model in PyBaMM. |
Package Contents#
- class pybop.models.empirical.ECircuitModel[source]#
Bases:
pybop.models.base_model.BaseModelOverwrites and extends BaseModel class for circuit-based PyBaMM models.
- _check_params(inputs=None, allow_infeasible_solutions=True)[source]#
Check the compatibility of the model parameters.
- Parameters:
inputs (dict) – The input parameters for the simulation.
allow_infeasible_solutions (bool, optional) – If True, infeasible parameter values will be allowed in the optimisation (default: True).
- Returns:
A boolean which signifies whether the parameters are compatible.
- Return type:
bool
- class pybop.models.empirical.Thevenin(name='Equivalent Circuit Thevenin Model', parameter_set=None, geometry=None, submesh_types=None, var_pts=None, spatial_methods=None, solver=None, options=None, **kwargs)[source]#
Bases:
pybop.models.empirical.ecm_base.ECircuitModelThe Thevenin class represents an equivalent circuit model based on the Thevenin model in PyBaMM.
This class encapsulates the PyBaMM equivalent circuit Thevenin model, providing an interface to define the parameters, geometry, submesh types, variable points, spatial methods, and solver to be used for simulations.
- Parameters:
name (str, optional) – A name for the model instance. Defaults to “Equivalent Circuit Thevenin Model”.
parameter_set (dict or None, optional) – A dictionary of parameters to be used for the model. If None, the default parameters from PyBaMM are used.
geometry (dict or None, optional) – The geometry definitions for the model. If None, the default geometry from PyBaMM is used.
submesh_types (dict or None, optional) – The types of submeshes to use. If None, the default submesh types from PyBaMM are used.
var_pts (dict or None, optional) – The number of points for each variable in the model to define the discretization. If None, the default is used.
spatial_methods (dict or None, optional) – The spatial methods to be used for discretization. If None, the default spatial methods from PyBaMM are used.
solver (pybamm.Solver or None, optional) – The solver to use for simulating the model. If None, the default solver from PyBaMM is used.
options (dict or None, optional) – A dictionary of options to pass to the PyBaMM Thevenin model.
**kwargs – Additional arguments passed to the PyBaMM Thevenin model constructor.
- _check_params(inputs=None, allow_infeasible_solutions=True)[source]#
Check the compatibility of the model parameters.
- Parameters:
inputs (dict) – The input parameters for the simulation.
allow_infeasible_solutions (bool, optional) – If True, infeasible parameter values will be allowed in the optimisation (default: True).
- Returns:
A boolean which signifies whether the parameters are compatible.
- Return type:
bool