17.01.2015 Views

GPS-X Technical Reference

GPS-X Technical Reference

GPS-X Technical Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Miscellaneous 426<br />

The trim parameters shown here refer to the output of the ACSL trim function. This is an<br />

alternative steady-state solver, which uses the Jacobian matrix for accelerated searches. However,<br />

this gradient type routine was not found to be very robust with the large models encountered<br />

within <strong>GPS</strong>-X.<br />

NUMERICAL CONTROL<br />

The numerical issues discussed in this chapter are important because the success of a simulation<br />

depends on the input data and the models and on the numerical solver used to do the calculations.<br />

Any modeller using dynamic simulation should have an understanding of the underlying<br />

numerical methods used to solve the equations to properly interpret the results. Understanding the<br />

numerical methods used will help to identify problems that are numerical in nature.<br />

The choice of which numerical solver to use is important. There are several numerical integration<br />

methods available in <strong>GPS</strong>-X. The numerical solver can be set in the Simulation Control window<br />

or can be saved into a scenario or the layout by setting it in<br />

General Data > System > Input Parameters > Integration Control (Figure 15-11).<br />

Generally the default integration method, Runge-Kutta-Fehlberg (2), works very well for most<br />

models; however, there are situations where the solver may need to be changed. In general the<br />

trade-off is between numerical accuracy and simulation speed. The fixed step algorithms<br />

(i.e. Euler, Runge-Kutta (1), and Runge-Kutta (2)) are faster than the variable step algorithms<br />

(i.e. Adams-Moulton, Runge-Kutta-Fehlberg (1), Runge-Kutta-Fehlberg (2), Gear's Stiff, and<br />

Differential Algebraic Solver) but are not as accurate.<br />

If the system is stiff then you may need to use the Gear's Stiff algorithm. A stiff system is one in<br />

which there are processes occurring at very different time scales (e.g., a very fast process such as<br />

the transfer of oxygen into a tank and a very slow reaction occurring at the same time).<br />

In addition to the numerical solvers, the user can change some of the numerical parameters that<br />

control the simulations. Changing the default parameters however requires extreme caution<br />

because in some cases it may introduce errors in the results. The numerical parameters are<br />

accessed by making the following selections:<br />

General Data > System > Parameters > Numerical. The form is shown in Figure 15-12.<br />

These parameters include bounds on flow, state variables, state derivatives, parameters,<br />

exponentials, and volumes. The parameters for the implicit solver (IMPL - used for solving<br />

implicit functions evaluated as residuals, where the residuals are reduced to zero) used in the<br />

exact code option can be set here. Some of the parameters are discussed in more detail in the subsections<br />

below.<br />

<strong>GPS</strong>-X <strong>Technical</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!