Skip to content

rodlift.flow.friction

rodlift.flow.friction

Single-phase friction factors.

References

.. [Colebrook1939] Colebrook, C.F. (1939). "Turbulent flow in pipes, with particular reference to the transition region between the smooth and rough pipe laws." J. Inst. Civil Eng., 11(4), 133-156. .. [DunsRos1963] Duns, H. Jr. and Ros, N.C.J. (1963). "Vertical flow of gas and liquid mixtures in wells." Proc. 6th World Petroleum Congress, Frankfurt, 451-465. .. [DrewKooMcAdams1932] Drew, T.B., Koo, E.C. and McAdams, W.H. (1932). "The friction factor for clean round pipes." Trans. AIChE, 28, 56-72.

moody_friction_factor

moody_friction_factor(
    reynolds: float,
    relative_roughness: float = 0.0,
    *,
    laminar_limit: float = 2100.0,
) -> float

Moody (Darcy-Weisbach) friction factor.

  • Re <= laminar_limit: f = 64/Re.
  • ε/D < 0.05: Colebrook's equation [Colebrook1939]_, solved to machine precision.
  • ε/D >= 0.05: Duns & Ros' extension for very rough walls [DunsRos1963]_, f = 4[1/(4 log₁₀(0.27 ε/D))² + 0.067 (ε/D)^1.73].

Parameters:

Name Type Description Default
reynolds float

Reynolds number (> 0).

required
relative_roughness float

Relative roughness ε/D (≥ 0).

0.0
laminar_limit float

Reynolds number below which the flow is treated as laminar.

2100.0

fanning_friction_factor

fanning_friction_factor(
    reynolds: float,
    relative_roughness: float = 0.0,
    *,
    laminar_limit: float = 2300.0,
) -> float

Fanning friction factor, one quarter of :func:moody_friction_factor.

smooth_pipe_fanning

smooth_pipe_fanning(
    reynolds: float, *, laminar_limit: float = 2300.0
) -> float

Fanning friction factor for smooth pipe, Drew, Koo & McAdams [DrewKooMcAdams1932]_.

f = 0.0014 + 0.125 Re^-0.32 in turbulent flow, 16/Re in laminar flow.