Transient analysis is used to show the state of a circuit as it varies with time, rather than just the steady state solution, as in DC analysis.
TODO discuss pros/cons of Norton vs Thevenin, FE vs BE vs Trap.
LTI RLC circuits give linear differential equations, with capacitors having the form:
Using this capacitor as an example, Equation can be integrated to give the voltage at time
A number of integration schemes can be used, including Forward/Backward Euler, and Trapezoidal. Using the Trapezoidal scheme results in an implicit formula, containing both voltage and current at the next time step:
However, this problem can be overcome by replacing the capacitor with a companion model, as shown in below. The colouring is kept the same as the equation above, to show the connection between the two.
![Capacitor - Thevenin Model](./imgs/Capacitor - Thevenin companion model.png)
This requires MNA, because of the voltage source. A Norton equivalent can be used, but the
From this, it can be seen that the general steps for linear transient analysis are:
- Start with known initial conditions
- Increment time by
$$\Delta t$$ and use the appropriate companion models with calculated values - Perform a DC analysis
- Back to step 1 with results
Due to the Newton-Raphson approximation at each stage of transient analysis, there is always going to be some error. Local error is the error in a single iteration, and cumulative error is the error that accumulates as a result of many iterations. With any luck, the local errors will be small and random, with equal values of positive and negative error, so will cancel out on average over many iterations. This may not always be the case though, and it is possible for the analysis to become unstable, with the cumulative error increasing in every iteration.
For transient analysis, it is important to know that the speed of convergence of each iteration relies on a good choice of
The simulator created by Paul Falstad uses a fixed, but adjustable, time step, which defaults to
Nonlinear transient analysis is very similar to the linear version, but with additional nonlinear DC analysis stages. The general process is:
- Nonlinear DC biasing
- Initial conditions
- Companion models
- Nonlinear DC analysis
- Increment time
- Back to step 3 with new results