Preprint Review Version 1 Preserved in Portico This version is not peer-reviewed

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

Version 1 : Received: 5 April 2021 / Approved: 6 April 2021 / Online: 6 April 2021 (13:27:55 CEST)

How to cite: Brkić, D.; Stajić, Z. Excel VBA-Based User Defined Functions for Highly Precise Colebrook’s Pipe Flow Friction Approximations: A Comparative Overview. Preprints 2021, 2021040177 (doi: 10.20944/preprints202104.0177.v1). Brkić, D.; Stajić, Z. Excel VBA-Based User Defined Functions for Highly Precise Colebrook’s Pipe Flow Friction Approximations: A Comparative Overview. Preprints 2021, 2021040177 (doi: 10.20944/preprints202104.0177.v1).

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.

Subject Areas

Hydraulic resistance; Colebrook flow friction; Lambert W-function; Excel Macro Programming; Visual Basic for Applications (VBA); User Defined Functions (UDFs)

Comments (0)

We encourage comments and feedback from a broad range of readers. See criteria for comments and our diversity statement.

Leave a public comment
Send a private comment to the author(s)
Views 0
Downloads 0
Comments 0
Metrics 0


×
Alerts
Notify me about updates to this article or when a peer-reviewed version is published.
We use cookies on our website to ensure you get the best experience.
Read more about our cookies here.