modelComptodq

Computation of dq components from grid measurements in EPRI Grid Forming model

Extends from Parameters.PLL, Parameters.OmegaFlag (OmegaFlag parameter).

Parameters

TypeNameDefaultDescription
Pll
Types.PerUnitKIPll (from PLL)PLL integrator gain, example value = 700
Types.PerUnitKPPll (from PLL)PLL proportional gain, example value = 20
Types.PerUnitOmegaMaxPu (from PLL)PLL Upper frequency limit in pu (base OmegaNom), example value = 1.5
Types.PerUnitOmegaMinPu (from PLL)PLL Lower frequency limit in pu (base OmegaNom), example value = 0.5
General
IntegerOmegaFlag (from OmegaFlag)GFM control type; 0=GFL, 1=droop, 2=VSM, 3=dVOC
Types.ApparentPowerModuleSNomNominal apparent power in MVA
Initial
Types.ComplexCurrentPuiInj0PuStart value of complex current at converter's terminal in pu (base UNom, SnRef) (generator convention)
Types.PerUnitIdConv0PuStart value of d-axis current of the converter in pu (base UNom, SNom) (generator convention)
Types.PerUnitIqConv0PuStart value of q-axis current of the converter in pu (base UNom, SNom) (generator convention)
Types.AngleTheta0Start value of phase shift between the converter's rotating frame and the grid rotating frame in rad
Types.ComplexVoltagePuu0PuStart value of complex voltage at converter's terminal in pu (base UNom)
Types.PerUnitUdFilter0PuStart value of d-axis voltage at the converter's terminal in pu (base UNom)
Types.PerUnitUqFilter0PuStart value of q-axis voltage at the converter's terminal in pu (base UNom)

Connectors

TypeNameDefaultDescription
Modelica.ComplexBlocks.Interfaces.ComplexInputiInjPuComplex current in pu (base UNom, SnRef) (generator convention)
Modelica.Blocks.Interfaces.RealInputphiVoltage phase at injector terminal in rad
Modelica.Blocks.Interfaces.RealInputthetaGFMPhase shift between the converter's rotating frame and the grid rotating frame in rad
Modelica.ComplexBlocks.Interfaces.ComplexInputuInjPuComplex voltage in pu (base UNom)
Modelica.Blocks.Interfaces.RealOutputidConvPuD-axis current of the converter in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.RealOutputiMagPu
Modelica.Blocks.Interfaces.RealOutputiqConvPuQ-axis current of the converter in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.RealOutputudFilterPuD-axis voltage at the converter's terminal in pu (base UNom)
Modelica.Blocks.Interfaces.RealOutputuqFilterPuQ-axis voltage at the converter's terminal in pu (base UNom)

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.ProductidSquare
Modelica.Blocks.Math.GainchangeOfBaseD
Modelica.Blocks.Math.GainchangeOfBaseq
Modelica.Blocks.Sources.IntegerConstantintegerConstant
Modelica.Blocks.Math.ProductiqSquare
Dynawo.NonElectrical.Blocks.NonLinear.MultiSwitchmultiSwitch
Modelica.Blocks.Math.Sqrtsqrt1
Modelica.Blocks.Math.Addsumidiq
Dynawo.Electrical.Controls.WECC.Utilities.TransformRItoDQtransformRItoDQ
Dynawo.Electrical.Controls.WECC.Utilities.TransformRItoDQtransformRItoDQ1