X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FJSBSim%2FFGTurbine.h;h=a7c488bc6f07138d14903bfafa475062a942722f;hb=95440173caef3ce92ee7308fd58a24dabe4c5f8a;hp=25bcedbd3613038c7cd0b7696d6d3c3c426b66f2;hpb=3f459636fdaa0abd94d81e488116ee92ebb47cff;p=flightgear.git diff --git a/src/FDM/JSBSim/FGTurbine.h b/src/FDM/JSBSim/FGTurbine.h index 25bcedbd3..a7c488bc6 100644 --- a/src/FDM/JSBSim/FGTurbine.h +++ b/src/FDM/JSBSim/FGTurbine.h @@ -27,10 +27,6 @@ HISTORY -------------------------------------------------------------------------------- 08/23/2002 JSB Created -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -COMMENTS, REFERENCES, and NOTES -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SENTRY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ @@ -42,11 +38,19 @@ SENTRY INCLUDES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ +#include #include "FGEngine.h" #include "FGConfigFile.h" +#include "FGCoefficient.h" #define ID_TURBINE "$Id$" +/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +FORWARD DECLARATIONS +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ + +namespace JSBSim { + /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CLASS DECLARATION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ @@ -58,8 +62,22 @@ public: ~FGTurbine(); double Calculate(double); - + double GetPowerAvailable(void) { return PowerCommand; } + private: + typedef vector CoeffArray; + CoeffArray ThrustTables; + + string name; + double MaxMilThrust; + double MaxAugThrust; + + double PowerCommand; + + double ThrottleToPowerCommand(double throttle); + double PowerLag(double actual_power, double power_command); + double rtau(double delta_power); + void doInlet(void); void doCompressor(void); void doBleedDuct(void); @@ -69,11 +87,11 @@ private: void doTransition(void); - bool Load(FGConfigFile *AC_cfg); + bool Load(FGConfigFile *ENG_cfg); void Debug(int from); }; - +} //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #endif