Leonardo Alfonso MSC
Leonardo Alfonso MSC
Mentor
Andreja Jonoski, PhD (UNESCO-IHE)
Supervisor
Prof. Roland Price, PhD (UNESCO-IHE)
Examination committee
Prof. Roland Price, PhD - Chairman
Anthony Minns, PhD (WL Delft Hydraulics) - External member
Andreja Jonoski, PhD - Member
This research is done for the partial fulfilment of requirements for the Master of Science degree at the
UNESCO-IHE Institute for Water Education, Delft, the Netherlands
Delft
March 2006
The findings, interpretations and conclusions expressed in this study do neither
necessarily reflect the views of the UNESCO-IHE Institute for Water Education, nor of
the individual members of the MSc committee, nor of their respective employers.
To my Angels,
Sandra, my force, and Valentina, my reason.
Abstract
Most of the water supplies systems in developing countries do not guarantee
the access to safe dinking-water, due to either the intermittency nature of the
systems or the poor operational practices in continuous supplies. These
situations affect directly the efforts that the world is paying with regards to
the achievement of water supply–related UN Millennium Development
Goals.
As one of the main results, this study demonstrates how the developed tools
combined into one software application (QmagNet-V) can be helpful in the
management of a contamination event, preparing SMS to advise the
operators and to warn the affected population. The direct conclusion of the
research is that the safe-drinking water could be improved in supply
networks by means of the available technology and the hydroinformatics
knowledge. Additionally, the developed application proved to have a real
possibility to be an important complement of the Water Quality Surveillance
Information System, tool developed by the Colombian National Health
Institute.
i
Acknowledgements
First of all I would like to give my sincere thanks to UNESCO-IHE and the Watermill
project for providing me the opportunity to follow such a complete, useful and
pioneering Hydroinformatics course.
My special thanks to Dr. Dimitri Solomatine, who provided me not only his software
knowledge assistance, but also his innovative ideas for my research and to Dr.
Kalanithy Vairavamoorthy, who on several occasions offered me assistance in this
research with his invaluable experience.
I am also very grateful with Dr. Roland K. Price and the entire Hydroinformatics and
Knowledge Management Department staff, not only because of their excellent
educational labour, but also for their human support.
Very special thanks to Germán González, Fernando Ballesteros and Teo Abril, from
Aquadatos Ltda in Bogotá, Colombia, who provided me important amount of
information to finalise this research appropriately.
Extensive thanks also for Dr. Jaime Ortiz from the National Health Institute for
providing me the water quality information collected for SIVICAP, as well as Dr.
Arrieta from the Public Services Superintendence, Colombia.
Finally, I want to offer my sincere thanks to Mrs. Claudia Brakel, my diligent and
attentive fellowship officer, for giving me the faith to make real what twenty months
ago was just a dream.
ii
Table of Contents
Abstract.......................................................................................................................... i
Acknowledgements ...................................................................................................... ii
1 Introduction .......................................................................................... 8
2 Background of water quality problems in distribution networks . 10
2.1 WHO guidelines for drinking water and the Water Safety Plans................... 10
2.2 Water quality problems in water distribution systems (WDS)....................... 13
2.2.1 Description of quality problems in WDS ............................................... 13
2.3 Water quality problems in intermittent distribution systems (IDS) ............... 15
2.3.1 Description of water quality problems in IDS........................................ 16
iii
6.4.4 The Genetic Algorithms ......................................................................... 57
6.4.5 COPA module (Changing Operation on Pollutant Affection) ............... 58
6.4.6 The optimisation process ........................................................................ 62
6.4.7 Case study of Villavicencio.................................................................... 67
9 Discussion ............................................................................................ 92
9.1 General discussion.......................................................................................... 92
9.2 The proposed approach for intermittent supply modelling ............................ 92
9.3 Managing contamination in WDS .................................................................. 94
9.3.1 Finding the contamination sources within the network.......................... 94
9.3.2 Operational responses as an optimization problem ................................ 95
9.4 The SMS for operative support and warning.................................................. 97
10 Conclusions ......................................................................................... 99
10.1 Intermittent supply.......................................................................................... 99
10.2 Pressurized supply .......................................................................................... 99
10.3 The SMS for ensuring safe water ................................................................. 100
iv
List of Tables
Table 2.1 Summary of water quality problems associated with water age .................... 14
Table 4.1. Network characterization. Lengths in km per diameter and material
(roughness) ............................................................................................................. 22
Table 5.1 Case A: free outfall......................................................................................... 32
Table 5.2 Case B: Outfall at 2m-height.......................................................................... 33
Table 6.1. Example of records generated for the database............................................. 51
Table 7.1. Communication strategies ............................................................................. 72
Table 8.1 Description of the Pascal units used by QMagNet-V..................................... 81
List of Figures
Figure 2.1 Interrelationship of the chapters of the Guidelines for Drinking Water in
ensuring drinking-water safety ............................................................................... 11
Figure 2.2 Overview of the key steps in developing a water safety plan (WSP) ........... 12
Figure 2.3 Infiltration in IDSs before and after the system resumes.............................. 16
Figure 2.4 Summary of microbial occurrence in Water and Soil Samples .................... 17
Figure 2.5. Examples of risks by backflow contamination ............................................ 18
Figure 4.1. Location of Villavicencio city in Colombia................................................. 20
Figure 4.2 Topography of the city, elevations in meters ................................................ 22
Figure 4.3. Network sectorization recommended by Aquadatos (2000)........................ 23
Figure 4.4. Chloride concentrations for the treated water .............................................. 24
Figure 4.5. Average consumption per capita in Villavicencio ....................................... 25
Figure 4.6. Daily production curve in the treatment plant during April 2000................ 26
Figure 4.7. Comparison of non-revenue water by volume in different Colombian cities
................................................................................................................................ 27
Figure 4.8. Comparison of water losses in different Colombian cities .......................... 27
Figure 5.1 Stability results for case A ............................................................................ 33
Figure 5.2 Stability results for case B............................................................................. 35
Figure 5.3. Relation between time steps and pipe slopes ............................................... 36
Figure 5.4. Flows in the pipes for the SWMM model, in l/s (after the network is
completely filled).................................................................................................... 37
Figure 5.5 Flow in the pipes for EPANET model, in l/s ................................................ 37
Figure 5.6 SWMM node depths (after the network is completely filled)....................... 38
Figure 5.7 EPANET node pressures............................................................................... 38
Figure 5.8. Water reception times at the elements showed in Figure 5.6....................... 39
Figure 5.9. Flow in the link connected to the big storage .............................................. 39
Figure 5.10. Flow and depth comparison ....................................................................... 40
Figure 5.11. Villavicencio’s SWMM model scheme. .................................................... 41
Figure 5.12. Model nodes configuration, where Q: Flow through the outlet; Qd;
household demand flow.......................................................................................... 42
Figure 5.13. Typical demand curve for a pressurized system in terms of daily average
consumption factors................................................................................................ 42
Figure 5.14. SWMM dialog box to configure a pressurized demand pattern ................ 43
Figure 5.15. Link capacities (relation current depth / full depth) at 1 hour ................... 44
Figure 5.16. Filling up process of the Villavicencio network (closing inlet at 1m tank
level) ....................................................................................................................... 45
v
Figure 5.17. Water reception times (closing inlet at 1m tank level) .............................. 46
Figure 5.18. Times of tanks charging, tanks at 1m. ....................................................... 46
Figure 5.19. Link capacities (relation current depth / full depth) at 1 hour ................... 47
Figure 5.20. Water reception times (closing inlet at 0.5m tank level) ........................... 48
Figure 5.21. Times of tanks charging, tanks at 0.5m. .................................................... 48
Figure 5.22. Filling up process of the Villavicencio network (closing inlet at 0.5m tank
level) ....................................................................................................................... 49
Figure 6.1. Flowchart for database generation ............................................................... 52
Figure 6.2 Flowchart to find affected nodes by a given pollution source. ..................... 55
Figure 6.3 Population members for an optimisation problem in WDS using GA.......... 58
Figure 6.4 COPA module flowchart............................................................................... 59
Figure 6.5. Objective function concept for a particular solution (network state)........... 62
Figure 6.6 COPA module and its relationship with GLOBE program........................... 63
Figure 6.7. Discretization option in GLOBE.................................................................. 63
Figure 6.8 Boundaries for the variables ......................................................................... 63
Figure 6.9. Small example. Pollution after 48h simulation. ........................................... 64
Figure 6.10. Best solution for the small example ........................................................... 65
Figure 6.11. Solution found for the small example with GA, after 52 evaluations........ 66
Figure 6.12. Pareto front for the multi-objective optimisation of the small example .... 67
Figure 6.13. Villavicencio - Sector 11............................................................................ 68
Figure 6.14 Affected area of sector 11, Villavicencio after 24 hours of contamination
from J2119.............................................................................................................. 69
Figure 6.15 Optimisation results for sector 11, Villavicencio........................................ 69
Figure 6.16. Pareto front generated by NSGAX for sector 11, Villavicencio................ 70
Figure 7.1. GSM architecture ......................................................................................... 73
Figure 7.2 SMS Network Architecture........................................................................... 74
Figure 7.3 Division for the mobile phone service in Colombia ..................................... 77
Figure 7.4 Evolution of the communication services in Colombia ................................ 77
Figure 7.5. Participation of users per economical status ................................................ 78
Figure 7.6. General visualisation of the messages for managing the intermittent supply
in Villavicencio ...................................................................................................... 78
Figure 7.7 General visualization of the messages for managing the pressurized supply 79
Figure 8.1. QMagNet-V structure .................................................................................. 80
Figure 8.2. QMagNet-V main window........................................................................... 82
Figure 8.3. Dialog box for the Generation Databases module ....................................... 83
Figure 8.4 Dialog box for the possible source searching ............................................... 84
Figure 8.5 Dialog box of the estimator of the affected elements. .................................. 85
Figure 8.6. Dialog box for the operational actions ......................................................... 86
Figure 8.7 Disinfection-by product prediction dialog box ............................................. 88
Figure 8.8. Intermittent supply analysis dialog box ....................................................... 89
Figure 8.9. Maps tool within QmagNet-V...................................................................... 91
vi
List of symbols
vii
1 Introduction
The water distribution networks are the most common way to deliver drinking water to
the people settled in urban areas, because they provide direct access to a large amount of
inhabitants in a safe way. Nevertheless, this is not always true, especially in many cities
in developing countries, where the urban piped water is, if not continuously available,
far away to be safe. This situation is reflected within the World Heath Organization
estimations, which states that 1.1 billion people do not have access to safe and sufficient
drinking/water.
In order to face this situation the United Nations have taken into account within its
Millennium Development Goals, the so-called target 10, “Halve by 2015 the proportion
of people without sustainable access to safe drinking-water and sanitation”. WHO, as
support organization, offers its technical contributions, as the Guidelines for Drinking
Water and the Water Safety Plans, developed even before the MDGs declaration.
Additionally, the MDG target 18 states that “in co-operation with the private sector,
make available the benefits of new technologies, especially information and
communications”. In this regard, the social role that Hydroinformatics, starts to play
becomes clearer in the framework of the Millennium Declaration.
The research starts with a description of the water quality problems in distribution
networks and how these problems are conceptualised within the WHO Guidelines for
Drinking Water (chapter 2), as a foreword of the objectives that are stated in the chapter
3. Chapter 4 presents a description of the Villavicencio drinking water system, as well
as the problems related with the intermittency of the water supply. After this description,
chapter 5 shows a new approach for switching the intermittent supply towards a
continuous one, and explains why this change would improve the safety of the water
supplied in the city.
8
Chapter 9 discuses each component of the research, including the literature review, the
pros and cons of the proposed approaches, as well as the elements that should be
considered before any of their implementations. After this section, the conclusions of
the investigation are presented in chapter 10 following the general research structure.
The recommendations from this research, which are mainly addressing further
researches to improve and complement the proposed methodologies, are presented in
chapter 11.
9
2 Background of water quality problems in distribution
networks
During the last decades the concern about the access to safe drinking water has been
increased all over the world. In the 1970s, it was part of International Health Care and
the World Water Conference and in the 1980s it was part of the water supply and
sanitation decade. In the new millennium, this issue has been in focus at the
Johannesburg World Summit for Sustainable Development in 2002 and, in the near
future, in the period 2005-2015, with the International Decade for Action, “Water for
Life” (WHO 2004). It is also identified as a critical condition for achieving the
Millennium Declaration Goals adopted by the General Assembly of the United Nations
(UN), in 2000.
The World Health Organization (WHO) has developed a framework with guidelines and
recommendations on how to improve the drinking water quality for protecting the
public health, which are applicable to any water supply system, including the water
distribution networks. As the current research fits in this framework and shows different
approaches for fulfilling some of those recommendations for the supply networks in
developing countries, the WHO framework will be briefly presented.
2.1 WHO guidelines for drinking water and the Water Safety Plans
The Guidelines for Drinking Water is a document developed by the World Health
Organization with the main objective of protecting the public health. The first edition
was released in 1984. In 1995 a plan for updating the document with the most recent
investigations was developed, which lead to the second edition in 1997 and later to the
third edition released in 2004. The current version was developed by 490 experts from
90 developed and developing countries with the experience and research results
collected along eight years (WHO, 2004). The WHO’s premise is simple: “Interventions
to improve the quality of drinking-water provide significant benefits to health”.
The framework followed with the guidelines is presented in Figure 2.1. It is focused on
the following five key points:
10
Figure 2.1 Interrelationship of the chapters of the Guidelines for Drinking Water in ensuring
drinking-water safety
(Source: adopted from WHO 2004).
The Guidelines are supported by several, separated documents that provide background
information substantiating the derivation of the guidelines and providing guidance on
good practice towards effective implementation. One of them is the so-called Water
Safety Plan (WSP), which details the recommendations for the system assessment,
monitoring and management and communication procedures. The primary objectives of
a Water Safety Plan, according to WHO (2004), are:
11
relevant national, regional and local water quality standards or objectives.
The steps to build a Water Safety Plan are shown in the Figure 2.2:
Figure 2.2 Overview of the key steps in developing a water safety plan (WSP)
The scope of the present research includes some of the elements considered in the last
two steps, which are the management procedures for corrective actions, and the
communication procedures.
12
2.2 Water quality problems in water distribution systems (WDS)
Regardless of the uncertainty associated with information on water-related deceases
around world (coming from variety of the procedures used for monitoring and
reporting), the best estimates from public literature state that the range of deaths
associated with this problem falls between 2 and 5 million every year. In addition,
missed working days, educational opportunities, health attention costs and family
resources reduction are also consequences of a non-safe access to drinking water
(Hassan 2004).
The public health issue is not only related to the contamination of the superficial water
bodies, but also with the poor quality into the water distribution networks themselves,
and it is usually the deprived people who are most affected. In fact, it has been
documented that the poor people are those who are exposed to a higher risk from
infectious diarrhoeal decease from poor drinking water (Payment et al 2001). Godfrey
and Howard (2004) state that when the piped water supplies are contaminated, the poor
are more likely to use it either because they cannot afford a home treatment system or
because they do not have storage facilities to take water from as a secondary source.
Additionally, the bottled water solution is also too expensive to be used for the poor in
these situations.
Furthermore, the problem is related to the property of piped systems to spread deceases.
Despite the fact that drinking water may not be as important transmission route for
epidemic deceases as others (Cairncross 1990), it has been documented (Ford et al
1996), that the water may widely spread an outbreak even when it is not contaminated
(Godfrey et al 2004). In other words, the water in the distribution system may act as a
transport device for the deceases.
In addition to the mentioned problems, the methodologies for testing the water quality
are not helping too much for reducing the threats. The traditional method of “end-
product-testing” for monitoring the drinking water quality is useless for preventive
action, due to two basic reasons (Godfrey et al 2004, Medema et al 2003, OECD–WHO
2003): Firstly, it works with a small amount of water quality data compared with the
amount of water produced, and therefore the conclusions about the water quality are too
compromised. Secondly, the water quality analyses take so much time to show results
that by the moment of its availability the water has been already delivered to the
consumers.
As will be shown, this research is making a contribution for reducing the water quality
threats in distribution systems by making use of specific computer applications. These
applications can be seen as building components for a full-fledged Early Warning
System (Brosnan 1999). Such a system consists of water distribution model, water
quality model integrated with tools for operational guidance and for rapid
communication of warnings to all concerned parties - operational managers, as well as
consumers.
13
harmless bacteria may already exist into a distribution system even in presence of
residual disinfectant. The same author states that in spite of the inoffensive nature of
these bacteria, it can contribute to the growing of other life forms. This approach is also
supported by Maier (1999), who asserts that even the most advanced treatment may
allow passing small amounts of bacteria into the distribution system.
Under these considerations, it is possible to observe that it is not necessary to wait for a
special event to obtain contaminated water. Intentional actions (such as terrorist attacks)
are less frequent problems in developing countries. Accidental events can sometimes be
with serious consequences, and need to be treated as special cases. However, most of
the causes of water quality problems occurring on a more regular basis in developing
countries are not of such nature. The set of water quality problems that are subject of
this thesis, are in fact all associated with ‘normal’ operation of the network, as presented
in the following sections.
According to AWWA (2002), the water age is one of the most important factors for
water quality deterioration within the distribution systems, and it is affected by two
main processes: the interactions between the pipe wall and the water and the reactions
into the mass of water itself. These processes affect the water quality during the
distribution leading to physical, chemical and aesthetic transformations.
Periodic excesses of sediment load from the source may overwhelm some treatment
processes, such as filtration, that may lead to the pathogens entering into the system.
These can be so important, that they can affect the served population with detectable
gastrointestinal illness (OECD–WHO 2003).
When the water leaving the treatment plant is deemed to be safe, several cross
14
connections may re-contaminate the water. The following are four types of such
connections (OECD–WHO 2003):
1. Infiltration
There are three conditions that must exist together for water contamination through
infiltration: first, contaminated groundwater surrounding the network, because of sewer
systems leakage, for instance. Second, low or nil pressures into the pipes, situation that
may occur when a service interruption is required or when deficient operation of the
network is taking place. And finally, the deficient state of the pipes, such as non-
hermetic joints, or pinholes presence due to corrosion.
2. Back siphonage
This situation occurs when negative pressures in the system may suck in contaminated
water, though submerged supply pipes into domestic tanks. It is clear that this problem
is due to bad plumbing practices at housing levels.
3. Open drinking water storage reservoirs
Storage reservoir contamination is likely to occur when it is opened. Faecal
contamination may produce because of birds’ excreta. It can also occur that the birds
enter into the reservoirs through non-protected roof vents.
4. Line construction and repair
Every time that a main pipe has to be repaired, it is necessary to fulfil strict procedures
to avoid the introduction of contaminated soil or debris with the consequent entering of
pathogens into the network distribution.
As was stated before, various bacterial species might be present in the network even
when faecal indicators in the treatment plant are not detected, and they can grow under
favourable conditions in the pipe walls, which may lead to the formation of the so-
called biofilm. (Howard 2002). Although he also states that the biofilm may deteriorate
the water quality in the distribution networks, Payment et al (2001) report that the
biofilm formation has not current relation with any outbreak of waterborne decease.
The causes of the intermittency in water supply systems are derived most of the times
from a water scarcity in the region or from poor operation and maintenance practices.
(Totsuka et al 2004). Nevertheless, water consumption culture of the users of the system
may also be an important cause for discontinuous service, as well as the general belief
that an intermittent system is least costly than a 24h-piped supply.
15
The consequences of having a system working under intermittency are, among others,
the following, (Totsuka et al 2004):
• Inequitable water distribution among the population.
• Higher costs for the costumers, due to the necessity for the system to have additional
facilities, such tanks, pumps or alternative supplies.
• Wasting water as a result of the generalized mistrust on the system, which leads to
the people to storage as much water as they can.
• Higher costs for the water supplier, in the sense that the system needs more
operational efforts to work.
• Availability of water at inconvenient hours for the people.
• Malfunctioning of the households’ water meters due to the presence of air, which
leads to an inaccurate reading, with the consequent negative economical impact over
the population and the supplier.
• Water contamination and health hazard.
2.3.1.1 Infiltration
The infiltration occurs when non-treated water enters into the piped system. Where this
occurs, a concentrated “slug” of polluted water flowing through the network can
expected when the charging of the system is resumed, increasing the risk for the users
(Figure 2.3).
Contaminated groundwater
As mentioned earlier, the three conditions that must exist together to have infiltration
are:
16
• Contaminated groundwater surrounding the network.
• Nil or negative pressures within the network.
• Defects in the pipes.
1. Contaminated groundwater surrounding the network.
The situation of nil or negative pressures is associated more for fully pressurized
systems than intermittent supplies, since it is related to pressure transients, which are
caused by abrupt changes of the velocity of water, due to valve closure, pump stoppage
or pipe fracture (LeChevallier et al, 2002). Obviously, in intermittent supplies, the pipes
are emptying regularly and therefore the pressure in them is equal to the atmospheric
pressure.
3. Pipe defects
The pipes in a system may have different defects, due to deficient construction,
deficient maintenance or poor quality of its materials. Non-hermetic joints, or pinholes
presence due to corrosion are common problems.
2.3.1.2 Backflow
On the other hand, the backflow occurs when negative pressures in the pipes suck in the
untreated water from domestic storages, which are wrongly connected to the supply
network. In intermittent supplies this may happen when the system is emptying, in such
a way that a wedge of water that travels downstream sucks up the air behind it,
17
generating negative pressures. Some examples of situation when the supply water is at
risk of backflow contamination are shown in Figure 2.5
18
3 Objectives of the present research
The primary objective of the present research is to gather and implement a suitable
collection of hydroinformatics tools for dealing with several different water-quality
problems frequently occurring in distribution networks that operate in developing
countries. Such tools can then be combined into one software application, which can
serve for overall improvement of water quality real-time management and operation of
these systems.
The specific objectives of this research are associated with a subset of water quality
problems for which suitable approaches and tools will be developed. They are listed as
follows:
• To propose a new approach for switching an intermittent supply system towards
a continuous, pressurized supply system, by using an innovative modelling
methodology of these systems.
• To pose the operational responses to contamination events as an optimisation
problem, which can then be solved by applying optimisation methods based on
randomised search.
• To demonstrate how the mobile technology, particularly short message services
(SMS), can be used in real time management.
• Integrating of the developed tools for these three specific objectives into one
application, which can serve as a demonstrator of possible ways for facilitating
the access of water quality information for customers (to ensure safe drinking
water) and for operators (to have optimal operational advices during an
emergency situation).
The following chapter will first present the characteristics of the water supply system of
the town of Villavicencio, Colombia. The water supply system serves as a test case for
all tools and approaches developed in this thesis.
In the following chapters the approaches taken for achieving each of the four specific
objectives will be described. These chapters are organised in a similar fashion. They
first introduce short theoretical background and literature review, and then they
introduce the proposed methodologies on simple examples. Then, the developed
approaches are tested for the case of Villavicencio.
19
4 The supply system of Villavicencio, Colombia
Villavicencio has about 318.000 inhabitants in the urban area. The drinking water
consumption is about 65 m3/day per subscriber, or about 450 L/day per capita, being
one of highest of Colombia. La Esmeralda is the treatment plant that supplies the city,
with a total capacity of 1.6 m3/s in average and it has the basic traditional processes,
from screening to filtration. Disinfection and pH stabilisation exist as well.
The situation of the excessive consumption is in part due to a 17% of the users do not
have meter and most of the houses have storage tanks with deficient overflow control.
Nearly 84% of the water consumption is residential, and half of this correspond to
medium-low income population.
The unemployment rate of 14%, combined with the fact that this is one of the most
expensive cities of Colombia (Banco de la República, 2004), is an indication of the
20
social difficulties that this city is facing. On the other hand, according to Arrieta (2002),
during the period 2001-2002 Villavicencio collected only the 67% of tests required for
water quality analysis by the decree 475-1998, Colombian law.
• Quebrada Honda: The main source of the city, since it provides 1600 l/s to the
system. It has worked since 1999, after four years of construction of the intake
with sand removal and the 15.8km-length and 825mm-diameter transmission
line that ends in La Esmeralda Treatment Plant. The river often destroys it when
the water arises until its foundation level.
• Guatiquía River: It has two different inlets, known as Puente Abadía and
Bavaria. Both intakes are utilized as an alternative support for the main source,
when the water destroys that pipe. The first source comes into La Esmeralda
Treatment Plant through a 9.5km-length and 610mm-diameter pipe, whereas the
second one arrives to the same plant through a 1.6km-length and 600mm-
diameter pipe. These sources can supply 600 l/s each.
• Caño Parrado: This source is located at 5km from La Esmeralda Treatment Plant.
It can provide 30 l/s in dry season and 100 l/s in rain season, discharges that are
transported through a 300mm-length pipe.
• Caño Buque Alto: This source is part of the so-called Fuentes Altas gravity
system, and supplies directly into the network system a discharge of 150 l/s
through a pipe of 3.5km-length and 200mm-diameter. It has not any treatment
process because this water was considered appropriate for drinking many years
ago. Nevertheless, nowadays, it is being built a new treatment plant for it.
• Caño Maizaro: This source is also part of the Fuentes Altas gravity system. It
provides approximately 160 l/s through a pipe of 450-diameter. Both sources of
Fuentes Altas are mixed in a common reservoir, from where two pipes of
200mm-diameter supply a specific area of the city.
21
4.2.3 The network
The supply network of Villavicencio is formed by 350 km of pipes with diameters
between 10 and 84cm; detailed information can be obtained from Table 4.1. The
treatment plant is located at the north – west part of the city at the highest elevations, as
shown in Figure 4.2.
Table 4.1. Network characterization. Lengths in km per diameter and material (roughness)
Hazen Williams roughness coefficient
Diameter
130 150 112 120 140 91 135 100 Grand Total
mm
25 0,173 0,173
51 0,492 5,485 2,939 0,25 4,33 13,496
64 0,314 0,314
76 169,441 29,534 18,498 217,473
102 14,49 1,411 0,354 2,054 0,373 18,682
152 0,538 24,194 10,673 0,723 0,155 0,03 36,313
203 12,374 5,5 2,713 20,587
254 3,205 5,253 1,458 0,606 10,522
305 0,927 0,162 3,597 4,686
356 1,489 6,435 2,493 4,166 14,583
406 0,356 0,622 2,053 0,181 3,212
457 0,057 0,057
508 3,873 3,873
610 3,994 3,994
686 1,879 1,879
838 0,054 0,054
Grand Total 1,03 232,45 62,53 0,35 28,19 4,86 20,28 0,21 349,90
La Esmeralda
Treatment plant
Fuentes Altas
Altas
Source
22
1 2
3
8
4
7
5 6 11
10
9
For the purpose of this research, the model was rebuilt with the following characteristics:
EPANET-based.
Pipes from 5cm were considered. (2781 nodes and 4030 pipes. From the
hydraulics point of view, the pressure and discharges may not change, but the
water quality does, i.e. water age, which accuracy may change with a network
skeletonization, (AWWA 2002).
Consumption per capita 180 L/day without factor for water wasted.
Pipe roughness reduced according with their age and material.
23
SIVICAP” (Ortiz et al 2004), shows that 66% out of 672 measurements made in
different points of the network yield unacceptable value for total coliforms in 2001, as
well as 85% out of 13 measurements in 2002, 100% out of 3 in 2003 and 64% out of
407 in 2004.
In spite of these bad results, it has been found that the quality of the treated water, just
at the moment when the water leaves the treatment plant, has a good condition for
drinking, at least for the period when the information is available. Colour, pH and
conductivity have correct values, as well as the total and residual chloride for
disinfection, as is shown in Figure 4.4. This could be an indicator of that the treated
water is re-polluted in the network, and the most probable reason is the intermittency of
the service.
Chloride concentrations of treated water
leaving the plant
0,9
0,8
Concentration mg/L
0,7
0,6
0,5
0,4
0,3
0,2
0,1
0
3- 04
4- 04
5- 04
6- 04
7- 04
8- 04
9- 04
-2 4
-2 4
4
-2 4
-2 4
-2 4
-2 4
10 0 0
15 00
00
13 00
14 00
11 00
12 00
20
20
20
20
20
20
20
-2
-2
-2
-2
-2
-2
2-
2-
2-
2-
2-
2-
2-
2-
2-
Date
Chloride Residual Chloride Total
First of all, more than 70% of the population has domestic tanks with capacities
between 7 and 9 cubic meters, and all of them are practically under the houses
(Aquadatos 2000). Different measures carried out in different zones of the city showed
that these tanks receive water with discharges about 0.5 l/s when the pressure is 20
meters water column.
Secondly, these storages cause huge water demands. This can be proved according to
the data collected by Aquadatos (2000), who installed new micrometers in several
homes where the instrument did not exit. Those micrometers were monitored during one
week, without previous users’ awareness and with no effect on their billing, in order to
24
avoid any change of the behaviour consumption. A summary of the conclusions is
shown in the following graph (Figure 4.5), and listed further:
Average consumption per capita in
Villavicencio
1000
Consumption (L/day)
800
636 Billing
600 Theoretical cons.
Micrometers
400 251 Measurements
180
200 112
Furthermore, the water production from the Treatment Plant was also measured. For
April of 2000, the following water production curve was obtained (Figure 4.6):
25
Average consumption curve for the city of Villavicencio
for the month of April 2000
1,850
1,800
1,750
1,700
Discharge (lps)
1,650
1,600
1,550
1,500
1,450
1,400
1,350
09:00
10:00
11:00
12:00
13:00
14:00
15:00
16:00
17:00
18:00
19:00
20:00
21:00
22:00
23:00
00:00
01:00
02:00
03:00
04:00
05:00
06:00
07:00
Hour of day
Figure 4.6. Daily production curve in the treatment plant during April 2000
Source: Aquadatos (2000)
It can be observed that the production for the city is about 1,6 cubic meter per second,
for 318,000 inhabitants. A simple relation leads to the fact that each person has an
equivalent demand of about 435 l/s in average. It can also be observed that the
consumption curve is completely different to a curve of a pressurized system. Two facts
reflect the intermittency impact: first, the peak at 10:00 pm, and second, the high water
production at nocturnal hours. To have an idea if the intermittency of the water supply
in Villavicencio, 12 turns per week in one of its sectors was found by Aquadatos (2000).
Although one of the possible reasons of the excessive water production showed in
Figure 4.6 is the leakage in pipes, Aquadatos (2000) found that only 16% of the leaks
repaired during that year were in the piped system, while the rest were in the household
connections.
In summary, the city is producing three times more water than what it really needs, but
in contrast, the inhabitants are actually consuming a normal volume of water.
Additionally, they are being charged with a tariff lower than the real consumption a
according to the characteristics of the city. This means that the treated water is being
wasted for filling up an important number of huge tanks.
The non-revenue of water by volume, the water losses and other performance indicators
were compared among the most important Colombian cities and documented by
Umbarila and Alfonso (2003). The Figure 4.7 and Figure 4.8 show clearly the situation
for Villavicencio.
26
Figure 4.7. Comparison of non-revenue water by volume in different Colombian cities
Source: Adopted from Umbarila and Alfonso (2003)
27
5 From intermittency to continuous supply: a new approach
5.1 Introduction
As stated in section 2.3, the intermittency is not an ideal condition to operate a network
since it leads, not only to a deficient water supply in terms of quality and quantity, but
also to higher costs for both operators and customers. The present chapter looks for an
approach that allows starting a sort of metamorphosis on these systems, to pass from
intermittent to pressurized condition, working on the water consumption culture. The
main idea is to develop a model to be used for predicting the water reception times to
each household and the time when their domestic tanks might be completely filled. This
information would be sent to the costumers in order for them to plan their water use,
preventing the unnecessary big water storage, and consequently the huge wasting water
that characterize these systems. It has to be noted, however, that this will be only
possible in regions where the water resources are available during the whole year and
where the problem is a lack of good management.
The main objective for modelling the intermittency is to have information about who is
getting water and at what time, when the systems resumes, in order to develop criteria to
operate the system under this condition. Other objectives are:
• To know the water reception times of the users after the system restarts.
• To know how long time is required to fill up all the tanks of the city.
• To know the time when the tanks are completely filled.
• To establish how long time is needed for the network to be completely pressurized
after the system restarts.
• To find out the best time for closing the domestic taps in order to help the system to
become pressurized.
28
order to simulate the conditions of the intermittent supply, by using storage tanks
instead of pressure junctions. Nevertheless, that model has two main disadvantages,
such as the disability of modelling the network when the pipes are empty or at free flow
and the fact that the tanks have not their own household demand.
Godfrey and Howard (2004) developed a charging model to simulate the charging up
process of the water network after supply resumes. It takes into account the assumptions
made by Liou and Hunt (1986), which are numerated as follows:
• The pipe that is being charged has a water column with a well-defined front.
• The pressure is atmospheric at the front of such column.
• The water is incompressible.
• Frictional flow-resistance is used for steady flow.
Unfortunately, it was not possible to obtain that model during the time of this research.
SWMM is a dynamic rainfall-runoff simulation model used for single event or long-
term (continuous) simulation of runoff quantity and quality from primarily urban areas.
It was first developed in 1971, and different researchers have improved it afterwards. In
the latest version (5.0), the code was completely rewritten with modern software
engineering techniques. Special emphasis in the numerical sub-model known in
previous versions as Extran, was made (Rossman 2005b), which includes a method for
the solution of the full dynamic wave flow routing that allows the simulation of
surcharge conditions, backwater flow and pressurized flow.
SWMM solves the Saint Venant equations, which for flow along an individual conduit
can be expressed as:
29
where x is distance along the conduit, t is time, A is cross-sectional area, Q is flow rate,
H is the hydraulic head of water in the conduit (elevation head plus any possible
pressure head), Sf is the friction slope (head loss per unit length), hL is the local energy
loss per unit length of conduit, and g is the acceleration of gravity. The area A is
function of flow depth y, which in turn can be obtained from the head H. Thus the
dependent variables in these equations are flow rate Q and head H, which are functions
of distance x and time t. Besides,
where n is the Manning roughness coefficient, V is the flow velocity (equal to the flow
rate Q divided by the cross-sectional area A), R is the hydraulic radius of the flow’s
cross-section, and k = 1.49 for US units or 1.0 for metric units.
An additional continuity relationship is needed for the nodes where the pipes are
connected, which assumes a continuous surface area between a pipe and the node where
is connected.
where Astore is the surface area of the node itself, ΣAs is the surface area contributed
by the conduits connected to the node, and ΣQ is the net flow into the node (inflow –
outflow) contributed by all conduits connected to the node. SWMM solves the dynamic
wave flow routing model with a method of successive approximations under relaxation,
to check the head values at the nodes. This method is similar to the iterative method of
previous versions. Additionally, a variable routing time step that tries to adjust the
Courant number criteria when the simulation unfolds is used.
Nevertheless, when surcharge condition is faced, the surface area of the conduit
becomes zero and the previous equation is no longer applicable. SWMM 5.0 uses then
an additional equation, which corresponds to the continuity equation for a node in a
looped, pressurized system and states that the flow that enters a node must be the same
as the flow that comes out from it. In this case, no under relaxation is performed over
the resulting heads.
The stability criterion of the numerical solution is given by the Courant number, which
comes from the restriction for the celerity to be less than the velocity of the pipe, and is
defined from the SWMM numerical method as:
L = tV
(1 − Fr )
Fr
where L is the conduit length, t is the time step, v is the velocity in the conduit and Fr is
the Froude Number. Substituting Fr by its definition, yields,
30
L=t ( gy + V )
This is a particular case of the stability expression Courant-Friedrich-Levy, which states
that the maximum time step of the model must be:
In which T is the narrowest free surface width at the given channel cross section, and
that corresponds to the narrow width of the Preismann slot when surcharged conditions
take place.
The idea behind the utilisation of SWMM for modelling the intermittency in a supply
network is that the flow within a pipe might have initially a free surface behaviour when
the system resumes, and then it becomes totally full. The well-defined front with a
vertical column is not obtained anymore, but the obtained front depends on the
hydraulics within the pipe. This hypothesis could be particularly true in sloping
networks, where the lowest part should be filled up first.
The assumptions for modelling a supply network with a tool conceived for modelling a
drainage system are the following:
• An infinite-capacity storage tank with an initial level is set to simulate the source of
water (treatment plant), at constant head.
• The pressure junctions are simulated as manholes, which are treated as piezometers
during the analysis. The cross sectional area of each piezometer is set to about
0.00001 m2, in order to avoid additional volume for water storage during the
simulation.
• The height of each piezometer is set at the same level of the initial water level of the
huge storage tank that simulates the treatment plant, in order to avoid overflows at
the nodes.
• A storage tank is connected to each piezometer by means of a conduit that allows a
head-dependant flow through it and that starts flowing when the head in the
piezometer is about 2m. This configuration simulates the vertical distance between
the household connection and the outlet to the tank.
It is expected that the nodes are filled as soon as the water fills up its previous pipe
completely, and the normal behaviour of a pressurized pipe (i.e. steep piezometric line
due to friction head losses) is achieved at the end of the simulation. The analysed
system consists in a 0.2m-diameter pipeline, connected at the upstream side to a storage
31
tank that is big enough, to ensure a constant head of 4m during the analysis. A
horizontal pipeline is considered, as well as nine computational points (manholes) along
the pipe. Furthermore, a controlled orifice is placed at the storage outflow, which is
initially closed, but switches to the opened state after 10 seconds of simulation.
32
Best profile: Water Elevation Profile: Node 1 - 11
10
11
1
9
1 2 3 4 5 6 7 8 9 10
5
Elevation (m)
3
1
11
10
11
1
9
1 2 3 4 5 6 7 8 9 10
the 5
beginning: 4
Elevation (m)
1
11
10
11
1
9
1 2 3 4 5 6 7 8 9 10
instability 5
4
Elevation (m)
1
11
33
60 50 100 No 1 2.3 72 Ending Ok rest
60 100 100 No 1 21 649 Very High
60 10 100 Yes 1 3.2 84 Low Ok
60 50 100 Yes 1 2.3 71 Ok
60 100 100 Yes 1 3.2 101 Starting Ok rest
10
11
1
9
1 2 3 4 5 6 7 8 9 10
5
4
Elevation (m)
3
11
2
0 50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800 850
Distance (m)
01/31/2006 00:10:00
10
11
1
9
1 2 3 4 5 6 7 8 9 10
at the 5
beginning 4
Elevation (m)
3
11
2
0 50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800 850
Distance (m)
01/31/2006 00:01:40
10
11
1
1 2 3 4 5 6 7 8 9 10
instability 5
at the end 4
Elevation (m)
3
11
2
0 50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800 850
Distance (m)
01/31/2006 00:30:00
34
Example Water Elevation Profile: Node 1 - 11
of high
10
11
1
9
1 2 3 4 5 6 7 8 9 10
instability 5
Elevation (m)
3
11
2
0 50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800 850
Distance (m)
01/31/2006 00:25:00
A similar analysis was performed for a pipe with different slopes. The conclusions are
the following:
Slope: -1%
• The best time step (stability condition and no oscillations) is 24s. For 25s, the
solution becomes instable for both options of Normal Flow Limit.
• When the water surface slope smaller than conduit slope is used as Normal Flow
Limit, the best time step is 15s. Dramatic instability is observed for time step of
16s, and important oscillations are observed for time steps less than 15.
• When “Froude number bigger than 1” is used as Normal Flow Limit option, the
instability is impossible to avoid, even if the variable time step option is used.
• The sensibility to the Normal Flow Limit options are due to the fact that for this
slope, the flow is within the critical range, this is, Froude number between 0.9
and 1.1. The flow slope is then changed between the supercritical and subcritical
states and the calculation of the heads at the nodes results quite different in
successive time steps, leading to high instability.
Slope -4%,
• The best time step is 10s, but dramatic instability is observed for greater time
steps. The type of Normal Flow Limit used does not affect this result. Lesser
time steps imply oscillations in the initial part of the simulation.
Similar analyses for different slopes were carried out without using the variable time
step option. Figure 5.3 shows the relationship between the maximum time step and limit
35
for which the solution remains stable, for both negative slopes (in the same direction of
the flow) and positive slopes (in the opposite direction of the flow). It can be observed
that, for negative slopes, the time steps need to be smaller as the slope pipe is steeper; in
contrast, for positive slopes, the time steps can be larger as the pipe is steeper.
120
100
Limit Time Step (s)
80
60
40
20
0
-4 -3 -2 -1 0 1 2
Slope (% )
The graph shown in the Figure 5.3 illustrates that the best option for modelling with
SWMM is considering the smallest time step as possible, in order to avoid instabilities
due to critical elements such as short or steep pipes included in the system.
For looped, pressurized systems, SWMM 5.0 is also useful, since the Saint Venant
equations are solved with the Preismann slot approach, and the continuity equations at
the nodes correspond to the input-output flow balance. A comparison is made between
EPANET and SWMM for an identical system.
36
The following figures (5.4 to 5.7 ) show some of the results:
12/16/2005 09:59:57
3.09
0.50 0.50
12.50 6.00 0.50 0.50 0.50
1.64 0.75
Figure 5.4. Flows in the pipes for the SWMM model, in l/s (after the network is completely filled)
Day 1, 12:00 AM
3.09
12.50 6.00
1.64 0.75
6.00 -2.41
-0.95 -0.40 -0.25
2.41
2.16
1.40 0.68
3.09
0.75
37
12/16/2005 09:59:57
0.00 o8
0.00 0.00 0.00
49.54 0.00
49.51 49.48 49.47
49.47
0.00
0.00 o12 0.00 0.00
49.49 0.00
49.48 49.48 49.47 49.47
0.00
o14 0.00
0.00 0.00
0.00
49.47 49.47 49.47 49.47 49.47
Figure 5.6 SWMM node depths (after the network is completely filled)
Day 1, 12:00 AM
49.54
49.51 49.49 49.47
49.48
49.49
49.49 49.48 49.47 49.47
38
Figure 5.8. Water reception times at the elements showed in Figure 5.6
In spite of the use of different ranges for the time step, oscillations during the first
moments of the simulation, where the pipes changed from free surface to full state,
could not be avoided. Figure 5.9 shows the velocity value for the pipe that is connected
to the big storage:
180.0
160.0
140.0
120.0
Flow (LPS)
100.0
80.0
60.0
40.0
20.0
0.0
1 2 3 4 5 6 7 8 9
Elapsed Time (hours)
39
Flow and Depth comparison in the link connected to the big storage
100 0.15
80
0.1
60
40
0.05
20
0 0
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45
Elapsed time (hr)
After 3.5h of simulation, the last node receives water, and then the pressure wave
suddenly travels backward, allowing the whole nodes reaching the maximum depth
possible, which corresponds to the pressure head in the pressurized system.
Unfortunately, no access to data in a real network or laboratory experiment to prove this
behaviour was found.
40
5.3 The Villavicencio’s Intermittent Model
5.3.1 Description
A 2839 nodes and 4131 pipes model of the Villavicencio city was build to be used in
SWMM 5.0.
Fuentes Altas
41
Figure 5.12. Model nodes configuration, where Q: Flow through the outlet; Qd; household
demand flow
3.5
3
2.5
factor
2
1.5
1
0.5
0
0 2 4 6 8 10 12 14 16 18 20 22 24
Hour of day (starting from midnight)
Figure 5.13. Typical demand curve for a pressurized system in terms of daily average
consumption factors
• In the SWMM model, this outflow is referred as a negative value for Flow
Constituent in the Dry Weather option, with an hourly time pattern defined by
multipliers, Figure 5.14. Furthermore, the average value shown in the same
figure is calculated as a proportion of the area, which is served by a particular
node. These areas were estimated by means of the Thiessen polygons.
• After several model tests, the total period of simulation chosen was of seven
days. As it will be shown, longer period of simulation is needed to fill up
completely the whole tanks. Nevertheless, the computational effort is so time-
consuming (simulating a period of 1 hour requires a modelling time of more
than 1 hour), that this simulation time was chosen as a proper time to fulfil the
requirements of this research.
42
Figure 5.14. SWMM dialog box to configure a pressurized demand pattern
Two different scenarios related with the domestic storage closure were considered:
• The user keeps the storage tap open until it is completely filled (1m).
• The user closes his/her storage until half of its depth is reached (0.5m).
The simulations are done using the following control rules, which were set for each
node:
• If the flow in a particular outlet is bigger than 0, the outlet flow is multiplied by
a factor of 1. This means that the supplied water has arrived to the domestic tank
that is connected to such outlet. The multiplication of the flow by the unity is
made for reporting purposes.
• If the depth of a particular domestic storage is bigger than 1, then the outlet from
which it is receiving water is closed.
In order to achieve the objectives stated before, the water reception times to the users
after the system restarts, the discharge time series for each outlet connected to a
domestic storage were analysed. Similar time series can be used to know the time when
these tanks become full and the required time for achieving this. This information is
stored by SWMM into an output file, which prints, among other data, the control results.
The SWMM 5.0 interface can only show the time series for up to six different elements.
In order to get these results for every node, a simple application that reads the output
file was developed (further details in chapter 7).
5.3.2 Results
The results for the two considered scenarios are presented as follows:
43
5.3.2.1 Closing the tanks when its water level is 1m.
04/02/2000 01:00:
Link
Capacity
0.00
0.33
0.66
0.98
Figure 5.15. Link capacities (relation current depth / full depth) at 1 hour
One hour after starting the filling of the system is observed that the almost all pipes are
completely full, and only a small neighbourhood located at the south part of the city still
has pipes with free surface flow (Figure 5.15).
Nevertheless, at this time quite few domestic tanks are receiving water, including some
houses located at the northeast of the city; It can be observed in the Figure 5.16 that
after 6 hours about 50% of the city starts receiving water into their tanks and after 24
hours, in the lowest part of the city, some tanks are completely filled up. It can be
considered that the situation becomes static after 2 days, in the sense that no significant
changes are observed if compared with the situation at 4 days, except for the fact that
some tanks of the lowest part, where the water level starts decreasing because of the
household consumption, and because those tanks are already closed, since the level of
1m was achieved. The following legend applies for the Figure 5.16
44
1 hour 6 hours
12 hours 24 hours
2 days 4 days
Figure 5.16. Filling up process of the Villavicencio network (closing inlet at 1m tank level)
The water reception times are shown in Figure 5.17. It can be confirmed that practically
the whole city starts receiving water during the first hour, when the pipes are already
pressurized, as shown in Figure 5.15. After the first 15 minutes, and during the
45
following 30 minutes, about 70% of the city has received water corresponding mainly to
the households located in the lowest part of the city.
Water reception times hystogram
(taps closed when tanks water level is 1m)
350 100%
90%
300
80%
Number of housholders
250 70%
200 60%
50%
150 40%
100 30%
20%
50
10%
0 0%
0
00
:0
:0
:0
:0
:0
:0
0:
0:
5:
5:
0:
0:
5:
0:
5:
5:
00
05
15
30
45
10
:1
:2
:2
:3
:4
:5
:5
:0
:0
:1
:
:
00
00
00
00
00
00
00
00
00
00
00
00
01
01
01
01
Time (starting when system resumes)
Frequency % accumulated
70%
40
60%
30 50%
40%
20
30%
20%
10
10%
0 0%
4
2
0
8
16
24
32
40
48
56
64
72
80
88
96
0
8
10
11
12
12
13
14
15
16
16
Frequency % accumulated
It has to be mentioned that 1060 out of the 2720 domestic tanks (about 60%) were still
not completely filled up after 7 days of simulation. The reason for this is that the water
46
depth in the nodes where these tanks are connected is not high enough to allow larger
flows entering to them.
04/02/2000 01:00:00
Link
Capacity
0.00
0.33
0.66
0.99
Figure 5.19. Link capacities (relation current depth / full depth) at 1 hour
Practically the same result compared with Figure 5.15 is observed, in the sense that
almost all the pipes are completely full with exception of the south part. The same
exercise done for the first scenario yields imperceptible differences in the accumulated
percentages, as can be noted by the comparison between Figure 5.17 and Figure 5.20.
This was expected, since the closure of the tanks has not taken place in the first hour.
It was also expected to obtain reduction of required times to fill the tanks completely.
Figure 5.21 shows that about 56% of the tanks that receives water during the first seven
days are completely filled during the first 2 days. Additionally, while in the first case
the maximum number of households that filled up their tanks was slightly more than 50
in the third day, this value was now increased up to 90 in the first day. The total number
of completely filled tanks in this scenario is 1960 in seven days, which is 53% more
than the obtained value in the first scenario.
If same exercise were carried out again for closing tanks at minor levels, larger number
of completely filled tanks would be obtained in shorter times.
47
Water reception times hystogram
(taps closed when tanks water level is 0.5m)
350 100%
90%
300
80%
Number of housholders
250 70%
200 60%
50%
150 40%
100 30%
20%
50
10%
0 0%
0
00
00
00
00
00
00
00
:0
:0
:0
:0
:0
0:
0:
5:
5:
5:
0:
5:
0:
5:
0:
5:
00
05
15
30
40
:1
:2
:2
:3
:4
:5
:5
:0
:0
:1
:1
:
:
00
00
00
00
00
00
00
00
00
00
00
00
01
01
01
01
Time (starting when system resumes)
Frequency % accumulated
Figure 5.20. Water reception times (closing inlet at 0.5m tank level)
70 70%
60 60%
50 50%
40 40%
30 30%
20 20%
10 10%
0 0%
80
88
96
64
72
16
24
32
40
48
56
8
2
0
0
10
11
12
12
13
14
15
16
16
Frequency % accumulated
48
1 hour 6 hours
12 hours 24 hours
2 days 4 days
Figure 5.22. Filling up process of the Villavicencio network (closing inlet at 0.5m tank level)
The discussion is followed in the section 9.2
49
6 Managing water quality in WDS
6.1 Introduction
The water supply management in distribution networks in medium and small cities of
developing countries is generally carried out based on empirical practices. This leads
not only to financial problems for the supplier, but also, and more importantly, to
population health problems.
The present chapter presents a new approach for managing the contamination in water
distribution systems, by using a combination between the current knowledge for
modelling and the communication technology available nowadays.
In few words, the main idea is that a contaminant hazard that is predicted with a model
can be communicated on time to the right group of people, which could be the managers
of the supply systems or the consumers under direct risk.
Finding the source of the pollution that contaminates the treated water in a piped
network is one of the main difficulties for the supply managers, due to the complexity
of those systems. Thus, the Water Safety Plans (WHO 2004) recommend undertaking a
hazard assessment and risk characterization to identify and understand how hazards
enter into the water supply.
50
The database includes 4 fields (Table 6.1):
1. The tracer value at a monitored node.
2. The node where the pollutant source is currently considered.
3. The time when the value in (1) occurs, in seconds.
4. The current monitored node.
6.2.2 Methodology
An algorithm created in Borland Delphi 7 was used to set a contaminant in each node of
the EPANET model, run it and store the results in a text file. As input, the console
application asks for the model file name, and the target tracer, parameter that will be
discussed further. The respective flowchart is presented in the Figure 6.1.
51
Start
n
k = nNodes
y
n
t=T
y
n
i = nNodes
y
n
j = nMonit
End
Figure 6.1. Flowchart for database generation
As it can be noted, each source node may pollute several nodes at different times, and
therefore the number of records may be considerable. For example, a model with 25
nodes, 15 minutes time step for a simulation period of 24 hours, a tracer target of 5%
and 3 monitored nodes to analyse, yields a database with 15 458 records.
Since the number of monitored stations should not be changed, there are three
remaining parameters that may change the size of the database, which are the number of
potential source nodes, the reporting time step of the model and the tracer value
(pollution target) for considering a node as polluted. Nevertheless, it is clear that the
ideal contamination target is zero, so the minimal presence of the tracer should be
reported, and then the database size is increased. On the other hand, the quality time
step should be consistent with the time resolution available in the quality monitoring
52
facilities installed in the network and for this reason this could be difficult to reduce.
6.2.3 Assumptions
The following assumptions were made:
Only one node at time is contaminated for each run of the model.
All nodes were considered as potential pollutant sources.
The contaminant is treated as a tracer, so there is not any distinction on the
particular chemical, biological or radioactive characteristics, and no decay rate is
used.
The contaminant is always applied at 0:00 hours into the system.
6.2.4.1 Methodology
In order to perform the searching, several methods were attempted, which includes the
conversion of the generated text file into an Access database to apply filters, the
development of a Delphi code to read the text file, and the use of algorithms
implemented in MATLAB. The first method was discarded because the Access
conversion implied huge size of the mdb files, several tens of times bigger than the
simple text file; the second method implied the invention of an optimum algorithm, but
its development cannot be included in the scope of this research.
The advantage of using MATLAB is that the variables are stored as matrices, and the
commands are designed for managing them optimally. The “find” function fulfilled the
requirement of speed of searching with an acceptable text file size. The steps are as
follows:
1. Read the text file, so each column is stored in a matrix and each column has its
own index.
2. Read the monitored node entered by the user.
3. Filter the indexes of the fourth column that correspond to such monitored node
and make a new indexation of the filtered records.
4. Read the tracer detected at the monitored node.
5. Filter the indexes of the first column from the indexes generated in point 3 that
53
correspond to such tracer value.
6. At this stage, only the “responsible” nodes of the pollution remain in the list.
6.2.4.2 Assumptions
Some of the assumptions made for the pollutant sources searching are related with the
other fields mentioned in the WHO’s Water Safety Plans (WHO 2004), and that are out
of the scope of this research.
• It is assumed that a proper monitoring system to measure the pollution with a
given time step resolution, is available in different points in the network.
• The causes of the contamination are not studied.
• The pollutant is modelled as a tracer, therefore, neither concentrations nor decay
values are considered;
• The monitored nodes are able to measure a contaminant in terms of tracer
percentage.
Nevertheless, it is not that easy to play with a model when the contamination is taking
place and the population is under risk, even for an expert modeller, so an apriori easy
modelling procedure might be helpful in these cases.
For this situation, it becomes useful the use of a tool like EPANET 2.0 (Rossman 2000),
which is a free solver engine for pressurized networks developed by the US’
Environmental Protection Agency. The big advantage of this software, additionally to
the null cost, is that the source code is opened for developers and that a toolkit for
programmers is also available. The toolkit provides a series of functions that allow the
customisation use of EPANET's hydraulic and water quality solution engine to external
applications. For the present research, the Toolkit version 2.00.07, released on January
2001, was utilised.
In order to find which nodes are affected by a given pollutant introduced within a pipe
network, a Delphi application, which uses the capabilities of the EPANET´s toolkit for
programmers, was developed. The main idea is that, given a contaminant value at a
specific node, the application set up the EPANET model properly, runs it and captures
the output results. The flowchart is presented in Figure 6.2.
The advantage of using this application is that the user does not have to manipulate the
model.
Additional capabilities were introduced into the flowchart shown, in order to get the
information for the hydrants and valves as well. This was done by entering additional
input parameters as text files, which contains a list of nodes that can be considered as
hydrants, and a list of pipes that can be considered as valves. This information is used
extensively for the operational advices module, which is part of the scope of this
research and that is discussed in the following sections.
54
6.3.1 Assumptions
A pre-built, reliable EPANET model is required, since the application asks for the INP
file that contains it. This model should be calibrated in order to expect reliable results.
The application considers the pollutant as a tracer, and therefore the node where it is
introduced is treated as a constant source of a non-reacting constituent with a
concentration of 100.
Start
Set Qs in node s
i := 0
t := 0
Print Qi, t
y
t=T n
y
n
i = nNodes
End
Figure 6.2 Flowchart to find affected nodes by a given pollution source.
55
6.4 The actions: what to do?
Two types of operational actions can be distinguished: preventive and corrective. The
first are focused on attacking the causes of potential problems before they appear, and,
clearly this is recommendable, even if it is often a very complex task. Nevertheless,
several recommendations for preventive actions exist under the name of preventive
maintenance, which include actions on storages, pipes and fittings (Ainsworth 2004).
The corrective actions are focused on solving the problem that already exists, through
recommended actions stated in plans that previously have been developed.
In this sense, it is clear that the proposed research is helping to the development and
well functioning of the corrective actions. When a quality problem is detected it is
necessary to start an action plan to mitigate it. This plan must contain, among other
activities, the operational actions that need to be executed directly on the system, to
reduce the damaging concentrations of the contaminant.
The actions to execute when a water quality emergency occurs may be similar to the
actions of preventive maintenance in tanks, reservoirs, fittings and pipelines, which
include cleaning, flushing and valve manoeuvres, depending on each specific problem.
On the other hand, the restricted time for reaction, and the stress associated with the
public health concern, makes inappropriate to play with a model, at that particular
moment in order to find out a solution. It has to be pointed out that, even with enough
time for analysis and with a reliable model, an appropriate solution may not come up
easily, simply for the fact that the number of elements for changing might be up to
several tens.
In the present chapter this problem is addressed by utilizing the currently available
optimisation methods together with the hydraulic and quality solvers for pressurized
networks.
56
pollution using as few operational changes as possible. Any modification made in
valves, hydrants or pumps with respect to the original network state is understood as
operational change. In order to solve this problem the EPANET model is coupled with
an optimisation procedure. The following assumptions are taken:
57
0 0 1 0
1 1
1 1 1 0
1 0
0 0 1 0
Chromosome
1 1 0 1
0 1
0 1 0 1
0 0
1 1 1 0
0: Closed
1: Opened
Population
Generation
Figure 6.3 Population members for an optimisation problem in WDS using GA
6.4.5.1 Description
This application performs the coupling of the EPANET model with optimisation
procedures. The optimisation procedures require many model executions. This is
achieved by using the automation options of the EPANET programmer toolkit. It was
developed as a console application in Borland Delphi 7 and it has the following
flowchart (Figure 6.4):
58
Start Run model (t) Evaluate
Penalty
Read Files Read Qi
n Print
Change model Qi > Qg Num changes
with new status y
Inc (AffNodes) Print
Calculate number MaxAffNodes
n
of changes i = NN
y Print
keep MaxAffNodes Penalty
The COPA module needs different text files to work properly. A description of each one
is explained as follows:
File: Parameters
Type: Text
Contents: Water quality parameters for simulation
Line 1: Node source of pollution
Line 2: Initial quality value in the source (tracer or chemical)
Line 3: Quality value target.
Line 4: Type of analysis: C = Chemical, T = Tracer
Line 5: Time of simulation in hours.
Samples: J9 J9
1 100
0.2 10
C T
24 48
File: Elements
59
Type: Text
Contents: List of junctions, pipes and pumps whose status can change.
Sample: P2
P6
P10
P14
PMP18
J17
Notes: 1. For pipes (valves), ‘0’ means closed and ‘1’ means
opened.
2. For pumps, ‘0’ means ON and ‘1’ means OFF.
3. For junctions (hydrants), ‘0’ means normal demand
(i.e. daily average in l/s with an associated
consumption), and ‘1’ means fire demand of 6 l/s, also
associated with the pattern defined in the EPANET
model.
4. The numbers can be also real numbers between 0 and
1, which internally are rounded to the nearest integer,
either 0 or 1.
5. The number of records must be the same as the
number of the elements’ file.
File: G.pin
Type: Text
60
Contents: List of zeros and ones that represent the status of the elements
in the network, which are going to be tested. It must be
correspondent with the elements file.
Sample: 0
0
0
0
1
1
Notes: 6. For pipes (valves), ‘0’ means closed and ‘1’ means
opened.
7. For pumps, ‘0’ means ON and ‘1’ means OFF.
8. For junctions (hydrants), ‘0’ means normal demand
(i.e. daily average in l/s with an associated
consumption), and ‘1’ means fire demand of 6 l/s, also
associated with the pattern defined in the EPANET
model.
9. The numbers can be also real numbers between 0 and
1, which internally are rounded to the nearest integer,
either 0 or 1.
10. The number of records must be the same as the
number of the elements’ file.
Additional note: The EPANET model must have defined two patterns of consumption
called ‘1’ and ‘2’. The first one is used as the pattern for the hydrant flow, while the
second one is used as the pattern for the normal domestic consumption.
After the algorithm showed in COPA is completed, the file G.RSP is created; it contains
the value of the objective function for the network status defined in G.PIN
The objective function used for the optimisation algorithms was initially defined as:
f (c1 , c2 ) = c1 + c2
2 2
where c1 is associated to the fact of having contaminated nodes and the c2 is associated
to the operational effort required to set the network to a desirable condition. As first
approximation, the simple value of the number of contaminated nodes for c1 and the
number of changes in the network with respect to the initial status for c2 are used.
This approach for the objective function was selected because it represents a distance
between a desirable condition (having no contaminated nodes with no network changes,
which means function value of zero), and the situation of having some number of
contaminated nodes and network changes. Naturally, the objective is to minimize such
distance, thus, a single optimisation objective is considered.
61
c2
Affected nodes
(cost 2)
f (c1 , c2 ) = c1 + c2
2 2
c1
Changes in the network
(cost 1)
Figure 6.5. Objective function concept for a particular solution (network state)
It can be noted that the objective function is chastising both the affected nodes and the
changes in the network with the same weight. On the other hand, no restrictions on their
values have been added.
6.4.5.2.2 Multi-objective
In order to perform the optimisation process, the GLOBE software (Solomatine 1999)
was used firstly. In GLOBE several different global optimisation algorithms are
implemented and the user can choose any of them. For the present research, the Genetic
Algorithms approach is used, method that was briefly described in section 6.4.4.
The role of GLOBE is to generate an input vector (network status, in this case),
supplying it to COPA module via the file G.PIN, which contains real numbers. For the
problem under consideration, each element status is considered as one variable, which
means that there are as many variables as elements (valves, pumps or hydrants) to
change. The Figure 6.6 shows the conceptual model of COPA and its interaction with
GLOBE.
It must be noted that the real numbers that GLOBE creates in the G.PIN file, have a
particular characteristic: they can only be either zeros or ones. To deal with this problem,
two different steps were made: firstly, the parameter “discretization”, in the GLOBE’s
options tab (Figure 6.7), is set as 1; secondly, the boundaries of each variable were set
between 0 and 1, (Figure 6.8).
62
Figure 6.6 COPA module and its relationship with GLOBE program
In order to test the method, a small test example was developed (Figure 6.9). It consists
of a system of 45 pipes with same diameter, length and Manning roughness (0.20m,
1000m and 0.01), and 25 junctions with zero elevation and 0.5 l/s of constant demand.
The reservoir provides a constant head of 50m to the system. The valves, originally
63
opened, are V2, V3, V4, V5, and V7; the hydrants, originally closed, are H1 and H2,
and the source node of contamination is shown.
V7
Trace J9
0.00 V5
0.00 Contam
0.00
50.00
percent
V4 H1
Trace J9
0.00
0.00
H2 V3
0.00
50.00
percent
V2
64
The small example: optimisation results
12
11
Number of affected junctions
10
9
8
7
6
5
4
3
2 0111110
1
0
0 1 2 3 4 5 6 7 8
Number of changes in the network
Figure 6.10. Best solution for the small example
An intuitive solution would be to close V2, V3, V4, V5 –in order to isolate the
contaminated area, and to open H2 to flush the contaminant out; nevertheless, this
solution requires 5 changes and the total affected nodes is eight, yielding a function
value of 9.43, which, evidently, is far away of being an optimal solution. This proves
the difficulty of choosing the best configuration even in a simple network, with enough
time to analyse it.
65
closed
V7
Contam V5
Trace J9
0.00
0.00
0.00 V4 H1
50.00
percent
Trace J9
0.00 opened
0.00 H2 V3
0.00
50.00
percent
V2
Figure 6.11. Solution found for the small example with GA, after 52 evaluations
6.4.6.2 Multi-objective
The NSGAX was applied for the small problem. After several runs, it was clear that
more generations than for the single objective are required to have the previous result.
In Figure 6.12 the solution set of the Pareto front is presented, where the binary
numbers are the status of the elements V7, V5, V4, V3, V2, H2, H1, correspondingly.
66
The small example: optimisation results
12
11 1111100
Figure 6.12. Pareto front for the multi-objective optimisation of the small example
Due to the discrete nature of the problem, the resulting Pareto front is in reality a set of
few points; the first one, with no network changes, which may be a solution in certain
cases, and eleven affected nodes (situation shown in Figure 6.9); the second solution,
with 5 affected nodes and one change (open H2) appears like a possible decision action.
The third solution is the same as obtained for the single objective optimisation problem.
The sector 11 has been modelled by means of 341 junctions and 487 pipes, with eight
hydrants and 89 are valves. This means that 97 elements are possible to be changed in
the optimisation processes, and therefore this is a problem with 97 variables. For this
special case a modified version of GLOBE was used, which allows up to 100 variables.
67
J2119
If no changes in the network were made, after 24 hours 29 junctions would be impacted,
as shown in Figure 6.14.
68
Trace J2119
0.00
0.00
0.00
5.00
percent
Trace J2119
0.00
0.00
0.00
5.00
percent
Figure 6.14 Affected area of sector 11, Villavicencio after 24 hours of contamination from J2119
Due to the huge amount of possible solutions, and in order to accelerate the optimisation
process, a restriction was included, which consist on neglecting the solutions that
require more than 30 operational movements. The results are shown in Figure 6.15.
Sector 11: Optimization results
60
50
Number of affected junctions
40
30
20
10
0
0 5 10 15 20 25 30 35
Number of changes in the network
69
6.4.7.3 Multi-objective approach
45
40
35
Affected junctions
30
25
20
15
10
5
0
0 5 10 15 20 25 30 35 40 45 50
Number of movements
Figure 6.16. Pareto front generated by NSGAX for sector 11, Villavicencio.
The Pareto front can be used for the decision makers to choose between a range of
possibilities. The big point at the left of the Figure 6.16 shows the situation for which no
changes are made. In this case, in one hand it can be seen that after 35 movements is
possible to have the lower amount of contaminated nodes (only 4); on the other hand,
fewer movements, generally, will affect more people.
In this particular case is important to note that it may not be possible to manage so high
number of operational changes, due to the limited resources for it, but anyway, the
overall picture of the situation results clear for the decision maker.
70
7 The SMS as a tool for operative and emergency support
7.1 Introduction
One of the steps of the Water Safety Plans recommended by WHO (2005) are the
communication strategies, which should include:
Procedures for promptly advising of any significant incidents within the
drinking-water supply, including notification of the public health authority;
Summary information to be made available to consumers – for example, through
annual reports and on the Internet; and
Establishment of mechanisms to receive and actively address community
complaints in a timely fashion.
For the proposed methodology, once the water quality model results are evaluated and it
is established that a message is required, the automatic application will prepare it
according to the type of problem. The idea is to send such messages only to the people
affected by the water quality problem.
For this purpose, a database with the mobile phone users will be connected in a
geographic basis with the water distribution model. In this manner, only the population
included in the areas highlighted by the model as risky areas, will be warned.
Nevertheless, in extreme events, in which the population health is in high risk, other
ways of communications can be used for complementing the function of the mobiles,
but care must be taken to avoid false alarms to the population that is not directly
affected.
A plain definition of the concentration baseline for each contaminant must be set, as
well as its deviation, from which a response is triggered. This trigger should be
evaluated according to the difference between the baseline and the deviation, and its
strictness depends on the consequences of the adverse event in the community and also
on the cost of the response activities (Brosnan 1999).
71
In case of detecting those deviations the warning messages must be prepared, following
predefined communication criteria. An example by Godfrey and Howard (2004a)
establishes the communication strategies that should be included within a Water Safety
Plan, which are summarized in Table 7.1.
Table 7.1. Communication strategies
Severity of
Operations Senior Regulator/
hazard Risk manager Consumers
manager management health body
event
Informed Informed
Must be Must be Advised immediately on
Catastrophic immediately immediately
informed informed necessary action approved
by risk by risk
immediately immediately by risk manager
manager manager
Must only be
Must be Informed only Informed only Advised immediately on
informed if
Minor informed if problem if problem necessary action approved
problem
immediately persists persists by risk manager
persists
Source: Godfrey and Howard (2004a)
This study considers the methodology of sending the short messages through mobile
phones. Although the preparation and the final location to send the messages will be
performed by the QmagNet-V, the final decision to spread them will be only executed
by humans, as well as the use of other ways of communication, depending on each
particular case.
The GSM network can be divided into four main parts (Figure 7.1):
72
setup of the network.
73
Some of the benefits of the SMS are:
Delivery of notifications and alerts
Guaranteed message delivery
Reliable, low-cost communication mechanism for concise information
Ability to screen messages and return calls in a selective way
Increased subscriber productivity
The integration with other data and Internet-based applications and the delivery of
messages to multiple subscribers at a time are sophisticated SMS functionalities that are
exploited by the present research.
SMS can do all the things that alphanumeric pagers do, and unlike many existing paging
services, the network can acknowledge receipt of messages, so there is no question
about whether the recipient received the message. Messages are sent via a message
centre owned by the network provider. If the message is undeliverable, either because
the recipient is out of coverage or has switched off the phone, the network can store the
message until it becomes possible to transmit. Messages can be sent from a mobile
phone via the keypad or the attached computer. It is also possible to send the message to
the message centre via the Public Switched Telephone Network (PSTN), the Integrated
Services Digital Network (ISDN), Packet-Switched Network (PSN), or the Internet.
A big example was shown by the Pakistani government, which recently granted free
mobile phone use during the aftermath of the October 8th 2005 earthquake in Kashmir -
an area where previously mobile phone service was scant at best.
Additionally, Senate Subcommittee on Disaster Prevention and Prediction, US, has been
discussing during 2005 about expanding the Emergency Alert System beyond
televisions and radios so that they can use SMS to automatically notify cell phone users
about disasters or terror attacks. The Federal Emergency Management Agency is about
74
to start testing a new Geo-Targeted Alerting System that would provide warnings only
to potentially affected households and businesses (rather than just blasting warnings out
to everyone). (McCullough 2005).
7.2 The SMS for managing the water quality in distribution systems
Within the previous chapters different approaches for modelling different situations in
supply systems have been presented. The condition of the intermittent supply and the
way to switch it to the continuous state, as well as a new way to manage the
contamination detected in pressurized systems were the discussed topics.
These approaches are complemented with the introduction of the SMS to be used as an
efficient way of communication of the information generated by such approaches.
The first point allows the users to plan their water use, which leads to the reduction of
wasted water, and therefore, more water is available for filling up the network.
Consequently, the network is pressurized and the supply becomes continuous.
The second point allows the managers to know the times when each tank is filled, and
therefore, to control the water consumption, by asking the users to close their taps, to
avoid overflowing.
The messages can be either for fully operational purposes or for generating awareness
among the customers from the point of view of the consumption culture.
The messages for generating awareness should be sent in a periodic basis, but they
should not be so frequent that result hackneyed for people. This is important because
those messages can affect the attention needed by the costumers to the operative
messages.
For especial Institutions, Public Authorities, etc, other messages that should be
75
considered in certain cases are listed below:
“Possible outbreak for contaminated water in sector 3. Alert level: 3”
“Contaminant: ‘_____’ detected in zone 3. Start action plan”
“Contaminated water: hospitals, schools and big centres must be informed
immediately”
7.2.2 The mobile phone for the water quality management in WDS
The approach discussed along the chapter 6 states that the text messages have two main
receptors:
The operators
The affected people
The operators will receive messages to support the operation in a pollution event, to
know the contamination sources, the affected area of the city and the recommended
actions to mitigate the problem. These messages should be centralized, in such a way
that the last decision of something related with operation, or even related to warn people
in last instance, be led by the manager.
The affected people will receive basically warning messages, indicating what kind of
action must be taken, and, if applicable, for how long. The customers may also receive
informative messages about the possibilities of provisional supply or alternative water
sources.
“The following valves must be closed before 1:30pm: V1, V2…, keep them
closed until 5:00pm”
“The following hydrants must be opened between 1:30pm and 4:00pm: H1,
H2…”
“About 500 people affected in zone 3 during 4 hours. 2 truck-tanks or 1500
bottles of litter might be needed”
76
and one mixed. Initially, the three private companies were Celumovil (later on under the
name of Bellsouth), Comcel and Caribe Celular, and nowadays, after important political
and financial movements, the companies that provide the service are Movistar, Comcel
and Colombia Movil Ola.
Atlantic zone
West zone
East zone
20
15
10
0
1998 1999 2000 2001 2002 2003
The situation for the poor is relatively good, since the people with low economic status
(1, 2 and 3), are using the mobile service in a considerable bigger proportion than the
people of high economic status (4, 5 and 6), Figure 7.5. This is explained for the
77
convenience of the prepaid service conditions, which do not require legal contracts and
therefore no financial obligations are taken.
Figure 7.6. General visualisation of the messages for managing the intermittent supply in
Villavicencio
For the pressurized case, situation could be visualized as shown in Figure 7.7
78
“Emergency: water could
be polluted. Do not use it
for drinking or cooking.
Pass this message to your “Bottled water will be
neighbours.” available in the coming
hours”
Operator
Figure 7.7 General visualization of the messages for managing the pressurized supply
Further discussion is followed in section 9.4.
79
8 The QMagNet-V application
Up to now, several individual applications for pressurized systems, such as the water
quality database generation, the pollution source searching and the operational advices
using Genetic Algorithms have been developed according to what has been discussed in
the previous chapters. Additional applications include the reading of SWMM report for
intermittent systems and the management of the short messages services.
The aim of this chapter is to show how all of these applications were combined into a
general application, which is called Water Quality Management in Networks
(QMagNet-V). The application was coded in Delphi 7.0 with the structure shown in
Figure 8.1.
QMagNet-V
Operational advisor
DBP prediction
80
On the other hand, the choice of intermittent water supply requires that the SWMM
model is already ran, and that the report file is available. This option will return a list
with the water reception times to each node and also a list with the times at which the
household tanks should be completely filled.
An additional tool was also added, which is the Disinfection-by Products prediction in
the network, according to the research made by Sohn et al (2004). Nevertheless, it was
not connected to the message service due to time restrictions.
81
8.2 Required software installations
QmagNet-V needs to have installed the following software to run successfully:
GLOBE 2.0, software to solve optimization problems.
Whip! 4.0, ActiveX component by Autodesk, for visualizing CAD drawings.
MATLAB 7.0, software for advanced engineering programming.
Clickatell COM-API, COM object to prepare SMS messaging.
a f
g
b
e
h i
82
a. Generate Quality Database
The dialog box is shown in Figure 8.3. Details of the algorithm used can be found in
section 6.2.1
83
b. Where is the source?
Details of the algorithm used can be found in section 6.2.4
84
c. Who is affected and when?
The dialog box is shown in Figure 8.5. Details of the algorithm used can be found in
section 6.3
85
d. What to do?
Only the single objective approach has been implemented due to time restrictions.
Details of the algorithm used can be found in section 6.4, and the dialog box is shown in
Figure 8.6.
86
e. Disinfection-by Product prediction
As an additional part of this research, the model developed by Gary Amy and
documented by Sohn et al (2004) has been implemented within QMagNet-V application.
The model consists on empirical equations for predicting the Disinfection-by Products
(DBP) when the water in the treatment plant is coagulated with alum or iron, which
generates the so-called Trihalomethanes (THM) and the Haloacetic acids (HAA).
According to USEPA people who drink water containing THM and HAA in excess over
many years increase the risk of getting cancer and cardiovascular and cerebral-vascular
diseases.
These parameters are function of the dissolved organic carbon (DOC), the chlorine, the
Bromide, the water temperature, the pH and the age of the water since it is treated. The
models are the following, for pH of 7.5 and temperature of 20ºC:
These models have to be corrected with for different pH and water temperature with the
following equations:
( )
THM = THM @ pH =7.5,Temp = 20o C *1.156 ( pH −7.5 ) *1.0263(Temp − 20 )
HAA = (HAA @ pH = 7.5,Temp = 20o C
)* 0.932( pH − 7.5 )
*1.021(Temp − 20 )
The Figure 8.7 shows the developed dialog box for this module.
87
Figure 8.7 Disinfection-by product prediction dialog box
88
f. Read SWMM report for Intermittent Supply
The Figure 8.8 shows the developed dialog box for this module. Detailed description of
the algorithms used and the concepts are shown in section 5.
The Send Messages in Tray command of QMagNet-V reads and sends the message
stored in the file “OnlyOneMSMs.txt”, which can have the following formats:
89
1
Before the messages are sent, the registration procedure has to be carried out in order to
use the SMS_COMAPI 1.0 object of Clickatell provider. It consists on a username, a
password and the API ID, information that is supplied by Clickatell SMS Gateway.
Once as the registration is done and the button “Send Messages” is pressed, the external
file “sendSMS.exe”, which is a VB application that uses SMS_COMAPI 1.0 Type
Library, is executed. This sends the message and returns an error code that is logged at
the “SMSreport.txt” file, and printed up in the memo 1. The generated report may have
the following formats:
h. Maps
The button “Maps” allows visualizing the Villavicencio map in a separate form (
Figure 8.9). It uses the features provided by Whip!, such as zooming, panning, and layer
management. The map characteristic is useful for the manager to locate sectors, pipes,
hydrants, valves, etc, but it does not allow having direct interaction with the drawing
elements. In other words, the tool does not pretend to replace a GIS system, which is
highly recommended for WDS managing, but to provide some geographical orientation.
90
Both Villavicencio map and the EPANET model can be viewed with this tool.
i. Close
Closes the application.
91
9 Discussion
• The reliability of the models used in this research must be evaluated before
implementation. On one side, the intermittent model must be validated with
other methods and should be calibrated with field information, which is very
demanding since it requires the information of tanks levels at different times; On
the other side, the pressurized network model is just a supposition of what it is
expected in the future, after the consumption will be reduced.
• The showed charging up process of a pipe or network does not take into account
the effect of the air pressurization inside the pipes, which is a very important
issue for the operational methods of supply systems. For this research,
appropriate venting elements are considering to be available in the network and
to work properly.
• The oscillatory behaviour of the velocity within the pipes was observed in both
single pipes and looped networks, and it was observed that choosing an
appropriate time step for calculation, these oscillations are smoothed. This
means that they might be due to implemented numerical method, instead of
being related to physical situation; nevertheless, oscillations in piezometers exist
when sudden pipe filling is done. Vanconcelos et al (2004) observed physical
oscillations in the pressure during the filling up process in places where the pipe
was changed to the full state in a laboratory experiment.
• From the point of view of the SWMM numerical scheme, additional junctions
are needed to have enough computational points along a pipe, situation that
92
affects the continuity of the system for surcharged systems.
• As mentioned before, the closed valves in the Villavicencio model were not
taken into account and this leads to a completely different charging process and
water reception times. The condition of completely open valves for the whole
system was taken because their status is not well documented when the system
restarts. Generally, the main valves are completely opened before the system
resumes, and then they are partially opened, by a proportion that depends on the
expertise of the current operator, but still with few technical criteria and without
any proper registration of its movements.
• The assumption to have a completely empty network just before the system
restarts is of course not true. Even if this was desired, this condition could hardly
be achieved in reality, since water bodies may remain static in local, lower parts
of the system. Interesting experiences from UNESCO-IHE staff experts such as
Prof. Vairavamoorthy, show that this particular problem is quite difficult to face
from the modelling point of view. The hydraulic behaviour of the pipe flow
when a static mass in a siphon is reached has not been completely understood,
and this is an issue still under research.
• The assumption of not considering the secondary supply source of the city,
Fuentes Altas, has a relation with the fact of the valves status. Certainly, if all
valves are opened, the system becomes completely interconnected in such a way
that both, Esmeralda treatment plant and Fuentes Altas are connected to each
other. Under this condition, the Esmeralda treatment plant would be flooded
after the systems fills up, since it is in a lower elevation than Fuentes Altas.
93
the levels in the households’ tanks, the discharge of main lines, the piezometric
changes in many points, the water reception time in each tank, as well as the
monitoring of its water level changes. Nevertheless, a demonstration for
modelling the intermittent process was shown, and it is expected that future
researchers can adopt, use and test it for systems where such information will be
available.
• In this respect, many investigations have been developed, with special eagerness
after the terrorist attacks from the 9/11 event, such as the optimal location of
monitoring stations (Watson et al 2004, Tania et al 2004) and the different
technological approaches for early chemical, microbial and radioactive detection.
Brosnan (1999) states that, from the microbial point of view, the accuracy,
sensitivity and reliability are necessary for detecting small quality changes in
distribution systems, and that the monitoring systems should be able to detect
events such system failures, bad cross-connections and the presence of common
microorganisms. This author also warned that, although the measurements of
turbidity, chlorine residual and conductivity are rapid, they frequently indicate
hazards that do not exists, and therefore that new methods must be developed.
94
• Although these control measures are just mentioned into the WHO’s Water
Safety Plans, some other documents, such as the Safe Piped Water (WHO and
IWA 2004), offers much more detailed description, and it is advisable to go
through it to complement similar projects.
• The assumption of having only one contaminated node in each run is enough for
the present research scope. It is necessary to be aware, nevertheless, that the
pollution in a network may be produced in several nodes at a time, particularly
in areas susceptible to very low or very high pressures, or zones with high pipe
failure ratio.
• The consideration of having a tracer pollutant within the water quality model is a
simple but useful approach for the current study, since the main issue to look at
is the probable time of pollution occurrence in a particular node. It would be
even better, naturally, if decay models of pollutant concentration were
considered. In this case, comparing concentrations and estimating decaying
times for a particular chemical could find the time and, with the velocities within
the pipes, the location of the source of pollution.
• The database size should not be a restriction for choosing the time step of the
model, and, even more, it should not be a restriction for setting up the pollutant
target. Firstly, because the current computational technology allows managing
huge amount of information, and secondly because the contamination objective
must be taken from technical criteria, including the water quality and health
hazard analysis.
From the point of view of the database searching, it is clear that more than one sources
might be returned, and the operation manager has two choices: either searching for the
most probable source node (according with a network characterization and risk analysis,
not included in this project), or looking at the group of nodes as an areal problem. With
the first choice, he/she could be interested to know the best operational advice to
mitigate the pollutant effect, and at this point the COPA module, section 6.4.5, might be
useful.
95
real chemical pollutant is considered instead. Certainly, a node affected by a
smaller percentage of a tracer may also be affected by a particular chemical or
biological contaminant with important public health impact. The developed
application, however, has implemented a parallel routine with the option of
using a chemical concentration. Again, the main issue here is appropriate
monitoring.
• The objective function used and described in section 6.4.5.2 considers both
number of affected nodes and the number of operational changes, with equal
weight within its conception. Nevertheless it is clear that the affected nodes
could have much more impact on the function than the number of network
changes, and therefore a different approach could be used, for example,
including these parameters with different factors or exponents, in terms of costs.
This situation should improve the convergence of the solution, since the function
will produce bigger values if more affected nodes are found.
• The optimisation problem should take into account the residual pressure in the
neighbouring nodes where the operational changes take place. Certainly, several
hydrants opened at the same time may cause, not only the discontinuity in the
service, but also potential back-siphonage effects due to the presence of negative
pressures, with the associated water quality problems. If the proposed approach
is used, the residual pressure in the higher zones must be verified to avoid
negative values during the opening of the hydrants.
• The use of pumping stations for flushing the pollutant out the network is a
solution that should be considered carefully. Indeed, a quality characterisation of
the groundwater must be performed first in order to make it capable for flushing
operation. For the Villavicencio case, an important number of old wells exist,
but they have been gradually abandoned, as the current network system has
expanded. The problem of their use has been discussed for the fact that, when
the supply service has been supported by those wells, customers’ complaints
related with bad odour and colour were often received at the supplier company.
In any case, the COPA module has been designed to take into account the
possibility of switching the existing well pumps either on or off.
• The optimisation problem should also take into consideration restrictions over
the involved costs. For instance, a limited number of operational changes in the
network may be possible, for the reason that the human and technological
resources to carry out such task might be limited.
• The optimisation process shown only considers the possibility to have one
contaminated node as a source, which is coming from the database; nevertheless,
several nodes could be potential sources of contamination at the same time and
therefore this should be complemented in both methodologies.
• If the optimisation problem has smaller size (only few elements to change), an
exhaustive search over the entire space of solutions can easily solve it. As the
variables can only take either the value 0 or 1, the total possibilities are 2v,
where v is the number of variables, and no optimisation process would be
needed for few of them. Nevertheless, for more complex problems, as the real
96
ones, this method would demand much more computational effort than any
optimisation method.
• The Pareto front is used for multi-objective optimisation where commonly the
objectives have close, inverse relationship among them, in such a way that an
increase of one objective produces the decreases of other objective. In the
flushing problem this is not always the case, since it is not true that when more
elements are changed the number of affected nodes will be smaller.
• For the present research the Genetic Algorithms method was used for the
optimisation process and it proves to work well for water distribution problems,
as it has been demonstrated by other researches during the last decade
(Vairavamoorthy 2004).
• The messages have to be reliable and must avoid either false positive or false
negative messages. This could be achieved by following the Early Warning
System concepts (Brosnan 1999, Hasan et al 2004), which demand clear data
quality objectives that should include specificity (what to measure), sensitivity
(how results could be affected by different factors), accuracy (the quality of the
result), precision (an indication of the uniformity of the measurements) and
recovery (how easy is to get the results). As can be noted, this is a very complex
problem that has to be solved before implementing any warning system.
• One of the proposed messages for the intermittent supply assumed that one-hour
time is enough for the treated water to clean the pipes after systems resuming,
and therefore enough time to provide safe water to the consumers. It is, naturally,
a rough estimation, and consequently a serious research in this aspect must be
done before adapting such message.
• As stated by Hebbert (2001), at present time the technology for faster and
reliable pollution detection methods is limited, very costly and subject to
numerous false positives, and therefore more investigations for improving this
97
issue are necessary.
• In general, the reliability of the process of sending the mobile phone messages is
higher, at this stage of the project, than the reliability of the proposed processes
that generate the messages, and this is the reason to recommend their
improvement before any implementation takes place.
• The messages for the affected people may not come to some of them, due to the
lack of mobile phones. At this respect, it is advisable that the warned person also
notifies its neighbours; furthermore, special bodies or community groups may
receive the messages and then spread it out to their neighbours again. The
messages could also be sent to the radio stations and local television service, but
with particular prudence in the sense that only some sectors of the city might
become contaminated, and consequently a message without enough
specifications may result in a clear false alarm for many people.
98
10 Conclusions
• The present research showed a different way to manage the water quality in
distribution networks, firstly acting against the intermittency and secondly by
using hydroinformatics tools such as models, software development and
communication technology.
• The WHO’s Guidelines for Drinking Water and the Water Safety Plan are
valuable documents that should be followed by every supply system in
developing countries. Their implementation would be a clear step toward the
Millennium Development Goals’ achievement. Explicitly, goal 7, point b -
“Reduce by half the proportion of people without sustainable access to safe
drinking water” would be touched, in addition to the implicit relationship with
the others goals.
• The National Health Institute (INS), Colombia, has developed a tool for the
water quality surveillance at national level, the SIVICAP, but the public health
is still under risk because the collected data is not useful for warning. Since the
methods and tools generated during this research are focused in warning, both
instruments could be used for complementing each other.
• The approach of using the free surface flow to model the network charging when
the system resumes needs to be compared with other developed charging models
in order to verify its validity.
99
• Elements not affected by a pollutant in time forward can still play a crucial role
for flushing it out.
• The poor people can get the water quality information through the mobiles, since
a large proportion of these groups of people have access to this technology, and
therefore they can by directly benefited.
100
11 Recommendations
• Similar analysis as presented should be carried out using other storm modelling
packages, such as MOUSE, in order to know the differences, similarities,
advantages and disadvantages of these packages for modelling the filling up
process in a distribution network.
• More research is needed to explain the oscillatory behaviour of the water depth
in a SWMM junction (piezometer), which at the same time will explain the
velocity oscillations in a pipe when it is being filled up.
• For further research with the Villavicencio’s charging model, the closed valves
must be taken into account in the process.
101
• Due to the enormous computational time required for modelling a system like
Villavicencio, and also that the main purpose of it is the real time management
of the network during the charging process, different methodologies can later be
investigated. For instance, the use of neural networks to emulate the SWMM
model under different conditions could be an interesting and useful research.
• Applying the pollution for different daily times should complement the proposed
approach for generating databases. Certainly, it should consider the effect of the
demand changes along the day, which has a direct impact over the velocities in
the system and therefore in the reception time of the pollutant to the nodes.
• The COPA module could be easily adapted to accept more that two different
source nodes. Naturally, the most important issue here is to have the proper set
of monitoring facilities that allow having the information of these nodes in time
to be used for COPA.
102
released by GLOBE, which is constituted by real numbers, are rounded to the
closest integer number 0 or 1 by the COPA module. This process, therefore,
implies that one identical operational status of the network is being evaluated a
considerable number of times. For this reason, a new algorithm that avoids the
unnecessary repetition of a certain solution that was already evaluated is
necessary to complement the proposed routine.
• Another cause for the required time to find an optimal operational advice is the
manipulation of the text files between COPA and GLOBE, and also the text files
required by COPA itself, which need to be opened and closed every time a
solution is investigated. A best strategy is to manage the information from the
Random Access Memory of the computer instead of managing it from its Read
Only Memory.
• Only GA was used in this research, but efficient, newer methodologies are
implemented in GLOBE and their performance should be evaluated for the
stated problem. It is possible that different algorithms provide better
performance in terms of time.
Sophisticated software engineering may improve the computational times for some of
the proposed methodologies.
103
12 References
Ainsworth, R. (ed.) (2004). Safe piped water : managing microbial water quality in
piped distribution systems. Geneva, Switzerland, World Health Organization and
London, UK, IWA Publishing.
AWWA – EES (2002), Effects of Water Age on Distribution System Water Quality.
Prepared by AWWA with assistance from Economic and Engineering Services, Inc.
EPA White Paper.
Cairncross A (1990) Health impacts in developing countries: new evidences and new
prospects. Journal of the Institution of Water and Environmental Management. 4(6)
571-577.
Ford T., Colwell R. (1996) A global decline in microbiological safety of water: A call
for action. A report from The American Academy of Microbiology.
Godfrey S., Howard G. (2004) Improved risk assessment and management in urban
piped water supplies, Department for International Development – DFID, London.
Godfrey, S. and Howard, G., (2004a). Water Safety Plans (WSP) for Urban Piped
Water Supplies in Developing Countries, WEDC, Loughborough University, UK.
Gleick Andrews G. (1998) Backflow protections for private water systems. Oregon
104
State University Extension Service.
Gleick, Peter H. (2002) Dirty Water: Estimated Deaths from Water-Related Diseases
2000-2020. Pacific Institute for Studies in Development, Environment, and Security.
Pacific Institute Research Report.
Gomez M. Achiaga V. (2001) Mixed flow modelling produced by pressure fronts from
upstream and downstram extremes. Dep. Hydraulics, Maritime and Environmental
Engineering. UPC, Barcelona, Spain.
Hassan J., States S and Deininger R. (2004) Safeguarding the Security of Public Water
Supplies Using Early Warning Systems: A Brief Review. Universities Council on Water
Resources. Journal of Contemporary Water Research and Education, 129: 27-33
Hebert R. (2001) A brief discussion of water security issues following the September 11,
2001 terrorist attacks. ECO Resources, Inc. (Sugar Land, Texas) and The National
Council for Public-Private Partnerships (Washington, DC), US.
Liou C, Hunt W (1986) Filling of pipes with ondulating elevation profiles, J. Hydr.
Engrg, 122(10) 534-539 Cited in Godfrey S., Howard G. (2004) Improved risk
assessment and management in urban piped water supplies, Department for
International Development – DFID, London.
LeChevallier M, Gullick R, Kari M. (2002) The Potential for Health Risks from
Intrusion of Contaminants into the Distribution System from Pressure Transients.
American Water Works Service Company, Inc., Voorhees, NJ.
Maier S.H. (1999), Modelling water quality for water distribution systems. PhD Thesis.
Brunel University, Uxbridge, United Kingdom.
105
Spanish], Bogotá, Colombia.
Nayeema N (2006), Urban Flood Warning System with wireless technology [under
development], MSc Thesis, UNESCO-IHE, Delft, Netherlands.
Payment P, Hunter P. (2001) Endemic and epidemic infectious intestinal decease and its
relationship in drinking water. In: Fewtrell L. and Bartram J. Water Quality: guidelines,
standards and health, IWA, London, pp 61-68.
Rossman L. (2005b) Storm water management model SWMM, quality assurance report:
Dynamic Wave Flow Routing, Water Supply and Water Resources Division, EPA,
Cincinnati, OH, US.
Sisay, S (2003) Real-Time Decision Support System for Flood Management, IHE, Delft,
The Netherlands.
Srinivasa Reddy, L.S., Elango, K. (1989). “Analysis of water distribution networks with
head-dependent outlets,” Civil Engineering Systems, Vol 6(3), pp: 102-110. Cited in:
Totsuka N., Trifunovic N, Vairavamoorthy K. (2004) Intermittent urban water supply
under water starving situations. 30th WEDC International Conference, Vientiane, Lao
PDR.
Sohn J, Amy G, Cho J, Lee Y, Yoon Y (2004) Disinfectant decay and disinfection by-
products formation model development: chlorination and ozonation by-products. Water
research 38, 2461 – 2478.
Solomatine, D.P. (1999). Two strategies of adaptive cluster covering with descent and
their comparison to other algorithms. Journal of Global Optimization, 1999, vol. 14, No.
1, pp. 55-78.
106
109,76_Numero.php [Accessed 14 March 2006]
Vairavamoorthy K. (2004) Special Topics in Water Transport and Distribution Part II.
Lecture notes EE517/04/1, UNESCO-IHE, Delft, The Netherlands.
Vasconcelos, J.G. and Wright, S.J. (2003a), Laboratory Investigation of Surges Formed
During Rapid Filling of Stormwater Storage Tunnel. Proceedings of 30th IAHR
Congress, Thessaloniki, Greece.
Vasconcelos, J.G. and Wright, S.J. (2003b), Surges Associated with Air Expulsion in
Near-Horizontal Pipelines. Proceedings 4th Joint ASME-JSME Fluids Engineering
Conference, Honolulu, Hawaii.
Vasconcelos, J.G. and Wright, S.J. (2003c), Numerical Modelling of the Transition
Between Free Surface and Pressurized Flow in Storm Sewers, University of
Michigan, Ann Arbor, USA
Vasconcelos, J.G. and Wright, S.J. (2004), Applications and Limitations of Single-
Phase Models to the Description of the Rapid Filling Pipe Problem, University of
Michigan, Ann Arbor, USA
Walski T. (2001), Water Distribution Models for Emergency Response, Water Security
Summit, Hartford, Connecticut, US.
WHO/UNICEF (2004) Meeting the MDG Drinking Water and Sanitation Target, a
107
Mid-Term Assessment of Progress. World Health Organization and United Nations
Children’s Fund.
World Bank (WB). (2004). World Development Report 2004. World Bank:
Washington D.C.
108