modelDiscretization1

Demonstrates the discretization methods

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

Information

Demonstrates the different discretization methods by simulating the step response of a second order system as continuous system and as discrete system with the supported discretization methods. The step starts with an offset at 0.1 s to demonstrate the steady-state initialization.

Parameters

TypeNameDefaultDescription
Realw20Angular frequency
RealD0.1Damping

Components

TypeNameDefaultDescription
Modelica_LinearSystems2.Controllers.SecondOrdercontinuous
Modelica_LinearSystems2.Controllers.SampleClocksampleClock
Modelica.Blocks.Sources.Stepstep
Modelica_LinearSystems2.Controllers.SecondOrderexplicitEuler
Modelica_LinearSystems2.Controllers.SecondOrderimplicitEuler
Modelica_LinearSystems2.Controllers.SecondOrdertrapezoid
Modelica_LinearSystems2.Controllers.SecondOrderimpulseExact
Modelica_LinearSystems2.Controllers.SecondOrderstepExact
Modelica_LinearSystems2.Controllers.SecondOrderrampExact