dense_output_stepper.qbk 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. [/============================================================================
  2. Boost.odeint
  3. Copyright (c) 2009-2013 Karsten Ahnert
  4. Copyright (c) 2009-2013 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 Dense Output Stepper]
  10. This concept specifies the interface a dense output stepper has to fulfill to be used within __integrate_functions.
  11. [heading Description]
  12. A dense output stepper following this Dense Output Stepper concept provides the possibility to perform a single step of the solution /x(t)/ of an ODE to obtain /x(t+dt)/.
  13. The step-size `dt` might be adjusted automatically due to error control.
  14. Dense output steppers also can interpolate the solution to calculate the state /x(t')/ at any point /t <= t' <= t+dt/.
  15. [heading Associated types]
  16. * '''<para>'''[*state_type]'''</para>'''
  17. '''<para>'''`Stepper::state_type`'''</para>'''
  18. '''<para>'''The type characterizing the state of the ODE, hence ['x].'''</para>'''
  19. * '''<para>'''[*deriv_type]'''</para>'''
  20. '''<para>'''`Stepper::deriv_type`'''</para>'''
  21. '''<para>'''The type characterizing the derivative of the ODE, hence ['d x/dt].'''</para>'''
  22. * '''<para>'''[*time_type]'''</para>'''
  23. '''<para>'''`Stepper::time_type`'''</para>'''
  24. '''<para>'''The type characterizing the dependent variable of the ODE, hence the time ['t].'''</para>'''
  25. * '''<para>'''[*value_type]'''</para>'''
  26. '''<para>'''`Stepper::value_type`'''</para>'''
  27. '''<para>'''The numerical data type which is used within the stepper, something like `float`, `double`, `complex&lt; double &gt;`.'''</para>'''
  28. * '''<para>'''[*stepper_category]'''</para>'''
  29. '''<para>'''`Stepper::stepper_category`'''</para>'''
  30. '''<para>'''A tag type characterizing the category of the stepper. This type must be convertible to `dense_output_stepper_tag`.'''</para>'''
  31. [heading Notation]
  32. [variablelist
  33. [[`Stepper`] [A type that is a model of Dense Output Stepper]]
  34. [[`State`] [A type representing the state /x/ of the ODE]]
  35. [[`stepper`] [An object of type `Stepper`]]
  36. [[`x0`, `x`] [Object of type `State`]]
  37. [[`t0`, `dt0`, `t`] [Objects of type `Stepper::time_type`]]
  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. [[Initialize integration] [`stepper.initialize( x0 , t0 , dt0 )`] [void] [Initializes the stepper with initial values `x0`, `t0` and `dt0`.]]
  44. [[Do step] [`stepper.do_step( sys )`] [`std::pair< Stepper::time_type , Stepper::time_type >`] [Performs one step using the ODE defined by `sys`. The step-size might be changed internally due to error control. This function returns a pair containing `t` and `t+dt` representing the interval for which interpolation can be performed.] ]
  45. [/ [Do step with reference] [`stepper.do_step( boost::ref( sys ) )`] [`std::pair< Stepper::time_type , Stepper::time_type >`] [Same as above with `System` as reference] ]
  46. [[Do interpolation] [`stepper.calc_state( t_inter , x )`] [`void`] [Performs the interpolation to calculate /x(t[sub inter]/) where /t <= t[sub inter] <= t+dt/.]]
  47. [[Get current time] [`stepper.current_time()`] [`const Stepper::time_type&`] [Returns the current time /t+dt/ of the stepper, that is the end time of the last step and the starting time for the next call of `do_step`]]
  48. [[Get current state] [`stepper.current_state()`] [`const Stepper::state_type&`] [Returns the current state of the stepper, that is /x(t+dt)/, the state at the time returned by `stepper.current_time()`]]
  49. [[Get current time step] [`stepper.current_time_step()`] [`const
  50. Stepper::time_type&`] [Returns the current step size of the stepper, that is
  51. /dt/]]
  52. ]
  53. [heading Models]
  54. * `dense_output_controlled_explicit_fsal< controlled_error_stepper_fsal< runge_kutta_dopri5 >`
  55. * `bulirsch_stoer_dense_out`
  56. * `rosenbrock4_dense_output`
  57. [endsect]