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 with . With capacitors from node to ground and inductors in series with voltage source , the circuit is
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 with . A backward Euler step of length , which is a solve of the circuit with companion models, is
PSEUDO-TRANSIENT(F, M, x_0, h_0)- 1
x ← x_0; h ← h_0 - 2
repeat - 3
x' ← solution of M (x' − x) / h + F(x') = 0, by Newton started at x ▷ hole: the corrector - 4
if the corrector failed then h ← h / 4 - 5
else - 6
h ← h · ‖F(x)‖ / ‖F(x')‖ ▷ hole: the step rule - 7
x ← x' - 8
until ‖F(x)‖ ≤ tolerance - 9
return 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. has exactly where , since 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 is a conductance in series with a source equal to the old voltage . So a step solves the gmin circuit with conductance , tied to the previous state instead of to ground. For small this conductance dominates and the step is easy; as the step becomes a plain Newton solve of . 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 , , and equal capacitors at every node. Then each backward Euler step has exactly one solution, and for any sequence of steps ,
where is the unique operating point.
Proof. The step equation is a uniformly monotone equation in with constant , so it has exactly one solution by the uniform monotonicity theorem (Ortega and Rheinboldt, Section 6.4); with the same theorem gives the unique . Let and . Subtract from the step equation and multiply by : . The second term is at least , so .
The same argument with the exact time derivative gives : 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 converges to a stable steady state, is small enough, and the Jacobian satisfies a stability condition along the path; the final convergence is quadratic once is large. We cite this result and do not prove it. The table below is measured. A source drives a diode ( A, mV) through 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 A, from :
| first companion conductance | 1 S | 0.1 S | 0.01 S |
|---|---|---|---|
| V | 145 | 18 | 16 |
| V | 42 | 11 | 49 |
| 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 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 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 of the original circuit, not the change between steps alone.
Exercises
- For one node with a current source and a linear resistor , write the backward Euler step with capacitor and show that the error is multiplied by at every step.
- Show that line L6 with one Newton iteration per step and becomes Newton's method on .
- For the tunnel-diode law driven by 6 V through with a capacitor across the element, find for which starting voltages the transient settles at and for which at .
- Give a circuit with a unique operating point in which pseudo-transient analysis cannot converge from any start except the operating point itself.
References
- 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
- 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)
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W3 standard |
|
Tag BP56ZV Edit this page History Report an error Markdown