modelBaseREPC

Base class for the plant controller of the WECC generic renewable models

Extends from OpenIPSL.Electrical.Essentials.pfComponent (Partial model containing all the parameters for entering power flow data).

Information

The BaseREPC model is the base class that is extended to create the REPCA1 component.

Parameters

TypeNameDefaultDescription
Power flow data
OpenIPSL.Types.ApparentPowerM_bSysData.S_bMachine base power
Types.ApparentPowerS_b (from pfComponent)SysData.S_bSystem base power
Types.VoltageV_b (from pfComponent)400e3Base voltage of the bus
Types.Frequencyfn (from pfComponent)SysData.fnSystem frequency
Types.ActivePowerP_0 (from pfComponent)1e6Initial active power
Types.ReactivePowerQ_0 (from pfComponent)0Initial reactive power
Types.PerUnitv_0 (from pfComponent)1Initial voltage magnitude
Types.Angleangle_0 (from pfComponent)0Initial voltage angle
BooleandisplayPF (from pfComponent)falseDisplay power flow:
Parameter mask
BooleanenableS_b (from pfComponent)falseEnable S_b in parameter list
BooleanenableV_b (from pfComponent)falseEnable V_b in parameter list
Booleanenablefn (from pfComponent)falseEnable fn in parameter list
BooleanenableP_0 (from pfComponent)falseEnable P_0 in parameter list
BooleanenableQ_0 (from pfComponent)falseEnable Q_0 in parameter list
Booleanenablev_0 (from pfComponent)falseEnable v_0 in parameter list
Booleanenableangle_0 (from pfComponent)falseEnable angle_0 in parameter list
BooleanenabledisplayPF (from pfComponent)falseEnable displayPF in parameter list
Control
BooleanvcflagtrueReactive droop (false) or line drop compensation (true)
BooleanrefflagtruePlant-level reactive power (false) or voltage control (true)
BooleanfflagtrueGovernor response disable (false) or enable (true)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputQrefReactive Power Reference
Modelica.Blocks.Interfaces.RealInputPlant_prefActive Power Reference
Modelica.Blocks.Interfaces.RealInputFreqConnection Point Frequency
Modelica.Blocks.Interfaces.RealInputFreq_refPlant Controller Frequency Reference
Modelica.Blocks.Interfaces.RealOutputQextReactive Power output signal
Modelica.Blocks.Interfaces.RealOutputPrefReal Power output signal
Modelica.Blocks.Interfaces.RealInputp0Initial Active Power
Modelica.Blocks.Interfaces.RealInputq0Initial Reactive Power
Modelica.Blocks.Interfaces.RealInputv0Initial Terminal Voltage Magnitude
Modelica.Blocks.Interfaces.RealInputbranch_irMeasured Branch Real Current
Modelica.Blocks.Interfaces.RealInputbranch_iiMeasured Branch Imaginary Current
Modelica.Blocks.Interfaces.RealInputregulate_vrRegulated Branch Real Voltage
Modelica.Blocks.Interfaces.RealInputregulate_viRegulated Branch Imaginary Voltage

Components

TypeNameDefaultDescription
OpenIPSL.Electrical.SystemBaseSysData (from pfComponent)Must add this line in all models