Skip to content

Commit

Permalink
added default plotting variables
Browse files Browse the repository at this point in the history
  • Loading branch information
parkec3 committed Aug 20, 2024
1 parent 84fba69 commit 3f1e7f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def __init__(self, name="ECM with split OCV"):
"Discharge capacity [A.h]": Q,
"Voltage [V]": V,
"Times [s]": pybamm.t,
"Positive electrode potential [V]": Up,
"Negative electrode potential [V]": Un,
"Positive electrode OCP [V]": Up,
"Negative electrode OCP [V]": Un,
"Current function [A]": I,
}

Expand All @@ -90,3 +90,13 @@ def __init__(self, name="ECM with split OCV"):
pybamm.Event("Minimum Negative Electrode SOC", c_n - 0.0001),
pybamm.Event("Minimum Positive Electrode SOC", c_p - 0.0001),
]

@property
def default_quick_plot_variables(self):
return [
"Voltage [V]",
["Negative particle SOC", "Positive particle SOC"],
"Negative electrode OCP [V]",
"Positive electrode OCP [V]",
"Current [A]",
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Test that the model works should I change the base model to just regular base model from .lihtium_ion_model BaseModel
# does that set parameters that we really don't want, is this really as simple as we want it to be
# Test that the model works with an example parameter set
#
import pybamm
import numpy as np

Expand Down

0 comments on commit 3f1e7f5

Please sign in to comment.