S1018 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S10 · Lesson 18 · Gauss–Seidel power flow

Solving the power-flow equations one bus at a time, the update for PQ buses, handling PV buses and var limits, acceleration factors and when they help, and why the method's simplicity costs iterations on large systems

The first digital power-flow programs, in the late 1950s, used the Gauss–Seidel method: sweep through the buses, and at each one solve its own equation for its voltage using the latest values of its neighbors. Each step needs only one row of the sparse admittance matrix, which suited the tiny memories of the time. The method is still the easiest to write and to understand, and seeing where it struggles explains why Newton's method took over.

  • The Gauss–Seidel iterates for the two-bus case of lesson 17 (slack at 1 pu, X = 0.2, load 1 + j0.5), in the complex plane: from the flat start at 1 + j0, the load bus voltage jumps to 0.9 − j0.2 and then zigzags in toward the solution 0.832 − j0.200.
  • Each step cuts the error by a factor of about 0.28, so twelve iterations reach 10⁻⁶.
  • The imaginary part settles almost immediately; it's the magnitude that takes time.

Predict

For the two-bus case, the first iterate from a flat start is V2=(1−XQ)−jXP. With X = 0.2 and a load of 1 + j0.5, what is it?

Name it

The update

Solve bus i's power equation for Vi:

Vi(k+1)=1Yii[Pi−jQiVi(k)*−∑j<iYijVj(k+1)−∑j>iYijVj(k)]

using each new value as soon as it's computed (that's what distinguishes Gauss–Seidel from Gauss, or Jacobi). Stop when no voltage changes by more than a tolerance, typically 10⁻⁵ to 10⁻⁶ pu.

PV buses

Q isn't known. Compute it from the current voltages, Qi=−Im(Vi*∑jYijVj), use it in the update, then rescale Vi to the specified magnitude, keeping the new angle. If Q exceeds the generator's limit, fix it at the limit and treat the bus as PQ.

Acceleration

Replace the new value by Vold+α(Vnew−Vold). Factors of 1.4 to 1.6 often cut iterations on large systems by half, but they're problem dependent: on the two-bus case α = 1.2 takes 22 iterations instead of 12, and α = 1.6 doesn't converge at all.

The cost

Each sweep is cheap, but information spreads only one bus per step, so the number of iterations grows with the network's size, and convergence slows badly on heavily loaded or ill-conditioned systems. That's the motivation for Newton–Raphson (lesson 19), whose iteration count barely depends on size.

Worked example

A generator bus 2 injects 0.5 pu and holds |V₂| = 1.0, connected to a slack at 1∠0° through X = 0.2. What angle and Q does Gauss–Seidel converge to?

Show the solution
  1. Angle. At convergence the equations hold exactly: sin⁡δ2/0.2=0.5 gives δ₂ = 5.74°.
  2. Reactive power. The generator injects Q2=(1−cos⁡5.74°)/0.2=0.025pu just enough for the line's own I2X.
  3. During the iterations. Each pass computes Q from the latest angle, updates V2, and rescales it to 1.0.

Answer δ₂ = 5.74° and Q2 = 0.025 pu.

Worked example

If each iteration shrinks the error by a factor of 0.28 from an initial 0.07 pu, how many iterations reach 10⁻⁶?

Show the solution
  1. Set the condition. 0.07×0.28k<10−6
  2. Solve for k. k>ln⁡(10−6/0.07)ln⁡0.28=8.76
  3. Count them. That's 9 more after the first, or about 10 to 12 in total, consistent with the 12 the two-bus case takes.
  4. A large system. A large system's factor might be 0.95, needing hundreds of iterations.

Answer 9 more iterations after the first, about 10 to 12 in all.

Worked example

A generator bus is set to hold 1.02 pu, but holding it would take 0.6 pu of vars and the machine's limit is 0.4. The bus's short-circuit level is 5 pu. What does the power flow do, and where does the voltage end up?

Show the solution
  1. Switch the bus type. The bus switches from PV to PQ with Q fixed at 0.4 pu, and its voltage is no longer held.
  2. Estimate the drop. It falls by roughly the missing vars over the short-circuit level: ΔV≈0.2/5=0.04pu to about 0.98 pu.
  3. Later iterations. Real power-flow programs check the limit after each iteration and switch the bus back to PV if the voltage later rises enough that the generator could hold it within its limit.

Answer the bus becomes a PQ bus with Q held at 0.4 pu, and its voltage falls to about 0.98 pu.

Check

A slack at 1∠0° feeds a load of 0.5 + j0.5 pu through X = 0.2. What's the magnitude of the first Gauss–Seidel iterate for the load bus, from a flat start?

Check

A PV bus at 1.05 pu injects 0.8 pu into a slack at 1∠0° through X = 0.1. What angle does Gauss–Seidel converge to?

Check

For the same PV bus, how many vars does its generator inject at the solution?

Check

Each iteration multiplies the error by 0.3, starting from 0.05. How many iterations until it's below 1 × 10⁻⁶?

Check

An iteration moves a voltage from 0.95 to 0.9. With an acceleration factor of 1.5, what value is kept?

Check

A PV bus's generator can supply at most 0.3 pu of vars. An iteration computes that it would need 0.2 pu. What Q does the next update use?

Check

A PV bus set to 1.02 pu would need 0.5 pu of vars, but its generator is limited to 0.4 pu. The bus's short-circuit level is 10 pu.

(a)

How many vars short is it?

(b)

Roughly where does its voltage settle?

Check

A PV bus at V pu injects P into a 1 pu slack through lossless X.

Step 1

What is its angle, in radians?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why does Gauss–Seidel need more iterations as the network grows, while Newton–Raphson doesn't?

Practice

Keep practicing

10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.