23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.7 Time-Domain Analysis of Nonlinear Dynamic Circuits 125<br />

Note that the initial condition for the capacitor C1 is given by the node voltage difference<br />

V$1[0] V$2[0] and is included in the set of time-domain equations. Applying NDAESolve yields<br />

the following DC operating-point values for the node voltages and the initial inductor current I$L1:<br />

In[27]:= NDAESolve[oscillatorMNA1, {t, 0.}]<br />

Out[27]= V$1 0., V$2 0.002, I$L1 0.002<br />

For the DC analysis the inductor was replaced by a short circuit, therefore V$1 is zero. I$L1 has<br />

the same numerical value as V$2 because the resistor has the unit value . Now, we compute the<br />

transient response:<br />

In[28]:= transient1 = NDAESolve[oscillatorMNA1, {t, 0., 10^−4}]<br />

Out[28]=<br />

V$1 InterpolatingFunction0., 0.0001, ,<br />

V$2 InterpolatingFunction0., 0.0001, ,<br />

I$L1 InterpolatingFunction0., 0.0001, <br />

Finally, we plot the transient waveform of the output current I out (given by the inductor current I$L1)<br />

in the simulated time interval.<br />

In[29]:= TransientPlot[transient1, {I$L1[t]}, {t, 0., 10^−4},<br />

PlotRange −> All]<br />

0.0015<br />

0.001<br />

0.0005<br />

-0.0005<br />

-0.001<br />

-0.0015<br />

-0.002<br />

0.00002 0.00004 0.00006 0.00008 0.0001 t<br />

I$L1[t]<br />

Out[29]= Graphics <br />

Initial Conditions for all Dynamic Elements<br />

Alternatively, the function CircuitEquations can be instructed to use initial conditions for all<br />

dynamic elements by applying the option setting InitialConditions −> All. Initial conditions<br />

which are not explicitly specified in the netlist are then assumed to be zero. For our example, we<br />

again set up a system of modified nodal equations from the circuit configuration at the time t ⩵ .

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

Saved successfully!

Ooh no, something went wrong!