Algorithm Search⌘K

Techniqueadvanced

Pseudo-transient analysis

Also called PTA, pseudo-transient continuation.

Finds a DC operating point by adding artificial capacitors and inductors and running a transient simulation until the circuit settles at a steady state.

Pseudo-transient analysis finds the DC operating point of a circuit by turning it into a time problem. It adds a capacitor from every node to ground and an inductor in series with every voltage source, starts the resulting circuit from a chosen state, and integrates it in time with an implicit method until nothing changes; the state it settles in is an operating point of the original circuit, because the added elements carry no current and drop no voltage at rest. It is a technique of the circuit simulation half of the logic and circuit simulation sub-area, the circuit form of a method for general nonlinear equations that Kelley and Keyes analysed in 1998.

In plain words

A real circuit always finds its resting state: switch it on and wait. The voltages move, slowly or quickly, and then stop. Pseudo-transient analysis copies this.

It adds small capacitors at every connection point, so that no voltage can jump, and small coils in series with the supplies, so that no supply current can jump. Then it simulates the circuit over time, in steps. Early steps are short and safe. As the circuit calms down, the steps get longer and longer, until one step covers so much time that it lands on the final state.

The added parts change how the circuit moves, but not where it stops, because at rest a capacitor carries no current and a coil has no voltage.

When it applies

Use it for the DC operating point when Newton, gmin stepping and source stepping fail, and in particular for circuits whose operating point lies past a turning point of those homotopy paths, which time integration does not see. It needs the circuit with its added elements to settle: the state must converge to a stable equilibrium. Oscillators, and circuits that the added elements turn into oscillators, never settle. It costs more than the stepping methods: Najm reports it as about 2 to 10 times slower than Newton.

The template

Write the operating point equations as F(x)=0F(x) = 0 with x=(e,j)x = (e, j). With capacitors ckc_k from node kk to ground and inductors ℓm\ell_m in series with voltage source mm, the circuit is

ck e˙k=−Fk(x),ℓm j˙m=Fn+m(x),c_k\, \dot e_k = -F_k(x), \qquad \ell_m\, \dot j_m = F_{n+m}(x),

KCL with the capacitor current added, and the law of each source with the inductor voltage added (with the sign of the MNA rows). Write this as Mx˙=−F(x)M \dot x = -F(x) with M=diag⁡(c1,…,cn,−ℓ1,…,−ℓm)M = \operatorname{diag}(c_1, \ldots, c_n, -\ell_1, \ldots, -\ell_m). A backward Euler step of length hh, which is a solve of the circuit with companion models, is

1hM(x′−x)+F(x′)=0.\frac{1}{h} M (x' - x) + F(x') = 0.
  1. PSEUDO-TRANSIENT(F, M, x_0, h_0)
  2. 1x ← x_0; h ← h_0
  3. 2repeat
  4. 3x' ← solution of M (x' − x) / h + F(x') = 0, by Newton started at x ▷ hole: the corrector
  5. 4if the corrector failed then h ← h / 4
  6. 5else
  7. 6h ← h · ‖F(x)‖ / ‖F(x')‖ ▷ hole: the step rule
  8. 7x ← x'
  9. 8until ‖F(x)‖ ≤ tolerance
  10. 9return x

Line L6 is the switched evolution relaxation rule that Kelley and Keyes analyse: the step grows in proportion to the fall of the residual. In the version they analyse, line L3 takes exactly one Newton iteration; circuit simulators usually iterate to convergence at each time point, as in transient circuit analysis.

The equilibria are the operating points. Mx˙=−F(x)M \dot x = -F(x) has x˙=0\dot x = 0 exactly where F(x)=0F(x) = 0, since MM is nonsingular. So if the run settles, its limit solves the original circuit, whatever capacitors and inductors were added. The added elements change the path and the speed, and they decide which operating point is reached when there are several, but not the set of possible end points.

One step is a gmin circuit centred at the last state. At a node, the companion model of ckc_k is a conductance ck/hc_k/h in series with a source equal to the old voltage eke_k. So a step solves the gmin circuit with conductance ck/hc_k/h, tied to the previous state instead of to ground. For small hh this conductance dominates and the step is easy; as h→∞h \to \infty the step becomes a plain Newton solve of F=0F = 0. Read this way, the method is a homotopy that moves both the conductance and its centre.

Theorem (monotone circuits converge from any start, for any steps). Take a circuit without voltage sources whose devices are two-terminal with laws that are uniformly monotone with constant μ>0\mu > 0, (e−e′)T(F(e)−F(e′))≥μ∥e−e′∥2(e - e')^{\mathsf T}(F(e) - F(e')) \ge \mu \|e - e'\|^2, and equal capacitors cc at every node. Then each backward Euler step has exactly one solution, and for any sequence of steps hk>0h_k > 0,

∥ek+1−e∗∥≤∥ek−e∗∥1+hkμ/c,\|e_{k+1} - e^\ast\| \le \frac{\|e_k - e^\ast\|}{1 + h_k \mu / c},

where e∗e^\ast is the unique operating point.

Proof. The step equation (c/h)(e′−e)+F(e′)=0(c/h)(e' - e) + F(e') = 0 is a uniformly monotone equation in e′e' with constant c/h+μc/h + \mu, so it has exactly one solution by the uniform monotonicity theorem (Ortega and Rheinboldt, Section 6.4); with h→∞h \to \infty the same theorem gives the unique e∗e^\ast. Let w=ek+1−e∗w = e_{k+1} - e^\ast and d=ek−e∗d = e_k - e^\ast. Subtract F(e∗)=0F(e^\ast) = 0 from the step equation and multiply by wTw^{\mathsf T}: (c/hk) wT(w−d)+wT(F(ek+1)−F(e∗))=0(c/h_k)\, w^{\mathsf T}(w - d) + w^{\mathsf T}(F(e_{k+1}) - F(e^\ast)) = 0. The second term is at least μ∥w∥2\mu \|w\|^2, so (c/hk+μ)∥w∥2≤(c/hk) wTd≤(c/hk)∥w∥∥d∥(c/h_k + \mu)\|w\|^2 \le (c/h_k)\, w^{\mathsf T} d \le (c/h_k)\|w\|\|d\|. ■\blacksquare

The same argument with the exact time derivative gives ddtc2∥e−e∗∥2≤−μ∥e−e∗∥2\tfrac{d}{dt} \tfrac{c}{2}\|e - e^\ast\|^2 \le -\mu\|e - e^\ast\|^2: the true dynamics converge exponentially. For monotone circuits the method is therefore safe with any step rule, and growing steps make it converge faster than linearly. For circuits that are not monotone nothing like this holds in general.

What is cited and what is measured. Kelley and Keyes prove, for the method with one Newton iteration per step and the rule of line L6, that the iterates converge to a steady state if the solution of the differential equation from x0x_0 converges to a stable steady state, h0h_0 is small enough, and the Jacobian satisfies a stability condition along the path; the final convergence is quadratic once hh is large. We cite this result and do not prove it. The table below is measured. A source EE drives a diode (Is=10−14I_s = 10^{-14} A, Vt=25.852V_t = 25.852 mV) through 1 kΩ1\ \text{k}\Omega with one capacitor at the diode node, one Newton iteration per step, the rule of line L6, and a restart with a 4 times smaller step after an overflow. It counts the steps until the KCL residual is below 10−1510^{-15} A, from e=0e = 0:

first companion conductance c/h0c/h_0 1 S 0.1 S 0.01 S
E=5E = 5 V 145 18 16
E=20E = 20 V 42 11 49
E=100E = 100 V 13 15 329

All runs reach the operating points 0.692544 V, 0.731273 V and 0.773643 V, where plain Newton from zero overflows for 20 V and 100 V. The counts depend strongly on the first step, in both directions: a large first conductance moves slowly at the start, and a small one lets the first step put the diode far up its exponential, from where the iteration needs many steps to come down. Choosing h0h_0 is the hard part of the method in practice.

Classic examples

  • DC operating point analysis in circuit simulators, as a fallback after gmin stepping and source stepping, with the supplies sometimes ramped in time as well.
  • Steady flows in computational fluid dynamics, found by marching the flow equations in time with growing steps; this is the setting of Kelley and Keyes's analysis.
  • Power-up simulation of a full chip: a transient analysis from zero with ramped supplies, which is the physical form of the same idea and settles memory cells and latches into the states that power-up produces.

Variations

  • Capacitors only. Add capacitors at the nodes and leave voltage sources algebraic; the system is then a differential-algebraic equation of index 1 when no voltage-source loop exists.
  • Different element values. Scale each ckc_k to the conductance at the node, so that all nodes settle at similar rates.
  • Ramped supplies. Raise the supplies in time during the run; this combines the method with source stepping.
  • Other integrators. Backward Euler damps fast modes and suits the method; the trapezoidal rule can ring around the equilibrium, which delays the stop test.
  • One Newton iteration per step. Take one Newton iteration per step, as Kelley and Keyes do, instead of solving each time point fully; this saves work when the path is followed loosely.

Pitfalls

  • Oscillation. A ring oscillator has an operating point, but it is unstable and the transient never settles. The added capacitors and inductors can also create oscillation in a circuit that has none.
  • Unstable operating points. The true dynamics converge only to stable equilibria, such as the two outer states of a latch. An operating point that is unstable, such as the middle state of the tunnel-diode circuit of DC operating point analysis, is not found except by chance with large steps.
  • The first step. A first step that is too large lets the method behave like plain Newton, with its overflow; one that is too small wastes steps, as the table shows.
  • Stopping too early. A slow mode can look settled. The stop test must use the residual ∥F(x)∥\|F(x)\| of the original circuit, not the change between steps alone.

Exercises

  1. For one node with a current source II and a linear resistor RR, write the backward Euler step with capacitor cc and show that the error is multiplied by 1/(1+h/(Rc))1/(1 + h/(Rc)) at every step.
  2. Show that line L6 with one Newton iteration per step and h→∞h \to \infty becomes Newton's method on FF.
  3. For the tunnel-diode law g(v)=v3−6v2+10vg(v) = v^3 - 6v^2 + 10v driven by 6 V through 1 Ω1\ \Omega with a capacitor across the element, find for which starting voltages the transient settles at v=1v = 1 and for which at v=3v = 3.
  4. Give a circuit with a unique operating point in which pseudo-transient analysis cannot converge from any start except the operating point itself.

References

  1. C. T. Kelley and David E. Keyes, Convergence analysis of pseudo-transient continuation, SIAM Journal on Numerical Analysis 35(2), 508 to 523, 1998, the method with one Newton step per time step and the switched evolution relaxation rule for the step, and the theorem on its global convergence to a stable steady state and its local quadratic convergence
  2. Farid N. Najm, Circuit Simulation, Wiley-IEEE Press, 2010, Chapter 4, Section 4.4.5 (pseudo-transient analysis) and Section 4.4.6 (the justification of the continuation methods)
  3. James M. Ortega and Werner C. Rheinboldt, Iterative Solution of Nonlinear Equations in Several Variables, SIAM Classics in Applied Mathematics 30, 2000 (first published 1970), Section 6.4, the uniform monotonicity theorem

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW3 standard
  • five exercises