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.

402 3. Reference Manual<br />

This netlist describes a<br />

common-emitter amplifier.<br />

Set up a system of<br />

symbolic AC equations.<br />

Approximate the system of<br />

circuit equations.<br />

Inspect the list of<br />

unknowns in the matrix<br />

equation.<br />

Solve the equations for<br />

V$5.<br />

Discard rows and columns<br />

which are not needed to<br />

compute V$5.<br />

Inspect the list of<br />

remaining unknowns.<br />

In[3]:= ceamplifier =<br />

Circuit[<br />

Netlist[<br />

{V1, {1, 0}, 1},<br />

{V0, {6, 0}, 0},<br />

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

{R1, {2, 6}, Symbolic −> R1, Value −> 1.0*^5},<br />

{R2, {2, 0}, Symbolic −> R2, Value −> 47000.},<br />

{RC, {6, 3}, Symbolic −> RC, Value −> 2200.},<br />

{RE, {4, 0}, Symbolic −> RE, Value −> 1000.},<br />

{C2, {3, 5}, Symbolic −> C2, Value −> 1.0*^−6},<br />

{RL, {5, 0}, Symbolic −> RL, Value −> 47000.},<br />

{Q1, {2 −> B, 3 −> C, 4 −> E},<br />

Model −> BJT, Selector −> AC,<br />

CBE −> 30.*^−12, CBC −> 5.*^−12, RBE −> 1000.,<br />

RO −> 10000., BETA −> 200.}<br />

]<br />

]<br />

Out[3]= Circuit <br />

In[4]:= eqs = CircuitEquations[ceamplifier,<br />

ElementValues −> Symbolic]<br />

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

In[5]:= sbg = ApproximateMatrixEquation[eqs, V$5,<br />

{s −> 2. Pi I 10^4, MaxError −> 0.1}]<br />

Out[5]= DAEAC, 10 10 <br />

In[6]:= GetVariables[sbg]<br />

Out[6]=<br />

V$1, V$2, V$3, V$4, V$5, V$6, V$X$Q1, I$V1, I$V0, IC$CC$Q1<br />

In[7]:= Solve[sbg, V$5]<br />

Out[7]= V$5 RC <br />

RE <br />

In[8]:= cmat = CompressMatrixEquation[sbg, V$5]<br />

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

In[9]:= GetVariables[cmat]<br />

Out[9]= V$1, V$2, V$3, V$4, V$5, V$X$Q1, IC$CC$Q1<br />

Note that matrix compression does not change the solution of the equations.<br />

Solve the compressed<br />

equations for V$5.<br />

In[10]:= Solve[cmat, V$5]<br />

Out[10]= V$5 RC <br />

RE

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

Saved successfully!

Ooh no, something went wrong!