Appearance
Chapter 5 — Switches and self-commutating devices
Module 1's networks were linear and fixed: once you chose the topology and the time step, the conductance matrix
Learning objectives
By the end of this chapter you should be able to:
- Model an ideal switch as a two-state conductance and read the real on/off parameters off a NumaSim device.
- State the conduction rule for a diode, a thyristor, and an IGBT, and say which are self- and which are externally-commutated.
- Explain why a switch operation costs the solver a re-factorization (Chapter 3) and why a self-deciding device needs iteration within a step.
- Read a diode's conduction intervals off a rectifier and a converter waveform.
5.1 The ideal switch as a two-state conductance
The simplest switch model is a resistor with two values. Closed, it is a tiny resistance
These are not
When a switch changes state,
5.2 The diode — state from its own terminals
A diode is the simplest self-commutating device: nothing external tells it when to switch. It conducts when forward-biased and blocks when reverse- biased. In the two-state picture:
- On (forward): anode-to-cathode voltage tries to exceed the small forward drop
; the diode is in series with and carries current in the forward direction only. - Off (reverse): the diode is
and carries essentially no current.
NumaSim's diode exposes exactly these parameters: v_forward (e.g. resistance_on (resistance_off (
The two consistency conditions a solved diode must satisfy are:
If either check fails, the diode's assumed state was wrong: flip it and solve again.
5.3 Thyristors and IGBTs — adding a gate
Two more devices add a control terminal, and they differ in a way worth pinning down: how they turn off.
- Thyristor (SCR). Like a diode, but it will not turn on until it is both forward-biased and given a gate pulse. Once latched on, the gate loses control: the thyristor conducts until its current tries to reverse, at which point it turns off at the natural current zero. This is line (natural) commutation — the circuit, not the gate, turns it off. It is the workhorse of phase-controlled rectifiers.
- IGBT (and MOSFET). A fully controllable switch: raise the gate above its threshold and it conducts; drop the gate and it turns off regardless of the current — forced commutation. NumaSim's IGBT uses a
gate_threshold(e.g.): a gate signal above it closes the switch, below it opens the switch. This is what lets a PWM signal chop a DC bus at kilohertz rates.
Because an IGBT can interrupt current on command, an inductive load needs somewhere for its current to go the instant the IGBT opens — otherwise
| Device | Turn-on | Turn-off | Commutation |
|---|---|---|---|
| Diode | forward bias | current zero | self (natural) |
| Thyristor | gate pulse + forward bias | current zero | line (natural) |
| IGBT / MOSFET | gate above threshold | gate removed | forced |
5.4 A switch changes the topology
Every state change re-shapes
- The matrix is re-factorized at each state change (the cost noted in §5.1).
- The reference/ground still matters (Chapter 3 §3.5): opening a switch must not orphan an island. If a switch is the only tie between a sub-circuit and ground, opening it leaves that sub-circuit floating and the solve fails — a real gotcha when you build your own switched circuits.
5.5 In-step iteration for state consistency
Because a diode/thyristor/IGBT can decide its own state from the solution, the engine cannot simply stamp and solve once when a device might switch. It runs a small fixed-point loop within the time step:
The loop almost always converges in one or two passes, because only devices near a switching boundary are ambiguous. But it is the reason a power-electronic step can cost several linear solves rather than one — the subject, along with what can go wrong numerically, of Chapter 6.
5.6 Lab: watch devices choose their state
Lab 5A — a single diode's conduction gaps
Open the half-wave rectifier in app →
(Full description: half-wave rectifier.)
This circuit has exactly one diode, which makes its state logic easy to see. Run it and overlay Vac (the source) and Vdc (the capacitor/load). Watch what the diode does:
- Near each positive peak of
Vac, the source momentarily exceeds the capacitor voltage, the diode is forward-biased, and it conducts — you seeVdcget pulled up (a charging pulse). - Everywhere else the source is below
Vdc, the diode is reverse-biased and blocks, so the load quietly discharges the capacitor andVdcsags.
The diode conducts only during a short slice near each peak — those are the intervals where its ON-state consistency check (
Lab 5B — a gated switch and its freewheeling diode
Open the buck converter in app →
(Full description: buck converter.)
Here a PWM gate signal drives an IGBT and a freewheeling diode shares the switch node Vm. Run it and plot Vm and ID (the diode current):
- When the IGBT is on,
Vmjumps to theinput and the diode is reverse-biased ( ID). - When the IGBT turns off, the inductor forces its current to keep flowing, so the diode turns on to freewheel it:
Vmdrops to aboutand IDcarries the inductor current.
Note that ID is never negative — the diode is a one-way device. Because the duty is
5.7 Summary
- A switch is a two-state conductance — small
closed, large open — using a large-but-finite ratio to keep the matrix well-conditioned. - A diode self-commutates from its terminal bias; a thyristor needs a gate to turn on but line-commutates off at current zero; an IGBT is fully gate-controlled (forced commutation) and needs a freewheeling diode for inductive loads.
- Every state change re-shapes and re-factorizes
, and must not orphan a grounded island. - Devices that decide their own state force an in-step iteration: assume, solve, check, flip, re-solve — usually converging in a pass or two.
5.8 Problems
Problem 5.1. In the half-wave rectifier at some instant Vac Vdc Vac Vdc
Solution 5.1
The diode conducts only when the anode (source side) exceeds the cathode (capacitor side) by more than the forward drop. With Vac Vdc Vac Vdc
Problem 5.2. A NumaSim diode has
Solution 5.2
Problem 5.3. Why can't the solver stamp a diode's state once and move on, the way it stamps a resistor?
Solution 5.3
A resistor's conductance is fixed and independent of the solution. A diode's state (on/off) depends on its terminal voltage or current — which are part of the unknown solution. The engine must therefore guess the state, solve, and check the guess against the diode's conduction rule; if the guess was wrong it flips the state and re-solves. This in-step iteration is unavoidable whenever a device decides its own state.
Problem 5.4. A thyristor and an IGBT are both conducting a positive current. You remove the gate signal from each. What happens?
Solution 5.4
The IGBT turns off immediately — it is forced-commutated, so removing the gate opens it regardless of current (the inductive load then needs a freewheeling path). The thyristor keeps conducting: once latched, its gate has no control, and it will only turn off when the external circuit drives its current to zero (line commutation).
Problem 5.5. In the buck converter, why is the freewheeling diode essential, and during which part of the switching cycle does it conduct?
Solution 5.5
The output inductor cannot change its current instantaneously. When the IGBT turns off, the inductor current must keep flowing; without a path it would force a large Vm near
5.9 References
- H. W. Dommel, Electromagnetic Transients Program (EMTP) Theory Book, Bonneville Power Administration — switches and the in-step network solution.
- N. Mohan, T. Undeland, and W. Robbins, Power Electronics: Converters, Applications, and Design, Wiley — device characteristics and commutation.
- J. Arrillaga and N. R. Watson, Power Systems Electromagnetic Transients Simulation, IET Power and Energy Series 39 — power-electronic device models and switching solutions.
Previous: Chapter 4 — Sources and control signals · Next: Chapter 6 — Numerical issues of switching.
