diff --git a/src/FDM/JSBSim/FGSimTurbine.cpp b/src/FDM/JSBSim/FGSimTurbine.cpp index 69fca04a9..c6f00f64e 100644 --- a/src/FDM/JSBSim/FGSimTurbine.cpp +++ b/src/FDM/JSBSim/FGSimTurbine.cpp @@ -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; +} //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/src/FDM/JSBSim/FGSimTurbine.h b/src/FDM/JSBSim/FGSimTurbine.h index 76e79624f..6233ba6a6 100644 --- a/src/FDM/JSBSim/FGSimTurbine.h +++ b/src/FDM/JSBSim/FGSimTurbine.h @@ -63,6 +63,7 @@ public: double Calculate(double); double CalcFuelNeed(void); + double GetPowerAvailable(void); private: diff --git a/src/FDM/JSBSim/FGTurbine.h b/src/FDM/JSBSim/FGTurbine.h index 9f660a444..31e662913 100644 --- a/src/FDM/JSBSim/FGTurbine.h +++ b/src/FDM/JSBSim/FGTurbine.h @@ -62,6 +62,7 @@ public: ~FGTurbine(); double Calculate(double); + double GetPowerAvailable(void) { return PowerCommand; } private: typedef vector CoeffArray;