![]() |
JSBSim Flight Dynamics Model 1.2.3 (07 Jun 2025)
An Open Source Flight Dynamics and Control Software Library in C++
|
Runge-Kutta-Fehlberg method.
This is a semi adaptive implementation of rkf - the interval only shrinks. As a result interval calculations remain trivial, but sometimes too many calculations are performed. Rationale: this code is not meant to be a universal pain-reliever for ode's. Rather it provides some safety if the number of intervals is set too low, or the problem function behaves a bit nasty in rare conditions.
Definition at line 156 of file FGRungeKutta.h.
#include <FGRungeKutta.h>
Inheritance diagram for FGRKFehlberg:
Collaboration diagram for FGRKFehlberg:Public Member Functions | |
| double | getEpsilon () |
| int | getShrinkAvail () |
| void | setEpsilon (double e) |
| void | setShrinkAvail (int s) |
Public Member Functions inherited from FGRungeKutta | |
| void | clearStatus () |
| double | evolve (double y_0, FGRungeKuttaProblem *pf) |
| double | getError () |
| int | getIterations () |
| int | getStatus () |
| double | getXEnd () |
| int | init (double x_start, double x_end, int intervals=4) |
| void | setTrace (bool t) |
Additional Inherited Members | |
Public Types inherited from FGRungeKutta | |
| enum | eStates { eNoError =0 , eMathError =1 , eFaultyInit =2 , eEvolve =4 , eUnknown =8 } |
Protected Attributes inherited from FGRungeKutta | |
| double | err |
| double | h |
| double | h05 |
| FGRungeKuttaProblem * | pfo |
|
inline |
Definition at line 159 of file FGRungeKutta.h.
|
virtual |
Definition at line 163 of file FGRungeKutta.cpp.
|
inline |
Definition at line 161 of file FGRungeKutta.h.
|
inline |
Definition at line 162 of file FGRungeKutta.h.
|
inline |
Definition at line 163 of file FGRungeKutta.h.
|
inline |
Definition at line 164 of file FGRungeKutta.h.