Академический Документы
Профессиональный Документы
Культура Документы
Step 1:
1 2 3
10 l/s
6 4
5
25 l/s
15 l/s
Step 2:
1 Q12 2 Q23 3
10 l/s
Q16 Loop1 Q25 Loop2 Q34
4
6 Q56 5 Q45
25 l/s 15 l/s
Step 3:
Step 4:
2 loops = 2 equations:
.
Head losses in a pipe is estimated as follow using the Darcy Weisbach equation:
.
Kpipe . Q2pipe > > > Kpipe is equal to where is the friction factor calculated
using the Colebrook – white equation.
4 more equations needed to solve the 6 unknowns, let’s look at some flow conservation:
Node 6 > 25l/s – Q16 – Q56 = 0
Node 4 > Q56 + Q25 – Q45 = 0
Node 2 > Q12 – Q25 – Q23 = 0, Replace Q12 with Q16 because Q12 = Q16
Q16 – Q25 – Q23 = 0
Node 3 > Q23 – Q34 -10 = 0
Summary of equations:
( )
( )
25l/s – Q16 – Q56 = 0
( )
Q56 + Q25 – Q45 = 0
( )
Q16 – Q25 – Q23 = 0
( )
Q23 – Q34 -10 = 0
( )
K16.Q162 + K12.Q162+K25.Q252-K56.Q562 = 0
K23.Q232 + K34.Q342- K25.Q252-K45.Q452 = 0
It is very important to know that the 6 equations above require solving using the Newton
Raphson method through the Jacobian matrix but we need to be careful while dealing with
the K values in our equation. As mentioned earlier each K value is dependent on the
diameter of the pipe and the friction factor. The friction factor is also dependent on the
flow rate therefore K values must be replaced with the approximated explicit Colebrook –
white equation. If you decide to use the exact implicit form of the Colebrook – white
equation, then additional 7 implicit Colebrook – white equations should be added to the 6
equations above. Luckily we have the explicit approximations of Colebrook – white
equation and for the purpose of this document we will use it.
= .
= .
( 1)
. ( . ) . ( . )
. . |#|
!. $ .
%
K = to . .' = . ( 2)
.
. .
* . -
. ) . . ,
|#|
!. $ .
( % +
. ( 3)
./.|/|
.
KXX.Q2XX =
* . -
. ) . . ,
|#|
!. $ .
( % +
Step 5:
How to solve the system of equations using Newton - Raphson method?
First:
You need to assume the values of the unknown flow rate; this will be called Trial 0.
Trial 0:
23 = 15 '/6
3 <
34 = 5'/6
2 ;
2 45 = 10'/6 ;
2 25 = 5'/6 ;
2 56 = 5'/6 ;
1 16 = 12 = 20'/6:
Second: list all the links parameters, Diameter and roughness factors:
Link 1-2:
Diameter = 0.6 m, Roughness = 0.000001
Link 2-3:
Diameter = 0.4 m, Roughness = 0.000001
Link 3-4:
Diameter = 0.2 m, Roughness = 0.000001
Link 4-5:
Diameter = 0.3 m, Roughness = 0.000001
Link 6-5:
Diameter = 0.2 m, Roughness = 0.000001
Link 1-6:
Diameter = 0.6 m, Roughness = 0.000001
Link 2-5:
Diameter = 0.2 m, Roughness = 0.000001
Third: Write the following Jacobian Matrix:
Replace K with its equivalent as per equation (3), the function below should be with respect
to Q.
= ( ) = ( ) = ( ) = ( ) = ( ) = ( )
3 <
2= 23 = 34 = 45 = 25 = 56 = 16 ;
2= ( ) = ( ) = ( ) = ( ) = ( ) = ( );
2= 23 = 34 = 45 = 25 = 56 = 16 ;
2= ( ) = ( ) = ( ) = ( ) = ( ) = ( );
2 ;
2= 23 = 34 = 45 = 25 = 56 = 16 ;
2= ( ) = ( ) = ( ) = ( ) = ( ) = ( );
2= 23 = 34 = 45 = 25 = 56 = 16 ;
2= ( ) = ( ) = ( ) = ( ) = ( ) = ( );
2 ;
2= 23 = 34 = 45 = 25 = 56 = 16 ;
2= ( ) = ( ) = ( ) = ( ) = ( ) = ( );
1= 23 = 34 = 45 = 25 = 56 = 16 :
The above matrix will be equal to:
0 0 0 0 −1 −1
30 0 −1 +1 +1 0 <
2−1 0 0 −1 0 +1 ;
2 ;
21 −1 0 0 0 0 ;
20 0 0 +@ −A +B;
1 +C +D −E − 0 0 :
a, b, c, d, e, f and g are in dependent on their respective flow rates
Inserting the Trial 0 flow rates values in the matrix above will give the following:
0 0 0 0 −1 −1
3 0 0 −1 +1 +1 0 <
2 ;
2 −1 0 0 −1 0 +1 ;
2 1 −1 0 0 0 0 ;
2 0 0 0 0.042378 −0.042378 0.001320124;
10.003679 0.042378 −0.0105684 −0.042378 0 0 :
I JK = I JK − LMNO . IP JK
The Newton iterative method is defined by:
Let’s find IP JK
]
3 ] <
2 ;
2 ] ;
2 ] ;
2]. ]]]]^_`a^_bc;
1 −]. ]]]]dcefe_ :
found in step 5 as
15.42507
3 5.42507 <
2 ;
I J =2
K 9.820252 ;
2 4.69759 ;
2 5.12266 ;
120.12266:
Inserting the Trial 1 flow rates values in the Jacobian matrix will give the following:
0 0 0 0 −1 −1
30 0 −1 +1 +1 0 <
2−1
2 0 0 −1 0 +1 ;;
21 −1 0 0 0 0 ;
20 0 0 +@ −A +B;
1 +C +D −E − 0 0 :
0 0 0 0 −1 −1
3 0 0 −1 +1 +1 0 <
2 ;
2 −1 0 0 −1 0 +1 ;
2 1 −1 0 0 0 0 ;
2 0 0 0 0.04029049 −0.043219234 0.00138569;
10.00376451 0.0452777446 −0.010413531 −0.04029049 0 0 :
Let’s find the inverse of the Jacobian Matrix: LMNO
−0.38356592 −0.129160357 −0.39172264 0.56158565 5.8863968 12.40312791
3 −0.3835659 −0.12916035 −0.39172264 −0.4384143 5.8863968 12.40312791 <
2 ;
2−0.61643407 −0.87083964 −0.60827735 −0.56158565 −5.88639689 −12.40312791;
2 −0.3075584 0.067862180 −0.319595181 −0.2950628 8.68642579 −6.51673102 ;
2−0.30887558 0.061298176 −0.2886821 −0.2665227 −14.5728226 −5.8863968 ;
1 −0.6911244 −0.0612981 0.2886821 0.26652277 14.57282268 5.88639689 :
Let’s find IP JK
]. ]]]^b`]ae^
3 ]. ]]]^b_f`e^ <
2 ;
2]. ]]]]__eb_`_;
2 ] ;
2 ]. ]]]]__bfd ;
1 ]. ]]^e_^abb :
In l/s I JK :
15.25701 23
3 5.25694 < 3 34 <
2 ; 2 45
;
2 9.74298 ;=2 ;
2 4.69759 ; 2 25 ;
2 5.04496 ; 2 56 ;
119.955034: 1 16 = 12:
A third trial can be carried out to reduce the % error but the answer above is satisfactory.