In practical problems involving differential equations, we often find situations where we have a system of ODEs constrained by a number of algebraic equations. Fortunately, there are solvers available to handle these differential algebraic equations. We will look at solving a simple model of a battery using Pythons ODE solver. We will see how problems arise dealing with the constraints and how a DAE solver (We will use Assimulo here) can simplify things.
Wikipedia article on differential algebraic equations: https://en.wikipedia.org/wiki/Differe...
Assimulo Website: https://jmodelica.org/assimulo/
Sundials: https://computing.llnl.gov/projects/s...
IDA Documentation: https://computing.llnl.gov/projects/s...
Github: https://github.com/kpmooney/numerical...
Tip Jar: http://paypal.me/kpmooney