modelQRefQU

Function that calculates QRef for the Q mode and the U mode depending on the setpoints for URef and QRef

Extends from Dynawo.Electrical.HVDC.HvdcVsc.BaseControls.Parameters.ParamsQRefQU (Parameters of reactive power reference calculation).

Parameters

TypeNameDefaultDescription
Types.PerUnitKiAc (from ParamsQRefQU)Integral coefficient of the PI controller for the AC voltage control
Types.PerUnitKpAc (from ParamsQRefQU)Proportional coefficient of the PI controller for the AC voltage control
Types.PerUnitLambdaPu (from ParamsQRefQU)Lambda coefficient for the QRefUPu calculation in pu (base SNom, UNom)
Types.PerUnitSlopeQRefPu (from ParamsQRefQU)Slope of the ramp of QRefPu in pu/s (base SNom)
Types.PerUnitSlopeURefPu (from ParamsQRefQU)Slope of the ramp of URefPu in pu/s (base UNom)
Types.ReactivePowerPuQ0PuStart value of reactive power in pu (base SNom) (DC to AC)
Types.VoltageModulePuU0PuStart value of voltage amplitude in pu (base UNom)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputiqModNegIf true, additional reactive current is negative
Modelica.Blocks.Interfaces.RealInputQPuReactive power in pu (base SNom) (DC to AC)
Modelica.Blocks.Interfaces.RealInputQRefLimPuLimited reference reactive power in pu (base SNom) (DC to AC) after applying the diagrams
Modelica.Blocks.Interfaces.RealInputQRefPuReference reactive power in pu (base SNom) (DC to AC)
Modelica.Blocks.Interfaces.RealInputUPuVoltage module in pu (base UNom)
Modelica.Blocks.Interfaces.RealInputURefPuReference voltage in pu (base UNom)
Modelica.Blocks.Interfaces.RealOutputQRefQPuReference reactive power in Q mode in pu (base SNom) (DC to AC)
Modelica.Blocks.Interfaces.RealOutputQRefUPuReference reactive power in U mode in pu (base SNom) (DC to AC)

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.Feedbackfeedback
Modelica.Blocks.Math.Gaingain
Modelica.Blocks.Math.Feedbackfeedback1
Modelica.Blocks.Nonlinear.SlewRateLimiterslewRateLimiter
Modelica.Blocks.Nonlinear.SlewRateLimiterslewRateLimiter1
Modelica.Blocks.Math.Gaingain1
Modelica.Blocks.Math.Addadd1
Modelica.Blocks.Math.Addadd
Modelica.Blocks.Continuous.Integratorintegrator
Modelica.Blocks.Math.Feedbackfeedback2
Modelica.Blocks.Logical.Switchswitch
Modelica.Blocks.Sources.Constantconst