23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

118 2. Tutorial<br />

2.7.3 Flow of Transient Circuit Analysis<br />

A Summary of the Transient Analysis Procedure<br />

In this subsection, we summarize the steps which are necessary to perform a transient analysis of a<br />

dynamic circuit with Analog Insydes.<br />

1) Write a netlist of the circuit to be simulated, specifying numerical values for all circuit elements or<br />

use ReadNetlist (Section 3.10.1) for automatically importing netlists from external simulator files.<br />

circuit =<br />

Circuit[<br />

Netlist[ ],<br />

Model[ ],<br />

<br />

]<br />

2) Set up a system of time-domain circuit equations using CircuitEquations with the option<br />

setting AnalysisMode −> Transient. For numerical circuit simulation you should use modified<br />

nodal analysis, which is the default formulation. Modified nodal equations are smaller in size and<br />

therefore require less simulation time.<br />

mnaequations =<br />

CircuitEquations[circuit, AnalysisMode −> Transient]<br />

3) Apply the command NDAESolve to the circuit equations to calculate the transient solution in the<br />

time interval t ∈ t t , where t is usually zero.<br />

transient = NDAESolve[mnaequations, {t, t , t }]<br />

4) Use TransientPlot for transient waveform display. Select the variables to be plotted by means<br />

of the list vars and specify the display time interval t a t b . The latter need not be the same as<br />

the simulation time interval t t . You can use any other values for t a and t b to zoom in onto a<br />

particular section of a trace as long as the condition t ≤ t a t b ≤ t holds.<br />

TransientPlot[transient, vars, {t, t a , t b }]<br />

NDAESolve Program Flow<br />

Now, let’s take a closer look at the strategy NDAESolve employs to integrate a system of differential<br />

and algebraic equations. The main idea behind the algorithm is to transform the problem of solving<br />

a nonlinear system of differential and algebraic equations into a sequence of linear and purely algebraic<br />

problems which can be solved rather easily. The transformation is carried out in two stages. In<br />

the first step, the differential equations are discretized by replacing all time derivatives with a finite<br />

difference approximation. The differential equations are thus evaluated and solved at discrete time<br />

steps only. The finite difference approximation scheme used by NDAESolve is an implicit integration<br />

method known as the trapezoidal rule. In a second step the resulting nonlinear algebraic system of

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!