-
Notifications
You must be signed in to change notification settings - Fork 3
Simulation: Transient Analysis
Text - limitations of current algorithm
When dealing with circuits that are comprised of resistors, diodes, operational amplifiers, and voltage/current sources only, the simulation process is relatively straightforward. It involves performing a DC Analysis at multiple time points, resulting in a time-domain simulation. The algorithm employed follows these steps:
- The values of sine wave voltage sources are computed for each time point.
- Modified nodal analysis is executed to analyse the circuit’s behaviour at each specific time.
Iterating through these calculations allows the simulation to accurately capture the circuit’s response over time.
When we simulate first-order components, we require a distinct algorithm which differs from the one used for circuits without reactive components. These circuits require additional specification specific calculations. The algorithms for simulating the first order circuits are outlined in the Imperial College First Year ADC module and are summarized below:
• Output is always steady-state + transient, where:
- Steady-state: same frequency as the input; new amplitude and phase offset are determined using frequency response
- Transient is always of the form
$Ae^{-\frac{t}{\tau}}$ .
•
• To find A we solve:
According to the Thevenin Theorem: Any two-terminal network consisting of resistors, fixed voltage/current sources and linear dependent sources is externally equivalent to a circuit consisting of a resistor in series with a fixed voltage source.
A Thevenin equivalent circuit has a straight-line characteristic with the equation V = $R_{th}$I +
For the purposes of time simulation, we store the steady state as a voltage source, which is then use to find values at different points. There are two cases:
- MNA for DC/Step input sources - for this
$y_{ss}$ is a Voltage Source with DC value equal to the voltage of the output node calculated by MNA. - AC analysis for sinusoidal inputs -
$y_{ss}$ is set as a sinusoidal voltage source with the same frequency as the input source and new amplitude A' = AC Analysis.Map * A and a new phase offset = ACAnalysis.Phase + PO
As f
Then we perform MNA again and the HF gain is
Using the variables above, we can sub into the formula:
A = HF *
ADDIE does not allow the students to set their own start/end times and timesteps. Instead it uses a timestep which is dependent on the input source and explained bellow
Input Source Type | Start time | End time | TimeStep |
---|---|---|---|
Sinusoidal of frequency f | 0.0 | ||
DC/Step with time constant τ | 0.0 |
Combining all the information obtained above, the transientAnalysis function returns three lists of length 200: one containing the samples of