DC Power flow
Warning
To run an AC power flow with DC power flow initialization, use the AC power flow with init=”dc”.
pandapower uses PYPOWER to solve the DC power flow problem:
- pandapower.run.rundcpp(net, trafo_model='t', trafo_loading='current', recycle=None, check_connectivity=True, switch_rx_ratio=2, trafo3w_losses='hv', **kwargs)
Runs PANDAPOWER DC Flow
- Parameters:
network (**net** - The pandapower format)
**trafo_model** (str, "t")
transformer (pandapower provides two equivalent circuit models for the)
model. (- "t" - transformer is modeled as equivalent with the T-model. This is consistent with PowerFactory and is also more accurate than the PI-model. We recommend using this transformer)
Sincal (- "pi" - transformer is modeled as equivalent PI-model. This is consistent with)
T-model. (but the method is questionable since the transformer is physically T-shaped. We therefore recommend the use of the)
**trafo_loading** (str, "current")
transformer. (- "power" - transformer loading is given as ratio of apparent power flow to the rated apparent power of the)
setting (- "current"- transformer loading is given as ratio of current flow and rated current of the transformer. This is the recommended)
current. (since thermal as well as magnetic effects in the transformer depend on the)
transformer.
**check_connectivity** (bool, False)
true (If)
perfomed. (an extra connectivity test based on SciPy Compressed Sparse Graph Routines is)
buses (If check finds unsupplied)
matrix (they are put out of service in the PYPOWER)
**switch_rx_ratio** (float, 2)
zero (whose impedance z_ohm is not)
to (buses connected by a closed bus-bus switch are fused)
switches (model an ideal bus. Closed bus-bus)
zero
modelled (are)
switch_rx_ratio. (as branches with resistance and reactance according to net.switch.z_ohm and)
**trafo3w_losses** (str, "hv")
PYPOWER.runpf (**kwargs** - options to use for)
Note
If you are interested in the pypower casefile that pandapower is using for power flow, you can find it in net[“_ppc”]. However all necessary information is written into the pandapower format net, so the pandapower user should not usually have to deal with pypower.