Skip to content
Snippets Groups Projects

Fixed bug where performance_assessment stalls due to aero returning a NaN as drag

Merged Philipp Hansmann requested to merge fix/performance_assessment_aero_nan into develop
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -216,6 +216,9 @@ double aircraft::ROC(double Mass, double Alt, double Mach, double fACC, string C
} catch (const std::string& e) {
tempDrag = ac_thrust; // In case of missing polar data a gamma of 0 is forced
}
if (std::isnan(tempDrag)) {
tempDrag = ac_thrust; // In case of missing polar data (but NaN-flavoured)
}
double tempGamma = asin((ac_thrust - tempDrag) / (G_FORCE * Mass) / (1. + fACC)); // because not with const. TAS but with const. IAS or Ma is risen
//--> Introduction of facc: Commutation factor: facc = V/g * dV/dh; see table 11.1 p.232
double tempLiftCoefficient = 2.*(G_FORCE * Mass * cos(tempGamma))
Loading