Next Article in Journal
Queuing System with Unreliable Servers and Inhomogeneous Intensities for Analyzing the Impact of Non-Stationarity to Performance Measures of Wireless Network under Licensed Shared Access
Next Article in Special Issue
On the Solutions of a Class of Integral Equations Pertaining to Incomplete H-Function and Incomplete H-Function
Previous Article in Journal
Fast Imaging of Thin, Curve-Like Electromagnetic Inhomogeneities without a Priori Information
Previous Article in Special Issue
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
 
 
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 the Discussion by Majid Niazkar

1
IT4Innovations, VŠB-Technical University of Ostrava, 708 00 Ostrava, Czech Republic
2
Faculty of Electronic Engineering, University of Niš, 18000 Niš, Serbia
*
Authors to whom correspondence should be addressed.
Mathematics 2020, 8(5), 796; https://doi.org/10.3390/math8050796
Submission received: 13 April 2020 / Revised: 22 April 2020 / Accepted: 24 April 2020 / Published: 14 May 2020
(This article belongs to the Special Issue Special Functions and Applications)

Abstract

:
In this reply, we present updated approximations to the Colebrook equation for flow friction. The equations are equally computational simple, but with increased accuracy thanks to the optimization procedure, which was proposed by the discusser, Dr. Majid Niazkar. Our large-scale quasi-Monte Carlo verifications confirm that the here presented novel optimized numerical parameters further significantly increase accuracy of the estimated flow friction factor.

1. Introduction

We thank discusser Dr. Majid Niazkar for his valuable discussion of our article [1]. In his discussion, he proposed to optimize numerical parameters of our explicit approximations of the Colebrook’s equation, in order to increase their accuracy in comparison to the implicitly given Colebrook’s flow friction factor [2]. The discusser also presented optimized numerical parameters for the appropriate segment of the Wright ω-function which is used in our approximations of the Colebrook equation.
The original Colebrook equation for flow friction [3] is of implicit nature, and hence our goal is to develop its computational simple but accurate explicit approximations. It is also of empirical nature [4] and hence its accuracy can be disputed [5], but equally because of engineering comparisons, the developed approximations should be as accurate as possible.
Niazkar uses ten criterions to evaluate accuracy of the proposed equations (six local evaluation criterions); Niazkar’s Equations (4)–(9) and four global; Niazkar’s Equations (10)–(13), but here we are focused on minimization of the maximal absolute relative error in percentages (basically referred to Niazkar’s local criterions given by his Equations (8) and (9)). The equations proposed by Niazkar have the same structure as ours, i.e., they follow our models, but their accuracy increases by changing numerical values through optimization procedures (Niazkar’s Model 3 improves our Model 1, while his Model 4 improves our Model 2; Models 1 and 2 are Equations (5) and (6) of [1], respectively). In that way, computational burden related to these models remains unchanged while accuracy increases.
Accuracy of our equations from [1] (Models 1 and 2 in Niazkar’s Discussion [2]) has been already confirmed in [6,7]. Using the methodology proposed by Niazkar [8], our approximation can be classified in the group of one-step relations which clearly confirm their simplicity.
In this reply we present updated numerical parameters for these models, which are equally computational simple, but with further increased accuracy. We highly appreciate Niazkar’s approach to optimize numerical parameters of our approximations and we can confirm its efficiency in error reduction. Comparable approaches can be found in the scientific literature [9,10,11], such as optimization of the other already available approximations of the Colebrook equations using genetics algorithms, etc.

2. Updated Approximations

Approximations given in Equation (3) of our discussed article [1] are based on the approximation of the Wright ω-function as given in [12], while Equations (5) and (6) of [1] are found using symbolic regression software Eureqa [13,14] and they are also based on the approximation of the same branch of the Wright ω-function as in Equation 3. Here we will show approximations with the same structure as in [1], but with optimized numerical values of the parameters of the appropriate equations which give reduced absolute maximal relative errors. This optimization procedure significantly reduces the maximal relative error of approximations from our original paper. For Equation (3) of [1], the maximal relative error was reduced by 50%, and for Equation (5) of [1] by 42%, while for Equation (6) of [1] is improved only by 3% as the original model was close to the optimum. We used the local “fminsearch” nonlinear solver, and then the global optimization procedure “globalsearch”, both built-in Matlab optimization tools [15]. We reduced also the number of required digits for optimized constants by numerical experiments, in order to provide simple, but still accurate flow friction approximations. All the here presented approximations over-perform our original article [1], thanks to the global optimization of parameters [16].
In all our experiments, eight million quasi Monte-Carlo pairs [17] cover thoroughly the domain of the Reynolds numbers R e and the relative roughness ε which is interest for engineering practice (all details can be found in [1]) and all numerical values of our approximations are optimized in that domain; 4000 < R e < 108 and 0 < ε < 0.05. In addition, not only empirical numerical values, but also those of clearly defined parameters, such as 0.8686 which is obtained from 2 ln ( 10 ) , are also optimized.
The general exact explicit formula of the solution of the Colebrook equation using the Wright ω-function with the vector of parameters p = ( 2 l n ( 10 ) ,   l n ( 2 · 2.51 ln ( 10 ) ) , 2 · 2.51 · 3.71 l n ( 10 ) ) can be implemented in Matlab through the “wrightOmegaq” Function [18] as given with the following code:
B = l o g ( R ) p ( 2 ) ; A = R .   K . / p ( 3 ) ; x = A + B ; f = 1 . / ( p ( 1 )   ( B + y ) ) . ^ 2
where y = w r i g h t O m e g a q ( x ) x , R is the vector of the dimensionless Reynolds number; R e in Equation (1), K is the vector of the dimensionless relative roughness of inner pipe surface; ε in Equation (1), f is the dimensionless Darcy–Weisbach flow friction factor; f in Equation (1), while the original vector of the approximate parameters [1] used for optimization is p = ( 0.8686 ,   0.7794 ,   8.0878 ) . In Matlab, “ l o g ” denotes natural logarithm. This Matlab code corresponds to Equation (1):
f = 1 ( 0.8686 · ( B + y ) ) 2 A R e · ε 8.0878 B ln ( R e ) 0.7794 x = A + B y = ω ( x ) x } ,

2.1. Optimized Equation (3) of [1]

For optimization of Equation (3) of [1], we again used “fminsearch” and then “globalsearch” optimization procedures of Matlab. Approximation of the y has form y     ln ( x ) x ln ( x ) , while y = w r i g h t O m e g a q ( x ) x is treated as accurate. The optimized vector is now p = ( 0.86902384 ,   0.7829415 ,   8.11718121 ) which reduces the maximal absolute relative error of Equation (3) of [1] from 0.1523% to 0.100793%– 0.101% for the updated Equation (3) of [1] which is here given in Equation (2) (from the plot in Figure 1, we can see how the maximal relative error was reducing during the optimization process). The number of relevant digits in Equation (2) was found by numerical experiments.
f = 1 ( 0.86902384 · ( B + y ) ) 2 A R e · ε 8.11718121 B ln ( R e ) 0.7829415 x = A + B y ln ( x ) · ( 1 x 1 ) } ,
Thus, this procedure reduces the maximal absolute relative error of Equation (3) of [1] from 0.1523% to 0.100793% while computation burden remains unchanged.

2.2. Optimized Equation (5) of [1]

The original Equation (5) of [1] in general can be rewritten as Equation (3).
f = 1 ( p 1 · ( B + y ) ) 2 A = R e · ε p 3 B = ln ( R e ) p 3 x = A + B y ln ( x ) · ( p 4 x + p 5 1 ) } ,
where the original parameters ( p 1 ,   p 2 , p 3 ,   p 4 , p 5 ) in Equation (5) of [1] are given by the vector p = ( 0.8686 ,   0.7794 ,   8.0878 ,   1.038 ,   0.332 ) , while Niazkar’s proposal for the updated vector is p = ( 0.86855 , ln ( 2.18 ) ,   8.0878 ,   1.03891 ,   0.33623 ) . Niazkar refers in his Discussion to Equation (5) of [1], i.e., to Equation (3) with the original vector p as Model 1, while with the vector p updated by him as Model 3 [2]. The structure of the approximation of ω ( x ) x for the observed case remains p 4 · ln ( x ) x + p 5 ln ( x ) . In Niazkar’s discussion, the symbol B is defined as B ln ( R e ) 2.18 while we originally proposed simpler version as B ln ( R e ) 0.7794 which is faster, as it does not require a division. The original version from [1], i.e., Model 1 as referred in Niazkar’s Discussion [2] has maximal relative error of no more than 0.0522%, while Niazkar’s Model 3 reduces the maximal relative error of which is now up to 0.0459%. As there is only a change of constants of the model, the complexity of the approximation is the same: our experiments show that speed of the optimized approximation remains unchanged (0.41 s for 8 million of Quasi Monte-Carlo pairs).
Further, for the purpose of this reply, we will optimize constants of Equation (5) of [1]. In other words, we will update all five constants of the model given with vector p of Equation (3).
Consequently, the explicit approximation of the Colebrook following equation Equation (5) of [1] with the vector of parameter p , can be written in Matlab by the following code:
B = l o g ( R ) p ( 2 ) ; A = R .   K . / p ( 3 ) ; x = A + B ; f = 1 . / ( p ( 1 )   ( B + y ) ) . ^ 2 ; y = ( p ( 4 )     l o g ( x ) ) . / ( x + p ( 5 ) ) l o g ( x ) ,
As we already mentioned, symbol log(x) represents in the Matlab’s code the natural logarithm.
The original approximation given by Equation (5) of [1] can be coded by the vector p = ( 0.8686 ,   0.7794 ,   8.0878 ,   1.038 ,   0.332 ) . In our optimization, we minimized the maximal relative error of the flow friction factor f by changing the vector p (in contrary, Niazkar analyzed many types of errors in his Discussion [2]) and finally we obtained the following optimal parameters p = ( 0.868585 ,   0.78157 ,   8.099752 ,   1.04796 ,   0.36322 ) . The absolute maximal relative error is now no larger than 0.0366%.
Thus, this procedure reduces the maximal absolute relative error of Equation (5) of [1] from 0.0522% to 0.0366% (while in Niazkar’s Discussion it is up to 0.0459% [2]).

2.3. Optimized Equation (6) of [1]

Equation (6) of [1] is Model 2 of Niazkar’s Discussion [2], while his related version is Model 4. This approximation is given here as Equation (4).
f = 1 ( p 1 · ( B + y ) ) 2 A R e · ε p 3 B ln ( R e ) p 2 x = A + B C = ln ( x ) y p 4 · C x + C p 5 x 2 C } ,
The vector with the original parameters from [1], p = ( 0.8686 ,   0.7794 ,   8.0878 ,   1.0119 ,   2.3849 ) gives an approximation with the maximal relative error of no more than 0.00845%. Niazkar’s vector p = ( 0.86859 , ln ( 2.18 ) ,   8.0878 ,   1.01151 ,   2.37718 ) gives an approximation with the slightly reduced error. Using the optimization approach as described in Section 2, the approximation of ω ( x ) x can be expressed as y p 4 · ln ( x ) x + ln ( x ) p 5 x 2 ln ( x ) . We get the optimized numerical values of the vector as p = ( 0.868558 ,   0.77898 ,   8.0861744 ,   1.011746 ,   2.3872 ) which reduces the maximal relative error which is now up to 0.00807% (the original approximation with the original numerical values from [1] is almost optimal and so reduction of the error is minimal). In contrary to previous cases, the optimized procedure was less effective. Optimization process of “fminsearch” was monitored and the related plot can be seen in Figure 2.
Thus, this procedure reduces the maximal absolute relative error of Equation (5) of [1] from 0.00845% to 0.00807592%.

3. Conclusions

In this reply, we verified the optimization of numerical coefficients of the explicit approximations of the Colebrook equation based on various approximations of the Wright ω-function. Our large-scale quasi Monte-Carlo simulations confirm that the optimization approach suggested by the discusser Dr. Majid Niazkar can reduce the maximal relative error of approximations. We also presented three updated approximations with optimized coefficients.
The presented results are based on our previous works [1,9,19,20,21,22,23,24,25,26,27].

Author Contributions

P.P. updated the results while D.B. checked them. D.B. wrote a draft of this reply. All authors have read and agreed to the published version of the manuscript.

Funding

The work of D.B. has been partially supported by the Ministry of Education, Youth, and Sports of the Czech Republic through the National Programme of Sustainability II (NPS II), IT4Innovations Excellence in Science project LQ1602, while the work of P.P. has been partially supported by the Technology Agency of the Czech Republic under the project “National Centre for Energy” TN01000007 and “Energy System for Grids” TK02030039.

Conflicts of Interest

The authors declare no conflict of interest.

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] [Green Version]
  2. Niazkar, M. Discussion of “Accurate and efficient explicit approximations of the Colebrook flow friction equation based on the Wright ω-function.”. Mathematics 2020, 8. in press. [Google Scholar]
  3. 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. 1939, 11, 133–156. [Google Scholar] [CrossRef]
  4. Colebrook, C.; White, C. Experiments with fluid friction in roughened pipes. Proc. R. Soc. Lond. Ser. A Math. Phys. Sci. 1937, 161, 367–381. [Google Scholar] [CrossRef]
  5. Niazkar, M.; Talebbeydokhti, N. Comparison of explicit relations for calculating Colebrook friction factor in pipe network analysis using h-based methods. Iran. J. Sci. Technol. Trans. Civ. Eng. 2020, 44, 231–249. [Google Scholar] [CrossRef]
  6. Muzzo, L.E.; Pinho, D.; Lima, L.E.; Ribeiro, L.F. Accuracy/Speed analysis of pipe friction factor correlations. In International Congress on Engineering and Sustainability in the XXI Century—INCREaSE 2019, Section: Water for Ecosystem and Society, Faro, Portugal, 9–11 October 2019; Monteiro, J., Silva, A.J., Mortal, A., Aníbal, J., da Silva, M.M., Oliveira, M., Eds.; Springer: Cham, Switzerland, 2019; pp. 664–679. [Google Scholar] [CrossRef] [Green Version]
  7. Zeyu, Z.; Junrui, C.; Zhanbin, L.; Zengguang, X.; Peng, L. Approximations of the Darcy–Weisbach friction factor in a vertical pipe with full flow regime. Water Sci. Tech. Water Supply 2020. [Google Scholar] [CrossRef]
  8. Niazkar, M. Revisiting the Estimation of Colebrook Friction Factor: A Comparison between Artificial Intelligence Models and C-W Based Explicit Equations. Ksce J. Civ. Eng. 2019, 23, 4311–4326. [Google Scholar] [CrossRef]
  9. Brkić, D.; Ćojbašić, Ž. Evolutionary optimization of Colebrook’s turbulent flow friction approximations. Fluids 2017, 2, 15. [Google Scholar] [CrossRef] [Green Version]
  10. Ć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] [Green Version]
  11. Mitrev, R.; Tudjarov, B.; Todorov, T. Cloud-based expert system for synthesis and evolutionary optimization of planar linkages. Facta Univ. Ser. Mech. Eng. 2018, 16, 139–155. [Google Scholar] [CrossRef]
  12. Biberg, D. Fast and accurate approximations for the Colebrook equation. J. Fluids Eng. 2017, 139, 031401. [Google Scholar] [CrossRef]
  13. Schmidt, M.; Lipson, H. Distilling free-form natural laws from experimental data. Science 2009, 324, 81–85. [Google Scholar] [CrossRef] [PubMed]
  14. Dubčáková, R. Eureqa: Software review. Genet. Program. Evolvable Mach. 2011, 12, 173–178. [Google Scholar] [CrossRef] [Green Version]
  15. Tricarico, M.; Papangelo, A.; Constantinescu, A.; Ciavarella, M. On adhesive theories in multilayered interfaces, with particular regard to “surface force apparatus” geometry. Facta Univ. Ser. Mech. Eng. 2019, 17, 95–102. [Google Scholar] [CrossRef]
  16. Diyaley, S.; Chakraborty, S. Optimization of multi-pass face milling parameters using metaheuristic algorithms. Facta Univ. Ser. Mech. Eng. 2019, 17, 365–383. [Google Scholar] [CrossRef]
  17. Sobol, I.M.; Turchaninov, V.I.; Levitan, Y.L.; Shukhman, B.V. Quasi-Random Sequence Generators; Distributed by OECD/NEA Data Bank; Keldysh Institute of Applied Mathematics, Russian Academy of Sciences: Moscow, Russia, 1992; Available online: https://ec.europa.eu/jrc/sites/jrcsh/files/LPTAU51.rar (accessed on 13 April 2020).
  18. Horchler, A.D. Complex Double-Precision Evaluation of the Wright Omega Function. 2017. Available online: https://github.com/horchler/wrightOmegaq (accessed on 6 April 2020).
  19. Praks, P.; Brkić, D. Symbolic Regression-Based Genetic Approximations of the Colebrook Equation for Flow Friction. Water 2018, 10, 1175. [Google Scholar] [CrossRef] [Green Version]
  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] [Green Version]
  21. 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] [Green Version]
  22. 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. [Google Scholar] [CrossRef] [Green Version]
  23. Praks, P.; Brkić, D. Advanced iterative procedures for solving the implicit Colebrook equation for fluid flow friction. Adv. Civ. Eng. 2018, 5451034. [Google Scholar] [CrossRef] [Green Version]
  24. Brkic, D. Lambert W Function in Hydraulic Problems. Math. Balk. New Ser. 2012, 26, 285–292. Available online: http://www.math.bas.bg/infres/MathBalk/MB-26/MB-26-285-292.pdf (accessed on 21 April 2020).
  25. Brkić, D. Review of explicit approximations to the Colebrook relation for flow friction. J. Pet. Sci. Eng. 2011, 77, 34–48. [Google Scholar] [CrossRef] [Green Version]
  26. Praks, P.; Brkić, D. Rational Approximation for Solving an Implicitly Given Colebrook Flow Friction Equation. Mathematics 2020, 8, 26. [Google Scholar] [CrossRef] [Green Version]
  27. Brkić, D.; Praks, P. Colebrook’s Flow Friction Explicit Approximations Based on Fixed-Point Iterative Cycles and Symbolic Regression. Computation 2019, 7, 48. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Reduction of the maximal relative error during the optimization process for Equation (3) of [1]. The optimized formula is given in Equation (2).
Figure 1. Reduction of the maximal relative error during the optimization process for Equation (3) of [1]. The optimized formula is given in Equation (2).
Mathematics 08 00796 g001
Figure 2. Reduction of the maximal relative error during the optimization process for Equation (6) of [1].
Figure 2. Reduction of the maximal relative error during the optimization process for Equation (6) of [1].
Mathematics 08 00796 g002

Share and Cite

MDPI and ACS Style

Praks, P.; Brkić, D. Accurate and Efficient Explicit Approximations of the Colebrook Flow Friction Equation Based on the Wright ω-Function: Reply to the Discussion by Majid Niazkar. Mathematics 2020, 8, 796. https://doi.org/10.3390/math8050796

AMA Style

Praks P, Brkić D. Accurate and Efficient Explicit Approximations of the Colebrook Flow Friction Equation Based on the Wright ω-Function: Reply to the Discussion by Majid Niazkar. Mathematics. 2020; 8(5):796. https://doi.org/10.3390/math8050796

Chicago/Turabian Style

Praks, Pavel, and Dejan Brkić. 2020. "Accurate and Efficient Explicit Approximations of the Colebrook Flow Friction Equation Based on the Wright ω-Function: Reply to the Discussion by Majid Niazkar" Mathematics 8, no. 5: 796. https://doi.org/10.3390/math8050796

APA Style

Praks, P., & Brkić, D. (2020). Accurate and Efficient Explicit Approximations of the Colebrook Flow Friction Equation Based on the Wright ω-Function: Reply to the Discussion by Majid Niazkar. Mathematics, 8(5), 796. https://doi.org/10.3390/math8050796

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