Skip to content
Discussion options

You must be logged in to vote

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 {"calculate discharge energy": "true"} and then the variable is Discharge energy [W.h].

ExplicitTimeIntegral is still experimental at this stage and for internal use only.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PaulKranefeld
Comment options

Answer selected by PaulKranefeld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants