modelTestVoltageCTRL

This test check the correctness of the voltage controller model

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

Information

This example shows the use of the voltage controller.

The voltage controller is connected to a variable voltage source that oscillates between 140 and 100 V. The nominal voltage is Vnom = 120 V. The controller has the following settings:

  • Nominal voltage Vnom = 120 V,
  • Threshold Vtr = 0.1 (10%),
  • tdelay Tdelay = 2 s.

Therefore, when the voltage controller measures a voltage that is 10% higher that 120 V (that is 132 V), it sets its output signal y to zero. The output signal stays at zero for Tdelay, after which it expires. Then, the controllers check again if the voltage is within the accepted thresholds.

The image below shows how the signal becomes equal to zero when the measured voltage exceeds the threshold.

image

The figure shows that the signal y becomes zero around t = 1 s. After Tdelay the voltage is still higher that 123 V and thus the controller waits until t = 5 s to change the signal to one.

Components

TypeNameDefaultDescription
VoltageControlvoltageControlVoltage controller
DC.Sources.VoltageSourcesouVarriable voltage source
Modelica.Electrical.Analog.Basic.Groundground
Modelica.Blocks.Sources.SinecosineVariable voltage signal
Modelica.Blocks.Sources.ConstantVtr_highVoltage threshold high

Revisions

  • March 10, 2015, by Marco Bonvini:
    Revised image of the example after modification to the voltage controller (added first order dynamics in the switch).
  • Oct 14, 2014, by Marco Bonvini:
    Added model and documentation.