GRL1IvpOdeSolver Class Reference

#include <GRL1IvpOdeSolver.hpp>

Inherits AbstractOneStepIvpOdeSolver.

Collaboration diagram for GRL1IvpOdeSolver:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GRL1IvpOdeSolver ()

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)

Private Attributes

std::vector< doublemEvalF
std::vector< doublemPartialF
std::vector< doublemTemp

Friends

class boost::serialization::access

Detailed Description

A concrete one step ODE solver class that employs the GRL1 first-order solver. Method is mentioned in J. Sundnes, R. Artebrant, O. Skavhaug, and A. Tveito. A second-order algorithm for solving dynamic cell membrane equations. IEEE Trans. Biomed. Eng., 56(10):2546-2548, 2009.

Definition at line 59 of file GRL1IvpOdeSolver.hpp.


Constructor & Destructor Documentation

GRL1IvpOdeSolver::GRL1IvpOdeSolver (  )  [inline]

Constructor.

Definition at line 107 of file GRL1IvpOdeSolver.hpp.


Member Function Documentation

void GRL1IvpOdeSolver::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 48 of file GRL1IvpOdeSolver.cpp.

References AbstractOdeSystem::EvaluateYDerivatives(), AbstractUntemplatedParameterisedSystem::GetNumberOfStateVariables(), mEvalF, mPartialF, and mTemp.

template<class Archive >
void GRL1IvpOdeSolver::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 72 of file GRL1IvpOdeSolver.hpp.


Friends And Related Function Documentation

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

Needed for serialization.

Reimplemented from AbstractOneStepIvpOdeSolver.

Definition at line 64 of file GRL1IvpOdeSolver.hpp.


Member Data Documentation

std::vector<double> GRL1IvpOdeSolver::mEvalF [private]

Working memory for the solver

Definition at line 79 of file GRL1IvpOdeSolver.hpp.

Referenced by CalculateNextYValue().

std::vector<double> GRL1IvpOdeSolver::mPartialF [private]

Working memory for the solver

Definition at line 81 of file GRL1IvpOdeSolver.hpp.

Referenced by CalculateNextYValue().

std::vector<double> GRL1IvpOdeSolver::mTemp [private]

Working memory for the solver

Definition at line 83 of file GRL1IvpOdeSolver.hpp.

Referenced by CalculateNextYValue().


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

Generated by  doxygen 1.6.2