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.

1.2 Getting Started 15<br />

this topic is discussed in Chapter 2.3). In the following, we choose a complexity-reduced BJT model<br />

from the Analog Insydes model library by setting the option ModelLibrary −> "BasicModels‘".<br />

Note that a quote mark ("‘") is following the word BasicModels.<br />

In[5]:= mnaAC741 = CircuitEquations[op741,<br />

ElementValues −> Symbolic,<br />

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

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

The additional option ElementValues −> Symbolic tells Analog Insydes to set up equations using<br />

the symbolic element values instead of the numerical ones. By default, CircuitEquations sets up<br />

small-signal equations in matrix formulation, but DC or transient equations can be set up, too. See<br />

Section 3.5.1 and Chapter 2.4 for details. CircuitEquations returns a DAEObject which contains<br />

the equation system as well as additional data which is used and extracted automatically by other<br />

Analog Insydes commands. As for Circuit objects, a DAEObject is printed in short notation only<br />

and can be displayed using DisplayForm (we once more omit evaluating the command since the<br />

equation system is too big to be printed here):<br />

DisplayForm[mnaAC741]<br />

Again, you can use Statistics (Section 3.6.17) to get an impression of the equation size.<br />

In[6]:= Statistics[mnaAC741]<br />

Number of equations : 33<br />

Number of variables : 33<br />

Number of entries : 1089<br />

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

Complexity estimate : 1.6e21<br />

Importing Simulation Data<br />

When using netlists from external simulators we always have to verify that the models used during<br />

equation setup are compatible to the ones used by the simulator. This is done by comparing<br />

the numerical solution calculated by the external simulator with the solution calculated by Analog<br />

Insydes. If both solutions do not coincide within a tolerable error range, we have to go back one step<br />

and choose different models during equation setup before going on with the symbolic analysis. To<br />

simplify this procedure, Analog Insydes provides the command ReadSimulationData (Section 3.10.3)<br />

for importing numerical data generated by an external simulator. As for ReadNetlist we have to<br />

specify from which format we are reading by means of the Simulator option. The list of supported<br />

formats is shown in Section 3.10.1.<br />

In[7]:= op741data = ReadSimulationData[<br />

"AnalogInsydes/DemoFiles/OP−741.csd",<br />

Simulator −> "PSpice"]<br />

Out[7]=<br />

V26 InterpolatingFunction0.1, 1. 10 6 ,

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

Saved successfully!

Ooh no, something went wrong!