modelDiscretization2

Demonstrates the discretization method for impuls exact discretization
Diagram of Discretization2

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