modelClockedWithDiscretizedContinuousController

Simple controlled drive with discretized continuous-time controller

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

Information

Simple controlled drive with discrete-time controller modelled as a clocked partition. The PI controller is defined with a continuous-time block. The clocked partition is automatically discretized with an implicit Euler method by setting parameter useSolver = true in the Advanced menu of block periodicClock and then selecting ImplicitEuler as SolverMethod for the partition.

Components

TypeNameDefaultDescription
Modelica.Mechanics.Rotational.Components.Inertiaload
Modelica.Mechanics.Rotational.Sensors.SpeedSensorspeed
Modelica.Blocks.Sources.Rampramp
Modelica.Blocks.Math.Feedbackfeedback
Modelica.Mechanics.Rotational.Sources.Torquetorque
Clocked.RealSignals.Sampler.SampleClockedsample2
Clocked.RealSignals.Sampler.Holdhold1
Clocked.RealSignals.Sampler.Samplesample1
Modelica.Blocks.Continuous.PIPI
Clocked.ClockSignals.Clocks.PeriodicRealClockperiodicClock