image thumbnail

Darcy–Weisbach friction factor

version (573 Bytes) by Lateef Adewale Kareem
Darcy–Weisbach friction factor


Updated 29 Nov 2015

View License

% In fluid dynamics, the Darcy friction factor formulae are equations – based
% on experimental data and theory – for the Darcy friction factor. The Darcy
% friction factor is a dimensionless quantity used in the Darcy–Weisbach
% equation, for the description of friction losses in pipe flow as well as
% open channel flow. It is also known as the Darcy–Weisbach friction factor,
% resistance coefficient or simply friction factor and is four times larger
% than the Fanning friction factor.

% f is the Darcy friction factor
% Roughness height, epsilon (m, ft)
% Hydraulic diameter, D (m, ft) – For fluid-filled, circular conduits, D = inside diameter
% Re is the Reynolds number
% densiity of fluid rho
% viscosity of the fluid miu

Cite As

Lateef Adewale Kareem (2022). Darcy–Weisbach friction factor (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!