pwSetIntegrator


 pwSetIntegrator(index)

 Sets the used integrator to index. Please re-combine afterwards.

 To set the maximum integration stepsize, use the following commands:

  config = pwGetConfig;
  config.integration.opt = [];
  config.integration.opt.MaxStep = maxValue; % with e.g. maxValue = 5
  pwSetConfig(config);

  

Integrators

  

Fortran

  1: RADAU5 (stiff): Implicit Runge-Kutta method of order 5 with dense output
  2: RADAU (stiff): Implicit Runge-Kutta method of variable order
     Switches automatically between orders 5, 9, and 13
  3: SEULEX: Extrapolation method based on linearly implicit Euler
  4: DOP853: Explicit Runge-Kutta method of order 8(5,3) with dense output of order 7
  5: DOPRI5: Explicit Runge-Kutta method of order 5(4) with dense output of order 4
  6: ODEX: Extrapolation method (GBS) with dense output

  

Matlab

  7: ode45
  8: ode15s (stiff)
  9: ode23
 10: ode23s (stiff)
 11: ode23t
 12: ode23tb
 13: ode113

 

C

 14: cvodes   (stiff)
 15: cvodesmt (stiff, multi-threading support)

 

References

 For details on integrators 1-6 see:

 Hairer, Nørsett, Wanner
 Solving Ordinary Differential Equations I.
 Nonstiff Problems.
 Springer Series in Comput. Mathematics, Vol. 8
 Springer-Verlag 1987, Second revised edition 1993.

 Hairer, Wanner
 Solving Ordinary Differential Equations II.
 Stiff and Differential-Algebraic Problems.
 Springer Series in Comput. Mathematics, Vol. 14
 Springer-Verlag 1991, Second revised edition 1996.

 For details on integrators 14 and 15 see:

 https://computation.llnl.gov/casc/sundials/main.html

See also

pwGetIntegrator
pwSetConfig
pwGetConfig
pwSetIntegrationOptions
pwCompileFortranIntegrators