Impose current (A) based on cell voltage --> not with Liion :D #4623
Unanswered
veera-visw
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a modified standalone code which does what the DFN model is doing (but in a single environment).
What I wish to do is to feedback the terminal voltage (phi_s_p - phi_s_n @ boundaries) to dynamically calculate the current needed to ensure constant specified power. I have read that it has been implemented in the experiment class and also in Liion pack.
I was just wondering if there is a dirty hack I can use to do this feedback loop?
I am trying something like this now:
BV=pybamm.boundary_value(phi_p, "right")-pybamm.boundary_value(phi_n, "left")
i_applied = (pybamm.t <=tcharge)(1/BV)+(pybamm.t>tcharge)(0.0294)
But I get an error: AttributeError: 'tuple' object has no attribute 'children'
Any ideas are welcome !
Beta Was this translation helpful? Give feedback.
All reactions