FlightGear next
JSBSim::FGRungeKutta Class Referenceabstract

Abstract base. More...

#include <FGRungeKutta.h>

Inherited by JSBSim::FGRK4, and JSBSim::FGRKFehlberg.

Public Types

enum  eStates {
  eNoError =0 , eMathError =1 , eFaultyInit =2 , eEvolve =4 ,
  eUnknown =8
}
 

Public Member Functions

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)
 

Protected Member Functions

 FGRungeKutta ()
 
virtual ~FGRungeKutta ()
 

Protected Attributes

FGRungeKuttaProblempfo
 
double h
 
double h05
 
double err
 

Detailed Description

Abstract base.

Definition at line 78 of file FGRungeKutta.h.

Member Enumeration Documentation

◆ eStates

Enumerator
eNoError 
eMathError 
eFaultyInit 
eEvolve 
eUnknown 

Definition at line 82 of file FGRungeKutta.h.

Constructor & Destructor Documentation

◆ FGRungeKutta()

JSBSim::FGRungeKutta::FGRungeKutta ( )
inlineprotected

Definition at line 98 of file FGRungeKutta.h.

◆ ~FGRungeKutta()

JSBSim::FGRungeKutta::~FGRungeKutta ( )
protectedvirtual

Definition at line 54 of file FGRungeKutta.cpp.

Member Function Documentation

◆ clearStatus()

void JSBSim::FGRungeKutta::clearStatus ( )
inline

Definition at line 93 of file FGRungeKutta.h.

◆ evolve()

double JSBSim::FGRungeKutta::evolve ( double y_0,
FGRungeKuttaProblem * pf )

Definition at line 89 of file FGRungeKutta.cpp.

◆ getError()

double JSBSim::FGRungeKutta::getError ( )
inline

Definition at line 89 of file FGRungeKutta.h.

◆ getIterations()

int JSBSim::FGRungeKutta::getIterations ( )
inline

Definition at line 92 of file FGRungeKutta.h.

◆ getStatus()

int JSBSim::FGRungeKutta::getStatus ( )
inline

Definition at line 91 of file FGRungeKutta.h.

◆ getXEnd()

double JSBSim::FGRungeKutta::getXEnd ( )
inline

Definition at line 88 of file FGRungeKutta.h.

◆ init()

int JSBSim::FGRungeKutta::init ( double x_start,
double x_end,
int intervals = 4 )

Definition at line 56 of file FGRungeKutta.cpp.

◆ setTrace()

void JSBSim::FGRungeKutta::setTrace ( bool t)
inline

Definition at line 94 of file FGRungeKutta.h.

Member Data Documentation

◆ err

double JSBSim::FGRungeKutta::err
protected

Definition at line 105 of file FGRungeKutta.h.

◆ h

double JSBSim::FGRungeKutta::h
protected

Definition at line 103 of file FGRungeKutta.h.

◆ h05

double JSBSim::FGRungeKutta::h05
protected

Definition at line 104 of file FGRungeKutta.h.

◆ pfo

FGRungeKuttaProblem* JSBSim::FGRungeKutta::pfo
protected

Definition at line 101 of file FGRungeKutta.h.


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