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.

80 2. Tutorial<br />

2.4.4 Additional Options for CircuitEquations<br />

All Analog Insydes options which have an influence on circuit equation setup by the function<br />

CircuitEquations can be accessed through Options[CircuitEquations]. The current option<br />

settings can be inspected by retrieving the value of this variable:<br />

In[14]:= Options[CircuitEquations]<br />

Out[14]=<br />

AnalysisMode AC, BranchCurrentPrefix I$,<br />

BranchVoltagePrefix V$, ControllingCurrentPrefix IC$,<br />

ControllingVoltagePrefix VC$, ConvertImmittances True,<br />

DefaultSelector Automatic, DesignPoint Automatic,<br />

ElementValues Value, Formulation ModifiedNodal,<br />

FrequencyVariable s, IgnoreMissingGround False,<br />

IndependentVariable Automatic, InitialConditions None,<br />

InitialGuess Automatic, InitialTime 0,<br />

InstanceNameSeparator InheritedAnalogInsydes,<br />

LibraryPath InheritedAnalogInsydes, MatrixEquation True,<br />

ModelLibrary InheritedAnalogInsydes, ModeValues None,<br />

NodeVoltagePrefix V$, Protocol InheritedAnalogInsydes,<br />

Symbolic All, TimeVariable t, Value None<br />

Some of these options are discussed in more detail below.<br />

AnalysisMode<br />

CircuitEquations sets up circuit equations for the analysis modes AC, DC, and transient. Which<br />

mode to use is determined by the option AnalysisMode, whose value is one of the symbols AC, DC,<br />

and Transient. The default value is AC. Up to now, we used CircuitEquations to create smallsignal<br />

equations. Section 2.6.4 describes how to set up DC equations and Section 2.7.1 describes how<br />

to set up transient equations.<br />

MatrixEquation<br />

Using the option MatrixEquation −> False, we can force CircuitEquations not to use a matrix<br />

representation when setting up small-signal circuit equations but to return a list of scalar equations<br />

instead.<br />

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

MatrixEquation −> False] // DisplayForm<br />

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

V$1 V$2<br />

V$1 V$2 V$2 V$3<br />

I$V0 <br />

⩵⩵ 0, C1 s V$2 <br />

<br />

⩵⩵ 0,<br />

RA<br />

RA<br />

L1 s<br />

V$3<br />

V$2 V$3<br />

C2 s V$3 <br />

⩵⩵ 0, V$1 ⩵⩵ V0,<br />

RB L1 s<br />

V$1, V$2, V$3, I$V0, DesignPoint <br />

When the matrix representation is turned off, the value returned by CircuitEquations is a<br />

DAEObject containing the circuit equations as a list of two elements, the first being the system of<br />

circuit equations and the second the vector of unknowns. The advantage of the scalar representation<br />

is that it consumes less memory than the matrix representation because Mathematica does not have

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

Saved successfully!

Ooh no, something went wrong!