controlled_stepper.qbk 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. [/============================================================================
  2. Boost.odeint
  3. Copyright 2011-2012 Karsten Ahnert
  4. Copyright 2011 Mario Mulansky
  5. Use, modification and distribution is subject to the Boost Software License,
  6. Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  7. http://www.boost.org/LICENSE_1_0.txt)
  8. =============================================================================/]
  9. [section Controlled Stepper]
  10. This concept specifies the interface a controlled stepper has to fulfill to be used within __integrate_functions.
  11. [heading Description]
  12. A controlled stepper following this Controlled Stepper concept provides the possibility to perform one step of the solution /x(t)/ of an ODE with step-size /dt/ to obtain /x(t+dt)/ with a given step-size /dt/.
  13. Depending on an error estimate of the solution the step might be rejected and a smaller step-size is suggested.
  14. [heading Associated types]
  15. * '''<para>'''[*state_type]'''</para>'''
  16. '''<para>'''`Stepper::state_type`'''</para>'''
  17. '''<para>'''The type characterizing the state of the ODE, hence ['x].'''</para>'''
  18. * '''<para>'''[*deriv_type]'''</para>'''
  19. '''<para>'''`Stepper::deriv_type`'''</para>'''
  20. '''<para>'''The type characterizing the derivative of the ODE, hence ['d x/dt].'''</para>'''
  21. * '''<para>'''[*time_type]'''</para>'''
  22. '''<para>'''`Stepper::time_type`'''</para>'''
  23. '''<para>'''The type characterizing the dependent variable of the ODE, hence the time ['t].'''</para>'''
  24. * '''<para>'''[*value_type]'''</para>'''
  25. '''<para>'''`Stepper::value_type`'''</para>'''
  26. '''<para>'''The numerical data type which is used within the stepper, something like `float`, `double`, `complex&lt; double &gt;`.'''</para>'''
  27. * '''<para>'''[*stepper_category]'''</para>'''
  28. '''<para>'''`Stepper::stepper_category`'''</para>'''
  29. '''<para>'''A tag type characterizing the category of the stepper. This type must be convertible to `controlled_stepper_tag`.'''</para>'''
  30. [heading Notation]
  31. [variablelist
  32. [[`ControlledStepper`] [A type that is a model of Controlled Stepper]]
  33. [[`State`] [A type representing the state /x/ of the ODE]]
  34. [[`Time`] [A type representing the time /t/ of the ODE]]
  35. [[`stepper`] [An object of type `ControlledStepper`]]
  36. [[`x`] [Object of type `State`]]
  37. [[`t`, `dt`] [Objects of type `Time`]]
  38. [[`sys`] [An object defining the ODE, should be a model of __system, __symplectic_system, __simple_symplectic_system or __implicit_system.]]
  39. ]
  40. [heading Valid Expressions]
  41. [table
  42. [[Name] [Expression] [Type] [Semantics]]
  43. [[Do step] [``stepper.try_step( sys , x , t , dt )``] [`controlled_step_result`] [Tries one step of step size `dt`. If the step was successful, `success` is returned, the resulting state is written to `x`, the new time is stored in `t` and `dt` now contains a new (possibly larger) step-size for the next step. If the error was too big, `rejected` is returned and the results are neglected - `x` and `t` are unchanged and `dt` now contains a reduced step-size to be used for the next try.] ]
  44. [/ [Do step with reference] [`stepper.try_step( boost::ref(sys) , x , t , dt )`] [`void`] [Same as above with `System` as reference] ]
  45. ]
  46. [heading Models]
  47. * `controlled_error_stepper< runge_kutta_cash_karp54 >`
  48. * `controlled_error_stepper_fsal< runge_kutta_dopri5 >`
  49. * `controlled_error_stepper< runge_kutta_fehlberg78 >`
  50. * `rosenbrock4_controller`
  51. * `bulirsch_stoer`
  52. [endsect]