modelREECA1

Electrical control model for large scale wind

Extends from OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.BaseREECA (Base renewable energy electrical controller model A).

Information

The REECA1 component used to represent the electrical controls of wind turbine generation. The electrical controller actuates on the active and reactive power reference from either the plant controller component or from power flow power reference values (in the case where there is no plant controller), with feedback variables that original from the inverter interface component, specifically terminal voltage and generator power output, and provides real (Ipcmd) and reactive current (Iqcmd) commands to the REGC type modules.

For initialization purposes, there are 5 inputs that are derived from the inverter component: initial real and reactive injection currents (IP0 and IQ0), initial terminal voltage (v_0), and initial active and reactive power injections (p_0 and q_0).

In terms of connectivity with other components to form the renewable source, the REECA1 component has six inputs, three of which are connected to the inverter component (for instance REGCA1), two more that can either be constant values from the power flow initialization or come from the connection to the plant controller, and an input (wg) that allows modeling the torscional frequencies on the turbine shaft originated from disturbances. The three REECA1 inputs that take in values from the output of the inverter model are Vt, Pgen, and Qgen while the two inputs that could potentially be constant valued or come from the plant controller are Pref, and Qext.

The modelling of such devices is based, mainly, on the following references:

Parameters

TypeNameDefaultDescription
OpenIPSL.Types.PerUnitVdip-99Low voltage threshold to activate reactive current injection logic (0.85 - 0.9)
OpenIPSL.Types.PerUnitVup99Voltage above which reactive current injection logic is activated (>1.1)
OpenIPSL.Types.TimeTrv0.01Filter time constant for voltage measurement (0.01 - 0.02)
OpenIPSL.Types.PerUnitdbd1-0.05Voltage error dead band lower threshold (-0.1 - 0)
OpenIPSL.Types.PerUnitdbd20.05Voltage error dead band upper threshold (0 - 0.1)
RealKqv0Reactive current injection gain during over and undervoltage conditions (0 - 10)
OpenIPSL.Types.PerUnitIqh11.05Upper limit on reactive current injection Iqinj (1 - 1.1)
OpenIPSL.Types.PerUnitIql1-1.05Lower limit on reactive current injection Iqinj (-1.1 - 1)
OpenIPSL.Types.PerUnitvref00User defined voltage reference (0.95 - 1.05)
OpenIPSL.Types.PerUnitIqfrz0.15Value at which Iqinj is held for Thld seconds following a voltage dip if Thld > 0
OpenIPSL.Types.TimeThld0Time for which Iqinj is held at Iqfrz after voltage dip returns to zero
OpenIPSL.Types.TimeTp0.05Filter time constant for electrical power (0.01 - 0.1)
OpenIPSL.Types.PerUnitQmax0.4Upper limits of the limit for reactive power regulator (0.4 - 1.0)
OpenIPSL.Types.PerUnitQmin-0.4Lower limits of the limit for reactive power regulator (-1.0 - -0.4)
OpenIPSL.Types.PerUnitVmax1.1Maximum limit for voltage control (1.05 - 1.1)
OpenIPSL.Types.PerUnitVmin0.9Lower limits of input signals (0.9 - 0.95)
RealKqp0Reactive power regulator proportional gain (No predefined range)
RealKqi0.1Reactive power regulator integral gain (No predefined range)
RealKvp0Voltage regulator proportional gain (No predefined range)
RealKvi120Voltage regulator integral gain (No predefined range)
OpenIPSL.Types.PerUnitVbias0User-defined reference/bias on the inner-loop voltage control (No predefined range)
OpenIPSL.Types.TimeTiq0.02Time constant on lag delay (0.01 - 0.02)
RealdPmax99Power reference maximum ramp rate (No predefined range)
RealdPmin-99Lower limits of input signals (No predefined range)
OpenIPSL.Types.PerUnitPmax1Maximum power limit
OpenIPSL.Types.PerUnitPmin0Minimum power limit
OpenIPSL.Types.PerUnitImax1.7Maximum limit on total converter current (1.1 - 1.3)
OpenIPSL.Types.TimeTpord0.04Power filter time constant (0.01 - 0.02)
OpenIPSL.Types.PerUnitVq10.29Reactive Power V-I pair, voltage (user defined)
OpenIPSL.Types.PerUnitIq11.25Reactive Power V-I pair, current (user defined)
OpenIPSL.Types.PerUnitVq21.33Reactive Power V-I pair, voltage (user defined)
OpenIPSL.Types.PerUnitIq20.00Reactive Power V-I pair, current (user defined)
OpenIPSL.Types.PerUnitVq31.33Reactive Power V-I pair, voltage (user defined)
OpenIPSL.Types.PerUnitIq30.00Reactive Power V-I pair, current (user defined)
OpenIPSL.Types.PerUnitVq41.33Reactive Power V-I pair, voltage (user defined)
OpenIPSL.Types.PerUnitIq40.00Reactive Power V-I pair, current (user defined)
OpenIPSL.Types.PerUnitVp10.00Real Power V-I pair, voltage (user defined)
OpenIPSL.Types.PerUnitIp11.15Real Power V-I pair, current (user defined)
OpenIPSL.Types.PerUnitVp21.1Real Power V-I pair, voltage (user defined)
OpenIPSL.Types.PerUnitIp21.24Real Power V-I pair, current (user defined)
OpenIPSL.Types.PerUnitVp32Real Power V-I pair, voltage (user defined)
OpenIPSL.Types.PerUnitIp31.24Real Power V-I pair, current (user defined)
OpenIPSL.Types.PerUnitVp42Real Power V-I pair, voltage (user defined)
OpenIPSL.Types.PerUnitIp41.24Real Power V-I pair, current (user defined)
Control
Booleanpfflag (from BaseREECA)trueConstant output value
Booleanvflag (from BaseREECA)trueConstant output value
Booleanqflag (from BaseREECA)trueConstant output value
Booleanpqflag (from BaseREECA)trueConstant output value
Booleanpflag (from BaseREECA)trueConstant output value

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputVt (from BaseREECA)Terminal Voltage Magnitude
Modelica.Blocks.Interfaces.RealInputPe (from BaseREECA)Active Power Generated
Modelica.Blocks.Interfaces.RealInputQext (from BaseREECA)Reactive Power Reference
Modelica.Blocks.Interfaces.RealInputQgen (from BaseREECA)Reactive Power Generated
Modelica.Blocks.Interfaces.RealInputPref (from BaseREECA)Active Power Reference
Modelica.Blocks.Interfaces.RealInputip0 (from BaseREECA)Initial Real Current
Modelica.Blocks.Interfaces.RealInputiq0 (from BaseREECA)Initial Imaginary Current
Modelica.Blocks.Interfaces.RealOutputIqcmd (from BaseREECA)Reactice Command Current
Modelica.Blocks.Interfaces.RealOutputIpcmd (from BaseREECA)Real Command Current
Modelica.Blocks.Interfaces.RealInputWg (from BaseREECA)Rotational Speed Generator
Modelica.Blocks.Interfaces.RealInputv0 (from BaseREECA)Initial Terminal Voltage Magnitude
Modelica.Blocks.Interfaces.RealInputp0 (from BaseREECA)Initial Active Power
Modelica.Blocks.Interfaces.RealInputq0 (from BaseREECA)Initial Reactive Power

Components

TypeNameDefaultDescription
BooleanVoltage_dip
Modelica.Blocks.Sources.BooleanConstantPfFlag_logic
Modelica.Blocks.Logical.SwitchPfFlagConstant Q (False) or PF (True) local control.
Modelica.Blocks.Nonlinear.Limiterlimiter1
Modelica.Blocks.Math.Addadd1
Modelica.Blocks.Sources.BooleanConstantVflag_logic
Modelica.Blocks.Logical.SwitchVFlagConstant Q (False) or PF (True) local control.
Modelica.Blocks.Nonlinear.Limiterlimiter3
Modelica.Blocks.Math.Addadd4
Modelica.Blocks.Sources.RealExpressionVt_filt2
Modelica.Blocks.Sources.RealExpressionIQMAX_
Modelica.Blocks.Sources.RealExpressionIQMIN_
Modelica.Blocks.Logical.SwitchQFlag
Modelica.Blocks.Sources.BooleanConstantQFLAG
Modelica.Blocks.Math.Addadd6
Modelica.Blocks.Nonlinear.VariableLimitervariableLimiter
Modelica.Blocks.Sources.RealExpressionIQMIN
Modelica.Blocks.Sources.RealExpressionIQMAX
Modelica.Blocks.Math.Addadd7
Modelica.Blocks.Continuous.Integratorintegrator2
Modelica.Blocks.Sources.RealExpressionVt_filt1
Modelica.Blocks.Nonlinear.Limiterlimiter4
Modelica.Blocks.Math.Divisiondivision
Modelica.Blocks.Tables.CombiTable1DsVDL1
Modelica.Blocks.Tables.CombiTable1DsVDL2
Modelica.Blocks.Continuous.Integratorintegrator3
Modelica.Blocks.Math.Addadd8
Modelica.Blocks.Nonlinear.Limiterlimiter5
Modelica.Blocks.Nonlinear.Limiterlimiter6
Modelica.Blocks.Math.Productproduct5
Modelica.Blocks.Sources.RealExpressionGeneratorSpeed
Modelica.Blocks.Math.Divisiondivision1
Modelica.Blocks.Nonlinear.Limiterlimiter7
Modelica.Blocks.Sources.RealExpressionVt_filt3
Modelica.Blocks.Nonlinear.VariableLimitervariableLimiter1
Modelica.Blocks.Sources.RealExpressionIPMAX
Modelica.Blocks.Sources.RealExpressionIPMIN
OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.CurrentLimitLogicREECACCL_REECA
Modelica.Blocks.Sources.RealExpressionIQCMD
Modelica.Blocks.Sources.BooleanConstantPQFLAG
Modelica.Blocks.Sources.RealExpressionIPCMD
Modelica.Blocks.Math.Addadd
Modelica.Blocks.Nonlinear.Limiterlimiter
Modelica.Blocks.Sources.RealExpressionVREF0
Modelica.Blocks.Nonlinear.DeadZonedbd1_dbd2
Modelica.Blocks.Math.Gaingain2
Modelica.Blocks.Logical.SwitchStateTransitionSwitch
Modelica.Blocks.Sources.ConstantState0
Modelica.Blocks.Sources.BooleanExpressionStateTransitionLogic
OpenIPSL.NonElectrical.Continuous.SimpleLagsimpleLag1
Modelica.Blocks.Math.Tantan1
Modelica.Blocks.Math.Productproduct1
Modelica.Blocks.Sources.RealExpressionPFAREF
Modelica.Blocks.Math.Addadd3
Modelica.Blocks.Sources.RealExpressionVBIAS
BaseClasses.PIwithVariableLimiterpI_No_Windup
BaseClasses.PIwithNoVariableLimiterpI_No_Windup_notVariable
Modelica.Blocks.Sources.BooleanExpressionVLogic
NonElectrical.Continuous.SimpleLagVFilter