modelEpriVoltageControl

Voltage controller in EPRI Grid Forming model

Extends from Parameters.VoltageControl (Voltage control parameters), Parameters.OmegaFlag (OmegaFlag parameter).

Parameters

TypeNameDefaultDescription
VoltageControl
Types.PerUnitIMaxPu (from VoltageControl)Max current in pu (base UNom, SNom), example value = 1.05
Types.PerUnitKIp (from VoltageControl)Integral gain of the power loop, example value = 10
Types.PerUnitKIv (from VoltageControl)Integral gain of the voltage loop, example value = 150 if OmegaFlag=0 else 10
Types.PerUnitKPp (from VoltageControl)Proportional gain of the power loop, example value = 2
Types.PerUnitKPv (from VoltageControl)Proportional gain of the voltage loop, example value = 0.5 if OmegaFlag=0 else 2.0
Types.PerUnitOmegaDroopPu (from VoltageControl)Frequency droop in pu, example value = 0.05
BooleanPQFlag (from VoltageControl)Active or active power priority flag: false = P priority, true = Q priority
Types.PerUnitQDroopPu (from VoltageControl)Voltage droop in pu, example value = 0.2
Types.PerUnitUDipPu (from VoltageControl)Freeze voltage in pu (base UNom), example value = 0.85
General
IntegerOmegaFlag (from OmegaFlag)GFM control type; 0=GFL, 1=droop, 2=VSM, 3=dVOC
Initial
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.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.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)
Types.AngleTheta0Start value of phase shift between the converter's rotating frame and the grid rotating frame in rad

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputdeltaOmegaPufrequency deviation in pu (base omegaNom)
Modelica.Blocks.Interfaces.RealInputPAuxPuAuxiliary active power in pu (base SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputPPuactive power at converter's terminal in pu (base SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputPRefPuActive power reference in pu (base SNom)
Modelica.Blocks.Interfaces.RealInputQAuxPuAuxiliary reactive power (optional input) in pu (base SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputQPuReactive power at converter's terminal in pu (base SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputQRefPuReactive power reference in pu (base SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputUdFilterPuMeasured d-axis voltage at the converter's terminal in pu (base UNom)
Modelica.Blocks.Interfaces.RealInputUdFilterRefPuD-axis voltage reference at the converter's terminal in pu (base UNom)
Modelica.Blocks.Interfaces.RealInputUqFilterPuMeasured q-axis voltage at the converter's terminal in pu (base UNom)
Modelica.Blocks.Interfaces.RealOutputidConvRefPuD-axis current reference in the converter in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.RealOutputiqConvRefPuQ-axis current reference in the converter in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.BooleanOutputFrz
Modelica.Blocks.Interfaces.RealOutputuMagPu

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.Addadd
Modelica.Blocks.Math.Addadd5
Modelica.Blocks.Math.AddaddPiP
Modelica.Blocks.Math.AddaddPiQ
Modelica.Blocks.Math.AddaddPiV
Modelica.Blocks.Sources.Constantconstant1
Modelica.Blocks.Math.Feedbackfeedback4
Modelica.Blocks.Math.FeedbackfeedbackQ
Modelica.Blocks.Math.FeedbackfeedbackV
Modelica.Blocks.Math.Gaingain7
Modelica.Blocks.Math.GaingainInvertSign
Modelica.Blocks.Math.GaingainPiP
Modelica.Blocks.Math.GaingainPiQ
Modelica.Blocks.Math.GaingainPiV
Modelica.Blocks.Math.GaingainQDroop
Modelica.Blocks.Sources.IntegerConstantintegerConstant1
Dynawo.NonElectrical.Blocks.Continuous.IntegratorSetFreezeintegratorSetFreezePiP
Dynawo.NonElectrical.Blocks.Continuous.IntegratorSetFreezeintegratorSetFreezePiQ
Dynawo.NonElectrical.Blocks.Continuous.IntegratorSetFreezeintegratorSetFreezePiV
Dynawo.NonElectrical.Blocks.Continuous.IntegratorSetFreezeintegratorSetFreezePiVq
Dynawo.Electrical.Controls.Converters.EpriGFM.BaseControls.LvrtFrzlvrtFrz
Dynawo.NonElectrical.Blocks.NonLinear.MultiSwitchmultiSwitchD
Dynawo.NonElectrical.Blocks.NonLinear.MultiSwitchmultiSwitchQ
Modelica.Blocks.Math.Productproduct
Modelica.Blocks.Math.Productproduct1
Modelica.Blocks.Math.Sumsum1
Modelica.Blocks.Math.Sumsum11
Dynawo.NonElectrical.Blocks.NonLinear.VariableLimitervariableLimiterid
Dynawo.NonElectrical.Blocks.NonLinear.VariableLimitervariableLimiteriq
Dynawo.Electrical.Controls.Converters.EpriGFM.BaseControls.CurrentLimitsCalculationcurrentLimitsCalculation
Dynawo.NonElectrical.Blocks.Continuous.SqrtNoEventsqrtNoEvent