pybamm.
Solution
(all_ts, all_ys, all_models, all_inputs, t_event=None, y_event=None, termination='final time')[source]¶Class containing the solution of, and various attributes associated with, a PyBaMM model.
Parameters: |
|
---|
all_models
¶Model(s) used for solution
clear_casadi_attributes
()[source]¶Remove casadi objects for pickling, will be computed again automatically
last_state
¶A Solution object that only contains the final state. This is faster to evaluate than the full solution when only the final state is needed (e.g. to initialize a model with the solution)
plot
(output_variables=None, **kwargs)[source]¶A method to quickly plot the outputs of the solution. Creates a
pybamm.QuickPlot
object (with keyword arguments ‘kwargs’) and
then calls pybamm.QuickPlot.dynamic_plot()
.
Parameters: |
|
---|
save_data
(filename, variables=None, to_format='pickle', short_names=None)[source]¶Save solution data only (raw arrays)
Parameters: |
|
---|
sub_solutions
¶List of sub solutions that have been concatenated to form the full solution
t
¶Times at which the solution is evaluated
t_event
¶Time at which the event happens
termination
¶Reason for termination
y
¶Values of the solution
y_event
¶Value of the solution at the time of the event