Takes model and solver and sets solver to be used.
Syntax
bdeSetSolver(model, solver)
Inputs
- model
- Model of which the solver is being set.
- Type: diagram
- solver
- Value to set the solver to.
- Type: string
- Allowed values:
- 'lsodar'
- LSODA
- 'cvode1'
- CVODE-BDF-NEWTON
- 'cvode2'
- CVODE-BDF-Functional
- 'cvode3'
- CVODE-ADAMS-NEWTON
- 'cvode4'
- CVODE-ADAMNS-Functional
- 'radauv_exp'
- Radau-IIA
- 'euler_imp'
- Backward Euler
- 'trapezoid_imp'
- Implicit Trapezoidal
- 'dopri5'
- Dopri (Dormand-Prince)
- 'rk5'
- Runge_Kutta (fixed step, 5th order)
- 'rk4'
- Classical Runge-Kutta (fixed step, 4th order)
- 'euler_exp'
- Forward Euler
- 'trapezoid'
- Explicit Trapezoidal
- 'cpodes1'
- CPode (ODE with contraint)
- 'cpodes1cnsrt'
- CPode (ODE with algrebraic constraint)
- 'cashkarp'
- Cash-Karp (variable step, 4/5 order)
- 'sdirk'
- SDIRK (variable step, stiff)
- 'ida'
- Ida (sundials)
- 'daskr'
- DASKR
Examples
Set a model's solver:
model = bdeGetCurrentModel();
bdeSetSolver(model, solver)