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.

362 3. Reference Manual<br />

Define netlist description<br />

of a simple diode rectifier<br />

circuit.<br />

Set up system of symbolic<br />

time-domain equations.<br />

Perform numerical<br />

transient analysis.<br />

Display the simulation<br />

result with TransientPlot<br />

for the variables V$1[t]<br />

and V$2[t].<br />

In[4]:= rectifier =<br />

Circuit[<br />

Netlist[<br />

{V0, {1, 0}, Symbolic −> V0,<br />

Value −> 2. Sin[10^6 Time]},<br />

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

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

{D1, {1 −> A, 2 −> C},<br />

Model −> "Diode", Selector −> "Spice"}<br />

]<br />

]<br />

Out[4]= Circuit <br />

In[5]:= rectifiereqs = CircuitEquations[rectifier,<br />

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

Out[5]= DAETransient, 4 4 <br />

In[6]:= tran = NDAESolve[rectifiereqs, {t, 0., 2.*^−5}]<br />

Out[6]=<br />

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

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

I$V0 InterpolatingFunction0., 0.00002, ,<br />

I$AC$D1 InterpolatingFunction0., 0.00002, <br />

In[7]:= TransientPlot[tran, {V$1[t], V$2[t]}, {t, 0., 2.*^−5},<br />

Axes −> False, Frame −> True, GridLines −> Automatic]<br />

2<br />

1<br />

0<br />

-1<br />

V$1[t]<br />

V$2[t]<br />

-2<br />

0 -6<br />

5. 10<br />

0.00001 0.000015 0.00002<br />

t<br />

Out[7]= Graphics

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

Saved successfully!

Ooh no, something went wrong!