How and when to use pybamm.ExplicitTimeIntegral() #2570
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In general, the way to do this is to add a variable: int_U = pybamm.Variable("int_U")
model.rhs[int_U] = U
model.initial_conditions[int_U] = 0 In this case it looks like you're after the energy. You can calculate this by passing the option
|
Beta Was this translation helpful? Give feedback.
In general, the way to do this is to add a variable:
In this case it looks like you're after the energy. You can calculate this by passing the option
{"calculate discharge energy": "true"}
and then the variable isDischarge energy [W.h]
.ExplicitTimeIntegral
is still experimental at this stage and for internal use only.