DC Line
See also
Create Function
Input Parameters
net.dcline
Parameter |
Datatype |
Value Range |
Explanation |
name |
string |
name of the generator |
|
from_bus* |
integer |
Index of bus where the dc line starts |
|
to_bus* |
integer |
Index of bus where the dc line ends |
|
p_mw* |
float |
\(>\) 0 |
Active power transmitted from ‘from_bus’ to ‘to_bus’ |
loss_percent* |
float |
\(>\) 0 |
Relative transmission loss in percent of active power transmission |
loss_mw* |
float |
\(>\) 0 |
Total transmission loss in MW |
vm_from_pu* |
float |
\(>\) 0 |
Voltage setpoint at from bus |
vm_to_pu* |
float |
\(>\) 0 |
Voltage setpoint at to bus |
max_p_mw** |
float |
\(>\) 0 |
Maximum active power transmission |
min_q_from_mvar** |
float |
Minimum reactive power at from bus |
|
max_q_from_mvar** |
float |
Maximum reactive power at from bus |
|
min_q_to_mvar** |
float |
Minimum reactive power at to bus |
|
max_q_to_mvar** |
float |
Maximum reactive power at to bus |
|
in_service* |
bool |
True/False |
specifies if DC line is in service |
*necessary for executing a power flow calculation
**optimal power flow parameter
Note
DC line is only able to model one-directional loadflow for now, which is why p_mw / max_p_mw have to be > 0.
Electric Model
A DC line is modelled as two generators in the loadflow:
The active power at the from side is defined by the parameters in the dcline table. The active power at the to side is equal to the active power on the from side minus the losses of the DC line.
The voltage control with reactive power works just as described for the generator model. Maximum and Minimum reactive power limits are considered in the OPF, and in the PF if it is run with enforce_q_lims=True.
Result Parameters
net.res_dcline
Parameter |
Datatype |
Explanation |
p_from_mw |
float |
active power flow into the line at ‘from_bus’ [MW] |
q_from_mvar |
float |
reactive power flow into the line at ‘from_bus’ [kVar] |
p_to_mw |
float |
active power flow into the line at ‘to_bus’ [MW] |
q_to_mvar |
float |
reactive power flow into the line at ‘to_bus’ [kVar] |
pl_mw |
float |
active power losses of the line [MW] |
vm_from_pu |
float |
voltage magnitude at ‘from_bus’ [p.u] |
va_from_degree |
float |
voltage angle at ‘from_bus’ [degree] |
vm_to_pu |
float |
voltage magnitude at ‘to_bus’ [p.u] |
va_to_degree |
float |
voltage angle at ‘to_bus’ [degree] |