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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Frequency | f | Frequency of the source | |
| Modelica.Units.SI.Angle | phiGen | 0 | Phase shift of the source |
| Reference Parameters | |||
| Boolean | potentialReference (from Source) | true | Serve as potential root for the reference angle theta |
| Boolean | definiteReference (from Source) | false | Serve as definite root for the reference angle theta |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Electrical.Interfaces.Terminal | terminal (from Source) | Generalized terminal | |
| Modelica.Blocks.Interfaces.RealInput | P | Variable power generated by the source |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| 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.Angle | phi (from Source) | PhaseSystem.phase(terminal.v) - PhaseSystem.phase(-terminal.i) | Phase shift with respect to reference angle |
| Modelica.Units.SI.Current | I | value of current |
Revisions
-
January 29, 2019, by Michael Wetter:
Addedreplaceablefor 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.