#include <GRL2IvpOdeSolver.hpp>
Inherits AbstractOneStepIvpOdeSolver.
Public Member Functions | |
GRL2IvpOdeSolver () | |
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< double > | mEvalF |
std::vector< double > | mPartialF |
std::vector< double > | mTemp |
std::vector< double > | mYinit |
Friends | |
class | boost::serialization::access |
A concrete one step ODE solver class that employs the GRL2 second-order solver. Method is described 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 GRL2IvpOdeSolver.hpp.
GRL2IvpOdeSolver::GRL2IvpOdeSolver | ( | ) | [inline] |
Constructor.
Definition at line 112 of file GRL2IvpOdeSolver.hpp.
void GRL2IvpOdeSolver::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.
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 50 of file GRL2IvpOdeSolver.cpp.
References AbstractOdeSystem::EvaluateYDerivatives(), AbstractUntemplatedParameterisedSystem::GetNumberOfStateVariables(), mEvalF, mPartialF, mTemp, and mYinit.
void GRL2IvpOdeSolver::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Archive the abstract IVP Solver, never used directly - boost uses this.
archive | the archive | |
version | the current version of this class |
Reimplemented from AbstractOneStepIvpOdeSolver.
Definition at line 72 of file GRL2IvpOdeSolver.hpp.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractOneStepIvpOdeSolver.
Definition at line 64 of file GRL2IvpOdeSolver.hpp.
std::vector<double> GRL2IvpOdeSolver::mEvalF [private] |
Working memory for the solver
Definition at line 79 of file GRL2IvpOdeSolver.hpp.
Referenced by CalculateNextYValue().
std::vector<double> GRL2IvpOdeSolver::mPartialF [private] |
Working memory for the solver
Definition at line 82 of file GRL2IvpOdeSolver.hpp.
Referenced by CalculateNextYValue().
std::vector<double> GRL2IvpOdeSolver::mTemp [private] |
Working memory for the solver
Definition at line 85 of file GRL2IvpOdeSolver.hpp.
Referenced by CalculateNextYValue().
std::vector<double> GRL2IvpOdeSolver::mYinit [private] |
Working memory for the solver
Definition at line 88 of file GRL2IvpOdeSolver.hpp.
Referenced by CalculateNextYValue().