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:
parent
d0348726d3
commit
61e57eacb5
@ -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