modelNetworkControlled

Dynamic power flow calculation with two generators

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

The fixed voltage sources of NetworkOpened have been replaced with generators. Generator1 provides for primary frequency control, while generator2 introduces fluctuations.

Note the computation of the average sytem frequency in the global system model, basing on senders for each generator. This is needed for initialization (see initial equations in the text view). The initialization of the simulation corresponds to a black start in the real world.

The remainder of the PowerFlow library hides this mechanism in the composed generator or plant models.

Components

TypeNameDefaultDescription
PowerSystems.Generic.Impedanceimpedance1
PowerSystems.Generic.Impedanceimpedance2
PowerSystems.Generic.Impedanceimpedance3
PowerSystems.Generic.Impedanceimpedance4
PowerSystems.Generic.Impedanceimpedance5
PowerSystems.Generic.FixedCurrentfixedCurrent3
PowerSystems.Generic.FixedCurrentfixedCurrent1
PowerSystems.Generic.FixedCurrentfixedCurrent2
PowerSystems.Generic.FixedCurrentfixedCurrent4
PowerSystems.Generic.Transformertransformer1
PowerSystems.Generic.Transformertransformer2
PowerSystems.Generic.Generatorgenerator1
Modelica.Mechanics.Rotational.Components.Inertiainertia1
PowerSystems.Generic.Generatorgenerator2
Modelica.Mechanics.Rotational.Components.Inertiainertia2
Modelica.Mechanics.Rotational.Sources.Torqueturbine1
Modelica.Mechanics.Rotational.Sensors.SpeedSensorangularVelocity
Modelica.Mechanics.Rotational.Sources.Torqueturbine2
Modelica.Blocks.Sources.Trapezoiddisturbance
Modelica.Blocks.Sources.Constantconst
Modelica.Blocks.Continuous.LimPIDfrequencyPowerControl
Modelica.Blocks.Math.Gainfrequency
Systemsystem
Interfaces.Sendersender1
Interfaces.Sendersender2