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.

124 2. Tutorial<br />

Vic<br />

1 2<br />

L1<br />

C1<br />

R1<br />

Iout<br />

Figure 7.4: Oscillator circuit with initial condition<br />

We start with writing a circuit netlist which includes the initial condition of the capacitor C1.<br />

In[24]:= oscillator =<br />

Netlist[<br />

{L1, {0, 1}, Symbolic −> L1, Value −> 1.*10^−5},<br />

{C1, {1, 2}, Symbolic −> C1, Value −> 3.*10^−7,<br />

InitialCondition −> 0.002},<br />

{R1, {2, 0}, Symbolic −> R1, Value −> 1.}<br />

]<br />

Out[24]= NetlistRaw, 3 <br />

Following, we distinguish two alternatives for considering initial conditions of dynamic circuit<br />

elements.<br />

Initial Conditions for some Dynamic Elements<br />

With the option setting InitialConditions −> Automatic the function CircuitEquations can be<br />

instructed to use initial conditions for those elements for which such a condition has been specified<br />

in the netlist entry. All others are then computed consistently by NDAESolve. For our example, we<br />

set up a system of modified nodal equations from the circuit configuration at the time t ⩵ .<br />

In[25]:= oscillatorMNA1 = CircuitEquations[oscillator,<br />

AnalysisMode −> Transient, ElementValues −> Symbolic,<br />

InitialConditions −> Automatic];<br />

DisplayForm[oscillatorMNA1]<br />

Out[26]//DisplayForm=<br />

I$L1t C1 V$1 ′ t V$2 ′ t ⩵⩵ 0,<br />

V$2t<br />

C1 V$1 ′ t V$2 ′ t ⩵⩵ 0, V$1t L1 I$L1 ′ t ⩵⩵ 0,<br />

R1<br />

V$10 V$20 ⩵⩵ 0.002, V$1t, V$2t, I$L1t,<br />

DesignPoint L1 0.00001, C1 3. 10 7 , R1 1.

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

Saved successfully!

Ooh no, something went wrong!