LILAC
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
rk4 Class Reference

Dormand-Prince integrator. More...

#include <rk4.h>

Inheritance diagram for rk4:
Inheritance graph
[legend]
Collaboration diagram for rk4:
Collaboration graph
[legend]

Public Member Functions

const std::type_info & vtype () const
void postprocess (input &dat)
std::vector< std::stringdependencies () const
std::string type () const
int integrate (ptr_passer u, double t0, double tf)
 ~rk4 ()
- Public Member Functions inherited from integrator
virtual void initial_condition (ptr_passer in, size_t len)
void initial_condition (ptr_passer in)
virtual ~integrator ()
 Blank destructor for integrator.
- Public Member Functions inherited from item_dim
size_t get_dimension () const
- Public Member Functions inherited from item
 item ()
virtual ~item ()
virtual void print () const
 Standard print function.
virtual void update ()
void setname (const std::string n)
void set_write_name (std::string wname)
const std::stringname () const
const std::stringwrite_name () const
- Public Member Functions inherited from vartype
bool compare (const vartype *in) const
bool compare (const vartype &in) const
bool compare (const std::type_info &tinf)
template<typename T >
bool compare () const
template<typename T >
bool compare (const T &in) const
std::string vname () const
virtual const std::type_info & vtype_internal () const
bool compare_internal (const vartype *in) const
bool compare_internal (const vartype &in) const
bool compare_internal (const std::type_info &tinf)
template<typename T >
bool compare_internal () const
template<typename T >
bool compare_internal (const T &in) const
std::string vname_internal () const
virtual ~vartype ()

Protected Attributes

std::shared_ptr< rk4actual
- Protected Attributes inherited from integrator
rhsrh_val
- Protected Attributes inherited from item_dim
mempool memp
std::set< item_dim * > children
item_dimparent
size_t dimension
- Protected Attributes inherited from item
std::string _name
std::string _write_name
char has_write_name

Additional Inherited Members

- Static Public Member Functions inherited from item
static std::shared_ptr< itemcreate (std::string name, engineimp *rval)
- Public Attributes inherited from item
engineimpholder
- Protected Member Functions inherited from item_dim
void print_upstream ()
virtual void _do_mem_update (size_t dim_old)
void add_as_parent (item_dim *p)
void add_as_parent (std::shared_ptr< item_dim > p)
void update_dim (size_t dim_new)

Detailed Description

Dormand-Prince integrator.

This class defines a Dormand-Prince integrator, the same type used by the Matlab function ODE45

Definition at line 25 of file rk4.h.

Constructor & Destructor Documentation

rk4::~rk4 ( )

Definition at line 27 of file rk4.cpp.

Member Function Documentation

std::vector< std::string > rk4::dependencies ( ) const
virtual

Implements integrator.

Definition at line 29 of file rk4.cpp.

Here is the call graph for this function:

int rk4::integrate ( ptr_passer  u,
double  t0,
double  tf 
)
virtual

Implements integrator.

Reimplemented in rk4_tmpl< T >.

Definition at line 24 of file rk4.cpp.

void rk4::postprocess ( input dat)
virtual

Reimplemented from integrator.

Reimplemented in rk4_tmpl< T >.

Definition at line 36 of file rk4.cpp.

Here is the call graph for this function:

std::string rk4::type ( ) const
virtual

Implements integrator.

Reimplemented in rk4_tmpl< T >.

Definition at line 33 of file rk4.cpp.

const std::type_info & rk4::vtype ( ) const
virtual

Implements vartype.

Reimplemented in rk4_tmpl< T >.

Definition at line 45 of file rk4.cpp.

Member Data Documentation

std::shared_ptr<rk4> rk4::actual
protected

Definition at line 27 of file rk4.h.


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