Tools › Fluids and Heat Transfer › Pipe Flow › Pipe Flow


Pipe Flow

Incompressible flow of a liquid in a pipe: Reynolds number and regime, the Darcy friction factor by the Colebrook equation (iterated to 1e-12) with the Swamee–Jain and Haaland explicit values beside it and 64/Re in laminar flow, major and minor head losses (fittings by the Crane TP-410 K = n fT method or a fixed K, entered K or equivalent length), pressure drop, total dynamic head with the elevation change, hydraulic and pump power; or the flow for a given head loss (with White's explicit solution beside the iteration), or the diameter for a given flow and head loss (with the Swamee–Jain explicit formula). Water properties come from the NIST WebBook table at the entered temperature, any other liquid from an entered density and viscosity; standard Schedule 40 and 80 inside diameters and the Moody roughness values are built in. A pasted pump curve gives the operating point against the system curve and the NPSH available. The default case is Moody's 1944 chart illustration, 200 ft of 6-in asphalted cast-iron pipe at 6 ft/s (White, Fluid Mechanics, Example 6.7): head loss about 4.5 ft, pressure drop about 280 lbf/ft². The HVAC area's Hydronic Pipe Sizing tool covers multi-segment water circuits by the usual sizing limits.

  • Colebrook friction factor with the Swamee–Jain and Haaland values for comparison; laminar 64/Re; transition flagged

  • Three problems: head loss from flow or velocity, flow from head loss, diameter from flow and head loss

  • Minor losses by Crane TP-410 (K = n fT), fixed entrance and exit coefficients, entered K or equivalent length

  • Pressure drop, total dynamic head, pump power, operating point on a pasted pump curve, NPSH available, Moody chart

Pipe Flow


Unit System: /

Fluid (temperature °F in USCS, °C in SI; viscosity in cP = mPa⋅s in both systems)






Pipe






Flow






Minor Losses (Crane TP-410 fittings, entered K or equivalent length)

1

Pump (optional)








×

Pipe Flow

Friction Factor, Losses, Pump Matching

Scope

The tool treats steady, incompressible, fully developed flow of a liquid in a single pipe of constant diameter: the classic Darcy–Weisbach problem with the friction factor from the Colebrook equation, minor losses from fittings, the elevation change, the pump head and power, and the match between a pump curve and the system curve. Gases at low pressure drop (below about 10 % of the absolute pressure) can be treated the same way with their density at the mean pressure; compressible flow, two-phase flow, non-Newtonian liquids, open channels and pipe networks are outside its scope. For the sizing of a multi-segment hydronic water circuit against the usual velocity and friction-rate limits, use the HVAC area's Hydronic Pipe Sizing tool, which carries the same Colebrook friction factor through a table of segments.

Conventions and units

Lengths, diameters, flow rates, pressures and powers go through the site's unit dictionary (ft, in, gpm, psi, hp in USCS; m, mm, L/s, kPa, kW in SI, with the dropdown alternatives). Two inputs are plain numbers because the dictionary has no unit for them: the temperature (°F in USCS mode, °C in SI mode, not converted by the unit switch) and the dynamic viscosity of an "other liquid", entered in centipoise in both systems (1 cP = 1 mPa⋅s = 0.001 Pa⋅s = 2.089 × 10⁻⁵ lbf⋅s/ft² = 6.72 × 10⁻⁴ lbm/(ft⋅s)). The elevation rise is the outlet elevation minus the inlet elevation. All results are computed in SI and shown in the selected system.

Water properties

For water the density, dynamic viscosity and vapor pressure are interpolated linearly in a table of saturated-liquid values at every degree from the triple point (0.01 °C) to 100 °C, taken from the NIST Chemistry WebBook (IAPWS-95 equation of state for the density, IAPWS 2008 formulation for the viscosity). Below 100 °C the saturated-liquid values differ from those at atmospheric pressure by less than 0.01 %. A temperature outside the table is clamped to its nearest end with a note. The kinematic viscosity ν = μ/ρ is printed in ft²/s or m²/s. Moody's 1944 illustration took water at 60 °F with ν = 1.216 × 10⁻⁵ ft²/s from the tables of his day; the NIST value is 1.208 × 10⁻⁵ ft²/s, 0.7 % lower, which moves the Reynolds number by the same amount and the friction factor by far less.

Pipe dimensions and roughness

The nominal sizes give the inside diameter of ASME B36.10M carbon-steel pipe, outside diameter less twice the Schedule 40 or Schedule 80 wall (for example 2 in Sch 40: 2.375 − 2 × 0.154 = 2.067 in; 6 in Sch 40: 6.065 in). Copper tube, plastic pipe and ductile iron have other dimensions: enter their inside diameter as a custom size. The absolute roughness ε of new pipe follows Moody (1944) Fig. 2, as reproduced in White's Table 6.1: drawn tubing 0.000005 ft, commercial steel 0.00015 ft, asphalted cast iron 0.0004 ft, galvanized iron 0.0005 ft, cast iron 0.00085 ft; concrete (0.001–0.01 ft) and riveted steel (0.003–0.03 ft) are entered at the low end of their ranges and wood stave at 0.0006 ft. Moody himself warned that the roughness of a pipe in service is uncertain by far more than the chart's precision: tuberculation and scale in old water mains can multiply ε by ten, so a custom value from a field test or a design allowance is often the better input.

Reynolds number and regime

Re = ρVD/μ = VD/ν with the mean velocity V = Q/A. Below Re ≈ 2,300 the flow is laminar and the friction factor is exactly f = 64/Re (Hagen–Poiseuille), independent of roughness; above about 4,000 it is turbulent and follows the Colebrook equation; between the two it is transitional and no formula is reliable, the flow switching intermittently between the two states. The tool uses 64/Re in the laminar range, Colebrook above 4,000, and in the transition range the Colebrook value as the conservative (larger) choice, with a note.

Friction factor

Colebrook (1939) joined Prandtl's smooth-pipe law and von Kármán's fully rough law into one expression that fits the commercial-pipe data of Nikuradse and others through the transition between them:

1/√f = −2 log10[ ε/(3.7 D) + 2.51/(Re √f) ]

Moody (1944) plotted it as the chart that carries his name. The equation is implicit in f; the tool iterates on x = 1/√f (xn+1 = −2 log10[ε/(3.7D) + 2.51 xn/Re]), which converges in a dozen passes to a tolerance of 10⁻¹² starting from the Swamee–Jain value. Two explicit approximations are printed for comparison: Swamee and Jain (1976), f = 0.25 / [log10(ε/(3.7D) + 5.74/Re0.9)]², within about 1 % of Colebrook over most of the chart (up to 2.8 % at the low-Re, rough corner), and Haaland (1983), f = [−1.8 log10((ε/(3.7D))1.11 + 6.9/Re)]⁻², within 1.5 %. Either is accurate enough for design; the difference between them is a measure of how little the third digit of f means against the uncertainty of ε. The Moody chart on the results page is drawn from the same equation (Prandtl's law 1/√f = 2 log10(Re √f) − 0.8 for the smooth line, 64/Re for the laminar line) with the pipe's point marked.

Head loss and pressure drop

The Darcy–Weisbach equation gives the friction loss of the straight pipe as hf = f (L/D) V²/(2g), a head of the flowing liquid. Minor losses of fittings, valves, entrances and exits are hm = ΣK V²/(2g) with each K a loss coefficient. The total hL = hf + hm (plus the loss of any equivalent length) is the head the flow dissipates; the pressure drop in a horizontal pipe of constant diameter is Δp = ρ g hL. With an elevation rise Δz between inlet and outlet, and equal pressures and velocities at the two free surfaces, the energy equation gives the head a pump must add as H = hL + Δz (the total dynamic head); a drop larger than the losses means the flow runs by gravity. The hydraulic power is P = ρ g Q H and the shaft power P/η at the pump efficiency η.

Minor losses: the Crane method

Crane Technical Paper 410 expresses the loss coefficient of a fitting as a multiple of fT, the friction factor of clean commercial steel pipe of the same size in fully turbulent flow: K = n fT, with n = 30 for a standard 90° elbow, 16 for a 45° elbow, 14 for a 90° bend of r/d = 1.5, 20 and 60 for a tee with flow through the run and through the branch, 8 for a fully open gate valve, 340 for a globe valve, 150 for an angle valve, 3 for a full-bore ball valve, 45 for a butterfly valve of 2 to 8 in, 18 for a straightway plug valve, 100 for a swing check and 600 for a lift check valve. Crane's table of fT (0.027 at ½ in down to 0.013 at 12 in) is the fully rough value [2 log10(3.7 D/ε)]⁻² at ε = 0.00015 ft, which the tool evaluates at the pipe's actual inside diameter and uses for every material, as Crane does: the multiple n carries the size effect, the pipe's own roughness does not enter. Entrances and exits have fixed coefficients: inward-projecting 0.78, sharp-edged 0.5, well-rounded (r/d ≥ 0.15) 0.04, exit to a tank or the atmosphere 1.0 (the whole velocity head is lost). A coefficient from a manufacturer's data is entered directly, and a fitting given as an equivalent length of pipe is charged at the pipe's own friction factor. Valve coefficients vary widely between designs and with the degree of opening (a half-closed gate valve has K ≈ 2.7 rather than 8 fT ≈ 0.15); the Crane values are for fully open valves of the conventional pattern.

The three problems

Given the pipe and the flow (or the velocity), the head loss follows directly. Given the head loss and asked for the flow, V is unknown and so are Re and f; the tool iterates: starting from the fully rough f, V = √[2 g hL / (f (L + Leq)/D + ΣK)] is evaluated, Re and f recomputed, and the loop repeated until f stops changing (the passes are tabulated). With friction only the iteration is unnecessary: White (7th ed., eq. 6.51) rewrites Colebrook in terms of the parameter ζ = g D³ hf / (L ν²), which contains no unknown, so Re = −(8ζ)½ log10[ε/(3.7D) + 1.775/√ζ] directly; the page prints this value beside the iterated one. Given the flow and the head loss and asked for the diameter, the loss (f (L + Leq)/D + ΣK) 8Q²/(π² g D⁴), with f and the Crane coefficients re-evaluated at each trial diameter, decreases monotonically with D, and the tool finds D by bisection; Swamee and Jain's explicit formula, D ≈ 0.66 [ε1.25 (L Q²/(g hf))4.75 + ν Q9.4 (L/(g hf))5.2]0.04, good to about 2 %, is printed when there are no fittings, together with the nearest Schedule 40 size at or above the required diameter.

Pump matching and NPSH

The system curve Hsys(Q) = Δz + hL(Q) rises roughly with Q² (exactly so only when f is constant; the tool recomputes Colebrook at every flow). A centrifugal pump's head falls with flow; where the two curves cross is the operating point, the flow the pump will actually deliver in this system. Paste the pump curve as flow–head pairs read from the manufacturer's chart; the tool fits a natural cubic spline through them, which passes exactly through the points and is smooth between, and finds the crossing by bisection. A design flow far from the operating point means the pump is the wrong size, or a throttling valve will be doing the work. The net positive suction head available, NPSHa = (patm − pv)/(ρ g) − zlift − hsuction, is the absolute head at the pump inlet above the liquid's vapor pressure, with the suction lift positive when the pump sits above the liquid surface (negative for a flooded suction) and the suction-line losses entered separately. It must exceed the pump's NPSH required by a margin, typically 0.6 m (2 ft) or 10 %, or the liquid flashes in the impeller eye and the pump cavitates. For water the vapor pressure comes from the NIST table at the entered temperature; for another liquid enter it.

Reading the results and their precision

Moody's own illustration (200 ft of 6-in asphalted cast-iron pipe at 6 ft/s, water at 60 °F) read f ≈ 0.02 from the chart and gave a loss of 4.5 ft; the Colebrook equation gives f = 0.0199 and 4.46 ft, and White, who uses the same case as his Example 6.7, quotes a pressure drop of about 280 lbf/ft². The difference is the precision of a chart reading. Moody put the uncertainty of f at about ±5 % for smooth tubing and ±10 % for commercial steel pipe because of the roughness, and much more for pipe in service; the third significant figure the tool prints is for checking, not a claim of accuracy. The Reynolds number tells whether the laminar formula or Colebrook applies, the relative roughness whether the pipe is near the fully rough regime where f no longer depends on Re, and the comparison of friction and fitting losses shows which the design is sensitive to: in a short run with many valves the minor losses dominate and the roughness barely matters; in a long pipeline the reverse. The hydraulic power is what the liquid receives; the shaft power at the entered efficiency is what the motor must supply at the design point, and the operating-point power is what it will actually draw.

Limits

Single pipe of constant diameter; Newtonian liquid of constant properties; fully developed flow (entrance lengths of the order of 10 D in turbulent flow are neglected); fittings treated as independent (closely spaced fittings interact, usually to a smaller total than the sum); water properties from 0.01 to 100 °C; the Colebrook equation above Re = 4,000 and 64/Re below 2,300, the band between flagged; no pressure difference between the two free surfaces other than through the elevation term (add it to the elevation rise as an equivalent head if needed); pump curve interpolated, not extrapolated, so the operating point must lie within the pasted flow range.




References

Moody, L. F. (1944). "Friction Factors for Pipe Flow." Transactions of the ASME, Vol. 66, No. 8, pp. 671–684.

Colebrook, C. F. (1939). "Turbulent Flow in Pipes, with Particular Reference to the Transition Region between the Smooth and Rough Pipe Laws." Journal of the Institution of Civil Engineers, Vol. 11, No. 4, pp. 133–156.

Swamee, P. K., and Jain, A. K. (1976). "Explicit Equations for Pipe-Flow Problems." Journal of the Hydraulics Division, ASCE, Vol. 102, No. 5, pp. 657–664.

Haaland, S. E. (1983). "Simple and Explicit Formulas for the Friction Factor in Turbulent Pipe Flow." Journal of Fluids Engineering, Vol. 105, No. 1, pp. 89–90.

White, F. M. (2011). Fluid Mechanics, 7th ed. McGraw-Hill, New York.

Crane Co. (2009). Flow of Fluids Through Valves, Fittings, and Pipe. Technical Paper No. 410, Crane Co., Stamford, CT.

Munson, B. R., Okiishi, T. H., Huebsch, W. W., and Rothmayer, A. P. (2013). Fundamentals of Fluid Mechanics, 7th ed. Wiley, Hoboken, NJ.

Lemmon, E. W., McLinden, M. O., and Friend, D. G. (2023). "Thermophysical Properties of Fluid Systems." In Linstrom, P. J., and Mallard, W. G. (eds.), NIST Chemistry WebBook, NIST Standard Reference Database Number 69, National Institute of Standards and Technology, Gaithersburg, MD.

Wagner, W., and Pruß, A. (2002). "The IAPWS Formulation 1995 for the Thermodynamic Properties of Ordinary Water Substance for General and Scientific Use." Journal of Physical and Chemical Reference Data, Vol. 31, No. 2, pp. 387–535.

Huber, M. L., Perkins, R. A., Laesecke, A., Friend, D. G., Sengers, J. V., Assael, M. J., Metaxa, I. N., Vogel, E., Mareš, R., and Miyagawa, K. (2009). "New International Formulation for the Viscosity of H₂O." Journal of Physical and Chemical Reference Data, Vol. 38, No. 2, pp. 101–125.

American Society of Mechanical Engineers (2018). Welded and Seamless Wrought Steel Pipe. ASME B36.10M-2018, New York.

Hydraulic Institute (2017). Rotodynamic Pumps Guideline for NPSH Margin. ANSI/HI 9.6.1-2017, Parsippany, NJ.

Worked Examples

Published examples this tool reproduces; each page lists the inputs to enter and the printed answers.

All worked examples


DISCLAIMER: The methods and calculation on aNOWysis.com are provided as means to educate the reader. There is no warranty, expessed or implied, as to the relevance or accuracy of the methods or calculations. All calculations should be checked by a qualified analyst for appropriateness and accuracy. We will not be held liable for any damages, injuries or deaths caused by using methods or calculations from this site.