Chaste Release::3.1
HeunIvpOdeSolver Class Reference

#include <HeunIvpOdeSolver.hpp>

Inheritance diagram for HeunIvpOdeSolver:
Collaboration diagram for HeunIvpOdeSolver:

List of all members.

Public Member Functions

 HeunIvpOdeSolver ()

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 Heun 2nd order solver.

Definition at line 48 of file HeunIvpOdeSolver.hpp.


Constructor & Destructor Documentation

HeunIvpOdeSolver::HeunIvpOdeSolver ( ) [inline]

Constructor.

Definition at line 89 of file HeunIvpOdeSolver.hpp.


Member Function Documentation

void HeunIvpOdeSolver::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:
pAbstractOdeSystemthe ODE system to solve
timeStepdt
timethe current time
rCurrentYValuesthe current (initial) state
rNextYValuesthe state at the next timestep

Implements AbstractOneStepIvpOdeSolver.

Definition at line 41 of file HeunIvpOdeSolver.cpp.

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

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

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

Parameters:
archivethe archive
versionthe current version of this class

Reimplemented from AbstractOneStepIvpOdeSolver.

Definition at line 61 of file HeunIvpOdeSolver.hpp.


Friends And Related Function Documentation

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

Needed for serialization.

Reimplemented from AbstractOneStepIvpOdeSolver.

Definition at line 53 of file HeunIvpOdeSolver.hpp.


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