Power System Load Flow Calculator Back
Power Systems Analysis

Power System Load Flow Calculator

Adjust generator output, bus voltages, loads, and line reactances in a 3-bus network. Instantly compute bus voltages, phase angles, power flows, and transmission losses using Newton-Raphson iteration.

Parameters
Generator
G2 Active Power PG2
pu
G2 Voltage Setpoint VG2
pu
Loads
Bus 2 Load PL2
pu
Bus 2 Reactive QL2
pu
Bus 3 Load PL3
pu
Bus 3 Reactive QL3
pu
Line Reactances
Line 1-2 X12
pu
Line 1-3 X13
pu
Line 2-3 X23
pu
Results
Transmission Loss [pu]
Minimum Voltage [pu]
Slack Generation [pu]
Sys
Phasor
Voltage Profile
BusVoltage [pu]Phase Angle [°]P Injection [pu]Q Injection [pu]Status
Theory & Key Formulas

Active: $P_{ij}= \dfrac{V_i V_j \sin(\delta_i - \delta_j)}{X_{ij}}$


Reactive: $Q_{ij}= \dfrac{V_i^2 - V_i V_j \cos(\delta_i - \delta_j)}{X_{ij}}$

What is Load Flow Analysis?

🙋
What exactly is "load flow" in a power system? Is it just tracking where electricity goes?
🎓
Basically, yes, but with a crucial twist. It's the math that determines the steady-state voltages and power flows in every part of the network when you know the loads and generator outputs. In practice, it tells us if voltages are safe and if any lines are overloaded. Try moving the "Bus 3 Load P" slider in the simulator above—you'll instantly see how power redistributes and voltages change across the whole 3-bus system.
🙋
Wait, really? So why is the voltage at Bus 1 always fixed at 1.0? And what's that "slack bus" mentioned in the tool info?
🎓
Great observation! Bus 1 is our "slack" or reference bus. In any real grid, total generation must match total load plus losses, but losses aren't known until after we solve. The slack bus handles this imbalance. It's like the system's anchor: we fix its voltage at 1.0 per-unit and angle at 0°, and it supplies or absorbs whatever power is needed to balance the system. That's why you can't adjust its parameters here.
🙋
Okay, that makes sense as the anchor. But what about the other generator, G2? I see I can control both its power (P) and voltage (V). How do those two knobs work together?
🎓
In practice, a generator can control one of two things: its real power output or its terminal voltage, but not both independently in the solution. In this simulator, when you set G2's "Active Power P," you're telling it how much MW to produce. When you set its "Voltage Setpoint V," you're commanding what voltage it should try to maintain by adjusting its reactive power output. Play with both sliders and watch how the reactive power flow Q on the lines changes dramatically with voltage, while the real power P is more tied to the load settings.

Physical Model & Key Equations

The core of load flow is solving a set of non-linear equations based on Kirchhoff's laws. For each transmission line, the active (real) power flow from bus i to bus j depends on the voltage magnitudes, the phase angle difference between the buses, and the line's reactance.

$$P_{ij}= \dfrac{V_i V_j \sin(\delta_i - \delta_j)}{X_{ij}}$$

Where $P_{ij}$ is the active power flow, $V_i$ and $V_j$ are voltage magnitudes (in per-unit), $\delta_i$ and $\delta_j$ are voltage phase angles (in radians), and $X_{ij}$ is the line reactance (in per-unit). Power flows from the bus with the leading angle to the bus with the lagging angle.

Similarly, the reactive power flow is determined by the voltage magnitudes and their difference. Reactive power is crucial for maintaining voltage levels within acceptable limits.

$$Q_{ij}= \dfrac{V_i^2 - V_i V_j \cos(\delta_i - \delta_j)}{X_{ij}}$$

Where $Q_{ij}$ is the reactive power flow. Notice that reactive power flows from the bus with the higher voltage magnitude to the bus with the lower voltage magnitude. This is why adjusting the "G2 Voltage Setpoint V" in the simulator has a direct impact on reactive power flows and bus voltages.

Frequently Asked Questions

When generator output, load, or transmission line parameters are changed, the solution to the nonlinear simultaneous equations changes to satisfy the power balance conditions (Kirchhoff's laws). This simulator recalculates the power flow each time a change is made and immediately displays the voltage and phase angle at the new equilibrium state.
When the reactance X increases, the active power Pij = (Vi Vj sinδ)/X decreases for the same voltage phase difference. In other words, to transmit the same generator output, a larger phase difference is required, which consequently affects bus voltages and the overall stability of the system.
Reactive power Qij is approximately proportional to (Vi - Vj)Vi / X. The greater the difference in voltage magnitude, the more reactive power flows from the higher voltage side to the lower voltage side. This simulator allows you to observe this characteristic and intuitively learn the effect of voltage drop due to increased load.
When the active power flowing through transmission lines increases due to higher generator output, the voltage drop (V drop) across the line reactance becomes larger, causing the voltage at distant buses to decrease. Additionally, if the reactive power supply-demand balance is disrupted, the voltage becomes unstable. Please verify this by changing parameters in this tool.

Real-World Applications

Grid Planning and Expansion: Before building a new power plant or a new transmission line, engineers run thousands of load flow scenarios. They simulate different load growth patterns and generator outages to ensure the future grid remains stable and within voltage limits. A common case is determining if a new wind farm will cause voltage rise issues on a rural line.

Real-Time System Operation: In a control room, operators use a state estimator (which relies on load flow algorithms) to see the real-time condition of the grid. They might use it to decide which generators to dispatch or to identify if a line is approaching its thermal limit, preventing a potential overload and blackout.

Renewable Integration Studies: Solar and wind power are intermittent and can cause rapid voltage fluctuations. Load flow analysis, often combined with time-series simulation, helps determine how much renewable generation a section of the grid can handle without needing expensive new voltage control equipment.

Industrial Facility Design: Large factories, data centers, or oil refineries perform load flow studies on their internal electrical distribution system. This ensures that when a large motor starts, it doesn't cause a voltage dip that crashes sensitive computer equipment or disrupts other processes.

Common Misconceptions and Points to Note

First, it is a misconception that "reducing the reactance X always increases power transfer capability." It's true that a lower line reactance allows more power to flow for the same voltage difference. However, in actual transmission lines, reducing the reactance (e.g., by using thicker conductors) makes the line's capacitance (charging current) effect non-negligible. Especially in long-distance transmission, this charging current causes the "Ferranti effect," where the receiving-end voltage becomes higher than the sending-end voltage under light load conditions, making voltage control difficult. In the simulator, try drastically reducing the reactance X and increasing the capacitance B, as if you changed "Line 1-3" from an overhead line to an underground cable. You should observe the phenomenon where Bus 3 voltage exceeds Bus 1 voltage when the load is light.

Next, you might tend to think that a bus voltage of "1.0" is always optimal, but in practice, the overall system voltage profile is considered. For example, voltages are sometimes set in a stepped manner, such as 1.05 [p.u.] at the sending end, 1.02 at an intermediate point, and 0.98 at the load end. This is to minimize reactive power flow and reduce transmission losses. If you fix all bus voltages at 1.0 in the simulator and vary the load, you can observe how the reactive power flow increases, resulting in higher transmission losses.

Finally, understand that power flow calculation results are a "static snapshot." This calculation solves for a steady state under a specific operating condition (e.g., the 2 PM peak). However, in real systems, "dynamic phenomena" constantly occur, such as rapid output changes from solar power or large motor starts. Just because the voltage is within the allowable range in a power flow calculation does not guarantee that instantaneous voltage dips (sags) won't occur. Analyzing dynamic phenomena requires a separate "transient stability analysis" tool.

How to Use

  1. Set Generator 2 active power (vPg2Num) between 0.5–2.0 pu and reactive power (vVg2Num) between −0.5–0.5 pu using the sliders
  2. Adjust Load 2 active power (vPl2Num) from 0.3–1.5 pu to simulate demand variations
  3. Modify line impedances via s-pg2, s-vg2, and s-pl2 to represent different transmission configurations, then click Solve to compute nodal voltages, phase angles, and real/reactive power flows across all three buses

Worked Example

Consider a 3-bus 100 MVA system: Generator 1 (slack) at Bus 1, Generator 2 at Bus 2 set to 1.2 pu (120 MW) active and 0.3 pu reactive output, Load 2 at Bus 3 consuming 0.8 pu (80 MW). Line 1–2 impedance Z = 0.05 + j0.15 pu, Line 2–3 impedance Z = 0.08 + j0.20 pu. Solution yields: Bus 2 voltage = 0.96 pu, Bus 3 voltage = 0.93 pu, phase angle at Bus 3 = −4.2°, transmission loss = 0.042 pu (4.2 MW), and slack generator supplies 0.54 pu to compensate losses and reactive demand.

Practical Notes

  1. Minimum Voltage output alerts undervoltage risk; keep values ≥0.90 pu to prevent equipment damage and voltage collapse in radial networks
  2. Transmission Loss increases nonlinearly with load; doubling active power roughly quadruples I²R losses, so optimize generator dispatch to minimize congestion on weak lines
  3. Reactive power support from Generator 2 (s-vg2) stabilizes voltages locally; set to 0.2–0.4 pu for Bus 3 loads >1.0 pu to avoid cascade voltage sag
  4. Slack Generation output >1.5 pu indicates insufficient distributed generation; add renewable resources or capacitor banks at Load 2 location