Power Systems: Introduction
A power system is the largest machine people have built. In a synchronous area such as Continental Europe, several hundred gigawatts of generators turn in step at , tied together by hundreds of thousands of kilometres of lines, and every second they must produce exactly what millions of loads consume plus the losses in between. Nothing stores the energy on the way: if a unit trips, the frequency starts to fall within milliseconds, and automatic controls in other power stations have seconds to make up the gap. This course shows how engineers calculate such a system: the voltages and currents in its three-phase networks, the power flows between its buses, the currents when something short-circuits, the relays that clear the fault, and the dynamics that decide whether the generators stay in step afterwards.
Safety rule for the whole course. Everything at mains and grid voltage (230/400 V installations, distribution and transmission networks, substations, generators, protection relays and their tests) is taught here by calculation and simulation only, in Python and ngspice, with the browser labs. Nothing in this course is ever connected to the mains or the grid. The only bench work uses low-voltage analogues: resistor networks and a small DC "grid" fed from a current-limited bench supply of 24 V or less, and AC of 12 V or less from a function generator or a small hand-cranked generator. Arc flash, step and touch voltages and live working are explained as concepts so that you recognise the hazards; working on real equipment needs training, approved instruments and authorisation under the local rules.
The chain from generator to socket
The figure is a one-line diagram: each line stands for three phases. Large generators produce at to and a step-up transformer raises this to a transmission voltage such as . Grid substations step down to subtransmission ( or ), primary substations to medium-voltage distribution (, or ), and many small transformers to the low-voltage network. The voltage levels are the nominal values of IEC 60038 (IEC standard voltages, edition 7.0, 2009, amendment 1 of 2021); Structure and Components gives the full table. Wind farms, solar parks and batteries connect through power-electronic converters at whatever level suits their size.
Why high voltage?
For a given power the current falls in proportion to the voltage, and the resistive loss with its square. That single fact shapes the whole system.
Given: delivered at power factor over of three-phase overhead line with per phase ( per phase).
Find: the line current and the loss at , and .
Solve:
At the current would be and the loss , which is absurd: no one sends over at medium voltage.
Check: the loss scales as : and . The same factor limits the voltage drop, which is why long distances need high voltage and why the last few hundred metres to a house can be at .
import numpy as np
P, pf, R = 100e6, 0.95, 0.06 * 100 # W, -, ohm per phase over 100 km
for VL in (33e3, 132e3, 400e3):
I = P / (np.sqrt(3) * VL * pf)
loss = 3 * I**2 * R
print(f"{VL/1e3:5.0f} kV: I = {I:7.1f} A, loss = {loss/1e6:6.2f} MW ({100*loss/P:5.1f} % of P)")
print(f"ratio of losses 132/400 kV: {(400/132)**2:.2f}") 33 kV: I = 1841.6 A, loss = 61.05 MW ( 61.0 % of P)
132 kV: I = 460.4 A, loss = 3.82 MW ( 3.8 % of P)
400 kV: I = 151.9 A, loss = 0.42 MW ( 0.4 % of P)
ratio of losses 132/400 kV: 9.18
Higher voltage costs taller towers, longer insulator strings and bigger clearances, so each level is an economic compromise. Transformers make changing level cheap and efficient, and that is the main reason the world's grids are AC. HVDC links win where AC struggles: very long overhead lines (roughly beyond to ), submarine and underground cables longer than a few tens of kilometres (cable capacitance makes long AC cables draw huge charging currents), and connections between grids that are not synchronous. These break-even distances are rough industry rules of thumb that depend on prices; HVDC and FACTS explains them.
The mains waveform
The lab shows the , waveform that the whole chain delivers: peak , period (slowed times in the animation); across a resistor it would dissipate . Every generator in a synchronous area holds this frequency together; a deviation of a few hundred millihertz is already a serious event (Frequency Control).
The map of the course
| Section | You will be able to | Labs and tools |
|---|---|---|
| Getting started | read one-line diagrams, voltage levels, substations, lines and cables | figures |
| Three-phase systems and power | solve balanced and unbalanced networks per phase and in full, measure three-phase power, correct power factor, work in per unit across several voltage levels | ee-three-phase, ee-phasor-diagram, ee-netlist, NumPy |
| Generation | compare thermal, hydro and nuclear plant, run a generator on the grid, compute wind and PV output, storage, capacity factor and LCOE | Python, ee-netlist |
| Transmission lines | find R, L and C from geometry, model short, medium and long lines, explain surge impedance loading and the Ferranti effect | NumPy, ngspice, ee-netlist |
| Reactive power and voltage control | relate P to angle and Q to voltage, size tap changers and shunt compensation | Python, ee-netlist |
| Load flow | build the Y-bus and solve Gauss–Seidel, Newton–Raphson and DC load flows | NumPy |
| Economic operation | dispatch generators at equal incremental cost, commit units over a day | NumPy, SciPy |
| Faults | compute symmetrical and unsymmetrical fault currents with Thevenin, the Z-bus and symmetrical components, to IEC 60909 | NumPy, ngspice, ee-netlist |
| Protection | choose fuses, set IDMT relays and grade them, set distance zones and differential relays, design earthing | Python, Matplotlib, ee-transmission-line |
| Stability | integrate the swing equation, apply equal-area, model frequency and voltage stability | SciPy solve_ivp, ee-pid-loop |
| Distribution and power quality | compute feeder voltage drop and losses, assess harmonics, flicker and sags | Python |
| The modern grid | explain HVDC, FACTS, DER integration to IEEE 1547-2018, microgrids and markets | Python |
The course builds on Circuit Theory, in particular Complex Power and Three-Phase Circuits, and on Electrical Machines for transformers, synchronous machines and per-unit values. Lines as travelling waves come from Electromagnetic Theory, control loops from Control Systems, and power and harmonic measurement from Measurements. Inverters and converters are the subject of Power Electronics & Motor Drives.
Conventions in this course
| Quantity | Symbol |
|---|---|
| phasor (rms) | bold, , ; magnitude , |
| line-to-line and phase voltage | , ; |
| complex power | (lagging Q positive) |
| per-unit value | the unit "pu"; system base unless stated |
| power injected at bus | (generation positive) |
| symmetrical-components operator | |
| frequency | unless stated |
The running examples are a four-bus network N4 (load flow, dispatch), a power station P1 of one generator, its step-up transformer and a double-circuit line to the grid (faults, stability), an distribution feeder F11, and a factory's low-voltage board B1 behind a transformer (protection, earthing). The mini project at the end puts them together in a small power-system study.
Pitfalls
- Line or phase? Every voltage in a power-system document is line-to-line unless it says otherwise; per-phase analysis uses phase values.
- Nominal values are not exact. "400 V" is , and the real supply may differ from nominal by several percent.
- Calculation is not commissioning. A study tells you what to expect; testing real plant is work for authorised people with rated equipment.
Practice
- Repeat the loss calculation for .
- A feeder carries at pf . What line current flows?
- Why can a long submarine link not simply be an AC cable?
Answer
- , loss (1.4 %).
- .
- A cable's capacitance is far larger than an overhead line's, so a long AC cable needs a large charging current at every point. Over some tens of kilometres that current uses up the cable's whole current rating before any power is delivered. DC has no charging current in steady state.
Test yourself
Doubling the transmission voltage at the same power and line resistance changes the loss by a factor of…
- 2
- 1/2
- 1/4
- 4
Which is the main reason most grids are AC rather than DC?
- AC has no losses
- Transformers change AC voltage cheaply and efficiently
- AC lines have no inductance
- Generators cannot produce DC
In a one-line diagram, one line stands for…
- the neutral
- one phase
- all three phases
- the earth conductor
The nominal 230/400 V low-voltage system in Europe is defined in…
- IEC 60909
- IEC 60038
- IEEE 519
- IEC 60255-151