Merge pull request #1314 from JoePfeiffer/cleanup-1207

Two little cleanups in tube fin stuff.
This commit is contained in:
Joe Pfeiffer 2022-04-27 21:48:51 -06:00 committed by GitHub
commit c5f4b401c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -585,7 +585,6 @@ public class BarrowmanCalculator extends AbstractAerodynamicCalculator {
final InstanceMap imap = configuration.getActiveInstances();
for(Map.Entry<RocketComponent, ArrayList<InstanceContext>> entry: imap.entrySet() ) {
final RocketComponent c = entry.getKey();
log.debug("component " + c);
if (!c.isAerodynamic())
continue;

View File

@ -35,7 +35,7 @@ public abstract class TubeCalc extends RocketComponentCalc {
final double Q = conditions.getVelocity() * refArea;
// pressure drop
final double deltap = 1.6 * 1000 * Math.pow(Q, 1.85) * Math.pow(Q, 1.85) * length /
final double deltap = 1.6 * Math.pow(Q, 1.85) * length /
(Math.pow(diameter, 5) * conditions.getAtmosphericConditions().getPressure());
// convert to CD and return