Source DC
Note
Sources 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 source with negative active power value.
See also
Create Function
Input Parameters
net.sgen
Parameter |
Datatype |
Value Range |
Explanation |
name |
string |
name of the static generator |
|
type |
string |
type of source |
|
bus* |
integer |
index of connected bus |
|
p_mw* |
float |
\(\leq\) 0 |
active power of the static generator [MW] |
scaling* |
float |
\(\geq\) 0 |
scaling factor for the active and reactive power |
controllable** |
bool |
True / False |
states if sgen is controllable or not, sgen will not be used as a flexibility if it is not controllable |
in_service* |
boolean |
True / False |
specifies if the generator is in service. |
*necessary for executing a power flow calculation
Electric Model
DC sources are modelled as P-buses in the power flow calculation:
The P-Values are calculated from the parameter table values as:
Note
Other values are provided as additional information for usage in controller or other applications based on pandapower. It is not considered in the power flow!
Result Parameters
net.res_source_dc
Parameter |
Datatype |
Explanation |
p_mw |
float |
resulting active power demand after scaling [MW] |
The power values in the net.res_source_dc table are equivalent to \(P_{sgen}\).