Professional Documents
Culture Documents
Pipes. Colebrook-White Equation Solved With Newton-Raphson Method
Pipes. Colebrook-White Equation Solved With Newton-Raphson Method
Colebrook equation
(valid for Re >4000 )
1
√f [
=0 . 869⋅Ln 0 .27⋅Rrel+
2 . 51
Re⋅√ f ]
The friction factor can be expressed as
1
√f
=0 . 869⋅Ln
[
Rrel 2 . 51
+
3. 71 Re⋅√ f ]
{ [ ]}
( -2)
Rrel 2. 51
f = 0 . 869⋅Ln +
3 . 71 Re⋅√ f
For clarity change f by x
{ [ ]}
( -2)
Rrel 2. 51
x= 0 . 869⋅Ln +
3 .71 Re⋅√ x
Microsoft Equation
3.0
Naming
F (x )= Fx
and
f'(x )= Fxx
Naming
F (x )= Fx
and
f'(x )= Fxx
{ [ ]}
( -2)
Rrel 2 .51
Fx =x− 0. 869⋅Ln +
3 . 71 Re⋅√ x
{ [ ]} {
(-3 )
Rrel 2 . 51 (−0. 5) 0 . 869
Fxx= 1 +2⋅ 0 . 869⋅Ln + ⋅x ⋅
3. 71 Re Rrel 2. 5
+
3 .71 Re
Tabulated solution
Data
Relative rugosity Rrel = 0.000333
Reynolds number Re = 125000
Tabulated solution of
Colebrook-White equation using
the Newton-Raphson method
DxStop = 3.6E-06
ution of the Colebrook-White friction factor
{ [ ]}
(-2 )
Rrel 2 . 51
F (x )=x− 0 . 869⋅Ln +
3. 71 Re⋅√ x
Obtain the derivative of the function F
{ [ ]} {
( -3 )
Rrel 2. 51 (−0 .5 ) 0 . 869
F ' ( x )= 1 +2⋅ 0 . 869⋅Ln + ⋅x ⋅
3 .71 Re Rrel 2. 51
+
3 . 71 Re
Assume an initial va
Use a value as near a
expected solution . N
{
Fx =xOld− 0 . 869⋅
]} { [ ]}
(-3 )
{
. 5) 0 . 869 -1.255 (−1 . 5)
⋅ ⋅ ⋅x Fxx= 1 +2⋅ 0 . 869⋅
Rrel 2. 51 (−0 .5 ) Re
+ ⋅x
3 .71 Re
{
0 . 869
¿
Rrel 2 .51
Microsoft Equation
3.0
+ ⋅xOld
3 . 71 Re
(Eq. 1)
(Eq. 3)
Iterations: 4
DxStop = 1.0E-06
rev.cjc.30.10.2018
1
{ [ ]}
0 . 869 -1. 255 (−1. 5)
⋅ ⋅ ⋅x
Rrel 2. 51 (−0 .5 ) Re
+ ⋅x
3 . 71 Re
Microsoft Equation
3.0
{ [ ]}
( -2)
Rrel 2. 51
Old− 0 . 869⋅Ln +
3 .71 Re⋅√ xOld
{ [ ]}
(-3 )
Rrel 2 . 51 (−0 . 5)
1 +2⋅ 0 . 869⋅Ln + ⋅xOld ⋅
3. 71 Re
69
+
2 .51
⋅xOld
(−0 . 5 ) [
⋅
-1. 255
Re
⋅xOld
(−1 . 5)
]}
1 Re
Microsoft Equation
3.0
3
4
DarcyFriction_Rrel_Re
Rrel = 0.000333
Re = 125000
f= #MACRO?
Newton-Raphson method
Newton-Raphson method
Initial asumption
xinitial = 2
f ( x )=1−λe− λx
'
f ( x old )
x new =x old − '
f ( x old )
−λx
f (x )=x−1 . 5+e =0
( - 2 * log( Rrel/3.7 + 2.51 / (Re * f^0.5 ) ) )^(-2)
[2] http://support.sas.com/documentation/cdl/en/imlug/66112/HTML/default/viewer.htm#imlug_genstat
[3] http://stackoverflow.com/questions/23443361/matrix-math-with-vba-system-of-linear-equations
Microsoft Equation
3.0
Microsoft Equation
viewer.htm#imlug_genstatexpls_sect004.htm 3.0
m-of-linear-equations
Microsoft Equation
3.0