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 , 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 = j0.25 pu, against its zero-sequence impedance : three-phase , line-to-line and single line-to-ground .
- Where is smaller than , near solidly grounded wye transformers, the ground fault is the largest; with above it falls below the three-phase fault.
- The line-to-line fault is always = 87% of the three-phase fault when .
Predict
A bus has = j0.25 pu. What zero-sequence impedance makes its single line-to-ground fault current equal to its three-phase fault current?
Setting gives . Below that the ground fault is larger, which is why breakers near grounded-wye transformers are often sized for ground faults rather than three-phase ones.
Name it
What the lab computes
- Z-bus by Gauss–Jordan inversion of the complex , the same elimination as for real matrices with complex pivots.
- Fault currents at a bus with sequence impedances and fault impedance , from 1 pu prefault: - three-phase: ; - line-to-line: , ; - single line-to-ground: , ; - double line-to-ground: , ground current with .
- Phase currents from , , , .
- Voltages during a three-phase fault at bus k: .
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?
A fault is a current suddenly drawn from one bus, and the question is how every bus's voltage responds. Z-bus maps injected currents directly to voltages, so the column for the faulted bus gives each bus's voltage change per unit of fault current, and its diagonal entry is the Thévenin impedance that sets the fault current itself. Y-bus maps voltages to currents, so using it would require solving the whole network for every fault. Because faults are studied at every bus, programs factor Y-bus once and extract the Z-bus columns they need, combining the sparsity of one with the convenience of the other.