Replies: 1 comment
-
You can use simulation.step and use an input for the current function. Not exactly what you're after maybe as you would have to calculate power from last voltage and fix current for the next step to a constant value. Something similar might be possible with power directly but I've never tried it |
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.
-
I am using PyBaMM as part of a larger simulation framework that gives constant power targets for 60s to the PyBaMM simulation. Afterward, the results of PyBaMM are used to calculate the power target for the next 60s outside of PyBaMM.
I managed to implement a solution that creates new experiment-based simulations every 60s. However, building/discretizing the model seems to take most of the time, which makes this approach slow for long simulations.
Is there a way to use a pre-built model and only update the power target of that model for each simulation timestep?
Here is a minimum example showcasing what I am trying to do:
Below is as far as I have gotten. It gives me a solver-related error:
Beta Was this translation helpful? Give feedback.
All reactions