assimulo.examples.cvode_basic.run_example(with_plots=True)[source]¶Demonstration of the use of CVode by solving the linear test equation \(\dot y = - y\)
on return:
- exp_mod problem instance
- exp_sim solver instance
Final Run Statistics: CVode Test Example: $\dot y = - y$ 
 Number of steps                                 : 49
 Number of function evaluations                  : 63
 Number of Jacobian evaluations                  : 1
 Number of function eval. due to Jacobian eval.  : 1
 Number of error test failures                   : 1
 Number of nonlinear iterations                  : 59
 Number of nonlinear convergence failures        : 0
Solver options:
 Solver                   : CVode
 Linear multistep method  : BDF
 Nonlinear solver         : Newton
 Linear solver type       : DENSE
 Maximal order            : 5
 Tolerances (absolute)    : 0.0001
 Tolerances (relative)    : 0.0001
Simulation interval    : 0.0 - 5.0 seconds.
Elapsed simulation time: 0.00170302391052 seconds.
Final Run Statistics: CVode Test Example: $\dot y = - y$ 
 Number of steps                                 : 11
 Number of function evaluations                  : 19
 Number of Jacobian evaluations                  : 1
 Number of function eval. due to Jacobian eval.  : 1
 Number of error test failures                   : 0
 Number of nonlinear iterations                  : 15
 Number of nonlinear convergence failures        : 0
Solver options:
 Solver                   : CVode
 Linear multistep method  : BDF
 Nonlinear solver         : Newton
 Linear solver type       : DENSE
 Maximal order            : 5
 Tolerances (absolute)    : 0.0001
 Tolerances (relative)    : 0.0001
Simulation interval    : 5.0 - 7.0 seconds.
Elapsed simulation time: 0.000404834747314 seconds.
 
Note
Press [source] (to the top right) to view the example.