Which Differential Solver do I need for my system?
Hello,
I am trying to implement the Anaerobic Digestion Model No.1 (ADM1) in MathCAD. The model has 27 dynamic state variables, for which I have 27 1st order, non-linear differential equations. The model also implements a set of 9 implicit algebraic equations that must be satisfied.
I was able to set up a solve block and solve all of the equations with 'ODESOLVE', but when looking at the MathCAD help, I'm unclear whether this solver is able to handle non-linear systems.
The help says that ODESOLVE is only for linear systems, but then says it dynamically detects which solver to use depending on the system. One of the choices is rkfixed, which the help claims can solve non-linear systems.
The reason I ask is that while most of the variables are returning sensible values, a couple of the values that are calculated by the algebraic constraints are coming out negative. I have been troubleshooting reasons for this for a while now, and one of them is that maybe I am using the wrong solve function for my system.
Any thoughts would be greatly appreciated,
Donnie

