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.

3.12 Nonlinear Simplification Techniques 405<br />

If no SimulationFunction option is specified, the default function is used. The default DT<br />

simulation function DefaultDTSimulation calls NDAESolve (Section 3.7.5) to calculate the DC<br />

operating points. DefaultDTSimulation inherits almost all options from NDAESolve. The following<br />

options have a special meaning when used with DefaultDTSimulation:<br />

option name<br />

default value<br />

MaxIterations<br />

Inherited[NDAESolve]<br />

maximum number of iterations for<br />

NDAESolve (only used if option<br />

InitialGuess is set to Automatic)<br />

InitialGuess None if set to Automatic, the values of the<br />

reference simulation are used as initial<br />

guess for NDAESolve<br />

Options for DefaultDTSimulation.<br />

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

it as SimulationFunction in the DT 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 DT simulation function.<br />

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

are additional options.<br />

The simulation function must return the DC operating points in the same format as NDAESolve<br />

returns DC operating points of a parameter sweep (see Section 3.7.2).<br />

Similarly, you can define your own DT error function instead of the default error function and<br />

specify it as ErrorFunction in the DT mode settings for NonlinearSetup. During the simplification<br />

routines this function is used to calculate the error with the following arguments:<br />

errfct[newval_List, oldval_List, outputsymbols_List]<br />

Pattern for a user-defined DT error function.<br />

Here, newval and oldval are the numerical solutions of the simplified and the original DAE system,<br />

outputsymbols is a list of all output symbols.<br />

The error function must return a list of rules {symb <br />

−> err , † † † }, which specifies the numerical error<br />

for each output symbol. The default DT error function calculates the maximum absolute error.

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

Saved successfully!

Ooh no, something went wrong!