You poke a pitot tube into a duct at 25 points, get 25 velocity pressures and want one airflow. There are two ways to write the averaging step. They look equivalent. One of them is always too high, and the worse the duct, the worse the lie.
The formula for standard air:
V = 4005 * sqrt(VP) # V in fpm, VP in in. w.c.
For a single point you can check it against a velocity pressure calculator: 1,200 fpm should give about 0.090 in. w.c. The trouble starts when you have more than one point, because the square root isn't linear:
right: mean(sqrt(vp))
wrong: sqrt(mean(vp))
The code
from math import sqrt
from statistics import mean, pstdev
def velocity_fpm(vp, density=0.075):
"""Air velocity (fpm) from velocity pressure (in. w.c.); density in lb/ft3."""
if vp < 0:
raise ValueError("negative VP: re-check the probe, don't abs() it")
return 4005 * sqrt(vp * 0.075 / density)
def traverse(vps, density=0.075):
"""Equal-weight traverse points -> (right average, wrong average, CV)."""
speeds = [velocity_fpm(vp, density) for vp in vps]
right = mean(speeds) # root each point, then average
wrong = velocity_fpm(mean(vps), density) # average VP, then root
return right, wrong, pstdev(speeds) / right
# 25 points, 24 x 24 in duct (example readings, in. w.c.)
LONG_RUN = [0.082, 0.098, 0.102, 0.097, 0.081,
0.099, 0.118, 0.123, 0.117, 0.098,
0.103, 0.122, 0.127, 0.123, 0.102,
0.098, 0.117, 0.123, 0.118, 0.099,
0.081, 0.097, 0.102, 0.098, 0.082]
AFTER_ELBOW = [0.010, 0.012, 0.014, 0.012, 0.010,
0.022, 0.026, 0.030, 0.026, 0.022,
0.070, 0.082, 0.090, 0.082, 0.070,
0.160, 0.185, 0.200, 0.185, 0.160,
0.230, 0.260, 0.275, 0.260, 0.230]
AREA = 24 * 24 / 144 # ft2
for name, vps in (("long straight run", LONG_RUN), ("just after elbow", AFTER_ELBOW)):
right, wrong, cv = traverse(vps)
print(f"{name:18s} {right:6.0f} fpm {right * AREA:6.0f} CFM | "
f"avg-VP shortcut {wrong * AREA:6.0f} CFM +{(wrong / right - 1) * 100:.1f}% CV {cv:.2f}")
print()
for cv in (0.1, 0.2, 0.3, 0.4, 0.5):
print(f"CV {cv:.1f} shortcut reads {(sqrt(1 + cv * cv) - 1) * 100:4.1f}% high")
print()
for rho in (0.075, 0.0625, 0.0602):
print(f"density {rho:.4f} VP 0.100 -> {velocity_fpm(0.1, rho):5.0f} fpm")
Output:
long straight run 1290 fpm 5161 CFM | avg-VP shortcut 5173 CFM +0.2% CV 0.07
just after elbow 1176 fpm 4705 CFM | avg-VP shortcut 5287 CFM +12.4% CV 0.51
CV 0.1 shortcut reads 0.5% high
CV 0.2 shortcut reads 2.0% high
CV 0.3 shortcut reads 4.4% high
CV 0.4 shortcut reads 7.7% high
CV 0.5 shortcut reads 11.8% high
density 0.0750 VP 0.100 -> 1266 fpm
density 0.0625 VP 0.100 -> 1387 fpm
density 0.0602 VP 0.100 -> 1414 fpm
What happened
Both data sets are example readings from a 24 x 24 in duct (4 ft²), 25 equal-weight points.
In the long straight run the profile is nearly flat. The shortcut gives 5,173 CFM instead of 5,161. That's 0.2%, so nobody would ever catch it.
Just after an elbow, the air piles up on one side. The points run from 0.010 to 0.275 in. w.c. Root each point first and you get 4,705 CFM. Average the pressures first and you get 5,287. The shortcut reports 582 CFM that don't exist.
So the bug hides in good data and shows up in bad data, which is the worst kind of bug.
The error has a closed form
Since VP is proportional to V², averaging VP first gives you the root mean square of the velocities. And RMS relates to the mean like this:
rms / mean = sqrt(1 + CV²)
CV is the coefficient of variation: the population standard deviation of the point velocities divided by their mean. That's why the code uses pstdev and not stdev. With the elbow's CV of 0.51, sqrt(1 + 0.51²) is about 1.12, which matches the run.
Two things follow:
- The shortcut is never low. It's exact only if every point reads the same.
- The error is quadratic in CV. At 0.1 it's 0.5%. At 0.5 it's almost 12%.
It isn't just a style preference either. EPA Method 2, the US reference method for stack velocity, builds the average from the square roots of the individual readings (Eq. 2-7 in 40 CFR 60, Appendix A-1).
Two more traps in one function
Negative readings. Near an elbow or a damper you can get reverse flow, and the manometer shows a minus. abs() turns backward air into forward air. The function raises instead, so a person has to look at the point.
Density. 4005 is for standard air, 0.075 lb/ft³. Thinner air moves faster for the same pressure. At 0.0625 lb/ft³ the same 0.100 in. w.c. means 1,387 fpm instead of 1,266. That correction multiplies every point equally, so it won't hide or fix the averaging error.
Fixing the math doesn't fix the location
The right average of a bad traverse is still a bad traverse. The first row after the elbow reads 0.010 to 0.014 in. w.c., roughly 400 to 470 fpm. The ASHRAE Handbook chapter on testing and balancing says a pitot tube with an inclined or vertical manometer isn't meant for velocities below 600 fpm, so those five points are mostly instrument noise.
A high CV is a useful alarm for that. If it comes out near 0.5, move the traverse to a longer straight run before arguing about the last 1%.
Quick rule
Root first, then average. And print the CV next to the airflow: it tells you how much the averaging order matters and whether the location deserves trust at all.
Your turn: where else have you seen someone average before a nonlinear step? dB, RMS current, fuel economy in mpg? Drop your favorite in the comments.
Top comments (0)