Next Article in Journal
Research on the Motion Error Analysis and Compensation Strategy of the Delta Robot
Next Article in Special Issue
δ-Almost Periodic Functions and Applications to Dynamic Equations
Previous Article in Journal
Anxiety about Mathematics among Economics Students in Mexico
Previous Article in Special Issue
Certain Chebyshev-Type Inequalities Involving Fractional Conformable Integral Operators
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Reply

Accurate and Efficient Explicit Approximations of the Colebrook Flow Friction Equation Based on the Wright ω-Function: Reply to Discussion

1
Research and Development Center “Alfatec”, 18000 Niš, Serbia
2
IT4Innovations, VŠB-Technical University of Ostrava, 708 00 Ostrava, Czech Republic
*
Authors to whom correspondence should be addressed.
Mathematics 2019, 7(5), 410; https://doi.org/10.3390/math7050410
Submission received: 25 April 2019 / Revised: 3 May 2019 / Accepted: 6 May 2019 / Published: 8 May 2019
(This article belongs to the Special Issue Special Functions and Applications)

Abstract

:
This reply gives two corrections of typographical errors in respect to the commented article, and then provides few comments in respect to the discussion and one improved version of the approximation of the Colebrook equation for flow friction, based on the Wright ω-function. Finally, this reply gives an exact explicit version of the Colebrook equation expressed through the Wright ω-function, which does not introduce any additional errors in respect to the original equation. All mentioned approximations are computationally efficient and also very accurate. Results are verified using more than 2 million of Quasi Monte-Carlo samples.

1. Introduction

This reply provides responses to the discussion related to the commented article [1].
Recently we published a paper [1], for which we received an interesting discussion [2] and we would like to thank the authors for the useful comments. Our reply will offer two corrections of typographical errors in respect to our commented article [1], then provide a few comments in respect to the discussion [2]. Finally, one improved version of approximations of the Colebrook equation for flow friction will be presented, which is also based on the Wright ω-function. Results in this reply are verified using more than 2 million of Quasi Monte-Carlo samples [3].

2. Typographical Corrections

In our recent paper [1] we found that one pair of parentheses is missing in Equation (2). The corrected Equation (2) of the commented article [1] is here given as Equation (1):
1 f = 2 l n ( 10 ) · ( l n ( R 2.51 · l n ( 10 ) 2 ) + W ( e x ) x   ) x = l n ( R 2.51 · l n ( 10 ) 2 ) + R · ε 2.51 · 3.71 · l n ( 10 ) 2 }
As reported in the discussion [2], in Equation (11) of the commented paper [1], parentheses are also missing, while the correct version is given by Equation (A7), in Appendix A of the commented paper [1]. The corrected Equation (11) of the commented article [1] is here given as Equation (2):
B s · ( 0.0001086 · s 6 + 0.9824 ) 0.006206 r r · ( 0.000007237 · r 0.006656 ) + 1.881
The nature of these errors is typographical and does not affect other formulas or findings. We apologize to the readers for any inconvenience caused by these two typographical errors, and we want to thank the authors of the discussion [2] for pointing out the errors in the second here corrected equation.

3. Observations Related to the Discussion [2]

Here we would like to underline the following:
-To avoid misunderstanding, ε in the discussed paper [1] represents the dimensionless relative roughness of inner pipe surface, while R represents the dimensionless Reynolds number. The discussion [2] uses ε but also ε D for the dimensionless relative roughness of the inner pipe surface and R but also R e for the dimensionless Reynolds number.
-The discussion [2] is flawed with typographical errors such as: In the title of the discussion [2], “DejanBrkić“ should be “Dejan Brkić”, in Equation (6) of [2] lower-case c should be capital-case C , also in Equation (10) of [2] “1.0119.C” should be “1.0119·C”, “Right” should be “Wright”, etc.
-The index “CW” in f C W and the term “Colebrook-White equation” in the discussion [2] is used in the same meaning as f and the term “Colebrook” in [1]. The source for of Equation (1) of the discussion [2] is not Colebrook and White [4], but Colebrook [5] (the Colebrook equation [5] is based on the experiment of Colebrook and White [4]).
-We believe the term “deviation” used in the discussion [2], does not mean the square root of the variance as it is common in statistics, but it is the relative error as defined in [1] (also by Equation (5) of the discussion [2]).
-Eqs. (2), (3) and (4) with the reference to the discussion [2] and Eqs. (3), (5) and (6) with the reference to [1] gives the relative error of no more than 0.152%, 0.0552%, and 0.0096%, respectively. Here we use 221~2.1 million of Quasi Monte-Carlo samples for this verification using the LPTAU51 algorithm [3]. Previously in [1], using the methodology from [6], only 740 points in Microsoft Excel were used; this error was estimated to be 0.13%, 0.045%, and 0.0096%, respectively.
-Equation (A7) of [1] introduces a Padé-based approximation, which replaces the original term B l n ( R 2.18 ) l n ( R ) 0.7794 by simple polynomials. The additional relative error of this approximation is 0.08%. Recall that Equation (A7) of [1] is also Equation (2) of this reply. The approximation uses polynomial expressions instead of the computationally expensive logarithmic function [7]. The relative error of the approximations given by Equations (2)–(4) with the reference to the discussion [2] and Equations (3), (5) and (6) with the reference to [1] is no more than 0.403%. We used 221~2.1 million of Quasi Monte-Carlo samples for this verification [3].
-We are concerned that disputed accuracy of some of our findings is based on the paper [8], which is written by the same authors as the discussion paper [2]. In [8], authors claim that explicit approximations of the Colebrook equation given by Serghides [9] and Buzzelli [10] are very inaccurate. These findings in [8] are in contradiction with [6,11,12,13,14,15,16] where they are classified as very accurate.
-We believe that to date, the most accurate explicit approximation in respect to the Colebrook equation is by Vatankhah [17] with the relative error of no more than 0.0028%, which is more accurate in comparison to Equation (10) of the discussion [2]. Using our methodology for the estimation of the relative error [1], which uses the same methodology as in [6], the relative error of Equation (10) of the discussion [2] is estimated up to 0.1928%. Our findings are tested using 2048 quasi-random points [17] which are not sufficient according to [2]. However, it is true that using 221~2.1 million of Quasi Monte-Carlo samples for verification, some points with slightly elevated error can be found.
-Term “trial-error methods” used in the discussion [2] is more likely “iterative methods” in [1] as explained in [18,19,20].
-Figures 1, 3, and 5 of the discussion [2] shows the constant value of the relative error over the domain of the relative roughness of the inner pipe surface, which is not realistic and they seem to be in contradiction with [9,10,11,12,13,14,15,16,17].

4. Colebrook Equation Expressed through the Wright ω-Function

Equation (1) of this reply, i.e., Equation (2) of [1], can be expressed through the Wright ω-function as Equation (3):
1 f = 2 l n ( 10 ) · ( l n ( R 2.51 · l n ( 10 ) 2 ) + ω ( x ) x   ) x = l n ( R 2.51 · l n ( 10 ) 2 ) + R · ε 2.51 · 3.71 · l n ( 10 ) 2 }
Both equations, Equation (1) of this reply, i.e., Equation (2) of [1], which express the Colebrook equation through the Lambert W-function, and Equation (3), which gives the Colebrook equation through the Wright ω-function, do not introduce any additional errors compared to the original equation given by Colebrook [5]; Equation (1) of [1]. However, the Lambert W-function and the Wright ω-function can be evaluated only approximately. We use the Wright ω-function implemented in Matlab as WrightOmegaq [21] for verifications of all approximations in this reply. However, to date, the Lambert W-function has been more commonly used in hydraulics [22,23,24,25,26] compared to its cognate Wright ω-function. Unfortunately, built-in procedures for these special functions do not exist in common spreadsheet solvers, such as Microsoft Excel [27]. However, Microsoft Excel functions [28] of high accuracy can be made for these special mathematical functions using Visual Basic for Applications (VBA) programming environment. Consequently, Equation (1) of this reply, i.e., of Equation (2) of [1], or Equation (3) from this section can be used for real calculations. Likewise, the approximations of y = W ( e x ) x = ω ( x ) x from Table 1 of this reply or from [1] can be used for real calculations, also [29].

5. A New Updated Explicit Approximation

To construct an explicit approximation of the Colebrook equation using the procedure from [1], the term y = W ( e x ) x of Equation (1), i.e., of the corrected Equation (2) of [1], based on [26] should be very accurately approximated using the series expansion of y . Table 1 gives an approximation of W ( e x ) x ; Equation (4) with its estimated relative error. We analyzed approximations of the form y l n ( x ) + l n ( x ) x + d , where d is a real constant obtained in order to minimize the maximal relative error of the Colebrook equation. The original approximation given by Equation (3) of [1] can be viewed as a variant with d = 0 . Results of the Microsoft Excel solver and the subsequent verification in Matlab using more than 2 million of quasi Monte-Carlo samples indicate that d = 0.000818 in Equation (4) decreased the relative error from 0.152% to 0.136%.
The distribution of the relative error by the proposed explicit approximation of Colebrook’s equation; Equation (4) from Table 1 is given in Figure 1. Note that Figure 1 is made in Microsoft Excel using 740 points [6], and therefore δ%max is estimated not to be more than 0.098641% while in the 2 million of quasi Monte-Carlo sample [3] a pick of error δmax = 0.136% is detected for R = 4000 and ε = 4.6 · 10 7 .

6. Conclusions

In addition to our paper [1] and using the same procedures, here we verified our explicit approximations of the Colebrook equation for flow friction using more than 2 million of Quasi Monte-Carlo samples. These approximations are also computationally simple, as they contain only one or two computationally expensive logarithms [1,7,14,15,26]. Although much more samples than in [1] were used for verifications, as proposed in [2], the results presented here are consistent with the original paper [1].
To avoid misinterpretations, here we present the Colebrook equation expressed directly through the Wright ω-function; Equation (3) (while in [1] it was through the Lambert W-function [30]; Equation (2) of [1]; here Equation (1)).
Presented approximations can be used for flow friction simulators to speed up calculations [26], and also for faster modelling of pipe and conduit networks [31,32,33,34,35].

Author Contributions

Based on the expansion of functions provided by P.P., D.B. developed approximations. Regression analyses in Eureqa and verifications in Matlab [computer software] are performed by P.P. D.B. wrote a draft of this reply.

Acknowledgments

This work was partially supported by the Ministry of Education, Science and Technological Development of the Republic of Serbia through the project iii44006 and by the Ministry of Education, Youth and Sports of the Czech Republic from the National Programme of Sustainability (NPS II) project “IT4Innovations excellence in science-LQ1602”. D.B. acknowledges support from the mentioned Czech’s project LQ1602 for funding of his stay in Ostrava at IT4Innovations.

Conflicts of Interest

The authors declare no conflict of interest. Neither the VŠB—Technical University of Ostrava, the Alfatec, nor any person acting on behalf of them is responsible for the use which might be made of this publication.

Abbreviations

The following symbols are used in this reply:
Variables
A variable that depends on R and ε (dimensionless)
B variable that depends on R (dimensionless)
C variable that depends on variables A and B (dimensionless)
d real constant (dimensionless)
f Darcy (Moody) flow friction factor (dimensionless)
R Reynolds number (dimensionless)
r variable that depends on R (dimensionless)
x variable in function on R and ε (dimensionless)
y variable in function on x (dimensionless)
ε relative roughness of inner pipe surface (dimensionless)
δ relative error (%)
Functions
l n natural logarithm
s Padé approximant
W Lambert W -function
ω Wright ω-function

References

  1. Brkić, D.; Praks, P. Accurate and Efficient Explicit Approximations of the Colebrook Flow Friction Equation Based on the Wright ω-Function. Mathematics 2019, 7, 34. [Google Scholar] [CrossRef]
  2. Zeghadnia, L.; Achour, B.; Robert, J.L. Discussion of “Accurate and Efficient Explicit Approximations of the Colebrook Flow Friction Equation Based on the Wright ω-Function” by Dejan Brkić; and Pavel Praks, Mathematics 2019, 7, 34; doi:10.3390/math7010034. Mathematics 2019, 7, 253. [Google Scholar] [CrossRef]
  3. Sobol’, I.M.; Turchaninov, V.I.; Levitan; Yu, L.; Shukhman, B.V. Quasi-Random Sequence Generators. Keldysh Institute of Applied Mathematics, Russian Academy of Sciences, Moscow. Distributed by OECD/NEA Data Bank. 1991. Available online: http://www.oecd-nea.org/tools/abstract (accessed on 23 April 2019).
  4. Colebrook, C.F.; White, C.M. Experiments with Fluid Friction in Roughened Pipes. Proc. R. Soc. A Math. Phys. Eng. Sci. 1937, 161, 367–381. [Google Scholar] [CrossRef]
  5. Colebrook, C.F. Turbulent Flow in Pipes with Particular Reference to the Transition Region Between the Smooth and Rough Pipe Laws. J. Inst. Civ. Eng. (Lond.) 1939, 11, 133–156. [Google Scholar] [CrossRef]
  6. Brkić, D. Review of Explicit Approximations to the Colebrook Relation for Flow Friction. J. Pet. Sci. Eng. 2011, 77, 34–48. [Google Scholar] [CrossRef]
  7. Praks, P.; Brkić, D. One-Log Call Iterative Solution of the Colebrook Equation for Flow Friction Based on Padé Polynomials. Energies 2018, 11, 1825. [Google Scholar] [CrossRef]
  8. Zeghadnia, L.; Robert, J.L.; Achour, B. Explicit Solutions for Turbulent Flow Friction Factor: A Review, Assessment and Approaches Classification. Ain Shams Eng. J. 2019, 10, 243–252. [Google Scholar] [CrossRef]
  9. Serghides, T.K. Estimate Friction Factor Accurately. Chem. Eng. (N. Y.) 1984, 91, 63–64. [Google Scholar]
  10. Buzzelli, D. Calculating Friction in One Step. Mach. Des. 2008, 80, 54–55. Available online: https://www.machinedesign.com/archive/calculating-friction-one-step (accessed on 29 October 2018).
  11. Brkić, D. Determining friction factors in turbulent pipe flow. Chem. Eng. (N. Y.) 2012, 119, 34–39. Available online: https://www.chemengonline.com/determining-friction-factors-in-turbulent-pipe-flow/?printmode=1 (accessed on 19 April 2019).
  12. Ćojbašić, Ž.; Brkić, D. Very Accurate Explicit Approximations for Calculation of the Colebrook Friction Factor. Int. J. Mech. Sci. 2013, 67, 10–13. [Google Scholar] [CrossRef]
  13. Brkić, D.; Ćojbašić, Ž. Evolutionary Optimization of Colebrook’s Turbulent Flow Friction Approximations. Fluids 2017, 2, 15. [Google Scholar] [CrossRef]
  14. Winning, H.K.; Coole, T. Improved Method of Determining Friction Factor in Pipes. Int. J. Numer. Methods Heat Fluid Flow 2015, 25, 941–949. [Google Scholar] [CrossRef]
  15. Winning, H.K.; Coole, T. Explicit Friction Factor Accuracy and Computational Efficiency for Turbulent Flow in Pipes. Flow Turbul. Combust. 2013, 90, 1–27. [Google Scholar] [CrossRef]
  16. Pimenta, B.D.; Robaina, A.D.; Peiter, M.X.; Mezzomo, W.; Kirchner, J.H.; Ben, L.H.B. Performance of Explicit Approximations of the Coefficient of Head Loss for Pressurized Conduits. Rev. Bras. Eng. Agríc. Ambient. 2018, 22, 301–307. [Google Scholar] [CrossRef]
  17. Vatankhah, A.R. Approximate Analytical Solutions for the Colebrook Equation. J. Hydraul. Eng. 2018, 144, 06018007. [Google Scholar] [CrossRef]
  18. Praks, P.; Brkić, D. Symbolic Regression Based Genetic Approximations of the Colebrook Equation for Flow Friction. Water 2018, 10, 1175. [Google Scholar] [CrossRef]
  19. Praks, P.; Brkić, D. Advanced Iterative Procedures for Solving the Implicit Colebrook Equation for Fluid Flow Friction. Adv. Civ. Eng. 2018, 2018, 5451034. [Google Scholar] [CrossRef]
  20. Praks, P.; Brkić, D. Choosing the Optimal Multi-Point Iterative Method for the Colebrook Flow Friction Equation. Processes 2018, 6, 130. [Google Scholar] [CrossRef]
  21. Horchler, A.D. WrightOmegaq: Complex Double-Precision Evaluation of the Wright Omega Function, a Solution of W+LOG(W)=Z. Version 1.0, 3-12-13. Available online: https://github.com/horchler/wrightOmegaq (accessed on 23 April 2019).
  22. Brkić, D. Lambert W Function in Hydraulic Problems. Math. Balk. 2012, 26, 285–292. Available online: http://www.math.bas.bg/infres/MathBalk/MB-26/MB-26-285-292.pdf (accessed on 29 March 2019).
  23. Santos-Ruiz, I.; Bermúdez, J.R.; López-Estrada, F.R.; Puig, V.; Torres, L. Estimación Experimental De La Rugosidad Y Del Factor De Fricción En Una Tubería. Memorias Del Congreso Nacional De Control Automático, San Luis Potosí, San Luis Potosí, México, 10–12 de Octubre de 2018. Available online: https://www.researchgate.net/publication/328332798 (accessed on 19 April 2019). (In Spanish).
  24. Olivares, A.; Guerra, R.; Alfaro, M.; Notte-Cuello, E.; Puentes, L. Experimental Evaluation of Correlations Used to Calculate Friction Factor for Turbulent Flow in Cylindrical Pipes. Rev. Int. Métodos Numér. Cálc. Diseño Ing. 2019, 35, 15. [Google Scholar] [CrossRef]
  25. More, A.A. Analytical Solutions for the Colebrook and White Equation and for Pressure Drop in Ideal Gas Flow in Pipes. Chem. Eng. Sci. 2006, 61, 5515–5519. [Google Scholar] [CrossRef]
  26. Biberg, D. Fast and Accurate Approximations for the Colebrook Equation. J. Fluids Eng. 2017, 139, 031401. [Google Scholar] [CrossRef]
  27. Brkić, D. Solution of the Implicit Colebrook Equation for Flow Friction Using Excel. Spreadsheets Educ. 2017, 10, 2. Available online: https://sie.scholasticahq.com/article/4663 (accessed on 3 May 2019).
  28. Olivares Gallardo, A.P.; Guerra Rojas, R.A.; Alfaro Guerra, M.A. Evaluación Experimental De La Solución Analítica Exacta De La Ecuación De Colebrook-White. Ing. Investig. Y Tecnol. 2019, 20, 1–11. (In Spanish) [Google Scholar] [CrossRef]
  29. Brkić, D. A Note on Explicit Approximations to Colebrook’s Friction Factor in Rough Pipes Under Highly Turbulent Cases. Int. J. Heat Mass Transf. 2016, 93, 513–515. [Google Scholar] [CrossRef]
  30. Vazquez-Leal, H.; Sandoval-Hernandez, M.A.; Garcia-Gervacio, J.L.; Herrera-May, A.L.; Filobello-Nino, U.A. PSEM Approximations for Both Branches of Lambert Function with Applications. Discret. Dyn. Nat. Soc. 2019, 2019, 8267951. [Google Scholar] [CrossRef]
  31. Brkić, D.; Praks, P. Short Overview of Early Developments of the Hardy Cross Type Methods for Computation of Flow Distribution in Pipe Networks. Appl. Sci. 2019, in press. [Google Scholar]
  32. Kassai, M.; Poleczky, L.; Al-Hyari, L.; Kajtar, L.; Nyers, J. Investigation of the Energy Recovery Potentials in Ventilation Systems in Different Climates. Facta Univ. Ser. Mech. Eng. 2018, 16, 203–217. [Google Scholar] [CrossRef]
  33. Brkić, D.; Praks, P. An Efficient Iterative Method for Looped Pipe Network Hydraulics Free of Flow-Corrections. Fluids 2019, 4, 73. [Google Scholar] [CrossRef]
  34. Biagi, M.; Carnevali, L.; Tarani, F.; Vicario, E. Model-Based Quantitative Evaluation of Repair Procedures in Gas Distribution Networks. ACM Trans. Cyber-Phys. Syst. 2018, 3, 1–26. [Google Scholar] [CrossRef]
  35. Brkić, D. Spreadsheet-Based Pipe Networks Analysis for Teaching and Learning Purpose. Spreadsheets Educ. 2016, 9, 4. Available online: https://sie.scholasticahq.com/article/4646.pdf (accessed on 3 May 2019).
Figure 1. Distribution of the relative error by the proposed explicit approximation of the Colebrook’s equation; Equation (4) from Table 1 using a limited number of 740 sample points.
Figure 1. Distribution of the relative error by the proposed explicit approximation of the Colebrook’s equation; Equation (4) from Table 1 using a limited number of 740 sample points.
Mathematics 07 00410 g001
Table 1. A series expansion y of the W(ex) − x and related approximation of the Colebrook equation based on it.
Table 1. A series expansion y of the W(ex) − x and related approximation of the Colebrook equation based on it.
y = W ( e x ) x Approximationδ%Eq.
y l n ( x ) + l n ( x ) x + 0.000818 1 f 0.8686 · [ B C + C B + A + 0.000818 ] 0.136%(4)
A R · ε 8.0878 , B l n ( R 2.18 ) l n ( R ) 0.7794 , C = l n ( B + A ) , and δ% = (ǀfaccurate − fǀ/faccurate)·100%; R is the Reynolds number while ε is the relative roughness of the inner pipe surface, both dimensionless, while δ% denotes the percentage relative error (here evaluated in Matlab using more than 2 million of quasi Monte-Carlo samples)

Share and Cite

MDPI and ACS Style

Brkić, D.; Praks, P. Accurate and Efficient Explicit Approximations of the Colebrook Flow Friction Equation Based on the Wright ω-Function: Reply to Discussion. Mathematics 2019, 7, 410. https://doi.org/10.3390/math7050410

AMA Style

Brkić D, Praks P. Accurate and Efficient Explicit Approximations of the Colebrook Flow Friction Equation Based on the Wright ω-Function: Reply to Discussion. Mathematics. 2019; 7(5):410. https://doi.org/10.3390/math7050410

Chicago/Turabian Style

Brkić, Dejan, and Pavel Praks. 2019. "Accurate and Efficient Explicit Approximations of the Colebrook Flow Friction Equation Based on the Wright ω-Function: Reply to Discussion" Mathematics 7, no. 5: 410. https://doi.org/10.3390/math7050410

APA Style

Brkić, D., & Praks, P. (2019). Accurate and Efficient Explicit Approximations of the Colebrook Flow Friction Equation Based on the Wright ω-Function: Reply to Discussion. Mathematics, 7(5), 410. https://doi.org/10.3390/math7050410

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop