Appearance
Chapter 3 — Building and solving the network each step
Chapter 2 turned every element into a conductance plus a known history source. This chapter assembles those pieces into the per-step network equation and solves it. We will stamp a real circuit (the underdamped R-L-C step), look at the time-stepping loop the engine runs, and see what happens when a switch changes the topology. This completes the foundational machinery: after this chapter you understand, end to end, how one EMT time step is computed.
Learning objectives
- Assemble the nodal system
by stamping companion conductances and history sources. - Explain the role of the reference (ground) node and of ideal voltage sources.
- Describe the time-stepping loop and why the system matrix is factorized once and reused.
- Explain what a switch operation costs the solver.
- Predict and observe the response of a second-order R-L-C circuit.
3.1 The network at a single step
Freeze the simulation at one time step
- conductances
(resistors, plus and ), and - known current sources (the history terms
, plus any independent current sources).
This is a purely resistive circuit, and a resistive circuit is described by one linear system. The unknowns are the node voltages.
3.2 Nodal analysis and stamping (recap)
Pick one node as the reference (ground,
where
and a current source
Ideal voltage sources
An ideal voltage source cannot be written as a conductance — it fixes a voltage and passes whatever current is required. NumaSim handles it with modified nodal analysis (MNA): it adds the source's branch current as an extra unknown and a constraint row "
3.3 Worked example: stamping the R-L-C step
Take the R-L-C series step sample: an ideal
— source terminal (pinned to by the ideal source); — between and ; — between and (this is the capacitor voltage, since 's far end is grounded).
The unknowns are
KCL at
KCL at
Collect into matrix form (with
Two observations that generalize:
- The matrix is symmetric and its off-diagonals are the negative of the shared conductance (
) — the signature of a passive nodal network. - Only the right-hand side changes from step to step (through the history sources). The matrix
is constant as long as the topology and are fixed. That is the key to EMT speed, next.
With
3.4 The time-stepping loop
Putting Chapters 2 and 3 together, every step is the same three-stage cycle:
Because
3.5 The reference node
At least one node must be the reference, tied to
3.6 Switches and topology changes
A switch, breaker, diode, or transistor changes the network's conductance pattern when it opens or closes — so
3.7 Lab: a second-order response
Open the underdamped R-L-C step:
Open the R-L-C series step in app →
Run it and study V_cap. Unlike the first-order R-L and R-C circuits, this one overshoots and rings before settling at
Plug in the sample values:
With
so the first peak should reach about
Now experiment:
- Change the damping. Set
. Recompute — you should get (critically damped): the overshoot disappears. Try (overdamped) and (very lightly damped, many rings). - Change the time step. Increase
toward the ringing period and watch the waveform coarsen. The trapezoidal rule stays stable (it never blows up), but the ring amplitude and frequency lose accuracy once you have only a handful of steps per cycle — concrete evidence for the "step an order of magnitude below the fastest period" rule of thumb.
3.8 Summary
- At each step the network is conductances + known current sources; the node voltages solve
. - Elements stamp their contributions independently; companion models stamp
into and into . - The matrix is symmetric for passive networks and constant between topology changes, so it is factorized once and reused — the source of EMT's efficiency.
- A reference (ground) node is mandatory; switches change the topology and force re-factorization / in-step iteration.
- A series R-L-C shows the classic second-order overshoot-and-ring, with
and predicting the waveform the simulator produces.
3.9 Problems
Problem 3.1. A node
Solution 3.1
The diagonal is the sum of conductances incident on
(The conductance to ground contributes only to the diagonal, since ground is the reference and has no column.)
Problem 3.2. For the R-L-C sample compute
Solution 3.2
Problem 3.3. Why does NumaSim factorize the conductance matrix only once for a switchless linear circuit, and what event forces a re-factorization?
Solution 3.3
For a fixed topology and fixed time step,
Problem 3.4. A student builds a single source-resistor-capacitor loop but forgets to place a ground. The simulation fails to solve. Explain why, in terms of the conductance matrix.
Solution 3.4
With no reference node, all node voltages are defined only up to a common additive constant — the matrix
Problem 3.5. For a series R-L-C with
Solution 3.5
3.10 References
- H. W. Dommel, Electromagnetic Transients Program (EMTP) Theory Book, Bonneville Power Administration — network solution and the simulation loop.
- J. Arrillaga and N. R. Watson, Power Systems Electromagnetic Transients Simulation, IET Power and Energy Series 39 — network solution with switches, subsystems, sparsity, and optimal ordering.
Previous: Chapter 2 — Companion models · Next: Module 2 — Sources, switching, and power electronics.
You have completed Module 1. You now understand how an EMT engine discretizes elements and solves the network each step — the foundation everything else builds on.
