modelWTG4BCurrentSource
WECC Wind Turbine model with a current source as interface with the grid
Extends from Dynawo.Electrical.Controls.PLL.ParamsPLL, Dynawo.Electrical.Controls.WECC.Parameters.ParamsREPC, Dynawo.Electrical.Wind.WECC.BaseClasses.BaseWT4B (Base model for WECC Wind Turbine 4B).
Information
This block contains the generic WECC WTG model according to (in case page cannot be found, copy link in browser):
https://www.wecc.org/Reliability/WECC-Second-Generation-Wind-Turbine-Models-012314.pdf
This model could also be used for Photovoltaics current source modeling.
The overall model is structured as follows:
- Main model: WECC_Wind with terminal connection and measurement inputs for P/Q/U/I.
- Plant level control.
- Electrical inverter control.
- Constant speed of drive train represented by constant block (no drive train).
- Generator control.
- Injector (id,iq).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Types.CurrentModulePu | Id0Pu (from ParamsREEC) | Start value of d-component current at injector terminal in pu (generator convention) (base SNom, UNom) | |
| Types.CurrentModulePu | Iq0Pu (from ParamsREEC) | Start value of q-component current at injector terminal in pu (generator convention) (base SNom, UNom) | |
| Types.PerUnit | PF0 (from ParamsREEC) | Start value of powerfactor | |
| Types.ActivePowerPu | PInj0Pu (from ParamsREEC) | Start value of active power at injector terminal in pu (generator convention) (base SNom) | |
| Types.ReactivePowerPu | QInj0Pu (from ParamsREEC) | Start value of reactive power at injector terminal in pu (generator convention) (base SNom) | |
| Types.VoltageModulePu | UInj0Pu (from ParamsREEC) | Start value of voltage magnitude at injector terminal in pu (base UNom) | |
| Types.ApparentPowerModule | SNom (from BaseWT4) | Nominal apparent power in MVA | |
| Types.PerUnit | RPu (from BaseWT4) | Resistance of equivalent branch connection to the grid in pu (base SnRef, UNom) | |
| Types.PerUnit | XPu (from BaseWT4) | Reactance of equivalent branch connection to the grid in pu (base SnRef, UNom) | |
| Types.ComplexPerUnit | i0Pu (from BaseWT4) | Start value of complex current at terminal in pu (base UNom, SnRef) (receptor convention) | |
| Types.ComplexPerUnit | s0Pu (from BaseWT4) | Start value of complex apparent power at terminal in pu (base SnRef) (receptor convention) | |
| Types.ComplexPerUnit | u0Pu (from BaseWT4) | Start value of complex voltage at terminal in pu (base UNom) | |
| Types.ComplexPerUnit | uInj0Pu (from BaseWT4) | Start value of complex voltage at injector in pu (base UNom) | |
| Types.Angle | UPhaseInj0 (from BaseWT4) | Start value of voltage angle at injector | |
| Types.ComplexPerUnit | iInj0Pu | Start value of complex current at injector in pu (base UNom, SNom) (generator convention) | |
| Types.PerUnit | P0Pu | Start value of active power at regulated bus in pu (receptor convention) (base SnRef) | |
| Types.PerUnit | Q0Pu | Start value of reactive power at regulated bus in pu (receptor convention) (base SnRef) | |
| Types.PerUnit | U0Pu | Start value of voltage magnitude at regulated bus in pu (base UNom) | |
| Types.PerUnit | URef0Pu | if VCompFlag == true then UInj0Pu else (U0Pu + Kc*Q0Pu*SystemBase.SnRef/SNom) | Start value of voltage setpoint for plant level control, calculated depending on VcompFlag, in pu (base UNom) |
| PLL | |||
| Types.PerUnit | KiPLL (from ParamsPLL) | PLL integrator gain | |
| Types.PerUnit | KpPLL (from ParamsPLL) | PLL proportional gain | |
| Types.AngularVelocityPu | OmegaMaxPu (from ParamsPLL) | Upper frequency limit in pu (base omegaNom) | |
| Types.AngularVelocityPu | OmegaMinPu (from ParamsPLL) | Lower frequency limit in pu (base omegaNom) | |
| 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) | |
| Electrical Control | |||
| Boolean | PfFlag (from ParamsREEC) | Power factor flag: Q control (0) or pf control(1) | |
| Boolean | PQFlag (from ParamsREEC) | Q/P priority: Q priority (0) or P priority (1) | |
| Boolean | QFlag (from ParamsREEC) | Q control flag: const. pf or Q ctrl (0) or voltage/Q (1) | |
| Boolean | VFlag (from ParamsREEC) | Voltage control flag: voltage control (0) or Q ctrl (1) | |
| Types.VoltageModulePu | Dbd1Pu (from ParamsREEC) | Overvoltage deadband for reactive current injection in pu (base UNom) (typical: -0.1..0) | |
| Types.VoltageModulePu | Dbd2Pu (from ParamsREEC) | Undervoltage deadband for reactive current injection in pu (base UNom) (typical: 0..0.1) | |
| Types.PerUnit | DPMaxPu (from ParamsREEC) | Active power upper rate limit in pu/s (base SNom) (typical: > 0.1, set to 99 to disable) | |
| Types.PerUnit | DPMinPu (from ParamsREEC) | Active power lower rate limit in pu/s (base SNom) (typical: < -0.1, set to -99 to disable) | |
| Types.CurrentModulePu | IMaxPu (from ParamsREEC) | Maximal apparent current magnitude in pu (base UNom, SNom) (typical: 1..2) | |
| Types.PerUnit | Iqh1Pu (from ParamsREEC) | Maximum reactive current injection (typical: 1..1.1) in pu (base UNom, SNom) | |
| Types.PerUnit | Iql1Pu (from ParamsREEC) | Minimum reactive current injection (typical: -1.1..-1) in pu (base UNom, SNom) | |
| Types.PerUnit | Kqi (from ParamsREEC) | Integrator gain local reactive power PI controller | |
| Types.PerUnit | Kqp (from ParamsREEC) | Proportional gain local reactive power PI controller | |
| Types.PerUnit | Kqv (from ParamsREEC) | K-Factor, reactive current injection gain (typical: 0..10) | |
| Types.PerUnit | Kvi (from ParamsREEC) | Integrator gain local voltage PI controller | |
| Types.PerUnit | Kvp (from ParamsREEC) | Proportional gain local voltage PI controller | |
| Types.Time | tIq (from ParamsREEC) | Filter time constant reactive current in s(typical: 0.01..0.02) | |
| Types.Time | tRv (from ParamsREEC) | Filter time constant terminal voltage in s(typical: 0.01..0.02) | |
| Types.Time | tPord (from ParamsREEC) | Filter time constant inverter active power in s | |
| Types.VoltageModulePu | VDipPu (from ParamsREEC) | Low voltage condition trigger voltage for FRT in pu (base UNom) (typical: 0..0.9) | |
| Types.VoltageModulePu | VMaxPu (from ParamsREEC) | Maximum voltage at inverter terminal in pu (base UNom) (typical: 1.05..1.15) | |
| Types.VoltageModulePu | VMinPu (from ParamsREEC) | Minimum voltage at inverter terminal in pu (base UNom) (typical: 0.85..0.95) | |
| Types.VoltageModulePu | VRef0Pu (from ParamsREEC) | Reference voltage for reactive current injection in pu (base UNom) (typical: 0.95..1.05) | |
| Types.VoltageModulePu | VUpPu (from ParamsREEC) | High voltage condition trigger voltage for FRT in pu (base UNom) (typical: 1.1..1.3) | |
| Types.PerUnit | VDLIp11 (from BaseWT4) | ||
| Types.PerUnit | VDLIp12 (from BaseWT4) | ||
| Types.PerUnit | VDLIp21 (from BaseWT4) | ||
| Types.PerUnit | VDLIp22 (from BaseWT4) | ||
| Types.PerUnit | VDLIp31 (from BaseWT4) | ||
| Types.PerUnit | VDLIp32 (from BaseWT4) | ||
| Types.PerUnit | VDLIp41 (from BaseWT4) | ||
| Types.PerUnit | VDLIp42 (from BaseWT4) | ||
| Types.PerUnit | VDLIq11 (from BaseWT4) | ||
| Types.PerUnit | VDLIq12 (from BaseWT4) | ||
| Types.PerUnit | VDLIq21 (from BaseWT4) | ||
| Types.PerUnit | VDLIq22 (from BaseWT4) | ||
| Types.PerUnit | VDLIq31 (from BaseWT4) | ||
| Types.PerUnit | VDLIq32 (from BaseWT4) | ||
| Types.PerUnit | VDLIq41 (from BaseWT4) | ||
| Types.PerUnit | VDLIq42 (from BaseWT4) | ||
| Types.Time | tHoldIpMax (from BaseWT4) | Time delay for which the active current limit (ipMaxPu) is held after voltage dip vDip returns to zero for tHoldIpMax seconds at its value during the voltage dip | |
| Real | tHoldIq (from BaseWT4) | Absolute value of tHoldIq defines seconds to hold current injection after voltage dip ended. tHoldIq > 0 for constant, 0 for no injection after voltage dip, tHoldIq < 0 for voltage-dependent injection (typical: -1 .. 1 s) | |
| Types.PerUnit | IqFrzPu (from BaseWT4) | Constant reactive current injection value (typical: -0.1 .. 0.1 pu) | |
| Boolean | PFlag (from BaseWT4) | Power reference flag: const. Pref (0) or consider generator speed (1) | |
| Types.VoltageModulePu | VRef1Pu (from BaseWT4) | User-defined reference/bias on the inner-loop voltage control (typical: 0 pu) | |
| Generator Converter | |||
| Types.PerUnit | IqrMaxPu (from ParamsREGC) | Maximum rate-of-change of reactive current after fault in pu (base UNom, SNom) (typical: 1..999) | |
| Types.PerUnit | IqrMinPu (from ParamsREGC) | Minimum rate-of-change of reactive current after fault in pu (base UNom, SNom) (typical: -999..-1) | |
| Boolean | RateFlag (from ParamsREGC) | Active current (=false) or active power (=true) ramp (if unkown set to false) | |
| Types.PerUnit | RrpwrPu (from ParamsREGC) | Active current (power) recovery rate in pu/s (base UNom, SNom) (typical: 1..20) | |
| Types.Time | tFilterGC (from ParamsREGC) | Filter time constant of terminal voltage in s(Cannot be set to zero, typical: 0.02..0.05) | |
| Types.Time | tG (from ParamsREGC) | Emulated delay in converter controls in s(Cannot be zero, typical: 0.02..0.05) | |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | PFaRef (from BaseWT4) | Power factor angle reference in rad | |
| Dynawo.Connectors.ACPower | terminal (from BaseWT4) | ||
| Modelica.Blocks.Interfaces.RealInput | omegaRefPu | Frequency reference in pu (base omegaNom) | |
| Modelica.Blocks.Interfaces.RealInput | PRefPu | Active power reference in pu (generator convention) (base SNom) | |
| Modelica.Blocks.Interfaces.RealInput | QRefPu | Reactive power reference in pu (generator convention) (base SNom) | |
| Modelica.Blocks.Interfaces.RealInput | URefPu | Voltage setpoint for plant level control in pu (base UNom) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Dynawo.Electrical.Lines.Line | line (from BaseWT4) | ||
| Dynawo.Electrical.Controls.WECC.REEC.REECa | wecc_reec (from BaseWT4) | ||
| Dynawo.Electrical.Controls.WECC.REGC.REGCbCS | wecc_regc (from BaseWT4) | ||
| Dynawo.Electrical.Sources.InjectorIDQ | injector (from BaseWT4) | ||
| Dynawo.Electrical.Controls.WECC.Utilities.Measurements | measurements (from BaseWT4) | ||
| Dynawo.Electrical.Controls.PLL.PLL | pll (from BaseWT4) | ||
| Modelica.Blocks.Sources.Constant | OmegaRef (from BaseWT4) | ||
| Dynawo.Electrical.Controls.WECC.REPC.REPCa | wecc_repc |