EPANET INP Code for Incomplete Mixing Model in Cross Junctions for Water Distribution Networks
Abstract
:1. Introduction
- Identifying the time step in which the CJ has a flow with two contiguous inlets and two contiguous outlets;
- Including a bypass at the CJ that was identified to incorporate the IMM;
- The IMM was implemented by the S12PE for every CJ at every time step;
- It was assigned the concentration at the outlets according to its similarity with the flows and concentrations on the CJ validated with the CFD model;
- Patterns and controls of EPANET were programmed to activate booster stations and open and close pipelines in the bypass according to the flow conditions to guarantee the two contiguous inlets and outlets of every time step;These novelties proposed by the IncByPass code were validated on diverse network scenarios described in the following chapters of the paper.
2. Materials and Methods
2.1. EPANET Quality Model Related to CJs and the Application of the IMM
2.2. Code to Generate IncByPass
- The network is loaded, the CJs are recognized, and the properties of the connection are organized to generate the auxiliary nodes, as in Figure 4;
- The hydraulics and quality parameters are initialized with counters, and empty matrices are generated to be filled with information on the following steps;
- If the CJ presents flows with two inlets and two contiguous outlets (Figure 5), then the bypass is going to activate at the outlets (the original outlets change their status to closed, and the pipes of the bypass change their status to open);
- Then, the flow is registered in the matrix at the four boundaries and the quality concentration at the inlets (N and W);
- The incomplete mixing is calculated by the S12PE, and the results are assigned to the property Source Quality at the final nodes of the bypass at the outlets (E and S);
- The results are registered in the matrix that will be used to generate patterns for the node working as source quality in EPANET. The Patterns of EPANET are generated, indicating the concentration that is going to be established at the outlets;
- The model is simulated with these changes to obtain the quality of the results and continue to the next quality step;
- Once a simulation is completed in the total hours (e.g., if the original network simulation is 24 h), it compares the quality results at time 0:00 with the final time, 24:00. If there is a relative error less than 0.001 in all the nodes, an additional day of simulation will be run until the relative error mentioned above is reached (another 24 h of simulation is increased);
- In the last 24 h, with the relative errors less than 0.001, the model will be simulated to generate controls of EPANET by IncByPass. The controls are generated to indicate when the outlets and source quality should operate based on the hydraulic direction flows around the CJs;
- And the code IncByPass is finished (Figure 6).
2.3. Application of IncByPass with Constant Demand to Verify the Results of the Generated Code
2.3.1. Application of Incomplete Mixing on IM1.net with Constant Consumption
2.3.2. Application of Incomplete Mixing on IM2.net with Constant Demands
2.4. Validation of the Model with a Variable Consumption and Tanks around the Network to Verify the Stabilized Conditions on the Hydraulic and Quality with the IncByPass
3. Results
3.1. Network with a High Quantity of CJs
3.2. Network Based in Romita Downtown in Guanajuato State in México
4. Discussion and Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Rossman, L.A. EPANET 2. User’s Manual; US Environmental Protection Agency: Cincinnati, OH, USA, 2000; p. 200. Available online: http://nepis.epa.gov/Adobe/PDF/P1007WWU.pdf (accessed on 7 December 2023).
- Van Bloemen, W.B.; Hammond, G.; Shadid, J.; Collis, S.; Murray, R. A comparison of Navier-Stokes and network models to predict chemical transport in municipal water distribution systems. In Proceedings of the World Water and Environmental Resources Congress. Impacts of Global Climate Change, Anchorage, AK, USA, 15–19 May 2005. [Google Scholar] [CrossRef]
- Webb, S.W. High-fidelity simulation of the influence of local geometry on mixing in crosses in water distribution systems. In Proceedings of the ASCE World Water & Environmental Resources Congress, Tampa, FL, USA, 15–19 May 2007. [Google Scholar] [CrossRef]
- Romero-Gomez, P.; Ho, C.K.; Choi, C.Y. Mixing at cross junctions in water distribution systems. I: Numerical study. J. Water Resour. Plan. Manag. 2008, 134, 285–294. [Google Scholar] [CrossRef]
- Ho, C.K.; Khalsa, S.S. EPANET-BAM: Water quality modeling with incomplete mixing in pipe junctions. In Proceedings of the Water Distribution Systems Analysis, Kruger National Park, South Africa, 17–20 August 2008. [Google Scholar]
- Song, I.; Romero-Gomez, P.; Choi, C.Y. Experimental verification of incomplete solute mixing in a pressurized pipe network with multiple cross junctions. J. Hydraul. Eng. 2009, 135, 1005–1011. [Google Scholar] [CrossRef]
- Andrade, M.A.; Rojano, F.; Romero-Gomez, P.; Choi, C.Y. Integrated water quality modeling of water distribution systems. In Proceedings of the Water Distribution Systems Analysis, Tucson, AZ, USA, 12–15 September 2010. [Google Scholar] [CrossRef]
- Liu, H.; Yuan, Y.; Zhao, M.; Zheng, X.; Lu, J.; Zhao, H. Study of Mixing at Cross Junction in Water Distribution Systems Based on Computational Fluid Dynamics. In Proceedings of the ICPTT 2011: Sustainable Solutions for Water, Sewer, Gas, and Oil Pipelines, Beijing, China, 26–29 October 2011. [Google Scholar] [CrossRef]
- Yu, T.C.; Shao, Y.; Shen, C. Mixing at cross joints with different pipe sizes in water distribution systems. J. Water Resour. Plan. Manag. 2014, 140, 658–665. [Google Scholar] [CrossRef]
- Shao, Y.; Yang, Y.J.; Jiang, L.; Yu, T.; Shen, C. Experimental testing and modeling analysis of solute mixing at water distribution pipe junctions. Water Res. 2014, 56, 133–147. [Google Scholar] [CrossRef] [PubMed]
- Mompremier, R.; Pelletier, G.; Mariles, Ó.A.F.; Ghebremichael, K. Impact of incomplete mixing in the prediction of chlorine residuals in municipal water distribution systems. J. Water Supply Res. Technol.—AQUA 2015, 64, 904–914. [Google Scholar] [CrossRef]
- Hernández-Cervantes, D.; Delgado-Galván, X.; Nava, J.L.; López-Jiménez, P.A.; Rosales, M.; Mora Rodríguez, J. Validation of a computational fluid dynamics model for a novel residence time distribution analysis in mixing at cross-junctions. Water 2018, 10, 733. [Google Scholar] [CrossRef]
- McKenna, S.A.; O’Hern, T.; Hartenberger, J. Detailed investigation of solute mixing in pipe joints through high speed photography. In Proceedings of the Water Distribution Systems Analysis, Kruger National Park, South Africa, 17–20 August 2008. [Google Scholar] [CrossRef]
- Ho, C.K.; O’Rear, L., Jr. Evaluation of solute mixing in water distribution pipe junctions. J. Am. Water Work. Assoc. 2009, 101, 116–127. [Google Scholar] [CrossRef]
- Choi, C.Y.; Shen, J.Y.; Austin, R.G. Development of a comprehensive solute mixing model (AZRED) for double-tee, cross, and wye junctions. In Proceedings of the Water Distribution Systems Analysis, Kruger National Park, South Africa, 17–20 August 2008. [Google Scholar] [CrossRef]
- Rossman, L.A. An overview of EPANET version 3.0. In Proceedings of the Water Distribution Systems Analysis, Tucson, AZ, USA, 12–15 September 2010. [Google Scholar] [CrossRef]
- Hernández Cervantes, D.; López-Jiménez, P.A.; Arciniega, N.J.A.; Delgado, G.X.; Jiménez, M.M.R.; Pérez-Sánchez, M.; Mora, R.J. Incomplete mixing model at cross-junctions in EPANET by polynomial equations. Water 2021, 13, 453. [Google Scholar] [CrossRef]
- Hernández, C.D.; Mora, R.J.; Delgado, G.X.; Ortiz, M.J.; Jiménez, M.M.R. Optimal use of chlorine in water distribution networks based on specific locations of booster chlorination: Analyzing conditions in Mexico. Water Sci. Techol. 2016, 16, 493–505. [Google Scholar] [CrossRef]
- Ewald, G.; Zubowicz, T.; Brdys, M.A. Multiprocessor implementation of parallel multiobjective genetic algorithm for optimized allocation of chlorination stations in drinking water distribution system-a new water quality model approach. IFAC Proc. Vol. 2013, 46, 123–128. [Google Scholar] [CrossRef]
- Meng, F.; Liu, S.; Auckenthaler, P.; Bai, L.; Wang, H.; Wu, X. Optimization of booster disinfection with backtracking algorithm. In Proceedings of the 1st International Conference on Consumer Electronics, Communications and Networks (CECNet), Xianning, China, 16–18 April 2011. [Google Scholar] [CrossRef]
- Hongxiang, W.; Wenxian, G.; Jianxin, X.; Hongmei, G. A hybrid PSO for optimizing locations of booster chlorination stations in water distribution systems. In Proceedings of the International Conference on Intelligent Computation Technology and Automation Changsha, Changsha, China, 11–12 May 2010. [Google Scholar] [CrossRef]
- Drewa, M.; Brdys, M.A. Optimized allocation of chlorination stations for integrated quantity and quality control in drinking water distribution systems. IFAC Proc. Vol. 2007, 40, 73–78. [Google Scholar] [CrossRef]
- Kurek, W.; Brdys, M.A. Optimised allocation of chlorination stations by multi-objective genetic optimisation for quality control in drinking water distribution systems. IFAC Proc. Vol. 2006, 39, 232–237. [Google Scholar] [CrossRef]
- Alcocer-Yamanaka, V.H.; Tzatchkov, V.G.; Arreguín-Cortés, F.I. Modelo de calidad del agua en redes de distribución. Ing. Hidraul. Mex. 2004, 19, 77–88. Available online: http://repositorio.imta.mx/handle/20.500.12013/743 (accessed on 7 December 2023).
- Afzali, A.S.; Jafari-Asl, J.; Banifakhr, E.; Houssein, E.H.; Ben Seghier, M.E.A. Risk-Based Design Optimization of Contamination Detection Sensors in Water Distribution Systems: Application of an Improved Whale Optimization Algorithm. Water 2023, 15, 2217. [Google Scholar] [CrossRef]
- Piazza, S.; Sambito, M.; Freni, G. Analysis of optimal sensor placement in looped water distribution networks using different water quality models. Water 2023, 15, 559. [Google Scholar] [CrossRef]
- Brentan, B.M.; Carpitella, S.; Izquierdo, J.; Montalvo, I. Multi-objective, rule and preference-based placement of quality sensors in water supply networks. IFAC-Pap. 2022, 55, 482–489. [Google Scholar] [CrossRef]
- Tsitsifli, S.; Kanakoudis, V. Identification of Suitable Locations in a Small Water Supply Network for the Placement of Water Quality Sensors Based on Different Criteria under Demand-Driven Conditions. Water 2022, 14, 2504. [Google Scholar] [CrossRef]
- Marlim, M.S.; Kang, D. Optimal water quality sensor placement by accounting for possible contamination events in water distribution networks. Water 2021, 13, 1999. [Google Scholar] [CrossRef]
- Nikolopoulos, D.; Ostfeld, A.; Salomons, E.; Makropoulos, C. Resilience assessment of water quality sensor designs under cyber-physical attacks. Water 2021, 13, 647. [Google Scholar] [CrossRef]
- Shahra, E.Q.; Wu, W.; Gomez, R. Human Health Impact Analysis of Contaminant in IoT-Enabled Water Distributed Networks. Appl. Sci. 2021, 11, 3394. [Google Scholar] [CrossRef]
- Ciaponi, C.; Creaco, E.; Di Nardo, A.; Di Natale, M.; Giudicianni, C.; Musmarra, D.; Santonastaso, G.F. Reducing impacts of contamination in water distribution networks: A combined strategy based on network partitioning and installation of water quality sensors. Water 2019, 11, 1315. [Google Scholar] [CrossRef]
- Nono, D.; Basupi, I. Robust booster chlorination in water distribution systems: Design and operational perspectives under uncertainty. J. Water Supply Res. Technol.—AQUA 2019, 68, 399–410. [Google Scholar] [CrossRef]
- Palleti, V.R.; Kurian, V.; Narasimhan, S.; Rengaswamy, R. Actuator network design to mitigate contamination effects in water distribution networks. Comput. Chem. Eng. 2018, 108, 194–205. [Google Scholar] [CrossRef]
- Taormina, R.; Galelli, S.; Tippenhauer, N.O.; Salomons, E.; Ostfeld, A.; Eliades, D.G.; Aghashahi, M.; Sundararajan, R.; Pourahmadi, M.; Banks, M.K.; et al. Battle of the attack detection algorithms: Disclosing cyber attacks on water distribution networks. J. Water Resour. Plan. Manag. 2018, 144, 04018048. [Google Scholar] [CrossRef]
- Xuesong, Y.; Jie, S.; Chengyu, H. Research on contaminant sources identification of uncertainty water demand using genetic algorithm. Clus Comp. 2017, 20, 1007–1016. [Google Scholar] [CrossRef]
- Rathi, S.; Gupta, R. Optimal sensor locations for contamination detection in pressure-deficient water distribution networks using genetic algorithm. Urban Water J. 2017, 14, 160–172. [Google Scholar] [CrossRef]
- Rathi, S.; Gupta, R. A simple sensor placement approach for regular monitoring and contamination detection in water distribution networks. KSCE J. Civ. Eng. 2016, 20, 597–608. [Google Scholar] [CrossRef]
- Zeng, D.; Gu, L.; Lian, L.; Guo, S.; Yao, H.; Hu, J. On cost-efficient sensor placement for contaminant detection in water distribution systems. IEEE Trans. Industr Inform. 2016, 12, 2177–2185. [Google Scholar] [CrossRef]
- Rathi, S.; Gupta, R. A critical review of sensor location methods for contamination detection in water distribution networks. Water Qual. Res. J. Canada 2015, 50, 95–108. [Google Scholar] [CrossRef]
- Di Nardo, A.; Di Natale, M.; Musmarra, D.; Santonastaso, G.F.; Tzatchkov, V.; Alcocer-Yamanaka, V.H. A district sectorization for water network protection from intentional contamination. Procedia Eng. 2014, 70, 515–524. [Google Scholar] [CrossRef]
- Rathi, S.; Gupta, R. Monitoring stations in water distribution systems to detect contamination events. ISH J. Hydraul. Eng. 2014, 20, 142–150. [Google Scholar] [CrossRef]
- Schwartz, R.; Lahav, O.; Ostfeld, A. Integrated hydraulic and organophosphate pesticide injection simulations for enhancing event detection in water distribution systems. Water Res. 2014, 63, 271–284. [Google Scholar] [CrossRef] [PubMed]
- Alvisi, S.; Franchini, M.; Gavanelli, M.; Nonato, M. Near-optimal scheduling of device activation in water distribution systems to reduce the impact of a contamination event. J. Hydroinform. 2012, 14, 345–365. [Google Scholar] [CrossRef]
- Janke, R.; Murray, R.; Haxton, T.M.; Taxon, T.; Bahadur, R.; Samuels, W.; Morley, K. Threat Ensemble Vulnerability Assessment-Sensor Placement Optimization Tool (TEVA-SPOT) Graphical User Interface User’s Manual; US EPA National Homeland Security Research Center (NHSRC): Cincinnati, OH, USA, 2012; p. 115. Available online: https://cfpub.epa.gov/si/si_public_record_report.cfm?Lab=NHSRC&subject=Homeland%20Security%20Research&dirEntryId=257684 (accessed on 7 December 2023).
- Weickgenannt, M.; Kapelan, Z.; Blokker, M.; Savic, D.A. Risk-based sensor placement for contaminant detection in water distribution systems. J. Water Res. Plan. Man. 2010, 136, 629–636. [Google Scholar] [CrossRef]
- Preis, A.; Ostfeld, A. Multiobjective contaminant response modeling for water distribution systems security. J. Hydroinform. 2008, 10, 267–274. [Google Scholar] [CrossRef]
- Paez, N.; Saldarriaga, J.; Bohorquez, J. Water quality modeling considering incomplete mixing in extended periods. Proc. Eng. 2017, 186, 54–60. [Google Scholar] [CrossRef]
- CEAG. 22 Diagnóstico Sectorial de Agua Potable y Saneamiento 2019; Comisión Estatal del Agua de Guanajuato: Guanajuato, Mexico, 2019.
- Avesani, D.; Righetti, M.; Righetti, D.; Bertola, P. The Extension of EPANET Source Code to Simulate Unsteady Flow in Water Distribution Networks with Variable Head Tanks. J. Hydroinform. 2012, 14, 960–973. [Google Scholar] [CrossRef]
- Todini, E. Extending the Global Gradient Algorithm to Unsteady Flow Extended Period Simulations of Water Distribution Systems. J. Hydroinform. 2010, 13, 167–180. [Google Scholar] [CrossRef]
- Eliades, D.G.; Kyriakou, M.; Vrachimis, S.; Polycarpou, M.M. EPANET-MATLAB Toolkit: An Open-Source Software for Interfacing EPANET with MATLAB. In Proceedings of the 14th International Conference on Computing and Control for the Water Industry, Amsterdam, The Netherlands, 7–9 November 2016. [Google Scholar] [CrossRef]
Network Components | System Operation | Water Quality | Options and Reporting | Network Map/Tags |
---|---|---|---|---|
Title | Curves | Quality | Options | Coordinates |
Junctions * | Patterns * | Reactions * | Times * | Vertices |
Reservoirs | Energy | Sources * | Report | Labels |
Tanks | Status | Mixing | Backdrop | |
Pipes * | Controls * | Tags | ||
Pumps | Rules | |||
Valves | Demands | |||
Emitters |
Time Parameters in EPANET | Default Values in EPANET (h) | Times Modification in IncByPass (h) |
---|---|---|
Hydraulic Time Step | 1:00 | 0:05 * |
Quality Time Step | 0:05 | 0:05 |
Pattern Time Step | 1:00 | 0:05 * |
Reporting Time Step | 1:00 | 1:00 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Hernández Cervantes, D.; Arciniega Nevárez, J.A.; Ramos, H.M.; Delgado Galván, X.; Pineda Sandoval, J.D.; Mora Rodríguez, J. EPANET INP Code for Incomplete Mixing Model in Cross Junctions for Water Distribution Networks. Water 2023, 15, 4253. https://doi.org/10.3390/w15244253
Hernández Cervantes D, Arciniega Nevárez JA, Ramos HM, Delgado Galván X, Pineda Sandoval JD, Mora Rodríguez J. EPANET INP Code for Incomplete Mixing Model in Cross Junctions for Water Distribution Networks. Water. 2023; 15(24):4253. https://doi.org/10.3390/w15244253
Chicago/Turabian StyleHernández Cervantes, Daniel, José Antonio Arciniega Nevárez, Helena M. Ramos, Xitlali Delgado Galván, Joseph Daniel Pineda Sandoval, and Jesús Mora Rodríguez. 2023. "EPANET INP Code for Incomplete Mixing Model in Cross Junctions for Water Distribution Networks" Water 15, no. 24: 4253. https://doi.org/10.3390/w15244253
APA StyleHernández Cervantes, D., Arciniega Nevárez, J. A., Ramos, H. M., Delgado Galván, X., Pineda Sandoval, J. D., & Mora Rodríguez, J. (2023). EPANET INP Code for Incomplete Mixing Model in Cross Junctions for Water Distribution Networks. Water, 15(24), 4253. https://doi.org/10.3390/w15244253