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.

406 3. Reference Manual<br />

An example for a user-defined simulation and error function and of the corresponding call to<br />

NonlinearSetup is given in the example section below.<br />

Instead of specifying the maximum allowed error for output variables for each call to the nonlinear<br />

simplifications routines separately, you can specify global maximum errors for output variables using<br />

the MaxError argument. These values are used if no error value is given in the call to the nonlinear<br />

simplification routine. The value of this argument has to be a list of rules of the form outvar −> error.<br />

AC mode specifications<br />

Range−>{paramsweep, freqlist, sourceval}<br />

paramsweep must be a subset of the sweep given in the DT<br />

settings, freqlist is a list of frequency points and sourceval is<br />

a list of replacement rules for all AC sources<br />

SimulationFunction−>simfct<br />

Settings for AC mode.<br />

ErrorFunction−>errfct<br />

MaxError−>errlist<br />

simulation function used for AC analysis; default value:<br />

DefaultACSimulation<br />

error function used for AC analysis; default value:<br />

DefaultACError<br />

Maximum error specification for the output variables;<br />

default value: {}<br />

SimulationFunction, ErrorFunction, and MaxError are optional, whereas Range is a required<br />

argument.<br />

If you specifiy AC settings you have to specify DT settings, too. The parameter sweep settings<br />

paramsweep must be a subset of the parameter sweep given in the DT settings.<br />

The default AC simulation function is called DefaultACSimulation. This function calls ACAnalysis<br />

(Section 3.7.3) to perform the numerical calculation. DefaultACSimulation inherits almost all options<br />

from ACAnalysis.<br />

Besides the default simulation function you can define your own AC simulation function and specify<br />

it as SimulationFunction in the AC mode settings for NonlinearSetup. During the setup and the<br />

nonlinear simplifications this function will be called with the following arguments:<br />

simfct[dae_, refsim_List:{}, opts___]<br />

Pattern for a user-defined AC simulation function.<br />

Here, dae is a Transient DAEObject, refsim is the list of numerical reference values and opts are<br />

additional options.

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

Saved successfully!

Ooh no, something went wrong!