pybamm.
ProcessedVariable
(base_variables, base_variables_casadi, solution, warn=True)[source]¶An object that can be evaluated at arbitrary (scalars or vectors) t and x, and returns the (interpolated) value of the base variable at that t and x.
Parameters: |
|
---|
data
¶Same as entries, but different name
pybamm.
ProcessedSymbolicVariable
(base_variable, solution)[source]¶An object that can be evaluated at arbitrary (scalars or vectors) t and x, and returns the (interpolated) value of the base variable at that t and x.
Parameters: |
|
---|
data
¶Same as entries, but different name
sensitivity
(inputs=None, check_inputs=True)[source]¶Returns the sensitivity of the variable to the symbolic inputs at the specified input values
Parameters: | inputs (dict) – The inputs at which to evaluate the variable. |
---|---|
Returns: | A casadi matrix of size (n_x * n_t, n_p), where n_x is the number of spatial discretisation points for the variable, n_t is the length of the time vector, and n_p is the number of input parameters |
Return type: | casadi.DM |
value
(inputs=None, check_inputs=True)[source]¶Returns the value of the variable at the specified input values
Parameters: | inputs (dict) – The inputs at which to evaluate the variable. |
---|---|
Returns: | A casadi matrix of size (n_x * n_t, 1), where n_x is the number of spatial discretisation points for the variable, and n_t is the length of the time vector |
Return type: | casadi.DM |