Add the abillity to attach a propeller thruster to a turbine engine
This commit is contained in:
parent
860545bfa9
commit
0ff5f409c0
3 changed files with 10 additions and 0 deletions
|
@ -155,6 +155,14 @@ double FGSimTurbine::CalcFuelNeed(void)
|
||||||
return FuelFlow_pph /3600 * State->Getdt() * Propulsion->GetRate();
|
return FuelFlow_pph /3600 * State->Getdt() * Propulsion->GetRate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
double FGSimTurbine::GetPowerAvailable(void) {
|
||||||
|
if( throttle <= 0.77 )
|
||||||
|
return 64.94*throttle;
|
||||||
|
else
|
||||||
|
return 217.38*throttle - 117.38;
|
||||||
|
}
|
||||||
|
|
||||||
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ public:
|
||||||
|
|
||||||
double Calculate(double);
|
double Calculate(double);
|
||||||
double CalcFuelNeed(void);
|
double CalcFuelNeed(void);
|
||||||
|
double GetPowerAvailable(void);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,7 @@ public:
|
||||||
~FGTurbine();
|
~FGTurbine();
|
||||||
|
|
||||||
double Calculate(double);
|
double Calculate(double);
|
||||||
|
double GetPowerAvailable(void) { return PowerCommand; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef vector<FGCoefficient*> CoeffArray;
|
typedef vector<FGCoefficient*> CoeffArray;
|
||||||
|
|
Loading…
Add table
Reference in a new issue