Preprint
Review

Excel VBA-Based User Defined Functions for Highly Precise Colebrook’s Pipe Flow Friction Approximations: A Comparative Overview

This version is not peer-reviewed.

Submitted:

05 April 2021

Posted:

06 April 2021

You are already at the latest version

A peer-reviewed article of this preprint also exists.

Abstract
This review paper gives Excel functions for highly precise Colebrook’s pipe flow friction approximations developed by users. All shown codes are implemented as User Defined Functions – UDFs written in Visual Basic for Applications – VBA, a common programming language for MS Excel spreadsheet solver. Accuracy of the friction factor computed using nine to date the most accurate explicit approximations is compared with the sufficiently accurate solution obtained through an iterative scheme which gives satisfying results after sufficient number of iterations. The codes are given for the presented approximations, for the used iterative scheme and for the Colebrook equation expressed through the Lambert W-function (including its cognate Wright ω-function). The developed code for the principal branch of the Lambert W-function has additional and more general application for solving different problems from variety branches of engineering and physics. The approach from this review paper automates computational processes and speeds up manual tasks.
Keywords: 
Hydraulic resistance; Colebrook flow friction; Lambert W-function; Excel Macro Programming; Visual Basic for Applications (VBA); User Defined Functions (UDFs)
Subject: 
Computer Science and Mathematics  -   Algebra and Number Theory
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.

Downloads

1695

Views

499

Comments

0

Subscription

Notify me about updates to this article or when a peer-reviewed version is published.

Email

Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2025 MDPI (Basel, Switzerland) unless otherwise stated