Numerically simulating CV in ODE models? #2025
MarcBerliner
started this conversation in
General
Replies: 2 comments
-
"two-step" adds an algebraic equation ( This means the number of states in the model changes between CC and CV, and the way we actually implement the switch between CC and CV is really hacky, but in Julia you can probably do it quite neatly with an integrator-modifying callback "ode" adds an ODE for the current that ensures you get CCCV behavior (though I haven't tested the full range of conditions in which this works). In this case there is one single CCCV step. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the quick response! |
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
-
Hi,
I was trying to figure out how PyBaMM numerically implements CV for systems of ODEs (like the SPM) but I couldn't quite figure it out. I see there's
"two-step"
and"ode"
options forcccv_handling
, but can you please explain what these are doing under the hood?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions