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

S10 · Lesson 42 · Fault lab

Inverting Y-bus into Z-bus with complex arithmetic, fault currents for every fault type from the sequence impedances, phase currents from sequence components, and every bus's voltage during a fault

Lessons 36 to 40 computed fault currents by hand for one bus at a time. A fault study program does it for every bus and every fault type, to size breakers and set relays across a whole network. Its core is short: build Zbus, read each bus's Thévenin impedance off the diagonal, connect the sequence networks for each fault type, and turn sequence currents back into phase currents. In this lab you'll write that core and check it against the hand results.

  • The curves are the fault currents at a bus with Z1=Z2 = j0.25 pu, against its zero-sequence impedance Z0: three-phase 1/Z1, line-to-line 3/(Z1+Z2) and single line-to-ground 3/(Z1+Z2+Z0).
  • Where Z0 is smaller than Z1, near solidly grounded wye transformers, the ground fault is the largest; with Z0 above Z1 it falls below the three-phase fault.
  • The line-to-line fault is always 3/2 = 87% of the three-phase fault when Z2=Z1.

Predict

A bus has Z1=Z2 = j0.25 pu. What zero-sequence impedance makes its single line-to-ground fault current equal to its three-phase fault current?

Name it

What the lab computes

  • Z-bus by Gauss–Jordan inversion of the complex Ybus, the same elimination as for real matrices with complex pivots.
  • Fault currents at a bus with sequence impedances Z1,Z2,Z0 and fault impedance Zf, from 1 pu prefault: - three-phase: 1/(Z1+Zf); - line-to-line: Ia1=1/(Z1+Z2+Zf), |Ib|=3|Ia1|; - single line-to-ground: Ia0=Ia1=Ia2=1/(Z1+Z2+Z0+3Zf), Ia=3Ia0; - double line-to-ground: Ia1=1/(Z1+Z2∥(Z0+3Zf)), ground current 3Ia0 with Ia0=−Ia1Z2/(Z2+Z0+3Zf).
  • Phase currents from Ia=I0+I1+I2, Ib=I0+a2I1+aI2, Ic=I0+aI1+a2I2, a=ej120°.
  • Voltages during a three-phase fault at bus k: Vi=1−Zik/(Zkk+Zf).

Check

Write invert(Y): the inverse of a complex square matrix (list of lists) by Gauss–Jordan elimination with partial pivoting.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write faults(Z1, Z2, Z0, Zf): a dict with the magnitudes of the three-phase current ('3ph'), the line-to-line phase current ('LL'), the single line-to-ground fault current ('SLG') and the double line-to-ground ground current ('DLG'), from 1 pu prefault.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write phase_currents(I0, I1, I2): the complex phase currents (Ia, Ib, Ic).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write fault_voltages(Z, k, Zf): the bus voltages during a three-phase fault at bus k (index from 0) through Zf, from 1 pu prefault everywhere, given Z-bus Z.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why is Z-bus, rather than Y-bus, the natural matrix for fault studies?