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.

2.4 Setting up and Solving Circuit Equations 81<br />

a special storage mechanism for sparse matrices. Nevertheless, some commands (e.g. ACAnalysis)<br />

rely on the fact that the equation system is formulated in matrix representation.<br />

FrequencyVariable<br />

The option FrequencyVariable −> symbol specifies the symbol which Analog Insydes uses to denote<br />

the differential operator, i.e. the complex frequency, in the Laplace domain. By default, this is the<br />

symbol s, but if you prefer to use another symbol for this purpose, for instance p, you can replace<br />

s by p as follows:<br />

In[16]:= CircuitEquations[rlcfilter,<br />

FrequencyVariable −> p] // DisplayForm<br />

Out[16]//DisplayForm=<br />

1<br />

<br />

RA<br />

<br />

1<br />

RA<br />

0 1 <br />

1 1<br />

<br />

RA<br />

<br />

L1 p C1 p V$1 0 <br />

<br />

1<br />

RA<br />

<br />

1<br />

L1 p<br />

0 V$2 0<br />

. ⩵⩵<br />

0 <br />

1<br />

1<br />

L1 p<br />

<br />

L1 p<br />

<br />

C2 p <br />

1<br />

RB<br />

0 V$3 0<br />

<br />

I$V0 V0 <br />

1 0 0 0 <br />

ElementValues<br />

With ElementValues −> Symbolic we can instruct CircuitEquations to use the symbolic values<br />

from the value fields of netlist entries in which a Symbolic option is given. To demonstrate the effect<br />

of this option let’s make some enhancements to the netlist of the RLC filter circuit from Section 2.4.2<br />

(see Figure 4.1). Using the extended value-field format (see Section 3.1.4) we specify a numerical as<br />

well as a symbolic value for the circuit elements.<br />

In[17]:= rlcfilter2 =<br />

Netlist[<br />

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

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

{C1, {2, 0}, Value −> 4.7*10^−6, Symbolic −> C1},<br />

{L1, {2, 3}, Value −> 1.0*10^−3, Symbolic −> L1},<br />

{C2, {3, 0}, Value −> 2.2*10^−5, Symbolic −> C2},<br />

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

];<br />

Note that the value of the Symbolic option needs not to coincide with the reference designator<br />

as this is the case in the example above. You can use any Mathematica expression as value to the<br />

Symbolic field.<br />

A call to CircuitEquations without any additional options (i.e. the default value of the<br />

ElementValues option is used, which is Value) will then cause the numerical values to be entered<br />

into the matrix as these are given as arguments to the Value rules.

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

Saved successfully!

Ooh no, something went wrong!