]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/TurbineEngine.cpp
Fix stall widths for the "auxilliary" (reverse flow) stalls so they
[flightgear.git] / src / FDM / YASim / TurbineEngine.cpp
index 6e489bbb49324a0019fee8f9e99b2181d8c2a110..9b62b607ce1c251c118ee031ec877596a3b7334a 100644 (file)
@@ -12,7 +12,7 @@ TurbineEngine::TurbineEngine(float power, float omega, float alt,
     _rho0 = Atmosphere::getStdDensity(0);
     _maxTorque = (power/omega) * _rho0 / Atmosphere::getStdDensity(alt);
     _flatRating = flatRating;
-    _bsfc = 0.047; // == 0.5 lb/hr per hp
+    _bsfc = 8.47e-08; // in kg/s per watt == 0.5 lb/hr per hp
     _n2LowIdle = 50;
     _n2HighIdle = 70;
     _n2Max = 100;
@@ -30,7 +30,7 @@ void TurbineEngine::setOutputFromN2()
 {
     float frac = (_n2 - _n2Min) / (_n2Max - _n2Min);
     _torque = frac * _maxTorque * (_rho / _rho0);
-    _fuelFlow = _bsfc * _torque * _omega;
+    _fuelFlow = _running ? _bsfc * _torque * _omega : 0;
 }
 
 void TurbineEngine::stabilize()