47 #include "math/FGTable.h" 49 #define ID_TURBOPROP "$Id: FGTurboProp.h,v 1.25 2017/02/26 11:41:28 bcoconni Exp $" 105 enum phaseType { tpOff, tpRun, tpSpinUp, tpStart, tpTrim };
110 double GetPowerAvailable(
void)
const {
return (HP * hptoftlbssec); }
111 double GetRPM(
void)
const {
return RPM; }
112 double GetIeluThrottle(
void)
const {
return (ThrottlePos); }
113 bool GetIeluIntervent(
void)
const {
return Ielu_intervent; }
115 double Seek(
double* var,
double target,
double accel,
double decel);
116 double ExpSeek(
double* var,
double target,
double accel,
double decel);
118 phaseType GetPhase(
void)
const {
return phase; }
120 bool GetReversed(
void)
const {
return Reversed; }
121 bool GetCutoff(
void)
const {
return Cutoff; }
123 double GetN1(
void)
const {
return N1;}
124 double GetITT(
void)
const {
return Eng_ITT_degC;}
125 double GetEngStarting(
void)
const {
return EngStarting; }
127 double getOilPressure_psi ()
const {
return OilPressure_psi;}
130 inline bool GetGeneratorPower(
void)
const {
return GeneratorPower; }
131 inline int GetCondition(
void)
const {
return Condition; }
133 void SetPhase( phaseType p ) { phase = p; }
134 void SetReverse(
bool reversed) { Reversed = reversed; }
135 void SetCutoff(
bool cutoff) { Cutoff = cutoff; }
137 inline void SetGeneratorPower(
bool gp) { GeneratorPower=gp; }
138 inline void SetCondition(
bool c) { Condition=c; }
139 int InitRunning(
void);
140 std::string GetEngineLabels(
const std::string& delimiter);
141 std::string GetEngineValues(
const std::string& delimiter);
155 double OilPressure_psi;
158 double Ielu_max_torque;
162 double BetaRangeThrottleEnd;
163 double ReverseMaxPower;
165 double Idle_Max_Delay;
168 double MaxStartingTime;
171 double CombustionEfficiency;
179 double Eng_Temperature;
191 void SetDefaults(
void);
194 void Debug(
int from);
199 FGTable* CombustionEfficiency_N1;
~FGTurboProp()
Destructor.
static double KelvinToFahrenheit(double kelvin)
Converts from degrees Kelvin to degrees Fahrenheit.
double CalcFuelNeed(void)
The fuel need is calculated based on power levels and flow rate for that power level.
FGTurboProp(FGFDMExec *Executive, Element *el, int engine_number, struct Inputs &input)
Constructor.
Represents various types of parameters.
Base class for all engines.
Encapsulates the JSBSim simulation executive.
void Calculate(void)
Calculates the thrust of the engine, and other engine functions.