Ejemplo
Ejemplo
Ejemplo
[JUNCTIONS]
;ID Elev Demand Pattern
2 0 10 ; 0.1
3 0 7 ; 0.07
4 0 5 ; 0.05
5 0 6 ; 0.06
6 0 7 ; 0.07
5 0.05
[RESERVOIRS]
;ID Head Pattern
1 60 ;
[TANKS]
;ID Elevation InitLevel MinLevel MaxLevel Diameter MinVol VolCurve
[PIPES]
;ID Node1 Node2 Length Diameter Roughness MinorLoss Status
1 1 2 100 140 0.1 0 Open
2 2 3 40 80 0.1 0 Open
3 2 4 40 80 0.1 0 Open
4 4 5 40 60 0.1 0 Open
5 3 5 40 60 0.1 0 Open
6 5 6 100 80 0.1 0 Open
DATOS DE TUBERAS(SVC:Tuberia)
NUDO LONGITUD DIAMETRO PERDIDAS FACTOR DE BOMBA
FINAL LOCALES RUGOSIDAD
1.50E-03 mm
100
1m 1000
;
;
;
;
;
;
DATOS DE DIAMETROS(CSV:DB)
DIAMETRO DIAMETRO COSTO
item COMERCIAL COMERCIAL ($/m)
(in) (mm)
#n D(in) D(mm) CST($/m)
1 24 609.6 550
2 22 558.8 300
3 20 508 170
4 18 457.2 130
5 16 406.4 90
6 14 355.6 60
7 12 304.8 50
8 10 254 32
9 8 203.2 23
DATOS DE NODOS(CSV:Nodos) DATO
DOTACION( RESERVORI NUDO
NODO COTA(z) TUBERIA
q) O INICIAL
[JUNCTIONS]
;ID Elev Demand Pattern
2 0 12 ; 0.012
3 0 6 ; 0.006
4 0 7 ; 0.007
5 0 6 ; 0.006
6 0 5 ; 0.005
[RESERVOIRS]
;ID Head Pattern
1 60 ;
[TANKS]
;ID Elevation InitLevel MinLevel MaxLevel Diameter MinVol VolCurve
[PIPES]
;ID Node1 Node2 Length Diameter Roughness MinorLoss Status
1 1 2 100 140 0.1 0 Open
2 2 3 40 80 0.1 0 Open
3 2 4 40 80 0.1 0 Open
4 4 5 40 60 0.1 0 Open
5 3 5 40 60 0.1 0 Open
6 5 6 100 80 0.1 0 Open
DATOS DE TUBERAS(SVC:Tuberia)
NUDO LONGITUD DIAMETRO PERDIDAS FACTOR DE BOMBA
FINAL LOCALES RUGOSIDAD
1.50E-03 mm
100
1m 1000
;
;
;
;
;
;
DATOS DE DIAMETROS(CSV:DB)
DIAMETRO DIAMETRO COSTO
item COMERCIAL COMERCIAL ($/m)
(in) (mm)
#n D(in) D(mm) CST($/m)
1 24 609.6 550
2 22 558.8 300
3 20 508 170
4 18 457.2 130
5 16 406.4 90
6 14 355.6 60
7 12 304.8 50
8 10 254 32
9 8 203.2 23
DATOS DE NODOS(CSV:Nodos) DATO
DOTACION( RESERVORI NUDO
NODO COTA(z) TUBERIA
q) O INICIAL
DATOS DE TUBERAS
Nf L (m) D(mm) Kv Ks(m)
2 1000 400 0 1.50E-06
3 100 300 0 1.50E-06
4 100 300 0 1.50E-06
5 100 250 0 1.50E-06
5 100 100 0 1.50E-06
6 500 250 0 1.50E-06
DATOS DE DIAMETROS(CSV:DB)
DIAMETRO DIAMETRO COSTO
item COMERCIAL COMERCIAL ($/m)
(in) (mm)
#n D(in) D(mm) CST($/m)
1 24 609.6 550
2 22 558.8 300
3 20 508 170
4 18 457.2 130
5 16 406.4 90
6 14 355.6 60
7 12 304.8 50
8 10 254 32
9 8 203.2 23
10 6 152.4 16
11 4 101.6 11
12 3 76.2 8
13 2 50.8 5
14 1 25.4 2
Resultados
GH WATERGEMS
2.3529467 2.35
2.809898 2.64
1.9263275 1.99
1.4640658 1.81
1.1865213 1.22
1.1632859 1.25
1.7803245 1.51
0.2193682 1.08
DATOS DE NODOS(CSV:Nodos) DATO
DOTACION( RESERVORI NUDO
NODO COTA(z) TUBERIA
q) O INICIAL
Diametros buenos
V1 V2 DATOS
I: Data:
1 152.4
2 203.2 Nn: Q(m3/s):
3 304.8 1 0.082
4 203.2 2 0.082
5 406.4 3 0.075
6 304.8 4 0.075
7 508 5 0.092
8 457.2 6 0.056
II: Data:
V7 V8 Nr: Altura(m):
1 210
203.2 508 406.4
457.2 304.8 406.4 III: Data:
203.2 304.8 203.2
406.4 304.8 457.2 Nt: Ni:
203.2 457.2 203.2 1 1
406.4 203.2 406.4 2 2
457.2 457.2 508 3 4
304.8 152.4 152.4 4 4
5 6
6 6
7 3
8 5
DATOS DE DIAMETROS(CSV:DB)
DIAMETRO DIAMETRO COSTO
item COMERCIAL COMERCIAL ($/m)
(in) (mm)
#n D(in) D(mm) CST($/m)
1 24 609.6 550
2 22 558.8 300
3 20 508 170
4 18 457.2 130
5 16 406.4 90
6 14 355.6 60
7 12 304.8 50
8 10 254 32
9 8 203.2 23
10 6 152.4 16
11 4 101.6 11
12 3 76.2 8
13 2 50.8 5
14 1 25.4 2
DATOS C++
Juntions
Cota(m):
150
160
155
150
165
160
Reservoir
Pipes
13 67 120 0.0584 0
14 7 11 1200 0.129 0
DATOS DE TUBERAS(SVC:Tuberia)
NUDO LONGITUD DIAMETRO PERDIDAS FACTOR DE BOMBA
FINAL LOCALES RUGOSIDAD
Ks:
1.50E-06 102
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 129
DATOS DE DIAMETROS C -7.5
DIAMETRO COSTO
D (in) D (mm) Interior Espeso
($/m)
(mm)
D(in) D(mm) CST($/m)
1 1/4 40 37 5.55 1.5
1 1/2 50 46.2 6.93 1.9
2 63 58.4 9.1 2.3
2 1/2 75 69.4 12.83 2.8
3 90 83.4 18.22 3.3
4 110 102 26.93 4
5 1/2 140 129.8 43.54 5.1
6 160 148.4 55.99 5.8
8 200 185.4 87.1 7.3
10 250 231.8 138.19 9.1
12 315 292.2 219.86 11.4
14 355 329.2 277.39 12.9
16 400 371 352.04 14.5
18 450 417.4 62.61 16.3
DATOS DE NODOS(CSV:Nodos)
DOTACION( RESERVORI NUDO
NODO COTA(z) TUBERIA
q) O INICIAL
13 67 120 0.0584 0
14 7 11 1200 0.129 0
DATOS DE TUBERAS(SVC:Tuberia)
NUDO LONGITUD DIAMETRO PERDIDAS FACTOR DE RUGOSIDAD BOMBA
FINAL LOCALES
J-1 1 1 1 2
J-2 1 2 2 3
J-3 2 3 3 4
J-4 3 4 4 5
J-5 4 5 5 6
J-6 5 6 6 7
J-7 6 7 7 8
J-8 2 8 3 9
J-9 8 9 9 10
J-10 2 10 3 11
J-11 10 11 11 12
J-12 3 12 4 13
J-13 12 13 13 14
J-14 4 14 5 15
J-15 14 15 15 16
Ks:
1.50E-06 102
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 58.4
1.50E-06 129
DATOS DE DIAMETROS C -7.5
DIAMETRO COSTO
BOMBA D (in) D (mm) Interior Espeso
($/m)
(mm)
C D(in) D(mm) CST($/m)
0 1 1/4 40 37 5.55 1.5
0 1 1/2 50 46.2 6.93 1.9
0 2 63 58.4 9.1 2.3
0 2 1/2 75 69.4 12.83 2.8
0 3 90 83.4 18.22 3.3
0 4 110 102 26.93 4
0 5 1/2 140 129.8 43.54 5.1
0 6 160 148.4 55.99 5.8
0 8 200 185.4 87.1 7.3
0 10 250 231.8 138.19 9.1
0 12 315 292.2 219.86 11.4
0 14 355 329.2 277.39 12.9
0 16 400 371 352.04 14.5
0 18 450 417.4 62.61 16.3
0
DATOS DE NODOS(CSV:Nodos)
DOTACION( RESERVORI NUDO
NODO COTA(z) TUBERIA
q) O INICIAL
#n Q (m3/s) z (m) (r) #Tub Ni
1 0 3672.5 1 1 1
2 0.0076 3616 0 2 2
3 0.0035 3621.4 0 3 2
4 0.0076 3618.2 0 4 4
5 0.005 3617.6 0 5 4
6 0.0092 3620.4 0 6 6
7 0.0042 3622.7 0 7 6
8 0.0105 3619 0 8 8
9 0.0038 3618 0 9 8
10 0.0044 3616.5 0
TUB L(m)
1 470
2 420
3 380
4 700
5 800
6 265
7 450
8 300
9 330
C
0
0
0
0
0
0
0
0
0
D(inches) D(mm) Cost(units)
0 1 1524 511.23 dc[0]=1.524; co[0]=511.23;
1 1.2 1270 388.91 dc[1]=1.27; co[1]=388.91;
2 1.4 1016 278.28 dc[2]=1.016; co[2]=278.28;
3 1.6 762 180.75 dc[3]=0.762; co[3]=180.75;
4 1.8 609.6 129.33 dc[4]=0.6096; co[4]=129.33;
5 2 508 98.39 dc[5]=0.508; co[5]=98.39;
6 2.2 406.4 70.4 dc[6]=0.4064; co[6]=70.4;
7 2.4 304.8 45.73 dc[7]=0.3048; co[7]=45.73;
8 2.6 254 34.79 dc[8]=0.254; co[8]=34.79;
9 2.8 203.2 24.89 dc[9]=0.2032; co[9]=24.89;
10 3 152.4 16.17 dc[10]=0.1524; co[10]=16.17;
11 3.2 101.6 8.8 dc[11]=0.1016; co[11]=8.8;
12 3.4 86.36 16.932 dc[12]=0.08636; co[12]=16.932;
13 3.6 91.44 17.928 dc[13]=0.09144; co[13]=17.928;
14 3.8 96.52 18.924 dc[14]=0.09652; co[14]=18.924;
15 4 101.6 32.64 dc[15]=0.1016; co[15]=32.64;
16 4.2 106.68 34.272 dc[16]=0.10668; co[16]=34.272;
17 4.4 111.76 35.904 dc[17]=0.11176; co[17]=35.904;
18 4.6 116.84 37.536 dc[18]=0.11684; co[18]=37.536;
19 4.8 121.92 39.168 dc[19]=0.12192; co[19]=39.168;
20 5 127 40.8 dc[20]=0.127; co[20]=40.8;
21 5.2 132.08 42.432 dc[21]=0.13208; co[21]=42.432;
22 5.4 137.16 44.064 dc[22]=0.13716; co[22]=44.064;
23 5.6 142.24 45.696 dc[23]=0.14224; co[23]=45.696;
24 5.8 147.32 47.328 dc[24]=0.14732; co[24]=47.328;
25 6 152.4 48.96 dc[25]=0.1524; co[25]=48.96;
26 6.2 157.48 50.592 dc[26]=0.15748; co[26]=50.592;
27 6.4 162.56 52.224 dc[27]=0.16256; co[27]=52.224;
28 6.6 167.64 53.856 dc[28]=0.16764; co[28]=53.856;
29 6.8 172.72 55.488 dc[29]=0.17272; co[29]=55.488;
30 7 177.8 57.12 dc[30]=0.1778; co[30]=57.12;
31 7.2 182.88 58.752 dc[31]=0.18288; co[31]=58.752;
32 7.4 187.96 60.384 dc[32]=0.18796; co[32]=60.384;
33 7.6 193.04 77.216 dc[33]=0.19304; co[33]=77.216;
34 7.8 198.12 79.248 dc[34]=0.19812; co[34]=79.248;
35 8 203.2 81.28 dc[35]=0.2032; co[35]=81.28;
36 8.2 208.28 83.312 dc[36]=0.20828; co[36]=83.312;
37 8.4 213.36 85.344 dc[37]=0.21336; co[37]=85.344;
38 8.6 218.44 87.376 dc[38]=0.21844; co[38]=87.376;
39 8.8 223.52 89.408 dc[39]=0.22352; co[39]=89.408;
40 9 228.6 91.44 dc[40]=0.2286; co[40]=91.44;
41 9.2 233.68 93.472 dc[41]=0.23368; co[41]=93.472;
42 9.4 238.76 95.504 dc[42]=0.23876; co[42]=95.504;
43 9.6 243.84 97.536 dc[43]=0.24384; co[43]=97.536;
44 9.8 248.92 99.568 dc[44]=0.24892; co[44]=99.568;
45 10 254 101.6 dc[45]=0.254; co[45]=101.6;
46 10.2 259.08 103.632 dc[46]=0.25908; co[46]=103.632;
47 10.4 264.16 105.664 dc[47]=0.26416; co[47]=105.664;
48 10.6 269.24 160.696 dc[48]=0.26924; co[48]=160.696;
49 10.8 274.32 163.728 dc[49]=0.27432; co[49]=163.728;
50 11 279.4 166.76 dc[50]=0.2794; co[50]=166.76;
51 11.2 284.48 169.792 dc[51]=0.28448; co[51]=169.792;
52 11.4 289.56 172.824 dc[52]=0.28956; co[52]=172.824;
53 11.6 294.64 175.856 dc[53]=0.29464; co[53]=175.856;
54 11.8 299.72 178.888 dc[54]=0.29972; co[54]=178.888;
55 12 304.8 181.92 dc[55]=0.3048; co[55]=181.92;
56 12.2 309.88 184.952 dc[56]=0.30988; co[56]=184.952;
57 12.4 314.96 187.984 dc[57]=0.31496; co[57]=187.984;
58 12.6 320.04 191.016 dc[58]=0.32004; co[58]=191.016;
59 12.8 325.12 194.048 dc[59]=0.32512; co[59]=194.048;
60 13 330.2 197.08 dc[60]=0.3302; co[60]=197.08;
61 13.2 335.28 200.112 dc[61]=0.33528; co[61]=200.112;
62 13.4 340.36 203.144 dc[62]=0.34036; co[62]=203.144;
63 13.6 345.44 206.176 dc[63]=0.34544; co[63]=206.176;
64 13.8 350.52 209.208 dc[64]=0.35052; co[64]=209.208;
65 14 355.6 278.04 dc[65]=0.3556; co[65]=278.04;
66 14.2 360.68 282.012 dc[66]=0.36068; co[66]=282.012;
67 14.4 365.76 285.984 dc[67]=0.36576; co[67]=285.984;
68 14.6 370.84 289.956 dc[68]=0.37084; co[68]=289.956;
69 14.8 375.92 293.928 dc[69]=0.37592; co[69]=293.928;
70 15 381 297.9 dc[70]=0.381; co[70]=297.9;
71 15.2 386.08 301.872 dc[71]=0.38608; co[71]=301.872;
72 15.4 391.16 305.844 dc[72]=0.39116; co[72]=305.844;
73 15.6 396.24 309.816 dc[73]=0.39624; co[73]=309.816;
74 15.8 401.32 313.788 dc[74]=0.40132; co[74]=313.788;
75 16 406.4 317.76 dc[75]=0.4064; co[75]=317.76;
76 16.2 411.48 321.732 dc[76]=0.41148; co[76]=321.732;
77 16.4 416.56 325.704 dc[77]=0.41656; co[77]=325.704;
78 16.6 421.64 329.676 dc[78]=0.42164; co[78]=329.676;
79 16.8 426.72 333.648 dc[79]=0.42672; co[79]=333.648;
80 17 431.8 337.62 dc[80]=0.4318; co[80]=337.62;
81 17.2 436.88 341.592 dc[81]=0.43688; co[81]=341.592;
82 17.4 441.96 345.564 dc[82]=0.44196; co[82]=345.564;
83 17.6 447.04 437.536 dc[83]=0.44704; co[83]=437.536;
84 17.8 452.12 442.508 dc[84]=0.45212; co[84]=442.508;
85 18 457.2 447.48 dc[85]=0.4572; co[85]=447.48;
86 18.2 462.28 452.452 dc[86]=0.46228; co[86]=452.452;
87 18.4 467.36 457.424 dc[87]=0.46736; co[87]=457.424;
88 18.6 472.44 462.396 dc[88]=0.47244; co[88]=462.396;
89 18.8 477.52 467.368 dc[89]=0.47752; co[89]=467.368;
90 19 482.6 472.34 dc[90]=0.4826; co[90]=472.34;
91 19.2 487.68 477.312 dc[91]=0.48768; co[91]=477.312;
92 19.4 492.76 482.284 dc[92]=0.49276; co[92]=482.284;
93 19.6 497.84 487.256 dc[93]=0.49784; co[93]=487.256;
94 19.8 502.92 492.228 dc[94]=0.50292; co[94]=492.228;
95 20 508 497.2 dc[95]=0.508; co[95]=497.2;
96 20.2 513.08 502.172 dc[96]=0.51308; co[96]=502.172;
97 20.4 518.16 507.144 dc[97]=0.51816; co[97]=507.144;
98 20.6 523.24 512.116 dc[98]=0.52324; co[98]=512.116;
99 20.8 528.32 517.088 dc[99]=0.52832; co[99]=517.088;
I: Data: Juntions
Nr: Altura(m):
1 210
GH
DATOS DE TUBERAS(txt:Tuberia)
NUDO LONGITUD DIAMETRO PERDIDAS FACTOR DE BOMBA
FINAL LOCALES RUGOSIDAD
Resultados
WATERGEMS
DATOS DE NODOS(CSV:Nodos) DA
DOTACION( RESERVORI NUDO
NODO COTA(z) TUBERIA
q) O INICIAL
DATOS GENERALES
pop 10 Probabilidad de selección
sB 1.8
spmax 0.18
spmin 0.02
RESTRICCIONES HIDRAULICAS
vmin <- 0.5 0.5
vmax <- 3.0 3
pmin <- 30 30
pmax <- 100 100
B1 factor de 1.00E+06
B2 factor de 1.00E+07
ITER 01
Poblacion incial
V1 V2 V3 V4 V5
1 254 304.8 355.6 457.2 254
2 406.4 76.2 152.4 558.8 457.2
3 558.8 355.6 609.6 25.4 406.4
4 101.6 304.8 152.4 355.6 457.2
5 609.6 558.8 558.8 254 508
6 457.2 304.8 101.6 152.4 355.6
7 203.2 203.2 304.8 558.8 355.6
8 609.6 508 254 76.2 406.4
9 355.6 152.4 304.8 406.4 609.6
10 50.8 457.2 406.4 406.4 152.4
Aptitud
Orden
selección costo Pi pi*pob Ind
según costo
nueva poblacion
Cruze
elitismo 2 Pcruz 0.8
3 5 2
4 9 5
7 8 7
6 10 1
Mutacion
Pmut 0.2 escoger al 20% para mutar al aza
1 3
9 5
ITER 02
NUEVA POBLACION
nueva poblacion
Cruze
elitismo 2 Pcruz 0.8
3 5 2
4 9 5
7 8 7
6 10 1
Mutacion
Pmut 0.2 escoger al 20% para mutar al aza
3 2
5 8
ITER 03
Nueva poblacion
V6 V7 V8
609.6 203.2 25.4
558.8 609.6 304.8
355.6 508 50.8
203.2 50.8 406.4
76.2 101.6 50.8
101.6 25.4 304.8
406.4 457.2 304.8
609.6 508 101.6
254 101.6 254
406.4 355.6 203.2
Penalizacion
costo parcial rV rP
335280000 4673600 50800 4.52E+08 9.12E+07 1.97E+08
Oredenand
o
9 1 2
3 2 2
1 3 1
8 4 1
7 5 1
5 6 1
2 7 1
4 8 1
6 9 0
10 10 0
unto de mutacion
Penalizacion
costo parcial rV rP
335280000 4673600 50800 4.46E+08 9.12E+07 2.17E+08
Oredenando
10 1 1
4 2 1
6 3 1
2 4 2
3 5 1
5 6 1
7 7 2
8 8 1
1 9 0
9 10 0
unto de mutacion
velocidades
9.12 2.13 2.26 0.01 2.91 0.19
3.56 18.81 16.13 0.5 0.58 0.01
1.88 1.59 0.76 0.19 1.13 0.56
56.99 1.49 14.86 0.96 0.61 0.25
1.58 0.37 1.18 1.58 0.66 9.17
2.81 1.31 35.11 4.87 1.22 3.56
14.25 4.5 3.21 0.37 0.7 0.17
1.58 1.1 3.08 8.27 0.92 0.09
4.65 4.68 4.04 0.75 0.42 0.6
227.94 1.41 1.15 0.36 1.54 0.49
-567.17
45.77
-16887.41
28.06
-30.64
-567.17
-45.91
-16887.41
-3442.21