Abstract
Disorderly use of water resources has led to depletion, causing environmental and social issues. A relevant aspect to be observed in water supply systems is physical losses which occur during the system’s entire operational process. Many different software packages allow simulations of pressures and flow in water networks. The most used is EPANET. The epanet2toolkit is a recently developed R package that performs the interaction between EPANET and R. Based on this tool, a set of functions is developed to study and evaluate a theoretical network. The objective is to find an ideal network configuration (design) mainly for pressure management which simultaneously reduces physical losses. Water network parameters, such as roughness, reservoir levels, and diameters are used as parameters. A Monte Carlo simulation is generated, based on random values of these network parameters. From these, an ideal pressure scenario is found, resulting in a reduction of 11.6% in the occurrence of physical losses concerning the base case.
Keywords:
epane2toolkit; hydraulic evaluation; water distribution networks
Resumo
O uso desordenado dos recursos hídricos tem levado ao esgotamento, resultando no surgimento de questões ambientais e sociais. Um aspecto relevante a ser observado nos sistemas de abastecimento de água são as perdas físicas que ocorrem durante todo o processo operacional do sistema. Muitos pacotes de software diferentes permitem simulações de pressões e fluxos em redes de água. O mais utilizado é o EPANET. O epanet2toolkit é um pacote R recentemente desenvolvido que realiza a interação entre EPANET e R. Com base nesta ferramenta, são desenvolvidos um conjunto de funções para estudar e avaliar uma rede teórica. O objetivo é encontrar uma configuração de rede ideal (projeto) principalmente para gerenciamento de pressão que reduza simultaneamente as perdas físicas. Os elementos da rede hídrica, como rugosidade, níveis dos reservatórios e diâmetros são utilizados como parâmetros. Uma simulação de Monte Carlo é gerada, com base em valores aleatórios dos parâmetros desta rede. A partir destes, é encontrado um cenário de pressão ideal, resultando em uma redução de 11,6% na ocorrência de perdas físicas em relação ao caso base.
Palavras-chave:
avaliação hidráulica; epane2toolkit; redes de distribuição
1. INTRODUCTION
Water is a renewable, limited, and extremely important natural resource for human development and its activities. However, the disordered use of water has led to the depletion of springs, causing the emergence of environmental and social issues with the impossibility of supply (Silva Júnior, 2017SILVA JÚNIOR, J. F. Detecção de Perdas em Sistemas de Distribuição de Água através de Redes de Sensores Sem Fio. 2017. Dissertação (Mestrado em Engenharia Elétrica) - Universidade Federal de Pernambuco, Recife, 2017.).
As a result, the sanitation sector has faced problems meeting a growing demand for water as the supply has been decreasing. In addition, they face another important issue: the losses that occur throughout the operation of the system. The greatest losses, however, are found in water distribution networks (Fritz et al., 2020FRITZ, R. T.; GIMENES, J. DE C.; PINA FILHO, A. C. DE. Um estudo da automação para redução de perdas na rede de distribuição de água. Brazilian Journal of Development, v. 6, n. 8, p. 56408-56416, 2020. https://doi.org/10.34117/bjdv6n8-161
https://doi.org/10.34117/bjdv6n8-161...
).
This is because water distribution networks are made up of numerous different elements, such as pipes and devices like pumps or pressure reduction valves, interconnected with the function of bringing water in quantity and quality to the points of consumption, thus forming a complex structure (Martinho et al., 2021MARTINHO, W. C. S.; MELO, R. A.; SÖRENSEN, K. An enhanced simulation-based iterated local search metaheuristic for gravity fed water distribution network design optimization. Computers and Operations Research, v. 135, 2021. https://doi.org/10.1016/j.cor.2021.105429
https://doi.org/10.1016/j.cor.2021.10542...
). For Fontana et al. (2012)FONTANA, N.; GIUGNI, M.; PORTOLANO, D. Losses reduction and energy production in water-distribution networks. Journal of Water Resources Planning and Management, Reston, v. 138, n. 3, p. 237-244, 2012. https://doi.org/10.1061/(ASCE)WR.1943-5452.0000179
https://doi.org/10.1061/(ASCE)WR.1943-54...
, it is not only its complexity that leads to losses but also the lack of management linked to a deficiency in the effective maintenance of the system, causing the deterioration of the elements that compose it, which leads to an increase in losses. This is because they are underground and, as a result, are forgotten, receiving attention only when they fail (Mutikanga et al., 2013MUTIKANGA, H. E.; SHARMA, S. K.; VAIRAVAMOORTHY, K. Methods, and tools for managing losses in water distribution systems. Journal of Water Resources Planning and Management, Reston, v. 139, n. 2, p. 166-174, 2013. https://doi.org/10.1061/(ASCE)WR.1943-5452.0000245
https://doi.org/10.1061/(ASCE)WR.1943-54...
).
These losses, according to Cheung (2004)CHEUNG, P. B. Análise de reabilitação de redes de distribuição de água para abastecimento via algoritmos genéticos multiobjetivo. 2004. 288p. Tese (Doutorado em Hidráulica e Saneamento). Escola de Engenharia, Universidade de São Paulo, São Carlos-SP, 2004. https://dx.doi.org/10.11606/T.18.2004.tde-30092008-185242
https://dx.doi.org/10.11606/T.18.2004.td...
, are determined by the difference between the volume of water that enters the system and the volume accounted for. And they can be of two types, apparent and real. Apparent losses are also called commercial losses and are determined by treated water used without permission (Kanakoudis and Muhammetoglu, 2014KANAKOUDIS, V.; MUHAMMETOGLU, H. Urban water pipe networks management towards non-revenue water reduction: two case studies from Greece and Turkey. Clean - Soil Air Water, v. 42, n. 7, p. 880-892, 2014. https://doi.org/10.1002/clen.201300138
https://doi.org/10.1002/clen.201300138 ...
; García-Ávila, 2019GARCÍA-ÁVILA, F. G. et al. Pressure management for leakage reduction using pressure reducing valves: case study in an Andean City. Alexandria Engineering Journal, v. 58, n. 4, p. 1313-1326, 2019. https://doi.org/10.1016/j.aej.2019.11.003
https://doi.org/10.1016/j.aej.2019.11.00...
). On the other hand, the real losses, known as physical losses, are defined by leaks in the pipes and overflow of reservoirs, representing the volume of treated water, but not consumed, that is, that has not reached the end point of consumption (Brasil, 2020BRASIL. Sistema Nacional de Informações sobre Saneamento. 25º Diagnóstico dos Serviços de Água e Esgotos - 2019. Brasília: SNS/MDR, 2020. 183 p.: il.).
According to Al-Washali et al. (2020)AL-WASHALI, T. et al. Assessment of water losses in distribution networks: Methods, applications, uncertainties, and implications in intermittent supply. Resources, Conservation and Recycling, v. 152, 2020. https://doi.org/10.1016/j.resconrec.2019.104515
https://doi.org/10.1016/j.resconrec.2019...
, real losses are worrisome due to waste of water, a drop in water quality, increased operation and maintenance costs, factors that lead to a decrease in revenue, and mainly to the waste of water resources. Thus, reducing losses makes it possible to increase the supply available for distribution without the need for new sources of funding, in addition to improving financial performance.
Due to the relevance of the problem, the use of mathematical modeling has shown to be increasingly important for the studies of distribution networks, as it allows the evaluation and solving of problems such as the detection of high-pressure points and those prone to leakage, the evaluation of the quality of water transported in the system, the measurement of expansion capacity and the expansion of service provision in areas above the pressure level, among other things (García-Ávila et al., 2019GARCÍA-ÁVILA, F. G. et al. Pressure management for leakage reduction using pressure reducing valves: case study in an Andean City. Alexandria Engineering Journal, v. 58, n. 4, p. 1313-1326, 2019. https://doi.org/10.1016/j.aej.2019.11.003
https://doi.org/10.1016/j.aej.2019.11.00...
).
One of the most used software is EPANET, as it is a free open-source program that allows static and dynamic simulations of pressurized network models, presenting their behavior, thus allowing users to know about the path and destination of water to the point of consumption, in addition to helping to choose the best-operating conditions for the system (Rossman, 2009ROSSMAN, L. A. EPANET 2.0 Manual do Usuário. João Pessoa: Universidade Federal da Paraíba, 2009. ). R is an open-source statistical analysis computational program, with an integrated language and environment. It has several packages that allow data manipulation, calculations, and graphic presentation that help in the development of hydraulic studies and the most different areas of knowledge, in addition to supporting communication with other software (Oliveira et al., 2018OLIVEIRA, P. F. DE; GUERRA, S.; MCDONNELL, R. Ciência de Dados com R. Brasília: Editora IBPAD, 2018.).
With this, we have the development of a package for the R environment, the epanet2toolkit, presented by Arandia and Eck (2018)ARANDIA, E.; ECK, B. J. An R package for EPANET simulations. Environmental Modelling and Software, v. 107, p. 59-63, 2018. https://doi.org/10.1016/j.envsoft.2018.05.016
https://doi.org/10.1016/j.envsoft.2018.0...
in “An R Package for EPANET Simulations”. This tool allows the integration between EPANET and R, through command lines. Together, the interaction of a hydraulic simulation program with a statistical analysis program makes it possible to expand the study and understanding of water systems and distribution.
The application of this tool is presented by Macedo (2020)MACEDO, L. Q. Avaliação hidráulica de rede teórica com acoplamento de módulo EPANET ao programa R. 2020. 2020. Monografia (Graduação em Engenharia Ambiental) - Universidade Federal de Itajubá, Itajubá, 2020. who studied its use on a theoretical network, with behavior similar to the real network. The modification of the reservoir level, present in the study network, was carried out in three different simulations, statistically analyzing the behavior of the nodes, and comparing them with those established in the NBR 12218/17 standard, which determines the parameters for the water distribution networks for public supply.
Also, according to the author, the use of this tool made it possible to automate the process of analyzing the distribution network, in addition to presenting a satisfactory result about the interaction between the programs and the network (Macedo, 2020MACEDO, L. Q. Avaliação hidráulica de rede teórica com acoplamento de módulo EPANET ao programa R. 2020. 2020. Monografia (Graduação em Engenharia Ambiental) - Universidade Federal de Itajubá, Itajubá, 2020.).
In the research developed by Barbedo (2022)BARBEDO, M. D. G. Estudos de calibração de redes de abastecimento de água utilizando o acoplamento dos softwares R e EPANET. 2022. Dissertação (Mestrado em Ciências em Meio Ambiente e Recursos Hídricos) - Universidade Federal de Itajubá, Itajubá, 2022. , the coupling tool of R and EPANET software was also presented. In their study, the ability to use the packet for the calibration of a fictitious network, but with the behavior of a real network, was evaluated. The Application was made through the definition of random scenarios of the roughness of network pipes, as it is the parameter that most directly interferes with the pressure.
With that, 10,000 scenarios were created until an optimal scenario was found for network calibration. For this, a comparison was made between base pressure and with pressures of each scenario, finding the relationship that presented the smallest error and, consequently, the best pressure values for the network (Barbedo, 2022BARBEDO, M. D. G. Estudos de calibração de redes de abastecimento de água utilizando o acoplamento dos softwares R e EPANET. 2022. Dissertação (Mestrado em Ciências em Meio Ambiente e Recursos Hídricos) - Universidade Federal de Itajubá, Itajubá, 2022. ).
In this way, this study intends to use this tool to perform the interaction between the two programs, to analyze a theoretical water distribution network that will be elaborated in EPANET and later analyzed in R, to obtain the best scenario of reservoir level, roughness and diameters that generate pressure values suitable for the water distribution system under study and verify if new pressure values found for the network were able to reduce the loss rate since the theoretical network presents a percentage of 48.4%.
2. MATERIALS AND METHODS
The methodology applied in this article was structured in three stages:
-
Step 1: Definition of the theoretical study network;
-
Step 2: Simulation based on the EPANET of the theoretical network; and
-
Step 3: R and EPANET Iteration.
2.1. Step 1: Definition of the theoretical study network.
The Theoretical network developed for this study has a mixed configuration, with parts forming loops and parts with branched sections. It consists of 3 fixed-level reservoirs, 19 nodes, and 20 pipes. It also has an irregular topography, with demand varying between one and two liters per second, as shown in Figure 1.
To determine pipe input parameters, diameters between 50 and 200 mm were defined, with pipes close to the reservoirs having larger diameters compared to pipes further downstream. The length of the pipes varied between 100 and 150 meters so that they were close to the dimensions presented by the blocks of real subdivisions. The material chosen for all pipes was PVC, which has an average roughness of 0.06 defined based on Porto (2006)PORTO, R. de M. Hidráulica Básica. 4. ed. São Carlos: EESC-USP, 2006., which specifies for PVC pipes a roughness value range from 0.0015 to 0.010, with the average value of this interval used in the network. Table 1 presents all the values that were defined for the pipes of the study network.
2.2. Step 2: Simulation based on the EPANET of the theoretical network
With input parameters defined, a hydraulic simulation of the network was performed for the static period, in the EPANET program, to verify if the speed and flow were following the parameters established for the network.
In this simulation, network pressures were also verified, and the values found are unfavorable for the system, as there are points with very low pressures, close to 10 m.w.c. and points with high pressures, with a value of 80 m.w.c.
Due to these pressures, the system is prone to ruptures and consequently water losses. With this, it is possible to justify the study of this network with the use of R and EPANET software, seeking to find a scenario in which the pressures can be equalized.
2.3. Step 3: R and EPANET Iteration
The following flowchart (Figure 2) shows how this step of interaction between R and EPANET was performed.
After defining the network input parameters and performing the first static simulation in EPANET, a function in R was created to find an ideal scenario in which the network pressures are between 10 and 50 m.w.c. These values are established by the NBR 12218 technical standard, which deals with water distribution network projects for public supply (ABNT, 2017ABNT. NBR 12218: Projeto de rede de distribuição de água para abastecimento público.Rio de Janeiro, 2017.).
For this, it was first necessary to define the number of iterations that would be needed to find the ideal scenario of network pressures, and then it was defined by the value of 10,000 iterations. Then, random values were generated for reservoir levels, roughness and diameters parameters that can be changed in this network so that the pressures are also changed, thus seeking the ideal pressures. For values of these parameters, the maximum and minimum limits were established based on the initial data of the network and its behavior. These values are shown in Table 2.
The number of random values generated for reservoir levels, roughness, and diameter, was 20,000, 200,000, and 200,000, respectively. These values are defined by multiplying the number of elements by the number of iterations defined.
Then, a function was developed to generate the pressure values for all nodes of the study network based on the random data found for the parameters, in the previously described function. The pressure obtained is the same as the number of iterations, 10,000.
From these obtained pressure values, through a new command in R, the ideal scenario was selected, that is, the iteration number in which the pressures of all nodes were in the range established by the norm. However, it was decided to find a scenario of pressures, in which the values were equalized because a system with equal or equalized pressures is less likely to suffer losses due to ruptures. Thus, the established range was from 20 to 45 m.w.c. According to this scenario, the values of roughness, diameter, and reservoir level that generated these pressures of the ideal scenario were also found.
The loss value was also obtained in this ideal scenario, based on the equation of Tucciarelli et al. (1999)TUCCIARELLI, T.; CRIMINISI, A.; TERMINI, D. Leak analysis in pipeline systems by means of optimal valve regulation. Journal of Hydraulic Engineering, v. 125, n. 3, p. 277-285, 1999. https://doi.org/10.1061/(ASCE)0733-9429(1999)125:3(277)
https://doi.org/10.1061/(ASCE)0733-9429(...
, where the water loss at each node is given by the average pressure raised to an exponent of value 0.5. The value of the loss is given in percentage (%). Equation 1 is presented below:
In addition to the loss value of the ideal canary, the same equation was also used to find the loss that the original network has. This value will serve as a base of comparison with the so-called ideal scenario as a way of verifying if the network with the new pressure values was able to reduce system loss.
3. RESULTS AND DISCUSSION
With the pressure data obtained in R, a scenario was found with pressure values within the established range. Table 3 presents pressure data obtained in the ideal scenario and the nodes corresponding to them, in addition to the base pressure.
Comparing the pressures obtained by the best scenario with the original pressures of the network, it is possible to observe that there was practically an equalization of pressures, which are within a range of 20 to 40 m.w.c. In addition, the most critical points, such as nodes 8 and 14, which had very extreme pressures, being 12.24 and 79.45 m.w.c respectively, now had pressures of 28.22 m.w.c for nodes 8 and 42.49 m.w.c. m.w.c for node 14. With this, there was a 56.19% increase in pressure for node 8 and a 46.70% reduction in pressure for node 14. Thus, the operation of the system becomes more favorable, as there is a significant reduction in the probability of losses occurring because it will not suffer from pressure variations, as occurred in the original network.
With the best scenario already established based on pressure, it was possible to find the values of network parameters, such as reservoir levels, roughness, and diameters corresponding to this scenario. Data referring to these network elements for the ideal scenario are presented in Figure 3.
Based on the new scenario, the percentage of losses was also determined and the equation of Tucciarelli et al. (1999)TUCCIARELLI, T.; CRIMINISI, A.; TERMINI, D. Leak analysis in pipeline systems by means of optimal valve regulation. Journal of Hydraulic Engineering, v. 125, n. 3, p. 277-285, 1999. https://doi.org/10.1061/(ASCE)0733-9429(1999)125:3(277)
https://doi.org/10.1061/(ASCE)0733-9429(...
, uses the average pressure to determine the percentage. The loss value found for the ideal scenario found in the R and EPANET iteration, the loss value was 36.9%. When compared to the loss value of the original network, which has a significant loss of 48.4%, there was a reduction of 11.5%.
As a result, the use of the modeling applied to the network was favorable, as it allowed, in a way, an equalization of pressures, in addition to allowing a reduction in the percentage of losses, even if some network parameters are above the initial values.
4. CONCLUSIONS
Obtaining optimal scenarios for the operation of a water network is important not only for the reduction of physical losses, leading to a reduction in revenue losses but also for the reduction of energy consumption in pumping, since it allows the network to operate with lower pressures, avoiding waste such as those generated by the need to pressurize the network too much and with the unnecessary use of valves, dissipating the energy consumed by pressurization.
Thus, the application of the developed algorithm proved to be effective for the system, as it allowed an almost equalized pressure range, with values ranging from 20 to 40 m.w.c, obtaining a significant improvement in critical nodes, as is the case of nodes 8 and 14 which presented pressures very close to the limits established by NBR 12218. In addition, the percentage of losses that the network presented, which was 48.4% in its initial configuration, went to 36.9%, thus having a reduction of 11.5% in the percentage of losses for the theoretical study network.
Thus, the tool used proved to be effective for the present study; however, other studies need to be carried out in more complex networks, with the presence of more active elements such as pumps and valves, in addition to real ones, so that the model can be validated under other conditions.
5. ACKNOWLEDGEMENTS
Sara Maria Marques thanks CAPES for the Master's Scholarship nº 8887.614858/2021-00;
Alex Takeo Yasumura Lima Silva thanks the Federal University of Itajubá for the Institutional Doctoral Scholarship nº 23088.037588/2021-72;
Matheus David Guimarães Barbedo thanks CAPES for the Doctoral Scholarship nº 88887.695230/2022-00;
Authors thanks Redecope FINEP Project - MCT (Ref. 0983/10) - Ministry of Science and Technology, entitled “Development of efficient technologies for hydro-energy management in water supply systems”; and
Program "Pesquisador Mineiro" from FAPEMIG for the PPM - 00755-16 and to NUMMARH - Center for Modeling and Simulation in Environment and Water Resources and Systems (NUMMARH) of UNIFEI.
6. REFERENCES
- AL-WASHALI, T. et al Assessment of water losses in distribution networks: Methods, applications, uncertainties, and implications in intermittent supply. Resources, Conservation and Recycling, v. 152, 2020. https://doi.org/10.1016/j.resconrec.2019.104515
» https://doi.org/10.1016/j.resconrec.2019.104515 - ARANDIA, E.; ECK, B. J. An R package for EPANET simulations. Environmental Modelling and Software, v. 107, p. 59-63, 2018. https://doi.org/10.1016/j.envsoft.2018.05.016
» https://doi.org/10.1016/j.envsoft.2018.05.016 - ABNT. NBR 12218: Projeto de rede de distribuição de água para abastecimento público.Rio de Janeiro, 2017.
- BARBEDO, M. D. G. Estudos de calibração de redes de abastecimento de água utilizando o acoplamento dos softwares R e EPANET. 2022. Dissertação (Mestrado em Ciências em Meio Ambiente e Recursos Hídricos) - Universidade Federal de Itajubá, Itajubá, 2022.
- BRASIL. Sistema Nacional de Informações sobre Saneamento. 25º Diagnóstico dos Serviços de Água e Esgotos - 2019. Brasília: SNS/MDR, 2020. 183 p.: il.
- CHEUNG, P. B. Análise de reabilitação de redes de distribuição de água para abastecimento via algoritmos genéticos multiobjetivo. 2004. 288p. Tese (Doutorado em Hidráulica e Saneamento). Escola de Engenharia, Universidade de São Paulo, São Carlos-SP, 2004. https://dx.doi.org/10.11606/T.18.2004.tde-30092008-185242
» https://dx.doi.org/10.11606/T.18.2004.tde-30092008-185242 - FONTANA, N.; GIUGNI, M.; PORTOLANO, D. Losses reduction and energy production in water-distribution networks. Journal of Water Resources Planning and Management, Reston, v. 138, n. 3, p. 237-244, 2012. https://doi.org/10.1061/(ASCE)WR.1943-5452.0000179
» https://doi.org/10.1061/(ASCE)WR.1943-5452.0000179 - FRITZ, R. T.; GIMENES, J. DE C.; PINA FILHO, A. C. DE. Um estudo da automação para redução de perdas na rede de distribuição de água. Brazilian Journal of Development, v. 6, n. 8, p. 56408-56416, 2020. https://doi.org/10.34117/bjdv6n8-161
» https://doi.org/10.34117/bjdv6n8-161 - GARCÍA-ÁVILA, F. G. et al Pressure management for leakage reduction using pressure reducing valves: case study in an Andean City. Alexandria Engineering Journal, v. 58, n. 4, p. 1313-1326, 2019. https://doi.org/10.1016/j.aej.2019.11.003
» https://doi.org/10.1016/j.aej.2019.11.003 - KANAKOUDIS, V.; MUHAMMETOGLU, H. Urban water pipe networks management towards non-revenue water reduction: two case studies from Greece and Turkey. Clean - Soil Air Water, v. 42, n. 7, p. 880-892, 2014. https://doi.org/10.1002/clen.201300138
» https://doi.org/10.1002/clen.201300138 - MACEDO, L. Q. Avaliação hidráulica de rede teórica com acoplamento de módulo EPANET ao programa R. 2020. 2020. Monografia (Graduação em Engenharia Ambiental) - Universidade Federal de Itajubá, Itajubá, 2020.
- MARTINHO, W. C. S.; MELO, R. A.; SÖRENSEN, K. An enhanced simulation-based iterated local search metaheuristic for gravity fed water distribution network design optimization. Computers and Operations Research, v. 135, 2021. https://doi.org/10.1016/j.cor.2021.105429
» https://doi.org/10.1016/j.cor.2021.105429 - MUTIKANGA, H. E.; SHARMA, S. K.; VAIRAVAMOORTHY, K. Methods, and tools for managing losses in water distribution systems. Journal of Water Resources Planning and Management, Reston, v. 139, n. 2, p. 166-174, 2013. https://doi.org/10.1061/(ASCE)WR.1943-5452.0000245
» https://doi.org/10.1061/(ASCE)WR.1943-5452.0000245 - OLIVEIRA, P. F. DE; GUERRA, S.; MCDONNELL, R. Ciência de Dados com R. Brasília: Editora IBPAD, 2018.
- PORTO, R. de M. Hidráulica Básica. 4. ed. São Carlos: EESC-USP, 2006.
- ROSSMAN, L. A. EPANET 2.0 Manual do Usuário. João Pessoa: Universidade Federal da Paraíba, 2009.
- SILVA JÚNIOR, J. F. Detecção de Perdas em Sistemas de Distribuição de Água através de Redes de Sensores Sem Fio. 2017. Dissertação (Mestrado em Engenharia Elétrica) - Universidade Federal de Pernambuco, Recife, 2017.
- TUCCIARELLI, T.; CRIMINISI, A.; TERMINI, D. Leak analysis in pipeline systems by means of optimal valve regulation. Journal of Hydraulic Engineering, v. 125, n. 3, p. 277-285, 1999. https://doi.org/10.1061/(ASCE)0733-9429(1999)125:3(277)
» https://doi.org/10.1061/(ASCE)0733-9429(1999)125:3(277)
Publication Dates
-
Publication in this collection
14 Apr 2023 -
Date of issue
2023
History
-
Received
28 Sept 2022 -
Accepted
20 Dec 2022