modelGrid

Electrical grid

Information

Model that can be used to represent the electrical grid supply.

The model has an output connector named P that contains information about the power supplied by the grid to the network. The convention is that P.real is positive if real power is consumed from the grid, and negative if it is fed into the grid.

The parameter V is the root means square of the voltage. In US households, this is 120 Volts at 60 Hz, in Europe it is 230 Volts at 50 Hz.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.FrequencyfFrequency of the source
Modelica.Units.SI.VoltageVRMS voltage of the source
Modelica.Units.SI.AnglephiSou0Phase shift angle of the source

Connectors

TypeNameDefaultDescription
Buildings.Electrical.AC.OnePhase.Interfaces.Terminal_pterminal
Buildings.Electrical.AC.Interfaces.PowerOutputPPower consumed from grid if positive, or fed to grid if negative

Components

TypeNameDefaultDescription
Buildings.Electrical.AC.OnePhase.Sources.FixedVoltagesouVoltage source

Revisions

  • August 31, 2016, by Michael Wetter:
    Corrected sign error in documentation string of variable P.
  • August 5, 2014, by Marco Bonvini:
    Revised documentation.
  • January 2, 2012, by Michael Wetter:
    First implementation.