Questions about simulation.step() #4818
Unanswered
abhishek-appana
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.
-
Hi,
I want to run a custom current profile (let's say [0, 0.5, 0.45, 0.47]) using sim.step instead of sim.solve. How do I do that?
Here's a MWE of what I'm trying to achieve.
The results are:
sol["Time [s]"].entries
array([0., 1., 2., 3.])
sol["Current [A]"].entries
array([0. , 0.5 , 0.45, 0.47])
sol["Terminal voltage [V]"].entries
array([4.07411821, 4.06341121, 4.06206838, 4.06012812])
I need to achieve the same results using
sim.step()
. Can anyone guide me on how to do that?I followed the example in these discussions (discussion-1, discussion-2). When I run each step, the current inputs get repeated and the results give me 7-8 entries instead of 4.
Beta Was this translation helpful? Give feedback.
All reactions