3
votes

I am intersted, how a modelling tool (in my case OpenModelica and Dymola - modelling language Modelica) solves systems of equations (linear and/or nonlinear). These tools are designed for solving differential algebraic equations. I know a little bit the theory behind transforming a differential algebraic equation sytem into an ODE (keyword "index-reduction"). My questions:

  1. How do these tools solve a system of equations without differential equations? Is the system nevertheless transformed (index reduction) into an ODE?
  2. What if I have a model that has a few algebraic equations and a few ODE - but they are not coupled?

Thank you very much.

2

2 Answers

2
votes

OpenModelica will use an equidistant time grid based on the number of output time points (or number of intervals) and solve the algebraic system for each of these time points.

2
votes

The basics of how equations are transformed into assignments are covered very well in the slide-decks 1-6 of Prof. Cellier's Lecture at the ETH Zurich: https://www.inf.ethz.ch/personal/fcellier/Lect/MMPS/Refs/mmps_refs.html

You will find further references at the end of every lecture.

The only difference for systems without differential equations is that you don't have state-variables, the rest works the same way.