modelGenerator

Model of a generator

Extends from Buildings.Electrical.Interfaces.Source (Partial model of a generic source.).

Information

Model of a generator that produces real power P with a given phase shift phiGen.

This model must be used with Buildings.Electrical.AC.OnePhase.Sources.Grid or with a voltage source from the package Modelica.Electrical.QuasiStatic.SinglePhase.Sources. Otherwise, there will be no equation that defines the phase angle of the voltage.

The boolean flags potentialReference and definiteReference allows to select the phase angle of the generator as reference for the models connected to it. More info about these flags are available in Buildings.Electrical.AC.UsersGuide.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.FrequencyfFrequency of the source
Modelica.Units.SI.AnglephiGen0Phase shift of the source
Reference Parameters
BooleanpotentialReference (from Source)trueServe as potential root for the reference angle theta
BooleandefiniteReference (from Source)falseServe as definite root for the reference angle theta

Connectors

TypeNameDefaultDescription
Buildings.Electrical.Interfaces.Terminalterminal (from Source)Generalized terminal
Modelica.Blocks.Interfaces.RealInputPVariable power generated by the source

Components

TypeNameDefaultDescription
Modelica.Units.SI.Power[PhaseSystem.n]S (from Source)PhaseSystem.phasePowers_vi(terminal.v, terminal.i)Complex power S[1] = P, S[2]= Q
Modelica.Units.SI.Anglephi (from Source)PhaseSystem.phase(terminal.v) - PhaseSystem.phase(-terminal.i)Phase shift with respect to reference angle
Modelica.Units.SI.CurrentIvalue of current

Revisions

  • January 29, 2019, by Michael Wetter:
    Added replaceable for terminal.
  • September 4, 2014, by Michael Wetter:
    Revised model.
  • August 5, 2014, by Marco Bonvini:
    Revised documentation.
  • January 4, 2012, by Michael Wetter:
    First implementation.