#include <RungeKutta4IvpOdeSolver.hpp>
Protected Member Functions | |
void | CalculateNextYValue (AbstractOdeSystem *pAbstractOdeSystem, double timeStep, double time, std::vector< double > ¤tYValues, std::vector< double > &nextYValues) |
Private Attributes | |
std::vector< double > | k1 |
std::vector< double > | k2 |
std::vector< double > | k3 |
std::vector< double > | k4 |
std::vector< double > | yki |
Definition at line 42 of file RungeKutta4IvpOdeSolver.hpp.
void RungeKutta4IvpOdeSolver::CalculateNextYValue | ( | AbstractOdeSystem * | pAbstractOdeSystem, | |
double | timeStep, | |||
double | time, | |||
std::vector< double > & | currentYValues, | |||
std::vector< double > & | nextYValues | |||
) | [protected, virtual] |
Concrete RungeKutta4IvpOdeSolver class. Solves a system of ODEs using the Runge Kutta 4th Order Initial Value Problem Ordinary Differential Equation Solver
To be used in the form:
RungeKutta4IvpOdeSolver mySolver
OdeSolution solution=mySolver.Solve(pMyOdeSystem, yInit, StartTime, EndTime, TimeStep, SamplingTime);
See documentation for AbstractOneStepIvpOdeSolver::Solve()
Implements AbstractOneStepIvpOdeSolver.
Definition at line 54 of file RungeKutta4IvpOdeSolver.cpp.
References AbstractOdeSystem::EvaluateYDerivatives(), and AbstractOdeSystem::GetNumberOfStateVariables().