Solver differences with sinusoidal currents #2303
Replies: 5 comments 6 replies
-
Yeah this was reported before and I couldn't get to the bottom of it #1482 I don't know what's happening. Does it happen with different models? |
Beta Was this translation helpful? Give feedback.
-
Yes, to confirm with Robert, here is the same plot I generated before but for SPMe; the discretization effects are not present here. I may have some time today to step into the code at a deeper level - I'll report anything else I may find out. It is good to know this is a known issue and it wasn't me doing something entirely wrong. |
Beta Was this translation helpful? Give feedback.
-
The "fast" solution is correct after each jump, while between the jumps the gradient of the fast and step solutions are the same. That might help elucidate what is going on. |
Beta Was this translation helpful? Give feedback.
-
We should check if we can reproduce this with pure casadi code. If so, we can ask the casadi people for help. If not, it's a bug in our casadi solver |
Beta Was this translation helpful? Give feedback.
-
Would also be interesting to see whether |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am using PyBaMM to run EIS simulations, by applying a sinusoidal current, and measuring the responding voltage, from which I can extract impedance measurements. The issue I'm having, is I can get fairly different voltage results by using different solvers (Casadi with various options, and Scikit).
I've attached a template script to this discussion, as well as the output figure that shows the resulting voltage curves. I tend to believe the 'scikit' and 'safe w/o grid' solutions (as indicated in my attached plot, they lie on top of one another), but would like to understand a few things more clearly. Namely,
Hopefully these questions are clear enough, thanks to anyone who can provide insight. Happy to clarify if needed.
Best,
Patrick
Beta Was this translation helpful? Give feedback.
All reactions