Merge pull request #1057 from SiboVG/issue-1044

[fixes #1044] Correct cdMach1 for ogive nose interpolator
This commit is contained in:
Joe Pfeiffer 2021-11-04 13:59:12 -06:00 committed by GitHub
commit b4916bc274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -415,10 +415,11 @@ public class SymmetricComponentCalc extends RocketComponentCalc {
LinearInterpolator interpolator = new LinearInterpolator();
// In the range M = 1 ... 1.3 use polynomial approximation
double cdMach1 = 2.1 * pow2(sinphi) + 0.6019 * sinphi;
double cdMach1 = sinphi;
double cdMach1_3 = 2.1 * pow2(sinphi) + 0.6019 * sinphi;
double[] poly = conicalPolyInterpolator.interpolator(
1.0 * sinphi, cdMach1,
cdMach1, cdMach1_3,
4 / (GAMMA + 1) * (1 - 0.5 * cdMach1), -1.1341 * sinphi
);