]> git.mxchange.org Git - flightgear.git/commitdiff
Add the abillity to attach a propeller thruster to a turbine engine
authorehofman <ehofman>
Sat, 26 Jul 2003 09:12:54 +0000 (09:12 +0000)
committerehofman <ehofman>
Sat, 26 Jul 2003 09:12:54 +0000 (09:12 +0000)
src/FDM/JSBSim/FGSimTurbine.cpp
src/FDM/JSBSim/FGSimTurbine.h
src/FDM/JSBSim/FGTurbine.h

index 69fca04a9b8a709c079bbbdb307bcbef5f980fff..c6f00f64ea9dfeb2b00f2301bf829c519faba632 100644 (file)
@@ -155,6 +155,14 @@ double FGSimTurbine::CalcFuelNeed(void)
   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;
+}
 
 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
index 76e79624f7d013feca772b404a423ec19ac35101..6233ba6a6aefec4cefba2211b57a458d11c6bdcf 100644 (file)
@@ -63,6 +63,7 @@ public:
 
   double Calculate(double);
   double CalcFuelNeed(void);
+  double GetPowerAvailable(void);
   
 private:
 
index 9f660a4444270a0e1af3a0cc2835c5054ce0e598..31e662913ac9e555d36584ef50d5852185342259 100644 (file)
@@ -62,6 +62,7 @@ public:
   ~FGTurbine();
 
   double Calculate(double);
+  double GetPowerAvailable(void) { return PowerCommand; }
 
 private:
   typedef vector<FGCoefficient*> CoeffArray;