Aerospace Control Framework 1.0
|
Aircraft engine model. More...
#include <sc_ac_engine.h>
Public Member Functions | |
AC_Engine (void) | |
Constructor. | |
void | Initialize (char *filename) |
Initialize with a filename. More... | |
void | Update (double h, double m) |
Update the model with. More... | |
double | get_thrust (void) |
Get the thrust. More... | |
double | get_sfc (void) |
Get the specific fuel consumption. More... | |
Aircraft engine model. This uses a table of data passed in from a file. The table is two dimensional and is a function of altitude and mach number.
void AC_Engine::Initialize | ( | char * | filename | ) |
Initialize the model from an ASCII text engine data file.
The first line is the mach number, the second is the altitude. From the altitude we get the number of rows. We then read in two matrices.
void AC_Engine::Update | ( | double | h, |
double | m | ||
) |
Update the thrust given the altitude and mach number.
h | Altitude |
m | Mach number |
double AC_Engine::get_thrust | ( | void | ) |
Get the current thrust.
double AC_Engine::get_sfc | ( | void | ) |
Get the current SFC.