correct calculation of subsonic interpolation for nose cone pressure drag

This commit is contained in:
JoePfeiffer 2021-12-27 12:44:16 -07:00
parent f78b6326ee
commit 8f58da4516
2 changed files with 2 additions and 2 deletions

View File

@ -398,8 +398,8 @@ public class SymmetricComponentCalc extends RocketComponentCalc {
}
// Cd = a*M^b + cdMach0
double a = minValue - cdMach0;
double b = minDeriv / a;
final double b = min * minDeriv / (minValue - cdMach0);
final double a = (minValue - cdMach0) / Math.pow(min, b);
for (double m = 0; m < minValue; m += 0.05) {
interpolator.addPoint(m, a * Math.pow(m, b) + cdMach0);