ode_bv_shoot Class Template Reference

Solve boundary-value ODE problems by shooting. More...

#include <ode_bv_solve.h>

Inheritance diagram for ode_bv_shoot:

ode_bv_solve

Detailed Description

template<class param_t, class func_t = ode_funct<param_t>, class vec_t = ovector_base, class alloc_vec_t = ovector, class alloc_t = ovector_alloc, class vec_int_t = ovector_int_base>
class ode_bv_shoot< param_t, func_t, vec_t, alloc_vec_t, alloc_t, vec_int_t >

Idea for future:
Create a solution table as in ode_iv_solve

Definition at line 86 of file ode_bv_solve.h.


Public Member Functions

virtual int solve (double x0, double x1, double h, size_t n, vec_t &ystart, vec_t &yend, vec_int_t &index, param_t &pa, func_t &derivs)
 Solve the boundary-value problem.
int set_iv (ode_iv_solve< param_t, func_t, vec_t, alloc_vec_t, alloc_t > &ois)
 Set initial value solver.
int set_mroot (mroot< param_t, mm_funct< param_t > > &root)
 Set the equation solver.

Data Fields

ode_iv_solve< param_t, func_t,
vec_t, alloc_vec_t, alloc_t > 
def_ois
 The default initial value solver.
gsl_mroot_hybrids< param_t,
mm_funct< param_t > > 
def_mroot
 The default equation solver.

Protected Member Functions

int solve_fun (size_t nv, const vec_t &sx, vec_t &sy, param_t &pa)
 The shooting function to be solved by the multidimensional solver.

Protected Attributes

ode_iv_solve< param_t, func_t,
vec_t, alloc_vec_t, alloc_t > * 
oisp
 The solver for the initial value problem.
mroot< param_t, mm_funct
< param_t > > * 
mrootp
 The equation solver.
vec_int_t * l_index
 The index defining the boundary conditions.
vec_t * l_ystart
 Storage for the starting vector.
vec_t * l_yend
 Storage for the ending vector.
double l_x0
 Storage for the starting point.
double l_x1
 Storage for the ending abcissa.
double l_h
 Storage for the stepsize.
func_t * l_derivs
 The functions to integrate.
size_t l_n
 The number of functions.

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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page