For Water Distribution Network: Golden Research Thoughts Impact Factor: 2.2052 (UIF) Volume-3 - Issue-11 - May-2014
For Water Distribution Network: Golden Research Thoughts Impact Factor: 2.2052 (UIF) Volume-3 - Issue-11 - May-2014
For Water Distribution Network: Golden Research Thoughts Impact Factor: 2.2052 (UIF) Volume-3 - Issue-11 - May-2014
Page 1
Page 2
Page 3
rQ Q
2r Q
5 With the correction factor Q, the new discharge in each pipe is calculated as follows:
New discharge (Q) = Old discharge (Q) + Q
6 With the corrected flows in all pipes, a second trial calculation is made for all the loops
and the process is repeated till the corrections become negligible.
Description of source code:
Source code in C#.NET for Hardy Cross method was developed for two loop pipe
network which can be applied for the pipe network containing any number of loops. The
C#.NET was preferred to develop the source code because it has the following Advantages
Consistent Programming Model
Direct Support for Security
Simplified Development Efforts
Easy Application Deployment and Maintenance
.NET Framework and Languages
Cross-language compatibility
The data type declarations
The C#.NET version has decimal keyword equal to 128-bit data type. The
approximate range and precision for the decimal type are -1.0 X 10-28 to 7.9 X 1028
whereas other languages have the 32-bit data type only. Because of 128-bit data type we
get the precise results in C#.NET for any type arithmetic and numeric calculations. The
flowchart for which the source code was developed, is shown in figure1.
Hardy-Cross Flow-Chart
START
Is Common
Pipe?
N
Is loop
balanced?
Y
Set new discharge as initial discharge
Reassign pipe data for next loop
N
Volume-3 | Issue-11 | Calculate
May-2014
net error in discharge for each loop
Page 4
Is next set
of input?
No
Q0
New dis
AB
BE
EF
FA
1
2
3
4
BC
CD
DE
EB
5
6
7
8
13056.79
3263.21
8260.00
33050.00
0.0500 32.64
1305.68
0.0100 0.33
65.26 -0.0028
-0.0200
-3.30
330.40
-0.0247
-20.16
1632.67
0.0472
0.0100
-0.0200
-
0.0247
SUM =
9.50
3334.01
Iteration 2
Loop pipe
No
1
2
3
AB
BE
EF
Q0
rQ0abs(Q0)
2rabs(Q0)
Delta Q
68.37
0.1334
408.29
-6.69
New dis
0.0234
295.55 -0.0013
0.0466
Page 5
BC
CD
DE
EB
258.13 -0.0853
SUM= 1.08
-1.88
44.03
-0.0866
816.24
5
6
7
8
13056.79
3263.21
8260.00
33050.00
SUM =
0.0472 29.03
615.63
0.0421
0.0100 0.33
32.63 -0.0050
0.0050
-0.0200
-3.30
165.20
-0.0250
-0.0234
-18.10
773.37
-0.0284
7.95
1586.83
Loop pipe
No
rQ0abs (Q0)
AB
BE
EF
FA
1
2
3
4
BC
CD
DE
EB
5
6
7
8
Iteration 3
Q0
2rabs(Q0)
Delta Q
New dis
13056.79
0.0421 23.18
550.20
0.0421
2
3263.21
0.0050 0.08
16.28 0.0000 0.0050
8260.00
-0.0250
-5.17
206.60
-0.0250
33050.00
-0.0234
-18.10
773.37
-0.0234
SUM = 0.00
1546.44
In above iterations, r is roughness factor of the pipe, Q0 is initial discharge in the pipe
(m3/s). It was observed that the Hardy Cross method converged in iteration 3.
Conclusion
The source code for the Hardy Cross method was developed for the single set of
diameters in the two loop network. The source code can be generated for more than one
set of diameters when the cost of the network is to be optimized by using the
optimization techniques such as genetic algorithm where the population of all possible
solutions needs to be generated.
References
1. Cross, Hardy. (1949). Analysis of Continuous Frames by Distributing Fixed-End
Moments. In
i. Numerical Methods of Analysis in Engineering. Successive Corrections. L B.
ii. Grinter, ed. New York.
2. Lindell E. Ormsbee (2006)8th Annual Water Distribution Systems Analysis Symposium,
i. Cincinnati, Ohio, USA, August 27-30, 2006
3. Lopes. A. M. G. (2004) Computer Applications in Engineering and Education, 12: 117i. 125, Published online in Wiley Inter Science
4. Jeng D. S. (2004)Proceedings of the third international conference on Engineering
i. computational technology Stirling, Scotland Pages: 11 - 12 Year of
ii. Publication: ISBN:0-948749-84-9
5. Jakobus E. Zy.l (2008 ) Journal of Hydrolog, Volume 134, Issue 8, pp. 1176-1179
Page 6
Brief biodada
Page 7
Page 8