#include <RungeKutta2IvpOdeSolver.hpp>
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 |
Definition at line 44 of file RungeKutta2IvpOdeSolver.hpp.
RungeKutta2IvpOdeSolver::RungeKutta2IvpOdeSolver | ( | ) | [inline] |
Constructor.
Definition at line 85 of file RungeKutta2IvpOdeSolver.hpp.
void RungeKutta2IvpOdeSolver::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 57 of file RungeKutta2IvpOdeSolver.hpp.
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.
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 AbstractOdeSystem::GetNumberOfStateVariables().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractOneStepIvpOdeSolver.
Definition at line 49 of file RungeKutta2IvpOdeSolver.hpp.