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.

168 2. Tutorial<br />

each input symbol (as specified by inputs) the numerical range in which to sweep the symbol during<br />

numerical simulation. The sweep range is given by a standard Analog Insydes parameter sweep<br />

specification as described in Section 3.7.2. Both the simulation function and error function arguments<br />

are optional and for advanced usage only. For usual applications you do not need to specify them.<br />

For example, the argument<br />

DT −> {Range −> {VIN, {0., 5., 1.}}}<br />

specifies that a DC-transfer analysis has to be performed for error calculation. For this, the input<br />

symbol VIN has to be swept from 0. to 5. in steps of 1. and the default simulation and error<br />

functions have to be used.<br />

NonlinearSetup returns a new DAEObject which is prepared for nonlinear approximation. All data<br />

given as arguments to NonlinearSetup are stored in the returned DAEObject and automatically<br />

extracted by subsequent commands, such that there is no need to specify them again. Additionally,<br />

NonlinearSetup performs numerical simulations and stores the result as reference values used for<br />

error calculations. You can use the command NonlinearSettings (Section 3.12.5) to inspect which<br />

data has been added to the DAEObject for nonlinear simplifications.<br />

Once the DAEObject is prepared, there are two major commands for nonlinear simplifications:<br />

CompressNonlinearEquations and CancelTerms.<br />

CompressNonlinearEquations<br />

CompressNonlinearEquations (Section 3.12.2) removes equations and eliminates variables from the<br />

DAEObject which are irrelevant for solving for the output variables. The general syntax is as follows:<br />

CompressNonlinearEquations[dae, vars]<br />

If the given DAEObject is prepared via NonlinearSetup, the output variables specified in the call<br />

to NonlinearSetup are added to the given list vars of variables to hold in the equation system.<br />

Note that compressing equations is a mathematically exact operation, there is no need to perform<br />

numerical error calculations.<br />

Since<br />

CompressNonlinearEquations reduces the number of equations in a DAEObject, it is recommended<br />

as the first step in a nonlinear simplification procedure.<br />

CancelTerms<br />

CancelTerms (Section 3.12.3) simplifies a DAEObject by successive removal of terms in the equation<br />

system. The general syntax is as follows:<br />

CancelTerms[dae, maxerrors]<br />

After each each term removal, CancelTerms performs a numeric simulation (as set by<br />

NonlinearSetup), calculates the error, and compares it to the user-given error bound maxerrors. If<br />

the error caused by a simplification exceeds this error bound, the simplification is undone.

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

Saved successfully!

Ooh no, something went wrong!