45 #define ID_TURBINE "$Id: FGTurbine.h,v 1.26 2015/09/27 10:07:53 bcoconni Exp $" 173 enum phaseType { tpOff, tpRun, tpSpinUp, tpStart, tpStall, tpSeize, tpTrim };
177 double GetPowerAvailable(
void);
184 double Seek(
double* var,
double target,
double accel,
double decel);
186 phaseType GetPhase(
void) {
return phase; }
188 bool GetOvertemp(
void)
const {
return Overtemp; }
189 bool GetInjection(
void)
const {
return Injection;}
190 bool GetFire(
void)
const {
return Fire; }
191 bool GetAugmentation(
void)
const {
return Augmentation;}
192 bool GetReversed(
void)
const {
return Reversed; }
193 bool GetCutoff(
void)
const {
return Cutoff; }
194 int GetIgnition(
void)
const {
return Ignition;}
196 double GetInlet(
void)
const {
return InletPosition; }
197 double GetNozzle(
void)
const {
return NozzlePosition; }
198 double GetBleedDemand(
void)
const {
return BleedDemand;}
199 double GetN1(
void)
const {
return N1;}
200 double GetN2(
void)
const {
return N2;}
201 double GetEPR(
void)
const {
return EPR;}
202 double GetEGT(
void)
const {
return EGT_degC;}
204 double GetMaxN1(
void)
const {
return MaxN1;}
205 double GetMaxN2(
void)
const {
return MaxN2;}
206 double getOilPressure_psi ()
const {
return OilPressure_psi;}
208 double GetInjectionTimer(
void)
const {
return InjectionTimer;}
209 double GetInjWaterNorm(
void)
const {
return InjWaterNorm;}
210 double GetInjN1increment(
void)
const {
return InjN1increment;}
211 double GetInjN2increment(
void)
const {
return InjN2increment;}
213 void SetInjection(
bool injection) {Injection = injection;}
214 void SetIgnition(
int ignition) {Ignition = ignition;}
215 void SetAugmentation(
bool augmentation) {Augmentation = augmentation;}
216 void SetPhase( phaseType p ) { phase = p; }
217 void SetEPR(
double epr) {EPR = epr;}
218 void SetBleedDemand(
double bleedDemand) {BleedDemand = bleedDemand;}
219 void SetReverse(
bool reversed) { Reversed = reversed; }
220 void SetCutoff(
bool cutoff) { Cutoff = cutoff; }
221 void SetMaxN1(
double maxn1) {MaxN1 = maxn1;}
222 void SetMaxN2(
double maxn2) {MaxN2 = maxn2;}
223 void SetInjectionTimer(
double injtimer) {InjectionTimer = injtimer;}
224 void SetInjWaterNorm(
double injwater) {InjWaterNorm = injwater;}
225 void SetInjN1increment(
double injN1inc) {InjN1increment = injN1inc;}
226 void SetInjN2increment(
double injN2inc) {InjN2increment = injN2inc;}
228 int InitRunning(
void);
231 std::string GetEngineLabels(
const std::string& delimiter);
232 std::string GetEngineValues(
const std::string& delimiter);
273 double OilPressure_psi;
276 double InletPosition;
277 double NozzlePosition;
278 double correctedTSFC;
279 double InjectionTimer;
280 double InjectionTime;
282 double InjN1increment;
283 double InjN2increment;
301 void Debug(
int from);
static double KelvinToFahrenheit(double kelvin)
Converts from degrees Kelvin to degrees Fahrenheit.
double Seek(double *var, double target, double accel, double decel)
A lag filter.
void Calculate(void)
Calculates the thrust of the engine, and other engine functions.
This class models a turbine engine.
void ResetToIC(void)
Resets the Engine parameters to the initial conditions.
FGTurbine(FGFDMExec *Executive, Element *el, int engine_number, struct Inputs &input)
Constructor.
double CalcFuelNeed(void)
The fuel need is calculated based on power levels and flow rate for that power level.
Represents a mathematical function.
Base class for all engines.
Encapsulates the JSBSim simulation executive.