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.

18 1. A Short Introduction<br />

Setting Up Circuit Equations for Approximation<br />

To prepare the simplification process we set up the system of circuit equations again. As against<br />

the previous call to the function CircuitEquations, where the circuit equations were given in the<br />

modified nodal analysis format, they are set up in sparse tableau formulation this time. Sparse<br />

tableau is the preferred equation formulation when performing linear approximation tasks. Details<br />

about the Formulation option are given in Section 3.5.1.<br />

In[13]:= staAC741 = CircuitEquations[op741,<br />

ElementValues −> Symbolic, Formulation −> SparseTableau,<br />

ModelLibrary −> "BasicModels‘"]<br />

Out[13]= DAEAC, 402 402 <br />

The returned equation system is a DAEObject with equations and variables.<br />

In[14]:= Statistics[staAC741]<br />

Number of equations : 402<br />

Number of variables : 402<br />

Number of entries : 161604<br />

Number of non−zero entries : 1392<br />

Complexity estimate : 1.6e21<br />

Although this sparse tableau system is more than 10 times bigger than the modified nodal system,<br />

it usually produces better approximation results.<br />

Performing Matrix Approximation<br />

Now we call the matrix approximation routine on the symbolic circuit equations of the ΜA741 circuit.<br />

This routine simplifies the equations based on numerical constraints with respect to a given output<br />

variable. The required information is provided in form of several sampling points, specified in<br />

combination with a maximum error constraint each. The approximation routine then processes the<br />

matrix such that the sought output function is located within the defined error range around the<br />

given sampling points. For further information please refer to Section 3.11.3.<br />

To capture the first corner frequency, we place sampling points at Hz and at Hz with a maximum<br />

error of each.<br />

In[15]:= samplingpoints = {{s −> 2. Pi I 1., MaxError −> 0.3},<br />

{s −> 2. Pi I 10., MaxError −> 0.3}}<br />

Out[15]=<br />

s 6.28319 , MaxError 0.3, s 62.8319 , MaxError 0.3<br />

With the given setup, the approximation routine can be called. The computation is carried out<br />

with respect to the output voltage across the load resistor R13, which in this case is equivalent<br />

to the sought transfer function. Again, based on the automatic naming scheme (Section 2.4.1), the<br />

corresponding variable is called V$R13 (note that sparse tableau equations consist of branch voltages<br />

instead of node voltages).

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

Saved successfully!

Ooh no, something went wrong!