modelREPCa
Extends from Dynawo.Electrical.Controls.WECC.Parameters.ParamsREPC.
Information
This block contains the generic WECC PV plant level control model according to (in case page cannot be found, copy link in browser): https://www.wecc.biz/Reliability/WECC%20Solar%20Plant%20Dynamic%20Modeling%20Guidelines.pdf
Plant level active and reactive power/voltage control. Reactive power or voltage control dependent on RefFlag. Frequency dependent active power control is enabled or disabled with FreqFlag. With voltage control (RefFlag = true), voltage at remote bus can be controlled when VcompFlag == true. Therefore, RcPu and XcPu shall be defined as per real impedance between inverter terminal and regulated bus. If measurements from the regulated bus are available, VcompFlag should be set to false and the measurements from regulated bus shall be connected with the input measurement signals (PRegPu, QRegPu, uPu, iPu).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Types.PerUnit | RcPu | Line drop compensation resistance when VcompFlag = 1 in pu (base SnRef, UNom) | |
| Types.PerUnit | XcPu | Line drop compensation reactance when VcompFlag = 1 in pu (base SnRef, UNom) | |
| Types.PerUnit | PGen0Pu | Start value of active power at regulated bus in pu (generator convention) (base SNom) | |
| Types.PerUnit | QGen0Pu | Start value of reactive power at regulated bus in pu (generator convention) (base SNom) | |
| Types.PerUnit | U0Pu | Start value of voltage magnitude at regulated bus in pu (base UNom) | |
| Types.ComplexPerUnit | u0Pu | Start value of complex voltage at regulated bus in pu (base UNom) | |
| Types.PerUnit | UInj0Pu | Start value of voltage magnitude at injector terminal in pu (base UNom) | |
| Types.ComplexPerUnit | iInj0Pu | Start value of complex current at regulated bus in pu (generator convention) (base SNom, UNom) | |
| Types.PerUnit | PInj0Pu | Start value of active power at injector terminal in pu (generator convention) (base SNom) | |
| Types.PerUnit | QInj0Pu | Start value of reactive power at injector terminal in pu (generator convention) (base SNom) | |
| Types.PerUnit | URef0Pu | if VCompFlag == true then UInj0Pu else U0Pu + Kc*QGen0Pu | Start value of voltage setpoint for plant level control, calculated depending on VcompFlag, in pu (base UNom) |
| Plant Control | |||
| Boolean | FreqFlag (from ParamsREPC) | Governor response disable (0) or enable (1) | |
| Boolean | RefFlag (from ParamsREPC) | Plant level reactive power (0) or voltage control (1) | |
| Boolean | VCompFlag (from ParamsREPC) | Reactive droop (0) or line drop compensation (1) if RefFlag true | |
| Types.PerUnit | DbdPu (from ParamsREPC) | Reactive power (RefFlag = 0) or voltage (RefFlag = 1) deadband in pu (base SNom or UNom) (typical: 0..0.1) | |
| Types.PerUnit | DDn (from ParamsREPC) | Down regulation droop (typical: 20..33.3) | |
| Types.PerUnit | DUp (from ParamsREPC) | Up regulation droop (typical: 0) | |
| Types.PerUnit | EMaxPu (from ParamsREPC) | Maximum Volt/VAR error in pu (base UNom or SNom) | |
| Types.PerUnit | EMinPu (from ParamsREPC) | Minimum Volt/VAR error in pu (base UNom or SNom) | |
| Types.PerUnit | FDbd1Pu (from ParamsREPC) | Overfrequency deadband for governor response in pu (base omegaNom) (typical: 0.004) | |
| Types.PerUnit | FDbd2Pu (from ParamsREPC) | Underfrequency deadband for governor response in pu (base omegaNom)^ (typical: 0.004) | |
| Types.PerUnit | FEMaxPu (from ParamsREPC) | Maximum frequency error in droop regulator in pu (base omegaNom) | |
| Types.PerUnit | FEMinPu (from ParamsREPC) | Minimum frequency error in droop regulator in pu (base omegaNom) | |
| Types.PerUnit | Kc (from ParamsREPC) | Reactive droop when VCompFlag = 0 | |
| Types.PerUnit | Ki (from ParamsREPC) | Volt/VAR regulator integral gain | |
| Types.PerUnit | Kig (from ParamsREPC) | Droop regulator integral gain | |
| Types.PerUnit | Kp (from ParamsREPC) | Volt/VAR regulator proportional gain | |
| Types.PerUnit | Kpg (from ParamsREPC) | Droop regulator proportional gain | |
| Types.ActivePowerPu | PMaxPu (from ParamsREPC) | Maximum plant level active power command in pu (base SNom) | |
| Types.ActivePowerPu | PMinPu (from ParamsREPC) | Minimum plant level active power command in pu (base SNom) | |
| Types.ReactivePowerPu | QMaxPu (from ParamsREPC) | Maximum plant level reactive power command in pu (base SNom) | |
| Types.ReactivePowerPu | QMinPu (from ParamsREPC) | Minimum plant level reactive power command in pu (base SNom) | |
| Types.Time | tFilterPC (from ParamsREPC) | Voltage and reactive power filter time constant in s (typical: 0.01..0.02) | |
| Types.Time | tFt (from ParamsREPC) | Plant controller Q output lead time constant in s | |
| Types.Time | tFv (from ParamsREPC) | Plant controller Q output lag time constant in s (typical: 0.15..5) | |
| Types.Time | tLag (from ParamsREPC) | Plant controller P output lag time constant in s(typical: 0.15..5) | |
| Types.Time | tP (from ParamsREPC) | Active power filter time constant in s (typical: 0.01..0.02) | |
| Types.VoltageModulePu | VFrz (from ParamsREPC) | Voltage for freezing Volt/VAR regulator integrator (typical: 0..0.9) | |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | PRefPu | Active power setpoint at regulated bus in pu (generator convention) (base SNom) | |
| Modelica.Blocks.Interfaces.RealInput | QRefPu | Reactive power setpoint at regulated bus in pu (generator convention) (base SNom) | |
| Modelica.Blocks.Interfaces.RealInput | omegaRefPu | Frequency setpoint | |
| Modelica.Blocks.Interfaces.RealInput | PRegPu | Active power at regulated bus in pu (generator convention) (base SNom) | |
| Modelica.Blocks.Interfaces.RealInput | QRegPu | Reactive power at regulated bus in pu (generator convention) (base SNom) | |
| Modelica.Blocks.Interfaces.RealInput | URefPu | Voltage setpoint for plant level control in pu (base UNom) | |
| Modelica.ComplexBlocks.Interfaces.ComplexInput | uPu | Complex voltage at regulated bus in pu (base UNom) | |
| Modelica.ComplexBlocks.Interfaces.ComplexInput | iPu | Complex current at regulated bus in pu (generator convention) (base SnRef, UNom) | |
| Modelica.Blocks.Interfaces.RealInput | omegaPu | Frequency at regulated bus in pu (base omegaNom) | |
| Modelica.Blocks.Interfaces.RealOutput | PInjRefPu | Active power setpoint at inverter terminal in pu (generator convention) (base SNom) | |
| Modelica.Blocks.Interfaces.RealOutput | QInjRefPu | Reactive power setpoint at inverter terminal in pu (generator convention) (base SNom) | |
| Modelica.Blocks.Interfaces.BooleanOutput | freeze | Boolean to freeze the regulation |