OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses

Base classes for renewable energy electrical control models

Information

This package contains the base class of the three different electrical controllers from the sub-package (BaseREECA, BaseREECB, BaseREECC), as well as other logic components and specific PI controllers for the WECC renewable components.

Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).

Package Content

Name Description
OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.BaseREECA BaseREECA Base renewable energy electrical controller model A
OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.BaseREECB BaseREECB Base renewable energy electrical controller model B
OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.BaseREECC BaseREECC Base renewable energy electrical controller model C
OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.CurrentLimitLogicREECA CurrentLimitLogicREECA Current limit logic for REECA
OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.CurrentLimitLogicREECB CurrentLimitLogicREECB Current Limit Logic for REECB
OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.CurrentLimitLogicREECC CurrentLimitLogicREECC Current limit logic for REECC
OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.StateOfChargeLogic StateOfChargeLogic State of charge logic for REECC
OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.PIwithVariableLimiter PIwithVariableLimiter PI with variable limiter controller for WECC electrical controllers
OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.PIwithNoVariableLimiter PIwithNoVariableLimiter PI with no variable limiter controller for WECC electrical controllers

OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.BaseREECA OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.BaseREECA

Base renewable energy electrical controller model A

Information

The BaseREECA model is the base class that is extended to create the REECA1 component.

Parameters

NameDescription
Control
pfflagConstant output value
vflagConstant output value
qflagConstant output value
pqflagConstant output value
pflagConstant output value

Connectors

NameDescription
VtTerminal Voltage Magnitude
PeActive Power Generated
QextReactive Power Reference
QgenReactive Power Generated
PrefActive Power Reference
ip0Initial Real Current
iq0Initial Imaginary Current
IqcmdReactice Command Current
IpcmdReal Command Current
WgRotational Speed Generator
v0Initial Terminal Voltage Magnitude
p0Initial Active Power
q0Initial Reactive Power

OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.BaseREECB OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.BaseREECB

Base renewable energy electrical controller model B

Information

The BaseREECB model is the base class that is extended to create the REECB1 component.

Parameters

NameDescription
Control
pfflagConstant output value
vflagConstant output value
qflagConstant output value
pqflagConstant output value

Connectors

NameDescription
VtTerminal Voltage Magnitude
PeElectrical Power Generation
QextReactive Power Reference
QgenReactive Power Generation
PrefActive Power Reference
ip0Initial Real Current
iq0Initial Reactive Current
IqcmdCommand Reactive Current
IpcmdCommand Active Current
v0Initial Terminal Voltage Magnitude
p0Initial Active Power
q0Initial Reactive Power

OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.BaseREECC OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.BaseREECC

Base renewable energy electrical controller model C

Information

The BaseREECC model is the base class that is extended to create the REECCU1 component.

Parameters

NameDescription
Control
pfflagConstant output value
vflagConstant output value
qflagConstant output value
pqflagConstant output value

Connectors

NameDescription
ip0Initial Active Current
iq0Initial Reactive Current
IqcmdReactive Command Current
IpcmdActive Command Current
v0Initial Terminal Voltage Magnitude
p0Initial Active Power
q0Initial Reactive Power
VtTerminal Voltage Magnitude
PeElectrical Power
QextReactive Power Reference
QgenReactive Power Generated
PrefActive Power Reference
PauxAuxiliary Signal for Active Power

OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.CurrentLimitLogicREECA OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.CurrentLimitLogicREECA

Current limit logic for REECA

Information

The pseudo-code for the current limit logic in the REECA electrical controller detailed below:

Ipre = sqrt(Imax) - sqrt(abs(Ipcmd));

if Ipre is less than 0:
   Ipost = 0;
else:
   Ipost = sqrt(Ipre);

if Pqflag = true:
   Ipmax = min(VDL2_out, Imax);
   Ipmin = 0;
   Iqmax = min(Ipost, VDL1_out);
   Iqmin = -Iqmax;
end

if Pqflag = false:
   Ipmax = min(Ipost, VDL2_out);
   Ipmin = 0;
   Iqmax = min(VDL1_out, Imax);
   Iqmin = -Iqmax;
end

The modelling of the current limit logic for the REECA electrical controller is based on the following references:

Parameters

NameDescription
start_iiStarting current value from Iqcmd (comes from power flow simulation) [1]
start_irStarting current value from Ipcmd (comes from power flow simulation) [1]
ImaxMaximum limit on total converter current [1]

Connectors

NameDescription
VDL1_out 
pqflag 
VDL2_out 
Iqcmd 
Ipcmd 
Iqmax 
Iqmin 
Ipmax 
Ipmin 

OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.CurrentLimitLogicREECB OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.CurrentLimitLogicREECB

Current Limit Logic for REECB

Information

The pseudo-code for the current limit logic in the REECB electrical controller detailed below:

if Pqflag = true:
   Ipmax = Imax;
   Ipmin = 0;
   Iqmax = sqrt(Imax^2 - Ipcmd^2);
   Iqmin = -Iqmax;
end

if Pqflag = false:
   Ipmax = sqrt(Imax^2 - Iqcmd^2);
   Ipmin = 0;
   Iqmax = Imax;
   Iqmin = -Iqmax;
end

The modelling of the current limit logic for the REECB electrical controller is based on the following references:

Parameters

NameDescription
start_iiStarting current value from Iqcmd (comes from power flow simulation) [1]
start_irStarting current value from Ipcmd (comes from power flow simulation) [1]
ImaxMaximum limit on total converter current [1]

Connectors

NameDescription
Iqcmd 
Ipcmd 
Iqmin 
Iqmax 
Ipmin 
Ipmax 
PqflagPriority to reactive current (false) or active current (true).

OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.CurrentLimitLogicREECC OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.CurrentLimitLogicREECC

Current limit logic for REECC

Information

The pseudo-code for the current limit logic in the REECC electrical controller detailed below:

if Pqflag = true:
   Ipmax = min(VDL2_out, Imax);
   Ipmin = -Ipmax;
   Iqmax = min(VDL1_out, sqrt(Imax^2 Ipcmd^2);
   Iqmin = -Iqmax;
end

if Pqflag = false:
   Ipmax = min(VDL2_out, sqrt(Imax^2 - Iqcmd^2));
   Ipmin = -Ipmax;
   Iqmax = min(VDL1_out, Imax);
   Iqmin = -Iqmax;
end

The modelling of the current limit logic for the REECB electrical controller is based on the following references:

Parameters

NameDescription
start_iiStarting current value from Iqcmd (comes from power flow simulation) [1]
start_irStarting current value from Ipcmd (comes from power flow simulation) [1]
ImaxMaximum limit on total converter current [1]

Connectors

NameDescription
VDL1_out 
pqflag 
VDL2_out 
Iqcmd 
Ipcmd 
Iqmax 
Iqmin 
Ipmax 
Ipmin 

OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.StateOfChargeLogic OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.StateOfChargeLogic

State of charge logic for REECC

Information

The pseudo-code for the state of charge current limit in batteries is as follows:

If SOC greater of equal to SOCmax:
   Ipmin = 0;
else:
   Ipmax = 0;
end

The modelling of the state of charge for the REECC electrical controller is based on the following references:

Parameters

NameDescription
SOCminMinimum allowable state of charge [1]
SOCmaxMaximum allowable state of charge [1]

Connectors

NameDescription
SOCState of Charge of the Battery
ipmax_SOCMaximum Battery Charge
ipmin_SOCMinimum Battery Charge

OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.PIwithVariableLimiter OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.PIwithVariableLimiter

PI with variable limiter controller for WECC electrical controllers

Information

Specific PI with variable limiter component for the WECC-based renewable energy controller models.

The modelling of such component is based, mainly, on the following reference:

Parameters

NameDescription
K_PVoltage regulator proportional gain
K_IVoltage regulator integral gain
y_startStarting output value for the integrator

Connectors

NameDescription
u 
y 
limit1Connector of Real input signal used as maximum of input u
limit2Connector of Real input signal used as minimum of input u
voltage_dipConnector of first Boolean input signal

OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.PIwithNoVariableLimiter OpenIPSL.Electrical.Renewables.PSSE.ElectricalController.BaseClasses.PIwithNoVariableLimiter

PI with no variable limiter controller for WECC electrical controllers

Information

Specific PI with no variable limiter component for the WECC-based renewable energy controller models.

The modelling of such component is based, mainly, on the following reference:

Parameters

NameDescription
K_PVoltage regulator proportional gain
K_IVoltage regulator integral gain
V_RMAXMaximum regulator output [1]
V_RMINMinimum regulator output [1]
y_startStarting output value for the integrator

Connectors

NameDescription
u 
y 
voltage_dipConnector of first Boolean input signal
Automatically generated Thu Feb 26 06:56:10 2026.