{"id":925,"date":"2012-01-22T11:55:10","date_gmt":"2012-01-22T08:55:10","guid":{"rendered":"http:\/\/www.water-simulation.com\/wsp\/?p=925"},"modified":"2012-01-22T15:39:02","modified_gmt":"2012-01-22T12:39:02","slug":"waternetgen-epanet-extension-pipe-sizing","status":"publish","type":"post","link":"http:\/\/www.water-simulation.com\/wsp\/2012\/01\/22\/waternetgen-epanet-extension-pipe-sizing\/","title":{"rendered":"WaterNetGen &#8211; EPANET extension &#8211; pipe sizing"},"content":{"rendered":"<p><strong><span style=\"color: #ff0000;\">Update<\/span>:<\/strong> following a comment by Joaquim Sousa, one of the developers of WaterNetGen, I have updated the post since it seems I made a mistake and didn&#8217;t use the right settings for the SA method &#8211; sorry.<\/p>\n<p>A few months ago, researchers from Coimbra (Portugal) released the <a title=\"WaterNetGen\" href=\"http:\/\/www.dec.uc.pt\/~WaterNetGen\/\">WaterNetGen<\/a> program. WaterNetGen is a free\u00a0<a title=\"EPANet related\" href=\"http:\/\/www.water-simulation.com\/wsp\/category\/epanet-related\/\">EPANet<\/a> extension\u00a0to automatically build water distribution networks\u00a0 synthetic models, do pipe sizing, compute technical performance indicators, and allowed demand-driven and pressure-driven simulations.<\/p>\n<blockquote><p>WaterNetGen is an extension of the EPANET 2.0 software (Rossman 2000) that preserves the user interface and allows the generation of synthetic water distribution network models (Muranho et al. 2012) and its sizing based on simple heuristics (Muranho et al. 2011). It also allows to perform least cost design, by using a Simulated Annealing algorithm, and pressure-driven analysis, a better suited approach to model pressure dependent consumption and leakage.<\/p><\/blockquote>\n<p>I have not tested all its feature but did try the pipe sizing option which uses the <a title=\"Simulated annealing\" href=\"http:\/\/en.wikipedia.org\/wiki\/Simulated_annealing\">Simulated Annealing<\/a> optimization method. The network I tested was the <a title=\"Hanoi Water Distribution Network\" href=\"http:\/\/centres.exeter.ac.uk\/cws\/benchmarks\/layout\/37-hanoi-water-distribution-network\">Hanoi water network benchmark<\/a>.<\/p>\n<p><a href=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-menu.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-931\" title=\"WaterGenNet menus\" src=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-menu.jpg\" alt=\"WaterGenNet menus\" width=\"364\" height=\"200\" \/><\/a><\/p>\n<p>First open the <a title=\"Hanoi INP file\" href=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/hanoi-inp.zip\">Hanoi INP<\/a> file using WaterNetGen. Now open the &#8216;Pipe Catalogue&#8217; from the WaterNetGen menu and enter the following data.<\/p>\n<p style=\"text-align: center;\">\u00a0<a href=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-pipe-catalog.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-928\" title=\"WaterGenNet pipe catalog\" src=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-pipe-catalog.jpg\" alt=\"WaterGenNet pipe catalog\" width=\"691\" height=\"605\" \/><\/a><\/p>\n<p>\u00a0Now click CRTL-A to select all pipes (nice)\u00a0, right click on the map\u00a0to select the &#8216;Pipe Type&#8217;<\/p>\n<p><a href=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-right-click.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-935\" title=\"watergennet-right-click\" src=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-right-click.jpg\" alt=\"\" width=\"414\" height=\"227\" \/><\/a><\/p>\n<p>Choose the only available option (1 &#8211; 1):<\/p>\n<p><a href=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-pipe-type.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-936\" title=\"WaterGenNet pipe type\" src=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-pipe-type.jpg\" alt=\"WaterGenNet pipe type\" width=\"342\" height=\"260\" \/><\/a><\/p>\n<p>Now fire up the &#8216;Pipe Sizing&#8217; screen and set the values marked in red. Check the &#8216;Set Initial Diameters&#8217; option, select\u00a0 &#8216;Set to Max from Catalog&#8217; and click the &#8216;Run&#8217; button. This will set all pipes diameters to 1,016mm. I&#8217;m not sure why the minimum pressure is to be set in kPa and not meters or feet but 294Pa are about 30 meters. Also set the maximum pressure to a high value since the Hanoi problem does not have a maximum pressure constraint. The same goes\u00a0for the velocity constraints &#8211; set the minmum value to 0.00001 and the maximum to 10.<\/p>\n<p><a href=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-pipe-sizing-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-950\" title=\"WaterNeTGen pipe sizing\" src=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-pipe-sizing-3.jpg\" alt=\"\" width=\"667\" height=\"493\" \/><\/a><\/p>\n<p>\u00a0Last thing to do is set the &#8216;Generator Seed&#8217; to 1 for the SA method:<\/p>\n<p><a href=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-sa.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-951\" title=\"WaterNetGen SA\" src=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-sa.jpg\" alt=\"\" width=\"669\" height=\"524\" \/><\/a><\/p>\n<p>Now click the &#8216;Run&#8217; button and wait:<\/p>\n<p><a href=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-pipe-sizing-4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-955\" title=\"WaterNetGen optimized\" src=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/watergennet-pipe-sizing-4.jpg\" alt=\"\" width=\"667\" height=\"493\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The solution cost is 6,081,115 which is around the range of previous published results. For example, <a title=\"WaterIng\" href=\"http:\/\/www.water-simulation.com\/wsp\/2010\/06\/17\/watering\/\">WaterIng<\/a> came up with a solution of 6,100,000. The optimized file is <a title=\"Hanoi network optimized\" href=\"http:\/\/www.water-simulation.com\/wsp\/wp-content\/uploads\/2012\/01\/hanoi-optimized.zip\">here<\/a> but please note that it can be opened only with WaterNetGen and not the regular EPANet version.<\/p>\n<p>I will try to evaluate the\u00a0other WaterNetGen features in the near future.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update: following a comment by Joaquim Sousa, one of the developers of WaterNetGen, I have updated the post since it seems I made a mistake and didn&#8217;t use the right settings for the SA method &#8211; sorry. A few months &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.water-simulation.com\/wsp\/2012\/01\/22\/waternetgen-epanet-extension-pipe-sizing\/\"> <span class=\"screen-reader-text\">WaterNetGen &#8211; EPANET extension &#8211; pipe sizing<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,4],"tags":[17,91,93,143],"class_list":["post-925","post","type-post","status-publish","format-standard","hentry","category-epanet-related","category-free-software","tag-features","tag-hanoi","tag-optimization","tag-waternetgen"],"_links":{"self":[{"href":"http:\/\/www.water-simulation.com\/wsp\/wp-json\/wp\/v2\/posts\/925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.water-simulation.com\/wsp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.water-simulation.com\/wsp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.water-simulation.com\/wsp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.water-simulation.com\/wsp\/wp-json\/wp\/v2\/comments?post=925"}],"version-history":[{"count":3,"href":"http:\/\/www.water-simulation.com\/wsp\/wp-json\/wp\/v2\/posts\/925\/revisions"}],"predecessor-version":[{"id":959,"href":"http:\/\/www.water-simulation.com\/wsp\/wp-json\/wp\/v2\/posts\/925\/revisions\/959"}],"wp:attachment":[{"href":"http:\/\/www.water-simulation.com\/wsp\/wp-json\/wp\/v2\/media?parent=925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.water-simulation.com\/wsp\/wp-json\/wp\/v2\/categories?post=925"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.water-simulation.com\/wsp\/wp-json\/wp\/v2\/tags?post=925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}