Why Is My Simulation Loop Much Slower Than a Single Experiment? #4733
Unanswered
ErfanSamadi1998
asked this question in
Q&A
Replies: 1 comment
-
Hi! We have now moved our discussions to Discourse. Please post your question there. |
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.
-
Hi,
I noticed a big difference in the time it takes to run two similar simulations in PyBaMM, and I don't understand why. Here's what I mean:
Case 1:
This code runs in 12.6 seconds:
Case 2:
This code, which does the same total charge duration (11 seconds), runs in 1.2 seconds:
Question:
Both codes are charging the battery for 11 seconds. The only difference is that in the first case, I run the simulation in a loop for 1 second each time and update the initial conditions.
Why is the first case much slower? Is there a way to make the loop faster?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions