pybop.models._exponential_decay#
Classes#
Exponential decay model defined by the equation: |
Module Contents#
- class pybop.models._exponential_decay.ExponentialDecayModel(name: str = 'Experimental Decay Model', n_states: int = 1)[source]#
Bases:
pybamm.models.base_model.BaseModelExponential decay model defined by the equation:
dy/dt = -k * y, y(0) = y0
Note: The output variables are named “y_{i}” for each state. For example, the first state is “y_0”, the second is “y_1”, etc.
The model parameters are “k” (decay rate) and “y0” (initial condition).
- Parameters:
name (str) – Name of the model (default: “Experimental Decay Model”).
n_states (int) – Number of states in the system, must be >= 1 (default is 1).
- 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).
- initial_conditions#
Returns a dictionary mapping expressions (variables) to expressions that represent the initial conditions for the state variables.
- n_states = 1#
- rhs#
Returns a dictionary mapping expressions (variables) to expressions that represent the right-hand side (RHS) of the model’s differential equations.
- variables#
Returns a dictionary mapping strings to expressions representing the model’s useful variables.