modelDiscretization1

Demonstrates the discretization methods
Diagram of Discretization1

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.SecondOrdercontinuous
Modelica_LinearSystems2.Controller.SampleClocksampleClock
Modelica.Blocks.Sources.Stepstep
Modelica_LinearSystems2.Controller.SecondOrderexplicitEuler
Modelica_LinearSystems2.Controller.SecondOrderimplicitEuler
Modelica_LinearSystems2.Controller.SecondOrdertrapezoid
Modelica_LinearSystems2.Controller.SecondOrderimpulseExact
Modelica_LinearSystems2.Controller.SecondOrderstepExact
Modelica_LinearSystems2.Controller.SecondOrderrampExact