modelGFM

Grid forming control block

Extends from Parameters.Gfm (GFM parameters), Parameters.OmegaFlag (OmegaFlag parameter).

Parameters

TypeNameDefaultDescription
GFM
Types.PerUnitDD (from Gfm)VSM damping factor, example value = 0.11
Types.PerUnitDeltaOmegaMaxPu (from Gfm)Frequency deviation maximum in pu/s (base omegaNom), example value = 75(rad/s)/omegaNom
Types.PerUnitDeltaOmegaMinPu (from Gfm)Frequency deviation minimum in pu/s (base omegaNom), example value = -75(rad/s)/omegaNom
Types.PerUnitK1 (from Gfm)Gain, set according to OmegaFlag
Types.PerUnitK2 (from Gfm)Gain, set according to OmegaFlag
Types.PerUnitK2Dvoc (from Gfm)Gain, set according to OmegaFlag
Types.PerUnitKD (from Gfm)Gain of the active damping, Set according to OmegaFlag
Types.PerUnitMF (from Gfm)VSM inertia constant, example value = 0.15
Types.TimetF (from Gfm)Time constant in s, set according to OmegaFlag
Types.TimetR (from Gfm)Transducer time constant in s, example value = 0.005
Types.TimetV (from Gfm)Time constant in s, set according to OmegaFlag
General
IntegerOmegaFlag (from OmegaFlag)GFM control type; 0=GFL, 1=droop, 2=VSM, 3=dVOC
Initial
Types.ActivePowerPuPGen0PuStart value of the active power at the converter's terminal in pu (base SNom) (generator convention)
Types.ReactivePowerPuQGen0PuStart value of the reactive power at the converter's terminal in pu (base SNom) (generator convention)
Types.AngleTheta0Start value of phase shift between the converter's rotating frame and the grid rotating frame in rad
Types.PerUnitUdFilter0PuStart value of d-axis voltage at the converter's terminal in pu (base UNom)
Types.VoltageModulePuURef0PuStart value of voltage reference at the converter's terminal in pu (base UNom)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputomegaPLLPuPLL measured frequency in pu (base omegaNom)
Modelica.Blocks.Interfaces.RealInputomegaRefPuReference frequency of the system in pu (base omegaNom)
Modelica.Blocks.Interfaces.RealInputPAuxPuActive power auxiliary control signal in pu (base SNom)
Modelica.Blocks.Interfaces.RealInputPPuActive power generated at the converter's terminal in pu (base SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputPRefPuActive power reference at the converter's terminal in pu (base SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputQAuxPuReactive power auxiliary control signal in pu (base SNom)
Modelica.Blocks.Interfaces.RealInputQPuReactive power generated at the converter's terminal in pu (base SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputQRefPuReactive power reference at the converter's terminal in pu (base SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputURefPuvoltage setpoint in pu (base UNom) (generator convention)
Modelica.Blocks.Interfaces.RealOutputomegaPuConverter's frequency in pu (base omegaNom)
Modelica.Blocks.Interfaces.RealOutputthetaPhase shift between the converter's rotating frame and the grid rotating frame in rad
Modelica.Blocks.Interfaces.RealOutputudFilterRefPuD-axis voltage reference at the converter terminals in pu (base UNom)

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.Addadd2
Modelica.Blocks.Math.Addadd5
Modelica.Blocks.Math.AddaddMinusOmega0
Modelica.Blocks.Math.Add3addOmega
Modelica.Blocks.Math.AddaddOmegaBasePu
Modelica.Blocks.Math.Add3addP
Modelica.Blocks.Math.Add3addQ
Modelica.Blocks.Sources.Constantconst
Modelica.Blocks.Sources.Constantconstant1
Modelica.Blocks.Sources.Constantconstant2
Modelica.Blocks.Sources.Constantconstant3
Modelica.Blocks.Sources.Constantconstant4
Modelica.Blocks.Sources.ConstantconstOmega0
Modelica.Blocks.Sources.IntegerConstantconstOmegaFlag
Modelica.Blocks.Math.Feedbackfeedback4
Modelica.Blocks.Math.GaingainK1
Modelica.Blocks.Math.GaingainK2
Modelica.Blocks.Math.GaingainK2dvoc
Modelica.Blocks.Math.GaingainKd
Modelica.Blocks.Continuous.Integratorintegrator1
Modelica.Blocks.Continuous.Integratorintegrator2
Modelica.Blocks.Continuous.FirstOrderlagOmega
Modelica.Blocks.Continuous.FirstOrderlagP
Modelica.Blocks.Continuous.FirstOrderlagQ
Modelica.Blocks.Nonlinear.Limiterlimiter
Dynawo.NonElectrical.Blocks.NonLinear.MultiSwitchmultiSwitchP
Dynawo.NonElectrical.Blocks.NonLinear.MultiSwitchmultiSwitchQ1
Dynawo.NonElectrical.Blocks.NonLinear.MultiSwitchmultiSwitchQ2
Dynawo.NonElectrical.Blocks.NonLinear.MultiSwitchmultiSwitchQOutput
Modelica.Blocks.Math.Productproduct
Modelica.Blocks.Math.Productproduct1
Modelica.Blocks.Sources.RealExpressionURefPu2
Modelica.Blocks.Sources.Constantconstant5
Modelica.Blocks.Math.AddomegaSetPu