Merge pull request #1314 from JoePfeiffer/cleanup-1207
Two little cleanups in tube fin stuff.
This commit is contained in:
commit
c5f4b401c3
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user