pybop.models.lithium_ion.weppner_huggins#
Classes#
Represents the Weppner & Huggins model to fit diffusion coefficients to GITT data. |
Module Contents#
- class pybop.models.lithium_ion.weppner_huggins.WeppnerHuggins(name='Weppner & Huggins model', **model_kwargs)[source]#
Bases:
pybop.models.lithium_ion.base_model.BaseGroupedModelRepresents the Weppner & Huggins model to fit diffusion coefficients to GITT data.
Note: the working electrode is the positive electrode.
- Parameters:
name (str, optional) – The name of the model.
**model_kwargs (optional) –
Valid PyBaMM model option keys and their values, for example: options : dict, optional
A dictionary of options to customise the behaviour of the PyBaMM model.
- buildbool, optional
If True, the model is built upon creation (default: False).
- static create_grouped_parameters(parameter_values: pybamm.ParameterValues) pybamm.ParameterValues[source]#
Create a parameter set for the Weppner & Huggins model from a PyBaMM lithium-ion ParameterValues object.
Note: the working electrode is the positive electrode.
- Parameters:
parameter_values (pybamm.ParameterValues) – Parameters and their corresponding values.
- Returns:
parameter_values – A new set of parameters and their values.
- Return type:
pybamm.ParameterValues
- static set_initial_state(initial_value, parameter_values, direction=None, param=None, inplace=True, options=None, inputs=None, tol=1e-06)[source]#
Set the value of the initial state of charge.
- Parameters:
initial_value (float) – Target initial value. If float, interpreted as SOC, must be between 0 and 1. If string e.g. “4 V”, interpreted as voltage, must be between V_min and V_max.
parameter_values (
pybamm.ParameterValues) – Parameters and their corresponding values.param (
pybamm.LithiumIonParameters, optional) – The symbolic parameter set to use for the simulation. If not provided, the default parameter set will be used.inplace (bool, optional) – If True, replace the parameters values in place. Otherwise, return a new set of parameter values. Default is True.
options (dict-like, optional) – A dictionary of options to be passed to the model, see
pybamm.BatteryModelOptions.inputs (dict, optional) – A dictionary of input parameters to pass to the model when solving.
tol (float, optional) – The tolerance for the solver used to compute the initial stoichiometries. A lower value results in higher precision but may increase computation time. Default is 1e-6.
- _built = True#
- _summary_variables = []#
- property default_geometry#
Returns a dictionary of the default geometry for the model, which is empty by default.
- property default_parameter_values: pybamm.ParameterValues#
Returns the default parameter values for the model (an empty set of parameters by default).
- property default_quick_plot_variables#
Returns the default variables for quick plotting (None by default).
- property default_solver#
Returns the default solver for the model, based on whether it is an ODE/DAE or algebraic model.
- property default_spatial_methods#
Returns a dictionary of the default spatial methods for the model, which is empty by default.
- property default_submesh_types#
Returns a dictionary of the default submesh types for the model, which is empty by default.
- property default_var_pts#
Returns a dictionary of the default variable points for the model, which is empty by default.
- variables#
Returns a dictionary mapping strings to expressions representing the model’s useful variables.