#include <RungeKutta4.hpp>
Inheritance diagram for RungeKutta4:


Integrations use a fixed step-size.
Definition at line 50 of file RungeKutta4.hpp.
Public Member Functions | |
| RungeKutta4 (const Matrix< double > &initialState, double initialTime=0, double timeEpsilon=1e-18) | |
| Constructor. | |
| void | integrateTo (double nextTime, double stepSize=0) |
| The classic Runge Kutta 4th Order Integration Algorithm. | |
| void | integrateTo (double nextTime, Matrix< double > &error, double stepSize=0) |
| The classic Runge Kutta 4th-5th Order Integration Algorithm. | |
| virtual gpstk::Matrix< double > & | derivative (long double time, const gpstk::Matrix< double > &inState, gpstk::Matrix< double > &inStateDot)=0 |
| This is the function to be integrated. | |
| double | getTime (void) |
| Return the currnet time of the system. | |
| const Matrix< double > & | getState (void) |
| Return the current state of the system. | |
Protected Attributes | |
| double | currentTime |
| Current time of the system. | |
| gpstk::Matrix< double > | currentState |
| State of the system at the current time. | |
| double | teps |
| int | M |
| int | N |
|
||||||||||||||||
|
Constructor.
Definition at line 60 of file RungeKutta4.hpp. |
|
||||||||||||||||
|
This is the function to be integrated.
Implemented in PendulumIntegrator. Referenced by RungeKutta4::integrateTo(). |
|
|
Return the current state of the system.
Definition at line 107 of file RungeKutta4.hpp. Referenced by main(). |
|
|
Return the currnet time of the system.
Definition at line 103 of file RungeKutta4.hpp. Referenced by main(). |
|
||||||||||||||||
|
The classic Runge Kutta 4th-5th Order Integration Algorithm. This function integrates by applying a 4th order Runge Kutta algorithm multiple times. This provides two benefits. First, an estimate of the truncation error is returned. Second, the multiple 4th order estimates are combined to produce the 5th order estimate.
Definition at line 78 of file RungeKutta4.cpp. References RungeKutta4::currentState, and RungeKutta4::integrateTo(). |
|
||||||||||||
|
The classic Runge Kutta 4th Order Integration Algorithm. This routine integrates using a Runge Kutta 4th order algorithm with a fixed step from the internal time to nextTime.
Definition at line 34 of file RungeKutta4.cpp. References RungeKutta4::currentState, and RungeKutta4::derivative(). Referenced by RungeKutta4::integrateTo(), and main(). |
|
|
State of the system at the current time.
Definition at line 116 of file RungeKutta4.hpp. Referenced by RungeKutta4::integrateTo(). |
|
|
Current time of the system.
Definition at line 113 of file RungeKutta4.hpp. |
|
|
Definition at line 119 of file RungeKutta4.hpp. |
|
|
Definition at line 120 of file RungeKutta4.hpp. |
|
|
Definition at line 118 of file RungeKutta4.hpp. |
1.3.9.1