Typo in for-loop had interpolation only through very botton of subsonic range

This commit is contained in:
JoePfeiffer 2022-01-09 13:57:07 -07:00
parent 8f58da4516
commit 5412f89419

View File

@ -401,7 +401,7 @@ public class SymmetricComponentCalc extends RocketComponentCalc {
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) {
for (double m = 0; m < min; m += 0.05) {
interpolator.addPoint(m, a * Math.pow(m, b) + cdMach0);
}
}