FlightGear next
JSBSim::FGRKFehlberg Class Reference

Runge-Kutta-Fehlberg method. More...

#include <FGRungeKutta.h>

Inherits JSBSim::FGRungeKutta.

Public Member Functions

 FGRKFehlberg ()
 
virtual ~FGRKFehlberg ()
 
double getEpsilon ()
 
int getShrinkAvail ()
 
void setEpsilon (double e)
 
void setShrinkAvail (int s)
 
- Public Member Functions inherited from JSBSim::FGRungeKutta
int init (double x_start, double x_end, int intervals=4)
 
double evolve (double y_0, FGRungeKuttaProblem *pf)
 
double getXEnd ()
 
double getError ()
 
int getStatus ()
 
int getIterations ()
 
void clearStatus ()
 
void setTrace (bool t)
 

Additional Inherited Members

- Public Types inherited from JSBSim::FGRungeKutta
enum  eStates {
  eNoError =0 , eMathError =1 , eFaultyInit =2 , eEvolve =4 ,
  eUnknown =8
}
 
- Protected Member Functions inherited from JSBSim::FGRungeKutta
 FGRungeKutta ()
 
virtual ~FGRungeKutta ()
 
- Protected Attributes inherited from JSBSim::FGRungeKutta
FGRungeKuttaProblempfo
 
double h
 
double h05
 
double err
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FGRKFehlberg()

JSBSim::FGRKFehlberg::FGRKFehlberg ( )
inline

Definition at line 159 of file FGRungeKutta.h.

◆ ~FGRKFehlberg()

JSBSim::FGRKFehlberg::~FGRKFehlberg ( )
virtual

Definition at line 163 of file FGRungeKutta.cpp.

Member Function Documentation

◆ getEpsilon()

double JSBSim::FGRKFehlberg::getEpsilon ( )
inline

Definition at line 161 of file FGRungeKutta.h.

◆ getShrinkAvail()

int JSBSim::FGRKFehlberg::getShrinkAvail ( )
inline

Definition at line 162 of file FGRungeKutta.h.

◆ setEpsilon()

void JSBSim::FGRKFehlberg::setEpsilon ( double e)
inline

Definition at line 163 of file FGRungeKutta.h.

◆ setShrinkAvail()

void JSBSim::FGRKFehlberg::setShrinkAvail ( int s)
inline

Definition at line 164 of file FGRungeKutta.h.


The documentation for this class was generated from the following files: