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

S11 · Lesson 32 · Harmonics lab

Measuring harmonics and THD from one period of samples, separating displacement from distortion in the power factor, the six-pulse bridge with commutation overlap, the twelve-pulse bridge's cancellation, and simulating a capacitor-input rectifier

A power analyzer on a rectifier's input samples the line voltage and current and reports P, S, power factor, THD and a bar chart of harmonics. Lessons 29 to 31 derived those quantities for idealized waveforms. In this lab you'll write the analyzer, check it against the lessons' examples, then point it at waveforms that have no tidy formula: a twelve-pulse rectifier's stepped current and a capacitor-input rectifier's narrow charging pulses.

  • The curve is the distortion factor of a current made of rectangular pulses centered on the voltage peaks, against their total width per half cycle (lesson 29's first example): 22πsin⁡(θ/2)/θ/π.
  • A full 180° square wave reaches 0.900; pulses 60° wide give 0.780.
  • Narrow pulses, like a capacitor-input rectifier's, push the factor below 0.5 even though the current is perfectly in phase with the voltage.

Predict

A 230 V, 50 Hz bridge rectifier charges 330 µF and feeds a 400 Ω load (about 250 W). What power factor does it present to the line?

Name it

What the lab computes

  • Harmonics from samples: for N samples xn covering exactly one period, the DFT Xh=∑xne−j2πhn/N gives each harmonic's RMS value 2|Xh|/N (and the DC term |X0|/N). THD is the RMS of harmonics 2 and up over the fundamental's.
  • Power terms: P=1N∑vnin, S=VrmsIrms, PF = P/S; the displacement factor is the cosine of the angle between the voltage and current fundamentals, and the distortion factor I1,rms/Irms.
  • Six-pulse bridge with overlap: Vdc=32πVLLcos⁡α−3πωLsId, with the overlap angle μ from
cos⁡α−cos⁡(α+μ)=2ωLsId2VLL
  • Twelve-pulse bridge: the Y-fed bridge's line current is a 120° block; the Δ-fed bridge's, seen at the primary, is a stepped wave [b(θ−30°)−b(θ−150°)]/3, built from the same block b. Their sum has no 5th or 7th harmonic.
  • Capacitor-input rectifier: while the diodes conduct, the capacitor follows |vg| and the line supplies Cd|vg|/dt+|vg|/R; conduction stops when that would go negative, at θ=π−arctan⁡(ωRC), and the capacitor then discharges through R until the rising line catches it.

Check

Write harmonics(x): the RMS value of each harmonic h = 0, 1, …, N/2 − 1 of one period of N samples (h = 0 is the DC value), and thd(x).

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

Check

Write power_terms(v, i) for one period of samples: return (P, S, PF, displacement factor, distortion factor).

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

Check

Write six_pulse(VLL, alpha_deg, Ls, Id, f) returning (Vdc, overlap angle μ in degrees), and twelve_pulse_current(theta_deg): the primary line current of a twelve-pulse rectifier for Id = 1, the Y bridge's block plus the Δ bridge's stepped wave.

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

Check

Write cap_rectifier(Vrms, f, C, R): the steady state of an ideal bridge rectifier into C with load R, returning (power factor, peak-to-peak ripple in volts, conduction angle per half cycle in degrees). Any accurate method will do: an exact event solution or fine time steps.

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

Explain why

Why does a capacitor-input rectifier have a poor power factor even though its current is in phase with the voltage?