Appearance
Chapter 2 — Companion models: discretizing R, L, and C
In Chapter 1 we saw the strategy: discretize time, then turn the network into a resistive circuit the computer can solve once per step. This chapter does the first half rigorously. We derive the companion model (also called the discrete or Norton-equivalent model) of the three lumped elements — resistor, inductor, capacitor — using the trapezoidal rule. By the end you will be able to compute, by hand, the very numbers the simulator produces.
Learning objectives
- State why inductors and capacitors cannot be handled by ordinary nodal analysis directly.
- Apply the trapezoidal rule to derive the companion conductance and history-current source of L and C.
- Compute the companion parameters for given element and time-step values.
- Hand-iterate the first steps of an R-L or R-C circuit and match the simulator's output.
- Explain, qualitatively, why the trapezoidal rule is the EMT workhorse.
2.1 The obstacle: two of our elements are differential
Nodal analysis (which we build in Chapter 3) loves elements whose current is an instantaneous function of voltage — i.e. conductances. The resistor obliges:
The inductor and capacitor do not. Their defining laws involve a derivative:
The current now depends on the rate of change, not the present value alone. We cannot stamp a derivative into a linear algebraic system. The fix is to replace the derivative with a difference using a numerical integration rule, evaluated over one time step of length
2.2 The trapezoidal rule
Suppose a quantity
The trapezoidal rule approximates the integral by the area of the trapezoid under
It is implicit (the unknown endpoint
2.3 Companion model of the inductor
Start from
Group the terms into "depends on the present unknown
Read this as a circuit: the inductor, over one step, behaves like a conductance
Note the physics baked into
2.4 Companion model of the capacitor
Start from
Solve for the present current
Again a conductance
2.5 The resistor (for completeness)
No derivative, no history term:
2.6 The three companion models at a glance
| Element | Conductance | History source |
|---|---|---|
| Resistor | — (none) | |
| Inductor | ||
| Capacitor |
The history source is the memory of the element: it carries stored energy forward from one step to the next. Because it depends only on already-known quantities, it is a constant by the time the present step's network is solved.
2.7 Worked example: the first steps of the R-L step response
Let us reproduce, by hand, what the simulator does on the R-L step response sample (
Companion conductance.
Step 1 (
Now open the sample, run it, and read the very first sample on the scope (or in the exported CSV):
Two physical sanity checks fall out immediately:
- The inductor current is almost zero at the first instant — the inductor resists the sudden change, behaving like a near-open circuit (its companion conductance
is tiny). - Almost the entire source voltage appears across the inductor (
), again because it is momentarily open.
Onward in time. Each step updates
At
2.8 Lab: confirm the companion model
Run both first-order samples and verify the theory you just derived.
Open the R-L step response in app →
Open the R-C charging circuit in app →
For the R-L circuit:
- Confirm the final current settles near
. - Find the time at which
reaches — it should be one time constant, ~10 ms. - Read the first scope sample and check it against the hand calc above.
For the R-C circuit (
. - The first sample is
, . reaches of (i.e. 6.32 V) after , and the charging current starts at and decays to zero.
2.9 Why the trapezoidal rule?
EMT engines overwhelmingly use the trapezoidal rule because it is:
- A-stable — large steps cannot make a stable circuit's simulation diverge (an explicit rule like forward Euler can).
- Second-order accurate — halving
quarters the error, cheap accuracy. - Symmetric, so for a fixed
the companion conductances , are constant and the system matrix can be factorized once and reused (Chapter 3).
Its one notorious weakness is a tendency to produce small sustained numerical oscillations right after an abrupt event (for example, opening a switch that carries inductor current). Production engines damp these with techniques such as critical-damping adjustment or a brief switch to backward Euler around discontinuities; we return to this in Module 2 and the appendices.
2.10 Summary
- Resistors are conductances; inductors and capacitors are differential and need discretizing.
- The trapezoidal rule turns each reactive element into a conductance in parallel with a known history current source — its companion model:
and . - The history source encodes the element's stored energy and is a known constant when the present step is solved.
- Hand-iterating the companion recursion reproduces the simulator's output exactly; over a time constant it tracks the analytic exponential to a fraction of a percent.
2.11 Problems
Problem 2.1. A
Solution 2.1
Problem 2.2. A
Solution 2.2
Problem 2.3. Derive the single-node update equation for the R-C charging circuit (ideal source
Solution 2.3
KCL at the capacitor node:
These match the simulator's first sample exactly. Note
Problem 2.4. Trapezoidal integration is second-order accurate. If a study has unacceptable integration error at
Solution 2.4
Global error scales like
Problem 2.5. Explain physically why
Solution 2.5
Over a very short interval a capacitor can absorb a large current for a small voltage change (
2.12 References
- H. W. Dommel, Electromagnetic Transients Program (EMTP) Theory Book, Bonneville Power Administration — the companion-model derivations for lumped elements.
- J. Arrillaga and N. R. Watson, Power Systems Electromagnetic Transients Simulation, IET Power and Energy Series 39 — numerical integrator substitution and the discretization of R, L, C.
Previous: Chapter 1 — What EMT simulation is · Next: Chapter 3 — Building and solving the network each step.
