Heidelberg Educational Numerics Library Version 0.24 (from 9 September 2011)
Public Types | Public Member Functions

hdnum::EE< M > Class Template Reference

Explicit Euler method as an example for an ODE solver. More...

#include <ode.hh>

List of all members.

Public Types

typedef M::size_type size_type
 export size_type
typedef M::time_type time_type
 export time_type
typedef M::number_type number_type
 export number_type

Public Member Functions

 EE (const M &model_)
 constructor stores reference to the model
void set_dt (time_type dt_)
 set time step for subsequent steps
void step ()
 do one step
void set_state (time_type t_, const Vector< number_type > &u_)
 set current state
const Vector< number_type > & get_state () const
 get current state
time_type get_time () const
 get current time
time_type get_dt () const
 get dt used in last step (i.e. to compute current state)
size_type get_order () const
 return consistency order of the method

Detailed Description

template<class M>
class hdnum::EE< M >

Explicit Euler method as an example for an ODE solver.

The ODE solver is parametrized by a model. The model also exports all relevant types for time and states. The ODE solver encapsulates the states needed for the computation.

Template Parameters:
Mthe model type

The documentation for this class was generated from the following file: