Pipeline Toolbox
Function Reference Manual
Early Public Release DD-00011-000

3.2.3 cw_swamee_jain - Swamee-Jain friction factor
f = cw_swamee_jain(d,e,re)

Calculate the Swamee-Jain approximation of the Colebrook-White equation for flow in the region of 5000 ≤Re ≤108   as well as 1e-6 ≤ ε/D ≤ 0.05  .

Arguments

d

Pipe internal diameter (m  ).

e

Pipe effective roughness ε .

re

Reynolds number

Returns Darcy friction factor f , dimensionless.

Possible Errors

Swamee-Jain is only valid for 5000 <= Re <= 1e8

The given Reynolds number is out of range.

Swamee-Jain is only valid for 1e-6 <= e/D <= 0.05

The given pipe roughness/diameter fraction is out of range.

Swamee-Jain diameter is <= 0

The given internal diameter of the pipe must be above zero.