CADXChange

Power flow (load flow) calculator

Enter the buses and branches of a network of up to 30 buses, in per unit or in ohms and kV, and get every bus voltage and angle, the power at both ends of each line and transformer, and the losses. The tables accept rows pasted from a spreadsheet. The results are shown on a network diagram where buses, generators, loads and lines can be added and edited, with a one-click N-1 scan.

Buses

BusTypeU (pu)PG (MW)QG (Mvar)PL (MW)QL (Mvar)QminQmaxQc (Mvar)
1
2
3
4
5
6
7
8
9
Cells copied from a spreadsheet can be pasted into the table.

The bus number is the row number. U is used for the slack and PV buses. Blank powers count as zero, blank reactive limits mean no limit. Qc is the shunt output at 1 pu: positive for capacitors, negative for reactors.

Lines and transformers

No.FromToRXBkSmax (MVA)Status
1
2
3
4
5
6
7
8
9
Cells copied from a spreadsheet can be pasted into the table.

B is the total charging susceptance of a line. For a transformer, k is the off-nominal ratio at the From bus (blank = 1). In ohm mode, R and X (Ω) and B (μS) are referred to the base voltage of the From bus. Smax is optional and used for the loading check. Switching the unit converts the table with the base voltages entered.

Network diagram

Options and limits

Result

Network active power loss
4.6410 MW
Slack bus active power
71.6410 MW
Slack bus reactive power
27.0459 Mvar
Lowest bus voltage (pu)
0.9956
Bus with the lowest voltage
9
Highest bus voltage (pu)
1.0400
Bus with the highest voltage
1
Total active generation
319.6410 MW
Total reactive generation
22.8399 Mvar
Total active load
315.0000 MW
Total reactive load
115.0000 Mvar
Reactive power from shunts
0.0000 Mvar
Net reactive consumption of branches
-92.1601 Mvar
Iterations
4
Final largest mismatch (pu)
1.69e-14

Bus results

BusU (pu)Angle (°)PG (MW)QG (Mvar)PL (MW)QL (Mvar)Shunt Q (Mvar)
11.04000.00071.64127.0460.0000.0000.000
21.02509.280163.0006.6540.0000.0000.000
31.02504.66585.000-10.8600.0000.0000.000
41.0258-2.2170.0000.0000.0000.0000.000
51.0127-3.6870.0000.00090.00030.0000.000
61.03241.9670.0000.0000.0000.0000.000
71.01590.7280.0000.000100.00035.0000.000
81.02583.7200.0000.0000.0000.0000.000
90.9956-3.9890.0000.000125.00050.0000.000

Branch flows

BranchP from (MW)Q from (Mvar)P to (MW)Q to (Mvar)Loss ΔP (MW)ΔQ (Mvar)Loading (%)
1–471.64127.046-71.641-23.9230.00003.122830.6
4–530.7041.030-30.537-16.5430.1664-15.513413.9
5–6-59.463-13.45760.817-18.0751.3538-31.531542.3
3–685.000-10.860-85.00014.9550.00004.095628.8
6–724.1833.120-24.095-24.2960.0880-21.176322.8
7–8-75.905-10.70476.380-0.7970.4753-11.501530.7
8–2-163.0009.178163.0006.6540.000015.831865.3
8–986.620-8.381-84.320-11.3132.3000-19.693634.8
9–4-40.680-38.68740.93722.8930.2575-15.794122.5

Largest mismatch per iteration

Iterationmax |ΔP| (pu)max |ΔQ| (pu)
01.630e+08.614e-1
16.101e-21.875e-1
21.177e-32.147e-3
33.421e-73.279e-7
41.685e-141.499e-14
  • Lowest bus voltage 0.9956≥0.950{.}9956 \ge 0{.}95OK
  • Highest bus voltage 1.0400≤1.051{.}0400 \le 1{.}05OK
  • Highest branch loading 65.3 %≤100 %65{.}3\,\% \le 100\,\%OK

Balanced steady state only: no optimal power flow, unbalance, automatic tap changing or phase shifters.

Report preview

This PDF is for viewing only. It is made in your browser; nothing is uploaded.

Working

  1. Total active generation PGP_{\mathrm{G}}(1)PG=Ps+Po=71.6410+248.0000=319.6410 MW\begin{aligned}P_{\mathrm{G}} &= P_{\mathrm{s}} + P_{\mathrm{o}} \\ &= 71{.}6410 + 248{.}0000 \\ &= 319{.}6410\,\mathrm{MW}\end{aligned}
  2. Active power loss of the network ΔP\Delta P(2)ΔP=PG−PL=319.6410−315.0000=4.6410 MW\begin{aligned}\Delta P &= P_{\mathrm{G}} - P_{\mathrm{L}} \\ &= 319{.}6410 - 315{.}0000 \\ &= 4{.}6410\,\mathrm{MW}\end{aligned}
  3. Total reactive generation QGQ_{\mathrm{G}}(3)QG=Qs+Qo=27.0459+(−4.2060)=22.8399 Mvar\begin{aligned}Q_{\mathrm{G}} &= Q_{\mathrm{s}} + Q_{\mathrm{o}} \\ &= 27{.}0459 + \left(-4{.}2060\right) \\ &= 22{.}8399\,\mathrm{Mvar}\end{aligned}
  4. Net reactive consumption of lines and transformers ΔQ\Delta Q(4)ΔQ=QG+Qc−QL=22.8399+0.0000−115.0000=(−92.1601)Mvar\begin{aligned}\Delta Q &= Q_{\mathrm{G}} + Q_{\mathrm{c}} - Q_{\mathrm{L}} \\ &= 22{.}8399 + 0{.}0000 - 115{.}0000 \\ &= \left(-92{.}1601\right)\mathrm{Mvar}\end{aligned}
Symbols
PGP_{\mathrm{G}}
Total active generation (MW)
PsP_{\mathrm{s}}
Active power of the slack bus (MW)
PoP_{\mathrm{o}}
Active generation of the other buses (MW)
ΔP\Delta P
Active power loss of the network (MW)
PLP_{\mathrm{L}}
Total active load (MW)
QGQ_{\mathrm{G}}
Total reactive generation (Mvar)
QsQ_{\mathrm{s}}
Reactive power of the slack bus (Mvar)
QoQ_{\mathrm{o}}
Reactive generation of the other buses (Mvar)
ΔQ\Delta Q
Net reactive consumption of lines and transformers (Mvar)
QcQ_{\mathrm{c}}
Reactive power injected by shunts (Mvar)
QLQ_{\mathrm{L}}
Total reactive load (Mvar)
Design conditions and assumptions
  • Balanced three-phase steady state represented by one phase in per unit. Constant-power loads and generation, constant shunt susceptance; lines are pi sections and transformers have a fixed off-nominal ratio at the from side. No phase shifters, mutual coupling or automatic tap control.

How the power flow is calculated

Each bus is the slack bus (voltage fixed, angle zero), a PV bus (active power and voltage given) or a PQ bus (active and reactive power given). A line is a π section with half of B at each end; a transformer is an ideal ratio k at the From bus in series with R + jX. All quantities are per unit of the base power Sb, and the bus admittance matrix Y = G + jB is assembled from the branches and the shunts.

With data in ohms, the base impedance is Zb = Ub2/Sb using the base voltage of the From bus. R and X are divided by Zb and B, given in μS, is multiplied by Zb. For a transformer choose bus base voltages that match its rated ratio and put the remaining tap deviation into k. Bus voltages are then also shown in kV.

The equations Pi = Ui Σ Uj (Gij cos θij + Bij sin θij) and Qi = Ui Σ Uj (Gij sin θij − Bij cos θij) are solved by the Newton-Raphson method in polar coordinates, starting from zero angles and 1 pu at PQ buses, until the largest power mismatch is below 10−8 pu (at most 30 iterations per pass). The report lists the mismatch of every iteration.

After convergence, a PV bus whose reactive generation is beyond a limit is held at that limit and solved as a PQ bus. It returns to voltage control if its voltage shows that it can regulate again. This is repeated until nothing changes. Limits of the slack bus are not enforced; they are only reported.

Results are the voltage, angle, generation, load and shunt output of each bus, the power at both ends, losses and loading of each branch, and the totals. Not included: optimal power flow, three-phase unbalance, automatic tap changing, phase-shifting transformers, area interchange and other controls.

The network diagram shows and edits the bus and branch tables. Voltage and angle are written at each bus, and each branch shows the power leaving its two buses and its loading. A branch that is switched open is disconnected at both ends. A part that loses its connection to the slack bus is solved on its own if it has a voltage-controlled generator and a load or compensation, with the largest such generator as a temporary reference; otherwise it is treated as de-energised (zero voltage, load and generation left out), as is a bus with no branch.

The N-1 scan takes out each branch in service in turn and solves the network again, listing the lowest and highest voltage, the highest loading, the load lost and the generation lost in every case. The result is judged in this order: no solution, load lost, network split, overload, voltage violation; a case with none of these is acceptable. Voltages are judged against the limits after an outage (those of normal operation if left blank), and overload only on branches with an Smax. Generator outages, multiple faults and transients are not included.

Questions

What is the difference between slack, PV and PQ buses?
The slack bus supplies whatever power is needed to balance the network and sets the angle reference. A PV bus is a generator or compensator that holds its voltage and a given active power. A PQ bus has given active and reactive power, which covers most load buses.
How do I enter a transformer?
As a branch with its short-circuit resistance and reactance on the base power, and the ratio k at the From bus. k = 1 is the nominal tap. A tap that raises the From side winding voltage by 2.5 % gives k = 1.025.
Why does a PV bus not hold its voltage?
Its generator reached Qmin or Qmax. The bus table marks it in the Limit column. Widen the limits, change the set voltage or add compensation if the voltage must be held.
What does it mean when no solution is found?
Usually the load is beyond the transfer capability of the network, or a value is in the wrong unit: check the base power, whether impedances are per unit or ohms, and the reactive limits.
How do I check branch outages (N-1)?
Press N-1 scan in the toolbar of the diagram (or set the N-1 scan in the form to take out each branch). The table lists voltages, loading and lost load with each branch out, and clicking a row shows that case on the diagram. For several branches out at once, open them with their switches.

Other calculators

Drawing it up