Gen Controller¶
Controller Overview¶
The Gen Controller implements smart inverter control modes for OpenDSS Generator objects. It provides Volt-Var (VVar) control using a heavy-ball damping algorithm to regulate reactive power output based on the voltage at the point of common coupling (PCC).
This controller is conceptually similar to the PV System Smart Controller but operates on Generator elements instead of PVSystem elements. It is useful for modeling inverter-based distributed generators with grid-support functions.
Controller Model¶
- class pydss.pyControllers.Controllers.GenController.GenController¶
The controller is configured with the following TOML settings:
Parameter |
Type |
Description |
|---|---|---|
|
string |
First control mode ( |
|
string |
Second control mode |
|
string |
Third control mode |
|
string |
Control priority ( |
|
float |
Damping coefficient for heavy-ball algorithm |
|
float |
Power factor limit |
|
float |
Minimum voltage threshold for Volt-Var curve (p.u.) |
|
float |
Maximum voltage threshold for Volt-Var curve (p.u.) |
|
float |
Lower deadband voltage (p.u.) |
|
float |
Upper deadband voltage (p.u.) |
|
bool |
If true, models the generator with PVSystem-like behavior |
Usage Example¶
["Generator.gen1"]
Control1 = "VVar"
Control2 = "None"
Control3 = "None"
Priority = "Var"
DampCoef = 0.8
PFlim = 0.9
uMin = 0.92
uMax = 1.08
uDbMin = 0.98
uDbMax = 1.02
Model as PVsystem = false