Replies: 3 comments 8 replies
-
For the casadi solver you need to set the max step size to match the step size in the drive cycle e.g.
|
Beta Was this translation helpful? Give feedback.
-
You could try the IDAKLU solver which has better event-handling capabilities (the solver, Sundials, handles all the events) |
Beta Was this translation helpful? Give feedback.
-
I find that when using a periodic current function like sin (with positive and negative currents), it misses the termination condition. But when using a current function that is only monotonic and only negative, it works. |
Beta Was this translation helpful? Give feedback.
-
In handling events and termination conditions in PyBaMM, there can be issues with correctly triggering the termination conditions due to too large a time step. (i.e. for instance, the termination voltage condition should be met at a certain moment, but due to the choice of time step, this condition is “skipped”). Are there any good solutions to address this problem?
I tried adding some extra logic to the custom voltage cutoff event function to make the function gradually decrease the range of return values as it nears that value.
But there is an error: “Boolean operator not defined for Symbols.”
Thanks!!!
Beta Was this translation helpful? Give feedback.
All reactions