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