Created
February 21, 2014 21:09
-
-
Save kcajf/c38178d9b736081ca314 to your computer and use it in GitHub Desktop.
MATLAB Moody diagram function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [ f ] = Moody( Re, r ) | |
% Returns friction factor for Reynold's number Re, relative roughness r | |
% Uses Haaland equation | |
f = (1./(-1.8 *log10( (r/3.7)^(1.11) + 6.9./Re)).^2)./4; | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment