RC, RL and RLC circuits when a source is connected or disconnected: theory, simulator and problems
Move the time cursor to read the voltage and current at each instant. Try RLC with R = 50 Ω, L = 100 mH and C = 10 µF, then raise R to 200 Ω and 500 Ω.
When a switch closes or opens in a circuit with capacitors or inductors, voltages and currents do not jump straight to their new values: they go through a transient state before reaching the steady state. The cause is stored energy. A capacitor stores energy in its electric field (½·C·v²) and an inductor in its magnetic field (½·L·i²); since energy cannot change instantly, the voltage of a capacitor and the current of an inductor are continuous. That rule sets the initial conditions of any transient.
With a single energy-storing element, any voltage or current moves exponentially from its initial value to its final one. Three facts are enough: the initial value x(0⁺), the final value x(∞) and the time constant τ.
R is the resistance "seen" by the element with the sources set to zero (the Thévenin resistance). In one time constant 63 % of the change is covered; in 3τ, 95 %; in 5τ, over 99 %, and in practice the transient is considered over.
| t | τ | 2τ | 3τ | 4τ | 5τ |
|---|---|---|---|---|---|
| Change covered | 63.2 % | 86.5 % | 95.0 % | 98.2 % | 99.3 % |
When charging, only R limits the initial current; that is why a large capacitor connected to a source without resistance causes a huge spike. A curious fact: when a capacitor is charged from zero through a resistor, the resistor dissipates exactly the same energy that ends up stored, whatever R is. When discharging, all the energy ends up in the resistor: this is the principle of the discharge resistors fitted to power capacitors and power-supply filters, which must bring the voltage down to a safe value within a set time.
The current rises with a delay, which limits the switch-on surge of relays, contactors and electromagnets. When opening, the inductor tries to keep the current flowing: if we give it a path (a resistor or a freewheeling diode) the current dies away with τ = L/R; if not, the voltage v = L·di/dt shoots up until an arc forms across the contact or the transistor driving it breaks down.
With an inductor and a capacitor, energy can move from one to the other and the response may oscillate. The damping ratio ζ decides it, comparing α = R/2L with the natural frequency ω₀ = 1/√(LC):
This behaviour appears when capacitor banks are switched in with the network inductance, in the LC filters of switch-mode power supplies and in switching overvoltages.
See also: AC transients, Flyback diode, RLC circuit and Thévenin and Norton.