modelVoltageControl

Voltage controller

Information

Model representing a voltage controller that unplugs a load when its voltage is outside of the accepted thresholds.

The model contains a finite state machine controller that detects voltage deviations. If the voltage input V exceeds the nominal value V_nominal by more than 1+Vtr then the control signal y becomes zero for a period t = tDelay. If after this period the voltage is still higher than the thresholds the output remains equal to zero. The model has a parameter T that represents the time constant associated to the electrical switch. This time constant is used to parametrize a first order filter that represents such a dynamic effect. The presence of the first order filter avoids that the output of the finite state machine controller are differentiated (causing runtime errors).

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.VoltageV_nominalNominal voltage of the node to be controlled
RealvThresh0.1Threshold that activates voltage ctrl (ratio of nominal voltage)
Modelica.Units.SI.TimetDelay300Time to wait before plugging the load back
Modelica.Units.SI.TimeT0.01Time constant representing the switching time
Realy_start1.0Initial value of the control output signal
Modelica.Units.SI.VoltageVminV_nominal*(1 - vThresh)Low threshold
Modelica.Units.SI.VoltageVmaxV_nominal*(1 + vThresh)High threshold

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputyControl signal
Buildings.Electrical.Interfaces.TerminalterminalGeneralized terminal

Components

TypeNameDefaultDescription
Buildings.Electrical.Utilities.Controllers.StateMachineVoltCtrlctrlModel that implements the state machines voltage controller

Contents

NameDescription
PhaseSystem

Revisions

  • March 10, 2014, by Marco Bonvini:
    Added time constant T and first order filer to avoid differentiation of the outputs of the finite state machine.
  • Oct 14, 2014, by Marco Bonvini:
    Revised model and documentation.
  • Aug 28, 2014, by Marco Bonvini:
    Added documentation.