Replies: 1 comment
-
Hi, I think this may be linked to the fact that the model in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to set the discharge capacity limit. (ex. Charge at 1C until 0.88 A.h)
So I added this code in def update_new_model_events.(https://github.com/pybamm-team/PyBaMM/blob/main/pybamm/simulation.py)
if "Capacity cut-off [A.h]" in op:
new_model.events.append(
pybamm.Event(
"Capacity cut-off (CCCV) [A] [experiment]",
(
new_model.variables["Discharge capacity [A.h]"]
< (pybamm.InputParameter("Capacity input [A.h]") - 1e-4)
),
)
)
I want to include variable 'Discharge capacity [A.h]' in model.rhs or model.algebraic.
However, I don't know which code to add in model.rhs.
Should I add in basemodel.py ??(https://github.com/pybamm-team/PyBaMM/blob/main/pybamm/models/base_model.py)
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions