Power Flow#
Network class methods#
Calculate per unit impedances and append voltages to lines and shunt impedances. |
|
|
Linear power flow for generic network. |
|
Full non-linear power flow for generic network. |
SubNetwork class methods#
|
Linear power flow for connected sub-network. |
|
Non-linear power flow for connected sub-network. |
Find slack and all PV and PQ buses for a sub_network. |
|
Find the slack bus in a connected sub-network. |
|
|
Calculate bus admittance matrices for AC sub-networks. |
|
Calculate the Power Transfer Distribution Factor (PTDF) for sub_network. |
|
Calculate B and H matrices for AC or DC sub-networks. |
Other#
|
Aggregate branches between same buses and replace with a single branch with aggregated properties (e.g. s_nom is summed, length is averaged). |
Calculate line electrical parameters x, r, b, g from standard types. |
|
Convert given T-model parameters to PI-model parameters using wye-delta transformation. |
|
Calculate transformer electrical parameters x, r, b, g from standard types. |
|
|
Find all cycles in the sub_network and record them in sub_network.C. |
|
Get the spanning tree of the graph, choose the node with the highest degree as a central "tree slack" and then see for each branch which paths from the slack to each node go through the branch. |
|
Batched linear power flow with numpy.dot for several snapshots. |
|
Linear power flow for generic network. |
|
Full non-linear power flow for generic network. |
|
Solve f(x) = 0 with initial guess for x and dfdx(x). |
|
Non-linear power flow for a sub-network consiting of a single bus. |
|
Follows http://home.earthlink.net/~w6rmk/math/wyedelta.html. |