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.

304 3. Reference Manual<br />

Vic<br />

1 2<br />

L1<br />

C1<br />

R1<br />

Iout<br />

Define netlist description<br />

of a simple oscillator<br />

circuit.<br />

Set up system of symbolic<br />

time-domain equations<br />

with initial conditions<br />

where given in the netlist.<br />

Set up system of symbolic<br />

time-domain equations<br />

with initial conditions for<br />

all dynamic netlist<br />

elements.<br />

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

Netlist[<br />

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

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

InitialCondition −> 2.*^−3},<br />

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

]<br />

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

In[13]:= oscillatoreqs1 = CircuitEquations[oscillator,<br />

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

InitialConditions −> Automatic];<br />

DisplayForm[oscillatoreqs1]<br />

Out[14]//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.<br />

In[15]:= oscillatoreqs2 = CircuitEquations[oscillator,<br />

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

InitialConditions −> All];<br />

DisplayForm[oscillatoreqs2]<br />

Out[16]//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 />

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

I$L1t, DesignPoint L1 0.00001, C1 3. 10 7 , R1 1.<br />

Perform numerical<br />

transient analysis for both<br />

equation systems.<br />

In[17]:= tran1 = NDAESolve[oscillatoreqs1, {t, 0., 1.*^−4}];<br />

tran2 = NDAESolve[oscillatoreqs2, {t, 0., 1.*^−4}];<br />

With InitialConditions −> Automatic, initial conditions are applied only where specified in the<br />

netlist, all others are computed consistently. With InitialConditions −> All, initial conditions are

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

Saved successfully!

Ooh no, something went wrong!