CanucKev
Mechanical
- Jan 7, 2009
- 8
Hello all,
I'm trying to validate a spreadsheet we have for calculating pressure drop of gas flowing through pipe, but unfortunately the documentation is lacking - none of the "more obscure" formulas used have a source attached to them, and there's one in particular I can't find.
I've looked through a number of different resources (including GPSA and some others found here) but haven't spotted it yet - I was hoping to draw on everyone's experience just to see if this one formula looks familiar, and if anyone can identify where it's from.
The spreadsheet I'm checking uses iteration to find downstream pressure, assuming turbulent, isothermal flow of a real gas. The formula I can't find is referred to only as the "Loss Factor" and is this:
where L is the length of pipe, d is the pipe ID, P1 is the entry absolute pressure, P2 is the exit absolute pressure, and f is the Darcy friction factor found from the Haaland equation (this also wasn't documented in the spreadsheet, but we managed to track it down):
where e/D is the relative roughness and Re is the Reynold's number. Obviously all the units cancel out to make fL and f unitless.
This "loss factor" is used in a formula labelled only as "p12-p22" which actually means P12 - P22 (the units work out):
where W is the mass flow rate, A is the pipe cross-sectional area, Zavg is the average compressibility factor, T is the absolute temperature of the flow (assumed isothermal), R is the universal gas constant, and M is the molar mass of the gas. (The flow rate input in the spreadsheet is at standard conditions.)
Obviously, given P1 and (P12 - P22), it's not too much of a stretch to figure out the first iteration of P2.
Does anyone recognize these formulas, particularly the first one (the loss factor)? If so, would you be able to point me in the right direction as to where it's from? The f*L/d term makes sense to me, but the next term - two times the natural log of the ratio of upstream to downstream pressure - is throwing me off.
Thanks in advance!
I'm trying to validate a spreadsheet we have for calculating pressure drop of gas flowing through pipe, but unfortunately the documentation is lacking - none of the "more obscure" formulas used have a source attached to them, and there's one in particular I can't find.
I've looked through a number of different resources (including GPSA and some others found here) but haven't spotted it yet - I was hoping to draw on everyone's experience just to see if this one formula looks familiar, and if anyone can identify where it's from.
The spreadsheet I'm checking uses iteration to find downstream pressure, assuming turbulent, isothermal flow of a real gas. The formula I can't find is referred to only as the "Loss Factor" and is this:
fL = f*L/d + 2*ln(P1/P2)
where L is the length of pipe, d is the pipe ID, P1 is the entry absolute pressure, P2 is the exit absolute pressure, and f is the Darcy friction factor found from the Haaland equation (this also wasn't documented in the spreadsheet, but we managed to track it down):
1/sqrt(f) = -1.8*log[(e/D/3.7)^1.11 + (6.9/Re)]
where e/D is the relative roughness and Re is the Reynold's number. Obviously all the units cancel out to make fL and f unitless.
This "loss factor" is used in a formula labelled only as "p12-p22" which actually means P12 - P22 (the units work out):
(P12 - P22) = (W/A)2*(Zavg*T*R/M)*fL
where W is the mass flow rate, A is the pipe cross-sectional area, Zavg is the average compressibility factor, T is the absolute temperature of the flow (assumed isothermal), R is the universal gas constant, and M is the molar mass of the gas. (The flow rate input in the spreadsheet is at standard conditions.)
Obviously, given P1 and (P12 - P22), it's not too much of a stretch to figure out the first iteration of P2.
Does anyone recognize these formulas, particularly the first one (the loss factor)? If so, would you be able to point me in the right direction as to where it's from? The f*L/d term makes sense to me, but the next term - two times the natural log of the ratio of upstream to downstream pressure - is throwing me off.
Thanks in advance!