1 #ifndef _TURBINEENGINE_HPP
2 #define _TURBINEENGINE_HPP
8 class TurbineEngine : public Engine {
10 virtual TurbineEngine* isTurbineEngine() { return this; }
12 TurbineEngine(float power, float omega, float alt, float flatRating);
13 void setN2Range(float min, float max) { _n2Min = min; _n2Max = max; }
14 void setFuelConsumption(float bsfc) { _bsfc = bsfc; }
16 virtual void calc(float pressure, float temp, float speed);
17 virtual void stabilize();
18 virtual void integrate(float dt);
20 virtual float getTorque() { return _torque; }
21 virtual float getFuelFlow() { return _fuelFlow; }
22 float getN2() { return _n2; }
25 void setOutputFromN2();
30 float _bsfc; // SI units! kg/s per watt
36 float _fuelFlowTarget;
46 #endif // _TURBINEENGINE_HPP