Skip to content
Snippets Groups Projects
Commit 5015c627 authored by philipphansmann's avatar philipphansmann
Browse files

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

parent 33faa140
No related branches found
No related tags found
5 merge requests!263Apply 1 suggestion(s) to 1 file(s),!261Reintruduced automatic flight condition selection,!245Apply 1 suggestion(s) to 1 file(s),!233Initial open source version,!218Fixed bug where performance_assessment stalls due to aero returning a NaN as drag
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment