CppNoddy
0.92
|
A templated object for real/complex vector system of first-order ordinary differential equations. More...
#include <ODE_IVP.h>
Public Member Functions | |
ODE_IVP (Equation< _Type > *equation_ptr, const double &x_init, const double &x_final, const std::size_t &num_of_steps) | |
The class is defined by a vector function for the system. More... | |
~ODE_IVP () | |
DenseVector< _Type > | shoot4 (DenseVector< _Type > u) |
A fixed step 4th order Runge-Kutta method. More... | |
DenseVector< _Type > | shoot45 (DenseVector< _Type > u, const double &tol, const double &h_init) |
A Runge-Kutta-Fehlberg integrator. More... | |
OneD_Node_Mesh< _Type > & | get_mesh () |
Return the history of the stepped solution. More... | |
unsigned & | store_every () |
Return a handle to the STORE_EVERY object. More... | |
A templated object for real/complex vector system of first-order ordinary differential equations.
CppNoddy::ODE_IVP< _Type >::ODE_IVP | ( | Equation< _Type > * | equation_ptr, |
const double & | x_init, | ||
const double & | x_final, | ||
const std::size_t & | num_of_steps | ||
) |
The class is defined by a vector function for the system.
equation_ptr | A pointer to an inherited Equation object. |
x_init | The starting point of the domain for the ODE. |
x_final | The end point of the domain for the ODE. |
num_of_steps | A maximum/default number of steps to be taken. |
Definition at line 19 of file ODE_IVP.cpp.
CppNoddy::ODE_IVP< _Type >::~ODE_IVP |
Definition at line 32 of file ODE_IVP.cpp.
OneD_Node_Mesh< _Type > & CppNoddy::ODE_IVP< _Type >::get_mesh |
Return the history of the stepped solution.
Definition at line 242 of file ODE_IVP.cpp.
Referenced by main().
DenseVector< _Type > CppNoddy::ODE_IVP< _Type >::shoot4 | ( | DenseVector< _Type > | u | ) |
A fixed step 4th order Runge-Kutta method.
u | An NVector of initial values. |
Definition at line 36 of file ODE_IVP.cpp.
DenseVector< _Type > CppNoddy::ODE_IVP< _Type >::shoot45 | ( | DenseVector< _Type > | u, |
const double & | tol, | ||
const double & | h_init | ||
) |
A Runge-Kutta-Fehlberg integrator.
u | An Nvector of initial values. |
tol | The tolerance used in choosing the step length. |
h_init | The initial step length. |
Definition at line 95 of file ODE_IVP.cpp.
References h, CppNoddy::DenseVector< _Type >::push_back(), CppNoddy::DenseVector< _Type >::size(), and u.
Referenced by main().
unsigned & CppNoddy::ODE_IVP< _Type >::store_every |
Return a handle to the STORE_EVERY object.
Definition at line 247 of file ODE_IVP.cpp.
Referenced by main().
© 2012
R.E. Hewitt