Sampling the Darcy Friction Factor Using Halton, Hammersley, Sobol, and Korobov Sequences: Data Points from the Colebrook Relation
Abstract
1. Summary
- How were the data points generated? To obtain accurate values, a highly precise iterative solver of the Colebrook equation was applied. In this way, the datasets were generated by computing the unknown Darcy friction factor λ from a known Reynolds number Re and a known roughness of a pipe’s inner surface ε/D—(Re, ε/D)→λ.
- How are the data points distributed? To minimize gaps in coverage, the data points were distributed using sampling methods. Specifically, Halton, Hammersley, Sobol, and Korobov sequences were employed. The Halton, Hammersley, and Sobol methods are quasi-random (low-discrepancy) techniques, while the Korobov method is a deterministic lattice-based approach. For each of these four sequences, 220 samples were generated, yielding 1,048,576 friction factor data points for each method. When a smaller subset of points is needed, the required number of initial points from these large sequences can be used directly.
2. Data Description
2.1. Generation of the Data Points
2.2. Distributions of the Data Points
2.2.1. Random Distributions

2.2.2. Quasi-Random Distributions
- Halton Quasi-Random Distribution (Figure 2)

- Hammersley Quasi-Random Distribution (Figure 3)

- Sobol Quasi-Random Distribution (Figure 4)

2.2.3. Deterministic Lattice-Based Korobov Distribution

3. Methods: Evaluation of Accuracy Using the Datasets
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Appendix A
Appendix B
| S1 | S2 | Re | ε/D | λ |
|---|---|---|---|---|
| 0.125 | 0.444444444 | 14,184.12312 | 0.000244521 | 0.028646643 |
| 0.625 | 0.777777778 | 2,242,706.784 | 4.52 × 10−6 | 0.010356771 |
| 0.375 | 0.222222222 | 178,355.9058 | 0.003496579 | 0.027989349 |
| 0.875 | 0.555555556 | 28,200,544.83 | 6.47 × 10−5 | 0.011135324 |
| S1 | S2 | Re | ε/D | λ |
|---|---|---|---|---|
| 0.75 | 0.003891051 | 7,952,707.288 | 0.047724408 | 0.069941163 |
| 0.125 | 0.007782101 | 14,184.12312 | 0.045552382 | 0.07014454 |
| 0.625 | 0.011673152 | 2,242,706.784 | 0.043479209 | 0.067049409 |
| 0.375 | 0.015564202 | 178,355.9058 | 0.041500391 | 0.065798735 |
| S1 | S2 | Re | ε/D | λ |
|---|---|---|---|---|
| 0.5 | 0.5 | 632,455.532 | 0.000125743 | 0.014350582 |
| 0.75 | 0.25 | 7,952,707.288 | 0.002507422 | 0.024895569 |
| 0.25 | 0.75 | 50,297.33719 | 6.31 × 10−6 | 0.020886224 |
| 0.375 | 0.375 | 178,355.9058 | 0.000561508 | 0.019315882 |
| S1 | S2 | Re | ε/D | λ |
|---|---|---|---|---|
| 0.003891051 | 0.249027237 | 4160.759355 | 0.002536792 | 0.041979229 |
| 0.007782101 | 0.498054475 | 4327.979604 | 0.000128706 | 0.039126016 |
| 0.011673152 | 0.747081712 | 4501.920406 | 6.53 × 10−6 | 0.038552156 |
| 0.015564202 | 0.996108949 | 4682.851862 | 3.31 × 10−7 | 0.038106614 |
Appendix C
Appendix C.1. New Ferreri’s Approximations


Appendix C.2. Top-Performance Approximations
- The most accurate approximation was made by Praks and Brkić [16], Equation (A3), with δ%max < 0.001204%, and its execution time for the same task is about 450.7 s,
- The Lamri approximation [22], Equation (A4), with δ%max < 0.097438%, requires about 440.2 s and is, to date, the fastest explicit approximation available for computer execution.
References
- Colebrook, C.F. Turbulent flow in pipes, with particular reference to the transition region between the smooth and the rough pipe laws. J. Inst. Civ. Eng. 1939, 11, 133–156. [Google Scholar] [CrossRef]
- Colebrook, C.F.; White, C. Experiments with fluid friction in roughened pipes. Proc. R. Soc. London. Ser. A Math. Phys. Sci. 1937, 161, 367–381. [Google Scholar] [CrossRef]
- 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]
- Hayes, B. Why W? Am. Sci. 2005, 93, 104–108. [Google Scholar] [CrossRef]
- Sonnad, J.R.; Goudar, C.T. Constraints for using Lambert W function-based explicit Colebrook–White equation. J. Hydraul. Eng. 2004, 130, 929–931. [Google Scholar] [CrossRef]
- Rollmann, P.; Spindler, K. Explicit representation of the implicit Colebrook–White equation. Case Stud. Therm. Eng. 2015, 5, 41–47. [Google Scholar] [CrossRef]
- Biberg, D. Fast and accurate approximations for the Colebrook equation. J. Fluids Eng. 2017, 139, 031401. [Google Scholar] [CrossRef]
- Sonnad, J.R.; Goudar, C.T. Turbulent flow friction factor calculation using a mathematically exact alternative to the Colebrook–White equation. J. Hydraul. Eng. 2006, 132, 863–867. [Google Scholar] [CrossRef]
- Brkić, D. Review of explicit approximations to the Colebrook relation for flow friction. J. Pet. Sci. Eng. 2011, 77, 34–48. [Google Scholar] [CrossRef]
- Zigrang, D.J.; Sylvester, N.D. A review of explicit friction factor equations. J. Energy Resour. Technol. 1985, 107, 280–283. [Google Scholar] [CrossRef]
- Gregory, G.A.; Fogarasi, M. Alternate to standard friction factor equation. Oil Gas. J. 1985, 83, 120–127. [Google Scholar]
- Ferreri, G.B. Explicit approximation of the Colebrook-White formula based on the friction Reynolds number. Eur. J. Mech. B/Fluids 2025, 114, 204349. [Google Scholar] [CrossRef]
- Ferreri, G.B. A new approach for explicit approximation of the Colebrook–White formula for pipe flows. J. Hydroinformatics 2024, 26, 1558–1571. [Google Scholar] [CrossRef]
- Zigrang, D.J.; Sylvester, N.D. Explicit approximations to the solution of Colebrook’s friction factor equation. AIChE J. 1982, 28, 514–515. [Google Scholar] [CrossRef]
- Brkić, D.; Stajić, Z. Excel VBA-Based User Defined Functions for highly precise Colebrook’s pipe flow friction approximations: A comparative overview. Facta Univ. Ser. Mech. Eng. 2021, 19, 253–269. [Google Scholar] [CrossRef]
- Praks, P.; Brkić, D. Review of new flow friction equations: Constructing Colebrook’s explicit correlations accurately. Rev. Int. Métodos Numéricos Cálculo Diseño Ing. 2020, 36, 41. [Google Scholar] [CrossRef]
- Serghides, T.K. Estimate friction factor accurately. Chem. Eng. 1984, 91, 63–64. [Google Scholar]
- Vatankhah, A.R. Approximate analytical solutions for the Colebrook equation. J. Hydraul. Eng. 2018, 144, 06018007. [Google Scholar] [CrossRef]
- Romeo, E.; Royo, C.; Monzón, A. Improved explicit equations for estimation of the friction factor in rough and smooth pipes. Chem. Eng. J. 2002, 86, 369–374. [Google Scholar] [CrossRef]
- Buzzelli, D. Calculating friction in one step. Mach. Des. 2008, 80, 54–55. Available online: https://www.machinedesign.com/archive/article/21817480/calculating-friction-in-one-step (accessed on 1 November 2025).
- Offor, U.H.; Alabi, S.B. An accurate and computationally efficient explicit friction factor model. Adv. Chem. Eng. Sci. 2016, 6, 237–245. [Google Scholar] [CrossRef]
- Lamri, A.A. Discussion of “Approximate analytical solutions for the Colebrook equation”. J. Hydraul. Eng. 2020, 146, 07019012. [Google Scholar] [CrossRef]
- Lamri, A.A.; Easa, S.M. Computationally efficient and accurate solution for Colebrook equation based on Lagrange theorem. J. Fluids Eng. 2022, 144, 014504. [Google Scholar] [CrossRef]
- 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]
- Brkić, D. Solution of the implicit Colebrook equation for flow friction using Excel. Spreadsheets Educ. 2017, 10, 4663. Available online: https://sie.scholasticahq.com/article/4663.pdf (accessed on 1 November 2025).
- Zhao, Q.; Wu, W.; Simpson, A.R.; Willis, A. Simpler Is Better—Calibration of Pipe Roughness in Water Distribution Systems. Water 2022, 14, 3276. [Google Scholar] [CrossRef]
- Muzzo, L.E.; Matoba, G.K.; Ribeiro, L.F. Uncertainty of pipe flow friction factor equations. Mech. Res. Commun. 2021, 116, 103764. [Google Scholar] [CrossRef]
- Moody, L.F. Friction factors for pipe flow. Trans. ASME 1944, 66, 671–684. [Google Scholar] [CrossRef]
- Brkić, D. Revised Friction Groups for Evaluating Hydraulic Parameters: Pressure Drop, Flow, and Diameter Estimation. J. Mar. Sci. Eng. 2024, 12, 1663. [Google Scholar] [CrossRef]
- Mishra, R.; Ojha, C.S.P. Application of AI-based techniques on Moody’s diagram for predicting friction factor in pipe flow. J. 2023, 6, 544–563. [Google Scholar] [CrossRef]
- LaViolette, M. On the history, science, and technology included in the Moody diagram. J. Fluids Eng. 2017, 139, 030801. [Google Scholar] [CrossRef]
- de Souza Mendes, P.R. A Note on the Moody Diagram. Fluids 2024, 9, 98. [Google Scholar] [CrossRef]
- Huang, S. Reading the Moody chart with a linear interpolation method. Sci. Rep. 2022, 12, 6587. [Google Scholar] [CrossRef]
- Yıldırım, G. Computer-based analysis of explicit approximations to the implicit Colebrook–White equation in turbulent flow friction factor calculation. Adv. Eng. Softw. 2009, 40, 1183–1190. [Google Scholar] [CrossRef]
- Shaikh, M.M.; Wagan, A.I. A sixteen decimal places’ accurate Darcy friction factor database using non-linear Colebrook’s equation with a million nodes: A way forward to the soft computing techniques. Data Brief. 2019, 27, 104733. [Google Scholar] [CrossRef]
- Praks, P.; Brkić, D. Approximate Flow Friction Factor: Estimation of the Accuracy Using Sobol’s Quasi-Random Sampling. Axioms 2022, 11, 36. [Google Scholar] [CrossRef]
- Chi, H.; Mascagni, M.; Warnock, T. On the optimal Halton sequence. Math. Comput. Simul. 2005, 70, 9–21. [Google Scholar] [CrossRef]
- Faure, H.; Lemieux, C. Generalized Halton sequences in 2008: A comparative study. ACM Trans. Model. Comput. Simul. 2009, 19, 1–31. [Google Scholar] [CrossRef]
- Wang, X.; Hickernell, F.J. Randomized Halton Sequences. Math. Comput. Model. 2000, 32, 887–899. [Google Scholar] [CrossRef]
- Wong, T.T.; Luk, W.S.; Heng, P.A. Sampling with Hammersley and Halton points. J. Graph. Tools 1997, 2, 9–24. [Google Scholar] [CrossRef]
- Chen, H.; Yang, C.; Deng, K.; Zhou, N.; Wu, H. Multi-objective optimization of the hybrid wind/solar/fuel cell distributed generation system using Hammersley Sequence Sampling. Int. J. Hydrogen Energy 2017, 42, 7836–7846. [Google Scholar] [CrossRef]
- Sobol, I.M. Uniformly distributed sequences with an additional uniform property. USSR Comput. Math. Math. Phys. 1976, 16, 236–242. [Google Scholar] [CrossRef]
- Weirs, V.G.; Kamm, J.R.; Swiler, L.P.; Tarantola, S.; Ratto, M.; Adams, B.M.; Rider, W.J.; Eldred, M.S. Sensitivity analysis techniques applied to a system of hyperbolic conservation laws. Reliab. Eng. Syst. Saf. 2012, 107, 157–170. [Google Scholar] [CrossRef]
- Zhang, F.; Tian, Y.; Liu, Q.; Gao, Y.; Wang, X.; Liu, Z. Uncertainty Analysis of Performance Parameters of a Hybrid Thermoelectric Generator Based on Sobol Sequence Sampling. Appl. Sci. 2025, 15, 9180. [Google Scholar] [CrossRef]
- Kannan, S.K.; Diwekar, U. An Enhanced Particle Swarm Optimization (PSO) Algorithm Employing Quasi-Random Numbers. Algorithms 2024, 17, 195. [Google Scholar] [CrossRef]
- Parreira, T.G.; Rodrigues, D.C.; Oliveira, M.C.; Sakharova, N.A.; Prates, P.A.; Pereira, A.F.G. Sensitivity Analysis of the Square Cup Forming Process Using PAWN and Sobol Indices. Metals 2024, 14, 432. [Google Scholar] [CrossRef]
- Zheng, W.; Ai, Y.; Zhang, W. Improved Snake Optimizer Using Sobol Sequential Nonlinear Factors and Different Learning Strategies and Its Applications. Mathematics 2024, 12, 1708. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Brkić, D.; Milošević, M. Sampling the Darcy Friction Factor Using Halton, Hammersley, Sobol, and Korobov Sequences: Data Points from the Colebrook Relation. Data 2025, 10, 193. https://doi.org/10.3390/data10110193
Brkić D, Milošević M. Sampling the Darcy Friction Factor Using Halton, Hammersley, Sobol, and Korobov Sequences: Data Points from the Colebrook Relation. Data. 2025; 10(11):193. https://doi.org/10.3390/data10110193
Chicago/Turabian StyleBrkić, Dejan, and Marko Milošević. 2025. "Sampling the Darcy Friction Factor Using Halton, Hammersley, Sobol, and Korobov Sequences: Data Points from the Colebrook Relation" Data 10, no. 11: 193. https://doi.org/10.3390/data10110193
APA StyleBrkić, D., & Milošević, M. (2025). Sampling the Darcy Friction Factor Using Halton, Hammersley, Sobol, and Korobov Sequences: Data Points from the Colebrook Relation. Data, 10(11), 193. https://doi.org/10.3390/data10110193

