modelEpriCurrentControl

Current controller in EPRI Grid Forming model

Extends from Parameters.CurrentControl (Current control parameters), Parameters.OmegaFlag (OmegaFlag parameter).

Parameters

TypeNameDefaultDescription
CurrentControl
Types.PerUnitKPi (from CurrentControl)Proportional gain of the current loop, example value = 0.5
Types.PerUnitKIi (from CurrentControl)Integral gain of the current loop, example value = 5
Types.TimetE (from CurrentControl)PT1 constant for voltage output in s, example value = 0.01
General
IntegerOmegaFlag (from OmegaFlag)GFM control type; 0=GFL, 1=droop, 2=VSM, 3=dVOC
Circuit
Types.PerUnitRFilterPuFilter resistance in pu (base UNom, SNom), example value = 0.00015
Types.PerUnitLFilterPuFilter inductance in pu (base UNom, SNom), example value = 0.15
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.PerUnitUdConv0PuStart value of d-axis modulation voltage in pu (base UNom)
Types.PerUnitUdFilter0PuStart value of d-axis voltage at the converter's terminal in pu (base UNom)
Types.PerUnitUqConv0PuStart value of q-axis modulation voltage 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.RealInputidConvPuD-axis current of the converter in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputidConvRefPuD-axis current reference of the converter in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputiqConvPuQ-axis current of the converter in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputiqConvRefPuQ-axis current reference of the converter in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputomegaPuConverter's frequency in pu (base omegaNom)
Modelica.Blocks.Interfaces.RealInputudFilterPuMeasured d-axis voltage 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.RealOutputudConvRefPuD-axis modulation voltage reference in pu (base UNom)
Modelica.Blocks.Interfaces.RealOutputuqConvRefPuQ-axis modulation voltage reference in pu (base UNom)

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.Addadd
Modelica.Blocks.Math.Addadd1
Modelica.Blocks.Math.Addaddd1
Modelica.Blocks.Math.Addaddd2
Modelica.Blocks.Math.Addaddq1
Modelica.Blocks.Math.Addaddq2
Modelica.Blocks.Math.Feedbackfeedbackd
Modelica.Blocks.Math.AddfeedbackLwd
Modelica.Blocks.Math.AddfeedbackLwq
Modelica.Blocks.Math.Feedbackfeedbackq
Modelica.Blocks.Continuous.FirstOrderfirstOrder
Modelica.Blocks.Continuous.FirstOrderfirstOrder1
Modelica.Blocks.Math.Gaingain
Modelica.Blocks.Math.Gaingain1
Modelica.Blocks.Math.Gaingaind
Modelica.Blocks.Math.GainGainLfd
Modelica.Blocks.Math.GainGainLfq
Modelica.Blocks.Math.Gaingainq
Modelica.Blocks.Continuous.Integratorintegratord
Modelica.Blocks.Continuous.Integratorintegratorq
Modelica.Blocks.Math.Productproduct
Modelica.Blocks.Math.Productproduct1