modelVoltageLoop

Voltage loop control for grid forming and grid following converters

Parameters

TypeNameDefaultDescription
Types.PerUnitKpvProportional gain of the voltage loop
Types.PerUnitKivIntegral gain of the voltage loop
Types.PerUnitCFilterFilter capacitance in pu (base UNom, SNom)
Types.PerUnitUdFilter0PuStart value of d-axis voltage at the converter's capacitor in pu (base UNom)
Types.PerUnitUqFilter0PuStart value of q-axis voltage at the converter's capacitor in pu (base UNom)
Types.PerUnitIdConv0PuStart value of d-axis current in the converter in pu (base UNom, SNom) (generator convention)
Types.PerUnitIqConv0PuStart value of q-axis current in the converter in pu (base UNom, SNom) (generator convention)
Types.PerUnitIdPcc0PuStart value of d-axis current in the grid in pu (base UNom, SNom) (generator convention)
Types.PerUnitIqPcc0PuStart value of q-axis current in the grid in pu (base UNom, SNom) (generator convention)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputomegaPuConverter's frequency in pu (base omegaNom)
Modelica.Blocks.Interfaces.RealInputudFilterPud-axis voltage at the converter's capacitor in pu (base UNom)
Modelica.Blocks.Interfaces.RealInputuqFilterPuq-axis voltage at the converter's capacitor in pu (base UNom)
Modelica.Blocks.Interfaces.RealInputudFilterRefPud-axis voltage reference at the converter's capacitor in pu (base UNom)
Modelica.Blocks.Interfaces.RealInputuqFilterRefPuq-axis voltage reference at the converter's capacitor in pu (base UNom)
Modelica.Blocks.Interfaces.RealInputidPccPud-axis current in the grid in pu (base UNom, SNom) (generator convention)
Modelica.Blocks.Interfaces.RealInputiqPccPuq-axis current in the grid in pu (base UNom, SNom) (generator convention)
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)

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.Gaingaind
Modelica.Blocks.Continuous.Integratorintegratord
Modelica.Blocks.Math.Feedbackfeedbackd
Modelica.Blocks.Math.Feedbackfeedbackq
Modelica.Blocks.Math.Gaingainq
Modelica.Blocks.Continuous.Integratorintegratorq
Modelica.Blocks.Math.Productproduct
Modelica.Blocks.Math.Productproduct1
Modelica.Blocks.Math.GainGainCfd
Modelica.Blocks.Math.GainGainCfq
Modelica.Blocks.Math.Addaddd1
Modelica.Blocks.Math.Addaddq1
Modelica.Blocks.Math.AddfeedbackCwd
Modelica.Blocks.Math.AddfeedbackCwq
Modelica.Blocks.Math.Addaddd2
Modelica.Blocks.Math.Addaddq2