modelReferenceBus

Reference bus for an isolated grid

Extends from PowerGrids.Electrical.BaseClasses.OnePortAC (Base class for AC components with one port), Icons.Bus.

Information

When an isolated synchronous grid is initialized in steady state, the reference angle remains undefined. In order to make the angles well defined, this ReferenceBus component should be used in the position where the power flow problem has the slack node.

The purpose of this component when the grid is initialized in steady state is twofold:

  • Set the initial voltage of the node to the same value as in the power flow model, i.e. with magnitude UStart and phase UPhaseStart
  • Absorb the excess active power PSlack and reactive power QSlack that allow to balance the power flows at the nominal value of frequency. These two values correspond to the active and reactive power flows into the slack node of the power flow model. PSlack and QSlack then remain constant throughout the simulation. If the power flow is correcty balanced, those two values are nearly zero, so the Reference Bus is not absorbing any significant active or reactive power during the simulation.
If setPhaseOnly is set to true, then only the initial phase of the bus voltage is set to the same value of the power flow, i.e., UPhaseStart. The initial voltage magnitude is computed to ensure zero reactive power flow QSlack.

Parameters

TypeNameDefaultDescription
Types.VoltageUNom (from OnePortAC)Nominal/rated line-to-line voltage
Types.ApparentPowerSNom (from OnePortAC)Nominal/rated apparent power
BooleanportVariablesPhases (from OnePortAC)falseCompute voltage and current phases for monitoring purposes only
BooleanportVariablesPu (from OnePortAC)trueAdd per-unit variables to model
BooleangeneratorConvention (from OnePortAC)falseAdd currents with generator convention (i > 0 when exiting the device) to model
LocalInitializationOptionlocalInit (from OnePortAC)LocalInitializationOption.noneInitialize the component locally in steady state from port start values
BooleansetPhaseOnlyfalse= true if only the initial voltage phase is to be set
InitializationOptioninitOptsystemPowerGrids.initOptInitialization option
Types.ComplexPerUnitnStartCM.fromPolar(1, UPhaseStart)Unit phasor with angle UPhaseStart
Types.ActivePowerPSlackConstant slack active power leaving system through bus
Types.ReactivePowerQSlackConstant slack reactive power leaving system through bus
Initialization
Types.VoltageUStart (from OnePortAC)UNomStart value of phase-to-phase voltage phasor, absolute value
Types.AngleUPhaseStart (from OnePortAC)0Start value of phase-to-phase voltage phasor, phase angle
Types.ActivePowerPStart (from OnePortAC)SNomStart value of active power flowing into the port
Types.ReactivePowerQStart (from OnePortAC)0Start value of reactive power flowing into the port

Connectors

TypeNameDefaultDescription
PowerGrids.Interfaces.TerminalACterminal (from OnePortAC)

Components

TypeNameDefaultDescription
PortACport (from OnePortAC)AC port of node
Electrical.SystemsystemPowerGrids (from OnePortAC)Reference to system object