cvode_gyro.py

assimulo.examples.cvode_gyro.run_example(with_plots=True)[source]
Simulations for the Gyro (Heavy Top) example in Celledoni/Safstrom:
Journal of Physics A, Vol 39, 5463-5478, 2006

on return:

  • exp_mod problem instance
  • exp_sim solver instance

Final Run Statistics: Gyroscope Example 

 Number of steps                                 : 3296
 Number of function evaluations                  : 3408
 Number of Jacobian evaluations                  : 55
 Number of function eval. due to Jacobian eval.  : 660
 Number of error test failures                   : 0
 Number of nonlinear iterations                  : 3404
 Number of nonlinear convergence failures        : 0

Solver options:

 Solver                   : CVode
 Linear multistep method  : BDF
 Nonlinear solver         : Newton
 Linear solver type       : DENSE
 Maximal order            : 2
 Tolerances (absolute)    : 1e-10
 Tolerances (relative)    : 1e-10

Simulation interval    : 0.0 - 0.1 seconds.
Elapsed simulation time: 0.295341014862 seconds.
_images/cvode_gyro.png

Note

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