Reputation: 1232
I am trying to using inline integration in Dymola to do real-time simulation, I take the Modelica.Fluid.Examples.HeatingSystem
as an example, but no matter which inline integration method I choose, the simulation always fails.
In my understandings, inline integration means adding the discretization equations to the model equations, then Dymola could do more symbolic manipulations and get a new BLT form. I understand this method could cause more algebraic loops and make it hard for Newton Method to solve these algebraic loops.
My questions are:
Modelica.Fluid.Examples.HeatingSystem
as the case, how could I adjust the model to use inline integration?Upvotes: 1
Views: 292
Reputation: 12507
It seems stuck for most implicit solvers because:
But implicit Euler isn't stuck - it just takes a couple of minutes to complete.
However, you can can increase the step-size for implicit Euler a lot for this model, it actually works fine with 1 s; and then completes in less than second.
Inline explicit Euler fails unless you use a lot smaller step-size (same as non-inline explicit Euler).
Note: The inline solvers in Dymola are all fixed-step-size solvers and thus setting a too short step-size will slow down the simulation and a too long step-size will cause the simulation to fail, whereas dassl, lsodar, radau, esdirk* all adjust the step-size during the integration to avoid both of those problems.
Upvotes: 2