modelDiscretization2

Demonstrates the discretization method for impuls exact discretization

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.SampleClocksampleClock
Modelica_LinearSystems2.Controllers.SecondOrderimpulseExact
Modelica_LinearSystems2.Controllers.SecondOrdercontinuous
Derivativederivative
Modelica.Blocks.Sources.Pulsepulse
Modelica.Blocks.Sources.Stepstep1