cvode_basic_backward.py

assimulo.examples.cvode_basic_backward.run_example(with_plots=True)[source]

The same as example cvode_basic.py but now integrated backwards in time.

on return:

  • exp_mod problem instance
  • exp_sim solver instance

Final Run Statistics: CVode Test Example (reverse time): $\dot y = - y$  

 Number of steps                                 : 85
 Number of function evaluations                  : 108
 Number of Jacobian evaluations                  : 2
 Number of function eval. due to Jacobian eval.  : 2
 Number of error test failures                   : 3
 Number of nonlinear iterations                  : 104
 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)    : 1e-08
 Tolerances (relative)    : 1e-08

Simulation interval    : 5.0 - 0.0 seconds.
Elapsed simulation time: 0.00123190879822 seconds.
_images/cvode_basic_backward.png

Note

Press [source] (to the top right) to view the example.