Merge pull request #2567 from JoePfeiffer/fix-2543

Remove Prandtl-Glauert correction factor
This commit is contained in:
Joe Pfeiffer 2024-10-02 16:16:22 -06:00 committed by GitHub
commit 4f80d28bec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,11 +63,6 @@ public abstract class TubeCalc extends RocketComponentCalc {
// friction coefficient using Swamee-Jain equation
double f = 0.25 / MathUtil.pow2(Math.log10((epsilon / (3.7 * diameter) + 5.74 / Math.pow(Re, 0.9))));
// If we're supersonic, apply a correction
if (conditions.getMach() > 1) {
f = f / conditions.getBeta();
}
// pressure drop using Darcy-Weissbach equation
deltap = f * (length * rho * MathUtil.pow2(v)) / (2 * diameter);