modelREGCA1
Extends from BaseClasses.BaseREGC (Base renewable generator/converter for PSSE models).
Information
The REGCA1 component is used to represent the renewable source (inverter) interface with the grid. It takes in as input the real current command (Ipcmd) and the reactive current command (Iqcmd) from the electrical controller, and outputs real (Ip) and reactive (Iq) injected currents to the grid through OpenIPSL's proprietary pwpin connector.
In order to properly initialize all the components that form the renewable energy source, the REGC_A component has five initialization outputs, which its constant output originates from the starting power flow: 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). This method reduces repetitiveness of initialization calculation, being calculated once at the REGCA1 component.
The connection with other components requires a closed loop through terminal voltage variable (V_t), and active and reactive power generation (Pgen and Qgen).
The modelling of such devices is based, mainly, on the following reference:
Siemens: "PSS®E Model Library" [PSSE-MODELS].
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Power flow data | |||
| OpenIPSL.Types.ApparentPower | M_b (from BaseREGC) | SysData.S_b | Machine base power |
| Types.ApparentPower | S_b (from pfComponent) | SysData.S_b | System base power |
| Types.Voltage | V_b (from pfComponent) | 400e3 | Base voltage of the bus |
| Types.Frequency | fn (from pfComponent) | SysData.fn | System frequency |
| Types.ActivePower | P_0 (from pfComponent) | 1e6 | Initial active power |
| Types.ReactivePower | Q_0 (from pfComponent) | 0 | Initial reactive power |
| Types.PerUnit | v_0 (from pfComponent) | 1 | Initial voltage magnitude |
| Types.Angle | angle_0 (from pfComponent) | 0 | Initial voltage angle |
| Boolean | displayPF (from pfComponent) | false | Display power flow: |
| Parameter mask | |||
| Boolean | enableS_b (from pfComponent) | false | Enable S_b in parameter list |
| Boolean | enableV_b (from pfComponent) | false | Enable V_b in parameter list |
| Boolean | enablefn (from pfComponent) | false | Enable fn in parameter list |
| Boolean | enableP_0 (from pfComponent) | false | Enable P_0 in parameter list |
| Boolean | enableQ_0 (from pfComponent) | false | Enable Q_0 in parameter list |
| Boolean | enablev_0 (from pfComponent) | false | Enable v_0 in parameter list |
| Boolean | enableangle_0 (from pfComponent) | false | Enable angle_0 in parameter list |
| Boolean | enabledisplayPF (from pfComponent) | false | Enable displayPF in parameter list |
| Input Parameters | |||
| Modelica.Units.SI.Time | Tg (from BaseREGC) | 0.02 | Converter time constant |
| Modelica.Units.SI.TimeAging | rrpwr (from BaseREGC) | 10 | Low Voltage Power Logic (LVPL) ramp rate limit |
| OpenIPSL.Types.PerUnit | Brkpt (from BaseREGC) | 0.9 | LVPL characteristic voltage 2 |
| OpenIPSL.Types.PerUnit | Zerox (from BaseREGC) | 0.5 | LVPL characteristic voltage 1 |
| OpenIPSL.Types.PerUnit | Lvpl1 (from BaseREGC) | 1.22 | LVPL gain |
| OpenIPSL.Types.PerUnit | Volim (from BaseREGC) | 1.2 | Voltage limit for high voltage reactive current management |
| OpenIPSL.Types.PerUnit | lvpnt1 (from BaseREGC) | 0.8 | High voltage point for low voltage active current management |
| OpenIPSL.Types.PerUnit | lvpnt0 (from BaseREGC) | 0.4 | Low voltage point for low voltage active current management |
| OpenIPSL.Types.PerUnit | Iolim (from BaseREGC) | -1.3 | Current limit for high voltage reactive current management (specified as a negative value) |
| Modelica.Units.SI.Time | Tfltr (from BaseREGC) | 0.02 | Voltage filter time constant for low voltage active current management |
| Real | Khv (from BaseREGC) | 0.7 | Overvoltage compensation gain used in the high voltage reactive current management |
| Modelica.Units.SI.TimeAging | Iqrmax (from BaseREGC) | 9999 | Upper limit on rate of change for reactive current |
| Modelica.Units.SI.TimeAging | Iqrmin (from BaseREGC) | -9999 | Lower limit on rate of change for reactive current |
| Controls | |||
| Boolean | Lvplsw (from BaseREGC) | true | Enable (true) or disable (false) low voltage power logic. |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| OpenIPSL.Interfaces.PwPin | p (from BaseREGC) | ||
| Modelica.Blocks.Interfaces.RealInput | Iqcmd (from BaseREGC) | Imaginary Command Current | |
| Modelica.Blocks.Interfaces.RealInput | Ipcmd (from BaseREGC) | Real Command Current | |
| Modelica.Blocks.Interfaces.RealOutput | IQ0 (from BaseREGC) | Initial Reactive Power | |
| Modelica.Blocks.Interfaces.RealOutput | IP0 (from BaseREGC) | Initial Active Power | |
| Modelica.Blocks.Interfaces.RealOutput | V_0 (from BaseREGC) | Initial Terminal Voltage Magnitude | |
| Modelica.Blocks.Interfaces.RealOutput | q_0 (from BaseREGC) | Initial Reactive Power | |
| Modelica.Blocks.Interfaces.RealOutput | p_0 (from BaseREGC) | Initial Active Power | |
| Modelica.Blocks.Interfaces.RealOutput | V_t (from BaseREGC) | Terminal Voltage Magnitude | |
| Modelica.Blocks.Interfaces.RealOutput | Pgen (from BaseREGC) | Active Power injection | |
| Modelica.Blocks.Interfaces.RealOutput | Qgen (from BaseREGC) | Reactive Power injection |