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.

3.9 Graphics Functions 337<br />

This produces a Bode plot<br />

of H jΩ and H jΩ.<br />

In[5]:= BodePlot[{H1[I w], H2[I w]}, {w, 0.01, 100}]<br />

Magnitude (dB)<br />

10<br />

0<br />

-10<br />

-20<br />

-30<br />

-40<br />

-50<br />

-60<br />

1.0E-2 1.0E-1 1.0E0 1.0E1 1.0E2<br />

Frequency<br />

Phase (deg)<br />

0<br />

-25<br />

-50<br />

-75<br />

-100<br />

-125<br />

-150<br />

-175<br />

1.0E-2 1.0E-1 1.0E0 1.0E1 1.0E2<br />

Frequency<br />

Out[5]= Graphics <br />

This defines an RLC filter<br />

circuit.<br />

Set up modified nodal<br />

equations.<br />

Do an AC analysis from<br />

Hz to MHz.<br />

Increase the number of<br />

plot points.<br />

In[6]:= rlcf = Netlist[<br />

{V1, {1, 0}, Symbolic −> V, Value −> 1},<br />

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

{L1, {2, 3}, Symbolic −> L, Value −> 0.001},<br />

{C1, {3, 0}, Symbolic −> C, Value −> 2.2*10^−6},<br />

{R2, {3, 0}, Symbolic −> R2, Value −> 1000.}<br />

];<br />

In[7]:= eqsrlcf = CircuitEquations[rlcf]<br />

Out[7]= DAEAC, 4 4 <br />

In[8]:= acsweep = ACAnalysis[eqsrlcf, {f, 10, 10^6}]<br />

Out[8]=<br />

V$1 InterpolatingFunction10., 1. 10 6 , ,<br />

V$2 InterpolatingFunction10., 1. 10 6 , ,<br />

V$3 InterpolatingFunction10., 1. 10 6 , ,<br />

I$V1 InterpolatingFunction10., 1. 10 6 , <br />

In[9]:= SetOptions[BodePlot, PlotPoints −> 200];

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

Saved successfully!

Ooh no, something went wrong!