modelPVVoltageSourceANoPlantControl

WECC PV model with a voltage source as interface with the grid (REEC-A REGC-B)

Extends from Dynawo.Electrical.Controls.WECC.Parameters.ParamsREPC, Dynawo.Electrical.Photovoltaics.WECC.BaseClasses.BasePVVoltageSource (Base model for WECC PV with a voltage source as interface with the grid).

Information

This block contains the generic WECC PV 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

Parameters

TypeNameDefaultDescription
Types.CurrentModulePuId0Pu (from ParamsREEC)Start value of d-component current at injector terminal in pu (generator convention) (base SNom, UNom)
Types.CurrentModulePuIq0Pu (from ParamsREEC)Start value of q-component current at injector terminal in pu (generator convention) (base SNom, UNom)
Types.PerUnitPF0 (from ParamsREEC)Start value of powerfactor
Types.ActivePowerPuPInj0Pu (from ParamsREEC)Start value of active power at injector terminal in pu (generator convention) (base SNom)
Types.ReactivePowerPuQInj0Pu (from ParamsREEC)Start value of reactive power at injector terminal in pu (generator convention) (base SNom)
Types.VoltageModulePuUInj0Pu (from ParamsREEC)Start value of voltage magnitude at injector terminal in pu (base UNom)
Types.TimetE (from ParamsVSourceRef)Emulated delay in converter controls in s (cannot be zero, typical: 0.02..0.05)
Types.PerUnitRSourcePu (from ParamsVSourceRef)Source resistance in pu (base UNom, SNom)
Types.PerUnitXSourcePu (from ParamsVSourceRef)Source reactance in pu (base UNom, SNom)
Types.ApparentPowerModuleSNom (from BasePVVoltageSource)Nominal apparent power in MVA
Types.PerUnitRPu (from BasePVVoltageSource)Resistance of equivalent branch connection to the grid in pu (base SnRef)
Types.PerUnitXPu (from BasePVVoltageSource)Reactance of equivalent branch connection to the grid in pu (base SnRef)
Types.PerUnitP0Pu (from BasePVVoltageSource)Start value of active power at terminal in pu (receptor convention) (base SnRef)
Types.PerUnitQ0Pu (from BasePVVoltageSource)Start value of reactive power at terminal in pu (receptor convention) (base SnRef)
Types.PerUnitU0Pu (from BasePVVoltageSource)Start value of voltage magnitude at terminal in pu (base UNom)
Types.ComplexPerUniti0Pu (from BasePVVoltageSource)Start value of complex current in pu (base UNom, SnRef) (receptor convention)
Types.ComplexPerUnitu0Pu (from BasePVVoltageSource)Start value of complex voltage at terminal in pu (base UNom)
Types.PerUnitUdInj0Pu (from BasePVVoltageSource)Start value of d-axis voltage at injector in pu (base UNom)
Types.ComplexPerUnituInj0Pu (from BasePVVoltageSource)Start value of complex voltage at injector in pu (base UNom)
Types.PerUnitUqInj0Pu (from BasePVVoltageSource)Start value of q-axis voltage at injector in pu (base UNom)
Types.ComplexPerUnituSource0Pu (from BasePVVoltageSource)Start value of complex voltage at source in pu (base UNom)
Plant Control
BooleanFreqFlag (from ParamsREPC)Governor response disable (0) or enable (1)
BooleanRefFlag (from ParamsREPC)Plant level reactive power (0) or voltage control (1)
BooleanVCompFlag (from ParamsREPC)Reactive droop (0) or line drop compensation (1) if RefFlag true
Types.PerUnitDbdPu (from ParamsREPC)Reactive power (RefFlag = 0) or voltage (RefFlag = 1) deadband in pu (base SNom or UNom) (typical: 0..0.1)
Types.PerUnitDDn (from ParamsREPC)Down regulation droop (typical: 20..33.3)
Types.PerUnitDUp (from ParamsREPC)Up regulation droop (typical: 0)
Types.PerUnitEMaxPu (from ParamsREPC)Maximum Volt/VAR error in pu (base UNom or SNom)
Types.PerUnitEMinPu (from ParamsREPC)Minimum Volt/VAR error in pu (base UNom or SNom)
Types.PerUnitFDbd1Pu (from ParamsREPC)Overfrequency deadband for governor response in pu (base omegaNom) (typical: 0.004)
Types.PerUnitFDbd2Pu (from ParamsREPC)Underfrequency deadband for governor response in pu (base omegaNom)^ (typical: 0.004)
Types.PerUnitFEMaxPu (from ParamsREPC)Maximum frequency error in droop regulator in pu (base omegaNom)
Types.PerUnitFEMinPu (from ParamsREPC)Minimum frequency error in droop regulator in pu (base omegaNom)
Types.PerUnitKc (from ParamsREPC)Reactive droop when VCompFlag = 0
Types.PerUnitKi (from ParamsREPC)Volt/VAR regulator integral gain
Types.PerUnitKig (from ParamsREPC)Droop regulator integral gain
Types.PerUnitKp (from ParamsREPC)Volt/VAR regulator proportional gain
Types.PerUnitKpg (from ParamsREPC)Droop regulator proportional gain
Types.ActivePowerPuPMaxPu (from ParamsREPC)Maximum plant level active power command in pu (base SNom)
Types.ActivePowerPuPMinPu (from ParamsREPC)Minimum plant level active power command in pu (base SNom)
Types.ReactivePowerPuQMaxPu (from ParamsREPC)Maximum plant level reactive power command in pu (base SNom)
Types.ReactivePowerPuQMinPu (from ParamsREPC)Minimum plant level reactive power command in pu (base SNom)
Types.TimetFilterPC (from ParamsREPC)Voltage and reactive power filter time constant in s (typical: 0.01..0.02)
Types.TimetFt (from ParamsREPC)Plant controller Q output lead time constant in s
Types.TimetFv (from ParamsREPC)Plant controller Q output lag time constant in s (typical: 0.15..5)
Types.TimetLag (from ParamsREPC)Plant controller P output lag time constant in s(typical: 0.15..5)
Types.TimetP (from ParamsREPC)Active power filter time constant in s (typical: 0.01..0.02)
Types.VoltageModulePuVFrz (from ParamsREPC)Voltage for freezing Volt/VAR regulator integrator (typical: 0..0.9)
PLL
Types.PerUnitKiPLL (from ParamsPLL)PLL integrator gain
Types.PerUnitKpPLL (from ParamsPLL)PLL proportional gain
Types.AngularVelocityPuOmegaMaxPu (from ParamsPLL)Upper frequency limit in pu (base omegaNom)
Types.AngularVelocityPuOmegaMinPu (from ParamsPLL)Lower frequency limit in pu (base omegaNom)
Electrical Control
BooleanPfFlag (from ParamsREEC)Power factor flag: Q control (0) or pf control(1)
BooleanPQFlag (from ParamsREEC)Q/P priority: Q priority (0) or P priority (1)
BooleanQFlag (from ParamsREEC)Q control flag: const. pf or Q ctrl (0) or voltage/Q (1)
BooleanVFlag (from ParamsREEC)Voltage control flag: voltage control (0) or Q ctrl (1)
Types.VoltageModulePuDbd1Pu (from ParamsREEC)Overvoltage deadband for reactive current injection in pu (base UNom) (typical: -0.1..0)
Types.VoltageModulePuDbd2Pu (from ParamsREEC)Undervoltage deadband for reactive current injection in pu (base UNom) (typical: 0..0.1)
Types.PerUnitDPMaxPu (from ParamsREEC)Active power upper rate limit in pu/s (base SNom) (typical: > 0.1, set to 99 to disable)
Types.PerUnitDPMinPu (from ParamsREEC)Active power lower rate limit in pu/s (base SNom) (typical: < -0.1, set to -99 to disable)
Types.CurrentModulePuIMaxPu (from ParamsREEC)Maximal apparent current magnitude in pu (base UNom, SNom) (typical: 1..2)
Types.PerUnitIqh1Pu (from ParamsREEC)Maximum reactive current injection (typical: 1..1.1) in pu (base UNom, SNom)
Types.PerUnitIql1Pu (from ParamsREEC)Minimum reactive current injection (typical: -1.1..-1) in pu (base UNom, SNom)
Types.PerUnitKqi (from ParamsREEC)Integrator gain local reactive power PI controller
Types.PerUnitKqp (from ParamsREEC)Proportional gain local reactive power PI controller
Types.PerUnitKqv (from ParamsREEC)K-Factor, reactive current injection gain (typical: 0..10)
Types.PerUnitKvi (from ParamsREEC)Integrator gain local voltage PI controller
Types.PerUnitKvp (from ParamsREEC)Proportional gain local voltage PI controller
Types.TimetIq (from ParamsREEC)Filter time constant reactive current in s(typical: 0.01..0.02)
Types.TimetRv (from ParamsREEC)Filter time constant terminal voltage in s(typical: 0.01..0.02)
Types.TimetPord (from ParamsREEC)Filter time constant inverter active power in s
Types.VoltageModulePuVDipPu (from ParamsREEC)Low voltage condition trigger voltage for FRT in pu (base UNom) (typical: 0..0.9)
Types.VoltageModulePuVMaxPu (from ParamsREEC)Maximum voltage at inverter terminal in pu (base UNom) (typical: 1.05..1.15)
Types.VoltageModulePuVMinPu (from ParamsREEC)Minimum voltage at inverter terminal in pu (base UNom) (typical: 0.85..0.95)
Types.VoltageModulePuVRef0Pu (from ParamsREEC)Reference voltage for reactive current injection in pu (base UNom) (typical: 0.95..1.05)
Types.VoltageModulePuVUpPu (from ParamsREEC)High voltage condition trigger voltage for FRT in pu (base UNom) (typical: 1.1..1.3)
Types.VoltageComponentVDLIp11
Types.VoltageComponentVDLIp12
Types.VoltageComponentVDLIp21
Types.VoltageComponentVDLIp22
Types.VoltageComponentVDLIp31
Types.VoltageComponentVDLIp32
Types.VoltageComponentVDLIp41
Types.VoltageComponentVDLIp42
Types.VoltageComponentVDLIq11
Types.VoltageComponentVDLIq12
Types.VoltageComponentVDLIq21
Types.VoltageComponentVDLIq22
Types.VoltageComponentVDLIq31
Types.VoltageComponentVDLIq32
Types.VoltageComponentVDLIq41
Types.VoltageComponentVDLIq42
Types.VoltageComponent[:,:]VDLIpPoints[VDLIp11, VDLIp12; VDLIp21, VDLIp22; VDLIp31, VDLIp32; VDLIp41, VDLIp42]Pair of points for voltage-dependent active current limitation piecewise linear curve [u1,y1; u2,y2;...]
Types.VoltageComponent[:,:]VDLIqPoints[VDLIq11, VDLIq12; VDLIq21, VDLIq22; VDLIq31, VDLIq32; VDLIq41, VDLIq42]Pair of points for voltage-dependent reactive current limitation piecewise linear curve [u1,y1; u2,y2;...]
Types.TimetHoldIpMaxTime delay for which the active current limit (ipMaxPu) is held after voltage dip in s
Types.TimetHoldIqAbsolute 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.PerUnitIqFrzPuConstant reactive current injection value in pu (base UNom, SNom) (typical: -0.1 .. 0.1 pu)
BooleanPFlagPower reference flag: const. Pref (0) or consider generator speed (1)
Types.VoltageModulePuVRef1PuUser-defined reference/bias on the inner-loop voltage control in pu (base UNom) (typical: 0 pu)
Generator Converter
Types.PerUnitIqrMaxPu (from ParamsREGC)Maximum rate-of-change of reactive current after fault in pu (base UNom, SNom) (typical: 1..999)
Types.PerUnitIqrMinPu (from ParamsREGC)Minimum rate-of-change of reactive current after fault in pu (base UNom, SNom) (typical: -999..-1)
BooleanRateFlag (from ParamsREGC)Active current (=false) or active power (=true) ramp (if unkown set to false)
Types.PerUnitRrpwrPu (from ParamsREGC)Active current (power) recovery rate in pu/s (base UNom, SNom) (typical: 1..20)
Types.TimetFilterGC (from ParamsREGC)Filter time constant of terminal voltage in s(Cannot be set to zero, typical: 0.02..0.05)
Types.TimetG (from ParamsREGC)Emulated delay in converter controls in s(Cannot be zero, typical: 0.02..0.05)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputPFaRef (from BasePVVoltageSource)Power factor angle reference in rad
Dynawo.Connectors.ACPowerterminal (from BasePVVoltageSource)
Modelica.Blocks.Interfaces.RealInputPInjRefPuActive power reference in pu (generator convention) (base SNom)
Modelica.Blocks.Interfaces.RealInputQInjRefPuReactive power reference in pu (generator convention) (base SNom)

Components

TypeNameDefaultDescription
Dynawo.Electrical.Lines.Lineline (from BasePVVoltageSource)
Dynawo.Electrical.Controls.WECC.REGC.REGCbCSwecc_regc (from BasePVVoltageSource)
Modelica.Blocks.Sources.ConstantOmegaRef (from BasePVVoltageSource)
Dynawo.Electrical.Controls.PLL.PLLpll (from BasePVVoltageSource)
Dynawo.Electrical.Controls.WECC.Utilities.Measurementsmeasurements (from BasePVVoltageSource)
Dynawo.Electrical.Controls.WECC.BaseControls.VSourceRefVSourceRef (from BasePVVoltageSource)
Dynawo.Electrical.Sources.InjectorURIinjector (from BasePVVoltageSource)
Dynawo.Electrical.Controls.WECC.Utilities.Measurementsmeasurements1 (from BasePVVoltageSource)
Dynawo.Electrical.Lines.Linesource (from BasePVVoltageSource)
Dynawo.Electrical.Controls.WECC.REEC.REECawecc_reec