Left a really annoying extra line of debug in BarromanCalcualtor.

Somehow managed to have two offseting (in the case of this rocket, anyway) typos in pressure drop calculation.
This commit is contained in:
JoePfeiffer 2022-04-27 21:46:41 -06:00
parent d0348726d3
commit 61e57eacb5
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