Total harmonic distortion of a current
From this definition and the sum of squares:
A site fits a capacitor bank to correct its power factor, and three months later the capacitors swell and their fuses blow. A neutral conductor, sized smaller than the phase conductors because “the neutral carries almost nothing”, runs hotter than any of them. A new drive shows a power factor of 0.98 on its own display, yet the energy meter records 0.91. In each case the current is no longer a sine wave, and the rules that were learned for sine waves give wrong answers. This lesson shows how to describe a distorted current with one number, how that number changes the RMS current and the power factor, and where the distortion does its damage. #Harmonics #PowerFactor #PowerQuality
By the end of this lesson, you will be able to:
A site takes its supply from a 200 kVA transformer at 415 V between phases and 240 V from phase to neutral, at 50 Hz. (The IEC nominal figures are 400 V and 230 V, and many countries use them.) A borehole pump with a 7.5 kW motor runs from a variable speed drive. The site also has electronic lighting and office equipment connected from phase to neutral, and the owner plans a capacitor bank at the main busbar.
The drive, the lamp drivers and the computer power supplies have one part in common: a rectifier that charges a capacitor. A rectifier takes current only near the peak of the voltage, in short pulses. The supply voltage is a sine wave and the current is not. Such a load is called non-linear.
The pulses cause three separate problems. Every conductor carries more RMS current than the real power needs. The neutral, which carries nothing for a balanced sine-wave load, carries the sum of the third harmonics. A capacitor bank, together with the inductance of the transformer, can amplify one harmonic until something fails.
A resistor obeys Ohm’s law at every instant, so a sine-wave voltage gives a sine-wave current. A rectifier with a capacitor behind it does not. The capacitor holds a DC voltage close to the peak of the supply. The diodes conduct only while the supply voltage is above the capacitor voltage, which is a short time around each peak. In that short time the rectifier must take all the energy that the load uses in the whole half period. The current is a narrow, tall pulse.
The frequency of the pulses is still 50 Hz, and the wave still repeats every 20 ms. Only its shape has changed.
Any wave that repeats can be written as a sum of sine waves. The first has the frequency of the supply and is called the fundamental. The others have whole multiples of that frequency and are called harmonics. The multiple is the harmonic order
On a 50 Hz supply the third harmonic is at 150 Hz, the fifth at 250 Hz and the seventh at 350 Hz. A wave whose negative half is the mirror of its positive half contains odd orders only, which is the usual case for rectifiers.
Which orders appear depends on the rectifier.
| Load | Rectifier | Main harmonic orders |
|---|---|---|
| LED drivers, computer supplies, small single-phase drives | Single-phase, between phase and neutral | 3, 5, 7, 9, 11 and so on (all odd orders) |
| Three-phase drives | Six-pulse, three phase conductors and no neutral | 5, 7, 11, 13, 17, 19 (orders |
A six-pulse rectifier has six diodes and makes six pulses of DC in each period. A balanced six-pulse rectifier draws no third harmonic, because it has no neutral for it to return through.
Sine waves of different frequencies do not add by their sizes. Over one period the mean of the product of two different harmonics is zero, so their squares add:
One number describes how far a current is from a sine wave.
Total harmonic distortion of a current
From this definition and the sum of squares:
THD is a ratio and is usually given in percent. A THD of 40 percent means that the harmonics together have an RMS value of 0.40 times the fundamental. The RMS current is then
The supply voltage at a strong busbar stays close to a sine wave at 50 Hz. Real power is the mean of voltage multiplied by current. The mean of a 50 Hz voltage multiplied by a 250 Hz current is zero over a period. So, with a sine-wave voltage, only the fundamental current carries real power:
The apparent power uses the whole RMS current, because that is what the conductors carry:
True power factor (sine-wave voltage)
The true power factor is the displacement power factor multiplied by the distortion factor
A power factor can therefore be low for two different reasons. The current can be late (a low
The formula has a limit. It assumes that the voltage is a sine wave. Where the voltage is also distorted, a harmonic current and a harmonic voltage of the same order carry a small real power, and only the definition
For three equal sine-wave loads the neutral current is zero, because the three currents are 120° apart and cancel. Look at what a shift of 120° does to a third harmonic. Phase b lags phase a by 120° of the fundamental. Its third harmonic turns three times as fast, so it lags by
A lag of 360° is no lag. The third harmonics of the three phases rise and fall together. In the neutral they add as plain numbers:
The same is true of every order that is a multiple of three (3, 9, 15), called the triplen harmonics. The other orders behave as the fundamental does and cancel when the three loads are equal.
Part of the winding loss of a transformer comes from eddy currents in the copper, and this part grows roughly with the square of the frequency. A fifth-harmonic current therefore causes far more eddy loss than a 50 Hz current of the same size, and a transformer that feeds mostly electronic loads must be derated.
A capacitor suffers for the opposite reason. Its reactance falls as the frequency rises:
At the fifth harmonic the reactance is one fifth of its 50 Hz value. A small harmonic voltage on the busbar drives a large harmonic current through the bank. The capacitor does not create harmonics, but it attracts them.
The capacitor bank and the inductance of the transformer are, as seen from a harmonic source such as a drive, connected in parallel. An inductance and a capacitance in parallel have one frequency at which their reactances are equal. At that frequency the pair has a very high impedance, and a harmonic current injected into it produces a large harmonic voltage and a large current that circulates between the bank and the transformer. This is parallel resonance. The inductive reactance rises with the order
A 100 kvar bank on this transformer resonates near 333 Hz, between the fifth harmonic (250 Hz) and the seventh (350 Hz), which are the two largest orders of a six-pulse drive. The estimate ignores the impedance of the 11 kV network and the damping of resistive loads, so the real order is somewhat lower. A bank switched in steps has a different resonant order for every step: 50 kvar on the same transformer gives
A line choke is a three-phase inductor in series with the input of a drive. An inductor opposes a fast change of current, so the current pulses of the rectifier become lower and wider. The fundamental is nearly unchanged and the harmonics fall. A choke is described by its voltage drop at the rated current of the drive: a 3 percent choke drops about 3 percent of the supply voltage at 50 Hz and rated current. For a small drive, an input THD of about 40 percent with no choke and about 30 percent with a 3 percent choke are typical figures. The real values depend on the drive, its load and the supply.
Harmonic currents that flow through the impedance of the supply distort the voltage for every other customer. Standards such as IEEE 519 therefore limit the voltage distortion and the harmonic current at the point where a site joins the public supply.
To measure harmonics, an instrument must sample the wave many times in each period and compute the RMS value, the power and each harmonic from the samples. A true-RMS power analyser does this, and IEC 61000-4-30 defines the methods so that two instruments agree (an instrument of its class A follows them exactly). An average-responding meter is wrong on these currents. Two more points decide whether a reading can be trusted. The current probes must pass the harmonics: up to the 50th order is 2.5 kHz, and some low-cost clamps fall off well below that. The analyser and its leads must be rated CAT III 600 V or better for a distribution board, and CAT IV at the incoming supply, because they are connected to live busbars. The connection is made by a licensed electrician.
Input power. The drive supplies the motor losses and its own losses as well as the shaft power.
The drive takes 7.97 kW from the supply. ✅
Fundamental current. With a sine-wave voltage only the fundamental carries real power, so
The fundamental line current is 11.31 A. It is the same with and without the choke, because the real power is the same. ✅
No choke. The squares of the fractions add.
The spectrum gives 40.0 percent. ✅
With the choke.
The spectrum gives 30.0 percent. The choke lowers the fifth and the seventh most. ✅
Harmonic currents in amperes, no choke. Multiply each fraction by 11.31 A.
These four currents flow in the cable and the transformer and carry no real power. ✅
RMS current, no choke.
✅
True power factor, no choke.
The displacement power factor is 0.98 and the true power factor is 0.910. ✅
RMS current with the choke.
✅
True power factor with the choke.
The choke raises the true power factor from 0.910 to 0.939 and lowers the RMS current by 0.37 A. ✅
Check by apparent power. Use the definition of power factor with the RMS current, for the case with no choke.
The definition gives the same value as the formula. ✅
Check from the samples. The Python script builds the current from the fundamental and the four harmonics, 20,000 points in one period. It applies the definition of RMS to the samples and finds 12.18 A with no choke and 11.81 A with the choke. It multiplies voltage by current point by point and finds a mean power of 7.966 kW in both cases. The ratio
Third-harmonic current.
Each phase carries 6.0 A at 150 Hz. ✅
RMS current of one phase. The two frequencies add by their squares.
The same result comes from
Fundamentals. Three currents of 10.0 A at 0°, −120° and +120° sum to zero.
The neutral carries no 50 Hz current. ✅
Third harmonics. Their angles are three times those of the fundamentals: 0°, −360° and +360°, which are all the same direction.
The neutral carries 18.0 A. ✅
Ratio.
The neutral carries 54 percent more current than a phase conductor, although the three loads are perfectly equal. ✅
Sampled sum. The Python script builds the three phase currents point by point, each with its fundamental and its third harmonic, and adds them. The RMS value of one phase is 11.66 A and the RMS value of the sum is 18.00 A. ✅
Frequency of the sum. The script separates the sum into its parts: 0.00 A at 50 Hz and 18.00 A at 150 Hz. The neutral current completes three periods in 20 ms. ✅
Compare with the sine-wave rule. For equal sine-wave loads the neutral current is zero. That rule applies to the fundamental here. It says nothing about the third harmonic. ✅
The script builds each distorted current from its harmonics, then measures RMS value, THD and power from the samples alone and compares them with the formulas. It then sums the three phase currents of the second application and calculates the resonant order of the capacitor bank in two ways.
"""THD, RMS current and true power factor of a drive, neutral current, resonance."""import mathimport numpy as npimport matplotlib.pyplot as plt
F = 50.0 # HzV_L = 415.0 # V RMS, line to lineV_PH = V_L / math.sqrt(3.0)W = 2.0 * math.pi * FN = 20000 # samples in one periodt = np.linspace(0.0, 1.0 / F, N, endpoint=False)
def rms(x): return math.sqrt(np.mean(x ** 2))
def component(x, h): """RMS size of harmonic h in the sampled wave x (one full period).""" a = 2.0 * np.mean(x * np.cos(h * W * t)) b = 2.0 * np.mean(x * np.sin(h * W * t)) return math.hypot(a, b) / math.sqrt(2.0)
# ---------- Application 1: input of the borehole pump drive ----------P_SHAFT = 6.8 # kW at 50 HzETA_MOTOR = 0.88ETA_DRIVE = 0.97DPF = 0.98 # displacement power factor, typical six-pulse valueP_IN = P_SHAFT / (ETA_MOTOR * ETA_DRIVE)I1 = 1000.0 * P_IN / (math.sqrt(3.0) * V_L * DPF)phi1 = math.acos(DPF)print("Application 1: drive input")print(f" input power {P_IN:.3f} kW, fundamental current {I1:.2f} A, " f"phi1 {math.degrees(phi1):.1f} deg")
# harmonic order: (sign, fraction of fundamental), illustrative spectraSPECTRA = { "no choke": {5: (-1, 0.33), 7: (-1, 0.19), 11: (+1, 0.10), 13: (+1, 0.07)}, "3 % choke": {5: (-1, 0.25), 7: (-1, 0.13), 11: (+1, 0.09), 13: (+1, 0.05)},}v = V_PH * math.sqrt(2.0) * np.sin(W * t)x = W * t - phi1 - math.pi / 2.0 # zero at the peak of the fundamental currentwaves = {}for name, spec in SPECTRA.items(): thd = math.sqrt(sum(k ** 2 for _, k in spec.values())) i = np.cos(x) for h, (sign, k) in spec.items(): i = i + sign * k * np.cos(h * x) i = I1 * math.sqrt(2.0) * i waves[name] = i i1_s = component(i, 1) irms_s = rms(i) thd_s = math.sqrt(irms_s ** 2 - i1_s ** 2) / i1_s p_s = 3.0 * np.mean(v * i) / 1000.0 s_s = 3.0 * V_PH * irms_s / 1000.0 print(f" {name}:") print(f" formula: THD {100.0 * thd:.1f} %, " f"I_rms {I1 * math.sqrt(1.0 + thd ** 2):.2f} A, " f"true power factor {DPF / math.sqrt(1.0 + thd ** 2):.3f}") print(f" samples: I_1 {i1_s:.2f} A, I_rms {irms_s:.2f} A, " f"THD {100.0 * thd_s:.1f} %, peak {np.abs(i).max():.1f} A") print(f" samples: P {p_s:.3f} kW, S {s_s:.3f} kVA, P/S {p_s / s_s:.3f}") print(" harmonic currents: " + ", ".join( f"h{h} {component(i, h):.2f} A" for h in spec))print(f" sine wave of the same power at unity power factor: " f"{1000.0 * P_IN / (math.sqrt(3.0) * V_L):.2f} A")
# ---------- Application 2: neutral current of three rectifier loads ----------I_F = 10.0 # A RMS, fundamental in each phaseK3 = 0.60 # third harmonic as a fraction of the fundamentalprint("Application 2: neutral current")phases = []for shift in (0.0, -120.0, 120.0): y = W * t + math.radians(shift) phases.append(I_F * math.sqrt(2.0) * (np.sin(y) - K3 * np.sin(3.0 * y)))i_n = phases[0] + phases[1] + phases[2]print(f" phase current: formula {I_F * math.sqrt(1.0 + K3 ** 2):.2f} A, " f"samples {rms(phases[0]):.2f} A, peak {np.abs(phases[0]).max():.1f} A")print(f" neutral: formula {3.0 * K3 * I_F:.1f} A, samples {rms(i_n):.2f} A")print(f" neutral at 50 Hz {component(i_n, 1):.2f} A, at 150 Hz {component(i_n, 3):.2f} A")print(f" neutral / phase = {rms(i_n) / rms(phases[0]):.2f}")zero_crossings = int(np.sum(np.diff(np.sign(i_n)) > 0))print(f" neutral current completes {zero_crossings} periods in 20 ms " f"({zero_crossings * F:.0f} Hz)")
# ---------- Resonance of a capacitor bank with the transformer ----------S_TX = 200.0 # kVAZ_PU = 0.045Q_C = 100.0 # kvarS_SC = S_TX / Z_PUI_SC = 1000.0 * S_SC / (math.sqrt(3.0) * V_L)h_r = math.sqrt(S_SC / Q_C)print("Resonance")print(f" fault level {S_SC:.0f} kVA ({I_SC / 1000.0:.2f} kA), " f"bank {Q_C:.0f} kvar: h = {h_r:.2f} ({h_r * F:.0f} Hz)")# the same result from L and CX_T = Z_PU * V_L ** 2 / (1000.0 * S_TX) # ohm per phase at 50 HzX_C = V_L ** 2 / (1000.0 * Q_C) # ohm per phase at 50 HzL_T = X_T / WC_B = 1.0 / (W * X_C)f_r = 1.0 / (2.0 * math.pi * math.sqrt(L_T * C_B))print(f" X_T {1000.0 * X_T:.2f} mohm, X_C {X_C:.3f} ohm, " f"1/(2 pi sqrt(LC)) = {f_r:.0f} Hz")
# ---------- Plot ----------ms = 1000.0 * tfig, ax = plt.subplots(2, 1, figsize=(8, 7))ax[0].plot(ms, v / 10.0, color="gray", linewidth=0.8, label="phase voltage / 10 (V)")ax[0].plot(ms, waves["no choke"], label="no choke, THD 40 %")ax[0].plot(ms, waves["3 % choke"], "--", label="3 % choke, THD 30 %")ax[0].axhline(0.0, color="gray", linewidth=0.8)ax[0].set_xlabel("time (ms)")ax[0].set_ylabel("line current (A)")ax[0].set_title("Input current of the drive (illustrative spectrum)")ax[0].legend()ax[1].plot(ms, phases[0], label="phase a")ax[1].plot(ms, phases[1], label="phase b")ax[1].plot(ms, phases[2], label="phase c")ax[1].plot(ms, i_n, "k", linewidth=2.0, label="neutral")ax[1].axhline(0.0, color="gray", linewidth=0.8)ax[1].set_xlabel("time (ms)")ax[1].set_ylabel("current (A)")ax[1].set_title("Three rectifier loads: the neutral carries 150 Hz")ax[1].legend()fig.tight_layout()fig.savefig("harmonics_true_power_factor.png", dpi=120)print("Saved harmonics_true_power_factor.png")Expected output
Application 1: drive input input power 7.966 kW, fundamental current 11.31 A, phi1 11.5 deg no choke: formula: THD 40.0 %, I_rms 12.18 A, true power factor 0.910 samples: I_1 11.31 A, I_rms 12.18 A, THD 40.0 %, peak 23.4 A samples: P 7.966 kW, S 8.755 kVA, P/S 0.910 harmonic currents: h5 3.73 A, h7 2.15 A, h11 1.13 A, h13 0.79 A 3 % choke: formula: THD 30.0 %, I_rms 11.81 A, true power factor 0.939 samples: I_1 11.31 A, I_rms 11.81 A, THD 30.0 %, peak 21.1 A samples: P 7.966 kW, S 8.487 kVA, P/S 0.939 harmonic currents: h5 2.83 A, h7 1.47 A, h11 1.02 A, h13 0.57 A sine wave of the same power at unity power factor: 11.08 AApplication 2: neutral current phase current: formula 11.66 A, samples 11.66 A, peak 22.6 A neutral: formula 18.0 A, samples 18.00 A neutral at 50 Hz 0.00 A, at 150 Hz 18.00 A neutral / phase = 1.54 neutral current completes 3 periods in 20 ms (150 Hz)Resonance fault level 4444 kVA (6.18 kA), bank 100 kvar: h = 6.67 (333 Hz) X_T 38.75 mohm, X_C 1.722 ohm, 1/(2 pi sqrt(LC)) = 333 HzSaved harmonics_true_power_factor.pngThe signs in the spectra place the harmonics so that the current has two humps in each half period, which is the shape a six-pulse rectifier with a DC capacitor draws. The signs change the shape and the peak only. The RMS value, the THD and the power do not depend on them. The last line finds the same 333 Hz from the inductance of the transformer and the capacitance of the bank.
1. A current has a fundamental of 20.0 A, a fifth harmonic of 6.0 A and a seventh harmonic of 4.0 A. Find the THD and the RMS current.
The harmonics have an RMS value of
2. A single-phase power supply has a displacement power factor of 0.95 and a current THD of 80 percent. The voltage is a sine wave. Find its true power factor.
3. Three equal single-phase loads, one on each phase, each draw a fundamental of 16.0 A, a third harmonic of 45 percent and a fifth harmonic of 30 percent. Find the RMS current of each phase and the neutral current.
Phase:
4. A drive takes 30.0 kW from a 415 V supply with a displacement power factor of 0.97 and a current THD of 45 percent. Find the fundamental current, the RMS current, the true power factor and the apparent power.
5. A 500 kVA transformer has an impedance of 5.0 percent. Find the fault level at its 415 V busbar from the transformer alone. Find the resonant harmonic order with a 150 kvar capacitor bank. Then find the bank size that would place the resonance exactly on the fifth harmonic, which a designer must avoid.
A drive takes a fundamental current of 10 A, and its current distortion (THD) is 40 percent. The cable heats with the RMS current. How much larger is the RMS current than the fundamental?
The fundamental is 10 A rms at 50 Hz. The 11th and 13th harmonics of the drive (0.10 and 0.07 without a choke, 0.09 and 0.05 with one) are included when a drive button is chosen, and left out otherwise. The neutral readout assumes three equal loads, one on each phase of a four-wire supply: the fundamentals and the 5th and 7th cancel there, while the 3rd harmonics of the three phases are in step and add.
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. With a 3 percent line choke the drive's THD falls to 30 percent. Its displacement power factor stays 0.98. What is its true power factor?
2. An office has equal LED lighting on all three phases of a four-wire supply. Each phase carries a third harmonic of 4.0 A. What third-harmonic current flows in the neutral?
3. Each phase of a four-wire supply feeds computer loads with a 10 A fundamental and a 6 A third harmonic. Which conductor carries the largest RMS current?
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.