Professional Documents
Culture Documents
Newton Raphson Method For Solving The Friction Factor of
Newton Raphson Method For Solving The Friction Factor of
1-4
e-ISSN : 2682-7468
Faculty of Mechanical and Manufacturing Engineering, Universiti Tun Hussein Onn Malaysia
86400 Parit Raja, Batu Pahat, Johor, MALAYSIA
*Corresponding Author
Received 01 August 2019; Abstract: The internal flow of the piping system is important for constructing fluid mechanism. In
Accepted 02 September 2019; order to calculate the elevation difference between two reservoirs, the Colebrook equation can be
Available online 16 October used. The Colebrook equation is used to find the Darcy friction factor of the pipe. However, the
2019 friction factor of the Colebrook equation cannot be extracted analytically. Hence, a numerical
analysis is performed to find the Darcy friction factor from Colebrook equation. In this study, the
Newton Raphson method is chosen as the suitable numerical method to solve Colebrook equation.
The Darcy friction factor obtained from the numerical analysis is then compared to the value
obtained from Moody chart. The results showed that the Newton Raphson method can give an
accurate approximation with error of no more than 0.0001.
Keywords: Colebrook equation, Darcy friction factor, fluid mechanism, Newton Raphson
1 2.51 The average velocity and Reynolds number are given by:
G( f ) 2.0log (4)
3.7 D Re f
f
V V 0.012
v 1.527887m / s
Hence, Ac D 2 (0.10)2
4 4
vD (999.7)(1.527887)(0.10)
1
3
2(2.51) Re 116865.236
G '( f ) 2
1 (5) 1.307 103
f
2
log 10 2.51
Re
e 3.7 D Re f
By referring to the Moody chart, the friction factor is
given by 0.026.
Based on the Moody Chart, the Darcy friction factor is Instead of using the Moody chart, the Newton Raphson
within the range from 0.008 to 0.08. Hence, the initial guess method is applied to determine the friction factor. By using
value of the Darcy friction factor is chosen as 0.008 for the Equation (2) and Equations (4)-(5), and let the initial guess to
2
Published by FAZ Publishing
http://www.fazpublishing.com/ccam
Chan, KS. et al., Communications in Computational and Applied Mathematics, Vol. 1 No. 2 (2019) p. 1-4
L V
2
Table 1 – Iterative calculation of friction factor using hL f K L
Newton Raphson method D 2g
i fi G(f) G’(f) Error 100 1.527887 2
0 0.008 5.129208 -712.597496 hL 0.026382 2.36 3.423288m
0.1 2(9.81)
1 0.015198 1.997553 -272.543991 0.007198
2 0.022527 0.517179 -151.141719 0.007329
3 0.025949 0.052274 -122.285034 0.003422 The elevation of source is thus given by:
4 0.026376 0.000636 -119.327710 0.000427 z1 2 3.423288 5.423288m
5 0.026382 0.000000 -119.291569 0.000005
The Darcy friction factor can actually be obtained from a
Table 2 – Iterative calculation of friction factor using source where it is called Moody Chart. The Moody Chart
Secant method allowed us to determine the Darcy friction factor with
i fi G(f) Error approximate value. It is very useful if the calculation does not
require much accuracy as the massive calculation of numerical
0 0.008 5.129208
analysis can be avoided. However, when comes to real
1 0.01 3.925191 1.204015
application of fluid mechanism, it is recommended to obtain
2 0.016520 1.659076 2.266115
the data in high accuracy and high precision. This is because
3 0.021294 0.711614 0.947462
a small different of value will causes large consequences and
4 0.024879 0.187297 0.524317
eventually causes the whole system to be failed. Therefore,
5 0.026160 0.026651 0.160646
numerical method is performed to determine the Darcy
6 0.026372 0.001137 0.025515
friction factor rather than determine from the Moody Chart.
7 0.026382 7.16916E-06 0.001130
From the results obtained, the final value of Darcy
8 0.026382 1.93936E-09 7.16722E-06
friction factor is 0.026382. It is quite similar compared to the
value obtained from Moody Chart, which is 0.026. As here it
be 0.008, tolerance error as 0.0001 and maximum iteration can be observed that there is a small difference of value
number as 100, the iterative calculation using Newton obtained by two different methods, which is 0.000382. The
Raphson is summarized in Table 1. small difference of value will actually affect the whole piping
By using the tolerance error as 0.0001, the Newton system. It is because the pipe for a real fluid mechanism is
Raphson method converges to the friction factor of 0.026382. very long and complex, so it does affect the value of head loss
Additionally, the calculation of friction factor is performed with a small difference. If the value of head loss is not
using the Secant method. The same tolerance error of 0.0001 accurate, then it will affect the design of the elevation between
is applied, while the starting range of the Secant method is two reservoirs [18].
assigned to within 0.008 to 0.08, according to the Moody The graph of Darcy friction against iteration number is
chart. The obtained results are summarized in Table 2. presented in Fig. 2. It can be observed that as the number of
As shown in Table 1 and Table 2, although both Newton iteration increases, the Darcy friction factor started to increase
Raphson method and Secant method converge to the same until it achieves almost a constant value. The final value of
friction factor of 0.026382, the Newton Raphson method Darcy friction factor is 0.026382, with an error of 0.000005,
requires less iterations than the latter. However, the which is smaller than 0.0001. Thus, it can be concluded that
calculation to get the first order derivative in Equation (5) for the Darcy friction factor calculated by Newton Raphson
Newton Raphson method might be tedious. The Secant method is very accurate.
method does not require the calculation of first order After getting the value of Darcy friction factor, the
derivative in this regard. calculation can be continued with fluid mechanics. The total
Next, the sum of loss coefficient is calculated, given as: head loss, hL is 3.423288 m. Since the second reservoir is 2 m
height, therefore the height required for the first reservoir is
K L K L ,entrance K L ,elbow K L ,valve K L ,exit equal to 5.423288 m.
K L 0.5 2(0.3) 0.2 1.06 2.36
5. Conclusion
In this work, the Newton Raphson method is used to
Then, the total head loss is given by:
estimate the friction factor of the Colebrook equation. From
the approximation, it has been seen that the approximated
value given by the Newton Raphson, i.e. 0.026382 is very
close to the value obtained from Moody chart, which is 0.026.
References
[1] Moody, L.F. (1947). An approximate formula for
pipe friction factors. Trans. ASME, 69(12), 1005-
1011.
[2] Colebrook, C.F., T. Blench, H. Chatley, E. Essex, J.
Finniecome, G. Lacey, et al. (1939).
Correspondence. turbulent flow in pipes, with
particular reference to the transition region between
the smooth and rough pipe laws.(includes plates).
Journal of the Institution of Civil engineers, 12(8),
Fig. 2 – The plot of Darcy friction factor against 393-422.
iteration number
3
Published by FAZ Publishing
http://www.fazpublishing.com/ccam
Chan, KS. et al., Communications in Computational and Applied Mathematics, Vol. 1 No. 2 (2019) p. 1-4
4
Published by FAZ Publishing
http://www.fazpublishing.com/ccam