Static Generator
Note
Static generators should always have a positive p_mw value, since all power values are given in the generator convention. If you want to model constant power consumption, it is recommended to use a load element instead of a static generator with negative active power value. If you want to model a voltage controlled generator, use the generator element.
See also
Create Function
Input Parameters
net.sgen
Parameter |
Datatype |
Value Range |
Explanation |
name |
string |
name of the static generator |
|
type |
string |
naming conventions:
“PV” - photovoltaic system
“WP” - wind power system
“CHP” - combined heating and power system
|
type of generator |
bus* |
integer |
index of connected bus |
|
p_mw* |
float |
\(\leq\) 0 |
active power of the static generator [MW] |
q_mvar* |
float |
reactive power of the static generator [MVar] |
|
sn_mva |
float |
\(>\) 0 |
rated power ot the static generator [MVA] |
scaling* |
float |
\(\geq\) 0 |
scaling factor for the active and reactive power |
max_p_mw** |
float |
Maximum active power [MW] |
|
min_p_mw** |
float |
Minimum active power [MW] |
|
max_q_mvar** |
float |
Maximum reactive power [MVar] |
|
min_q_mvar** |
float |
Minimum reactive power [MVar] |
|
controllable** |
bool |
States if sgen is controllable or not, sgen will not be used as a flexibilty if it is not controllable |
|
k*** |
float |
\(\geq\) 0 |
Ratio of nominal current to short circuit current |
rx*** |
float |
\(\geq\) 0 |
R/X ratio for short circuit impedance. Only relevant if type is specified as motor so that sgen is treated as asynchronous motor |
in_service* |
boolean |
True / False |
specifies if the generator is in service. |
*necessary for executing a power flow calculation
**optimal power flow parameter
Electric Model
Static Generators are modelled as PQ-buses in the power flow calculation:
The PQ-Values are calculated from the parameter table values as:
Note
The apparent power value sn_mva is provided as additional information for usage in controller or other applications based on panadapower. It is not considered in the power flow!
Result Parameters
net.res_sgen
Parameter |
Datatype |
Explanation |
p_mw |
float |
resulting active power demand after scaling [MW] |
q_mvar |
float |
resulting reactive power demand after scaling [MVar] |
The power values in the net.res_sgen table are equivalent to \(P_{sgen}\) and \(Q_{sgen}\).