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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | w | 20 | Angular frequency |
| Real | D | 0.1 | Damping |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_LinearSystems2.Controller.SecondOrder | continuous | ||
| Modelica_LinearSystems2.Controller.SampleClock | sampleClock | ||
| Modelica.Blocks.Sources.Step | step | ||
| Modelica_LinearSystems2.Controller.SecondOrder | explicitEuler | ||
| Modelica_LinearSystems2.Controller.SecondOrder | implicitEuler | ||
| Modelica_LinearSystems2.Controller.SecondOrder | trapezoid | ||
| Modelica_LinearSystems2.Controller.SecondOrder | impulseExact | ||
| Modelica_LinearSystems2.Controller.SecondOrder | stepExact | ||
| Modelica_LinearSystems2.Controller.SecondOrder | rampExact |