BuildingSystems.Electrical.AC.OnePhase.Sources.Generator

# .BuildingSystems.Electrical.AC.OnePhase.Sources.Generator

Model of a generator

## Information

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

This model must be used with BuildingSystems.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 BuildingSystems.Electrical.AC.UsersGuide.

## 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.

Generated at 2026-05-12T20:19:03Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos