RungeKutta2IvpOdeSolver Class Reference

#include <RungeKutta2IvpOdeSolver.hpp>

Inherits AbstractOneStepIvpOdeSolver.

Collaboration diagram for RungeKutta2IvpOdeSolver:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RungeKutta2IvpOdeSolver ()

Protected Member Functions

void CalculateNextYValue (AbstractOdeSystem *pAbstractOdeSystem, double timeStep, double time, std::vector< double > &rCurrentYValues, std::vector< double > &rNextYValues)

Private Member Functions

template<class Archive >
void serialize (Archive &archive, const unsigned int version)

Friends

class boost::serialization::access

Detailed Description

A concrete one step ODE solver class that employs the Runge Kutta 2nd order solver.

Definition at line 41 of file RungeKutta2IvpOdeSolver.hpp.


Constructor & Destructor Documentation

RungeKutta2IvpOdeSolver::RungeKutta2IvpOdeSolver (  )  [inline]

Constructor.

Definition at line 82 of file RungeKutta2IvpOdeSolver.hpp.


Member Function Documentation

void RungeKutta2IvpOdeSolver::CalculateNextYValue ( AbstractOdeSystem pAbstractOdeSystem,
double  timeStep,
double  time,
std::vector< double > &  rCurrentYValues,
std::vector< double > &  rNextYValues 
) [protected, virtual]

Calculate the solution to the ODE system at the next timestep.

Parameters:
pAbstractOdeSystem the ODE system to solve
timeStep dt
time the current time
rCurrentYValues the current (initial) state
rNextYValues the state at the next timestep

Implements AbstractOneStepIvpOdeSolver.

Definition at line 32 of file RungeKutta2IvpOdeSolver.cpp.

References AbstractOdeSystem::EvaluateYDerivatives(), and AbstractUntemplatedParameterisedSystem::GetNumberOfStateVariables().

template<class Archive >
void RungeKutta2IvpOdeSolver::serialize ( Archive &  archive,
const unsigned int  version 
) [inline, private]

Archive the abstract IVP Solver, never used directly - boost uses this.

Parameters:
archive the archive
version the current version of this class

Reimplemented from AbstractOneStepIvpOdeSolver.

Definition at line 54 of file RungeKutta2IvpOdeSolver.hpp.


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Needed for serialization.

Reimplemented from AbstractOneStepIvpOdeSolver.

Definition at line 46 of file RungeKutta2IvpOdeSolver.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Dec 22 13:07:32 2011 for Chaste by  doxygen 1.6.3