modelPadeDelay2

PadeDelay: Compare balance = false with balance = true setting

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

The setting with order=4 gives the same result with balance=false and balance=true. If order=5 or higher is set, then the balance=false setting gives extremely slow simulation. If the balance=false blocks are removed, the simulation is very fast. This shows the improvements in the numerics when balance=true is set.

Parameters

TypeNameDefaultDescription
Integern4Order of Pade approximation
SI.TimedelayTime0.001Delay time of output with respect to input signal

Components

TypeNameDefaultDescription
Modelica.Blocks.Nonlinear.PadeDelaypadeDelay1b
Modelica.Blocks.Sources.Stepstep
Modelica.Blocks.Math.Feedbackcompare1
Modelica.Blocks.Nonlinear.PadeDelaypadeDelay2a
Modelica.Blocks.Nonlinear.PadeDelaypadeDelay2b
Modelica.Blocks.Math.Feedbackcompare2
Modelica.Blocks.Sources.SineSine
Modelica.Blocks.Nonlinear.PadeDelaypadeDelay1a