Aerospace Control Framework 1.0
Public Member Functions | List of all members
AC_Engine Class Reference

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...
 

Detailed Description

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.

Member Function Documentation

◆ Initialize()

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.

◆ Update()

void AC_Engine::Update ( double  h,
double  m 
)

Update the thrust given the altitude and mach number.

Parameters
hAltitude
mMach number

◆ get_thrust()

double AC_Engine::get_thrust ( void  )

Get the current thrust.

Returns
Thrust

◆ get_sfc()

double AC_Engine::get_sfc ( void  )

Get the current SFC.

Returns
SFC