Lusk_Darcy Friction Factors_v2.zip
- May 22, 2014
- 10 replies
- 5658 views
2014-08-07 Update — In this update I include timing the calculation speed of each formula using an HP-41CX programmable scientific calculator. I also renamed a few variables and functions, modified the statistics a little based on subsequent comments by Harvey Henlsey, and made various other changes, corrections, and improvements. I also added a "Bang For The Buck" statistic that takes into account both accuracy and calculation speed. The attached .zip file contains two significantly updated worksheets (one for smooth pipe and one for rough pipe) and their PDF files plus the two previous worksheets (for historical reasons).
2014-05-23 Update — Harvey Henlsey posted some good comments on the copy of this epic that I posted in the MechEngr section and that prompted this update. I redefined S4 and I coordinated the secondary function definitions between GS1 and VK. I also added some more horizontal lines to the plots to make them easier to read.
========================
This might be my Mathcad Magnum Opus…
In steady pipe flow, energy (head) loss due to friction is calculated using the Darcy-Weisbach Equation (DW). DW includes a dimensionless friction factor (f) to account for pipe and fluid conditions. Because friction factors must be determined experimentally, this introduces an empirical element into an otherwise rational formula. The two standard methods for finding the Darcy friction factor for turbulent flow are by solving the empirical and implicit (iterative) Colebrook-White Equation (CW) or by looking at the Moody Diagram (also empirical), which plots a family of CW curves to cover the turbulent flow region.
Because CW must be iterated, a cottage industry of sorts has developed that attempts to find explicit (direct solution) formulas that accurately approximate CW. The purpose of these expllicit approximation formulas (XAFs) is to match CW as closely as possible numerically, not to match hydraulic test results. CW itself is simply a good approximation of hydraulic test results from various researchers over the years. But, CW has long been considered the gold standard for hydraulic calculations and is thus worthy of this attention.
I have just completed a numerical evaluation of more than two dozen XAFs for the purpose of finding the most accurate formulas and the formulas that best balance accuracy and complexity. I am not the first person to make such an evaluation, nor will I be the last. However, my list of formulas is larger than most of the other evaluations I found on-line (primarily websites and published papers) and—as best I can tell—is the only one done in Mathcad.
I split my evaluation into two parts (and two worksheets), one for hydraulically smooth pipe and one for rough pipe. Separate treatment for the smooth pipe condition is warranted because many real-world applications approximate a smooth pipe, such as natural gas flow in HDPE pipe, and the smooth pipe versions of CW and the various XAFs are much simpler than the rough pipe versions. Even with this split, both worksheets are very long compared to my usual work.
The attached .zip file contains two Mathcad Prime 3.0 worsheets—one for hydraulically smooth pipe and one for rough pipe—and (for users of other versions of Mathcad) Adobe Acrobat .pdf files of these two worksheets. The worksheets include functions for each formula evaluated, simple statistical results and comparisons (including ranking by accuracy), and various related plots.
…Enjoy

