Showing posts with label SWMM. Show all posts
Showing posts with label SWMM. Show all posts

Thursday, August 8, 2019

JSWMM essentials

Interest around urban hydrology has been growing steadily during the last years, and recently had the opportunity to be published in large diffusion scientific journals as Nature. For years the mainstream hydrology has mostly dedicated its attention to "natural" catchments, while considering of secondary importance what happens in cities. Now that most of the people live in cities, and humans are clearly a global agent that affects climate and the whole Earth System, urban hydrology start to be seen under a different light. How works hydrology in cities ? And, for my own interests, how to model and eventually design cities' hydrology ?

My starting point is that good tools developed for generic hydrology should work also for cities. However, over the years some tools specialised for cities and captured the attention of the community of researchers that dedicated to it. Among those is EPA SWMM v5.1.
Actually, EPA SWMM is a rainfall-runoff model but its developer added tools for treating cities specifics, excluding,  a real system for designing storm water networks, a.k.a. pluvial sewers.
With the Master Thesis by Daniele Dalla Torre faced this issue to add to SWMM a designing tool, based on a simplified geomorphic unit based approach. In the meanwhile he found reasonable to port most of SWMM to Java and to embed it in OMS v3. Therefore SWMM became JSWMM and it is available at the GEOframe repository JSWMM inherit everything from SWMM and its i/o files can be run as they are in SWMM. JSWMM clone of SWMM has some evolutionary advantage with respect to SWMM (a part from the designing module which is not existing in the original). Inside JSWMM, in fact, any draining area is processed in parallel from the others, using the Net3 algorithms and this parallelism is made without any intervention of the user. Besides, in future, any appropriate module from GEOframe, could be used to estimate the desired element of the hydrological cycle. Including Richards-1d for infiltration or the coming soon 2D de Saint-Venant module.

No manual is actually ready but the draft of his master thesis (in English) can be used to understand JSWMM internals and his dissertation presentation can be used for the same scope.

Material (to be uploaded soon)

Monday, July 16, 2018

Towards a new SWMM, JSWMM

You want to design a storm water management system. What you usually get is a rainfall-runoff model. In this specific subfield, the model is SWMM. EPA SWMM contains many features that were implemented to simulate urban storm water depletion network. Meaning that there are specific model's parameters set for that, and that a community gathered around this tool.

However SWMM is not a system for designing sewers. Designing requires that you repeat the modeling actions several times. At the outlet of any pipe, you have to:
  • estimate the runoff under a "design rainfall" coming from some intensity-duration-frequency curves.
  • get the maximum discharge with an assigned return period (say 10 years)
  • Use simplified hydraulics for obtaining the size of the pipe apt to contain the maximum discharge
  • repeat the operation for the pipes downhill, without leaving out uphill branches.
Operation 2 above requires a search algorithm to find the rainfall duration that is responsible for the maximum discharge. The complete theory is in Rigon et al., 2011.
The point is that SWMM does not do the sequence of operation above. This is one of the reasons we implemented JSWMM. To see what it does, click on the figure.

News: A ne presentation of the work was given at the 2020 iEMSs biennial Conference and can be found here

Saturday, February 4, 2017

Water supply systems and Stormwater management infrastructures 2017

This year I decide to renovate the teaching of my class of "Hydraulic Constructions".  Usually, under this name, one thinks to dams, levees, or other infrastructures. In fact, what I will  teach is how to design a water supply system for a city or for a city district, and how to design the infrastructures for storm water management.

This the foreseen schedule of the course. L Means a laboratory class, where the students are asked to calculate, think or project something. Actually it will be that I will do stuff for them, introducing some tools and asking them to repeat and complete the task on their dataset. Tentatively, it will be a "learning by doing approach" which I used also the last years but to a minor extent. 


I have 60 hours in total over thirteen weeks. So the schedule could be the following one

Storm waters
  1. T - Introductory Class. 
  2. T - Statistical properties of ground precipitations. Mechanisms  of formation of precipitation. Ground based statistics. Extreme precipitations.  
  3. L - Explorative data analysis. Investigating data with Python (or R).  
  4. T - Extreme precipitations. Around the concept of return period. Extreme distributions. 
  5. L - Estimation of Extreme distributions with Python (or R)
  6. T - Element for the design of storm water management infrastructures.  
  7. L - Short introduction to QGIS for representing urban infrastructures. 
    1. T - Element for the design of storm water management infrastructures. - II 
      • L - Simple estimations of the maximum discharge via Python
      • T - Pumping stormwaters.
      • L - Designing some part of a sewer network with SWMM and Python. 
      Clean water supply - Aqueducts

      As a  general, simple and descriptive reference, the first six chapters of Maurizio Leopardi's book can be useful :
      Here the class lectures:
      1. T - Aqueducts in 2020
      2. L - Introduction to EPANET (and related GIS)(YouTube2017)
      3. T - Aqueducts' distribution networks: the water demand and some design indications)
      4. T - External aqueducts
      5. T - Introduction to intakes  for water supply
      6. T - Water uptakes
      7. L - Reservoirs
      8. L - Design and verification of distribution networks with EPANET - 
      9. T - Houses' infrastructures
      10. T - Urban Drainage Systems
      11. L - Design and verification of distribution networks with EPANET - I I (YouTube on Water Demand)
      Tools

      During the class I will introduce sever tools for calculations. 
      • Python - Python is a modern programming languages. It will be used for data treatment, estimation of the idf curves of precipitation, some hydraulic calculation and data visualisation. I will use Python mostly as a scripting language to bind and using existing tools. 
      • SWMM - Is an acronym for Storm Water Management System. Essentially it is a model for the estimation of runoff adjusted to Urban environment. I do not endorse very much its hydrology. However, it is the most used tools by colleagues who cares about storm water management, and I adopt it. It is not a tool for designing storm water networks, and therefore, some more work should be done with Python to fill the gaps.
      • EPANET Is the tool developed by EPA to estimate water distribution networks. 
      • LaTeX: il sistema per la scrittura e la composizione di testi matematici ed ingegneristici. Il testo di Lorenzo Pantieri e Tommaso Gordini è un piccolo gioiello. 
      Installation Instructions (for Windows) by Daniele Della Torre:

      SWMM: http://growworkinghard.altervista.org/epa-swmm-how-to-install-step-by-step/

      GISWATER: http://growworkinghard.altervista.org/giswater-11-install-windows/

      QGIS: http://growworkinghard.altervista.org/qgis-2-18-how-to-install-step-by-step-on-windows/

      and this for the Java RE:

      http://growworkinghard.altervista.org/install-jre-step-by-step-on-windows-march-2017/

      Domande della prova intermedia 2017.

      Friday, September 30, 2016

      EPAs for water

      EPA, in this case, stands for Environmental Protection Agency (of the United States).
      We use a couple of models developed there, especially in my class of Hydraulic Constructions.
      These products are:


      and they are available as open source.



      There is  an organization of people gathering who are interested in working on them.  You can join them at:


      I do not endorse them as the best models ever. But they are there, opens source, and have a community. I see them as a starting point for injecting new ideas and extensions.

      Saturday, September 17, 2016

      Urban Hydrology and Models

      Urban hydrology does not clearly indicate which the topic is. Has it to do with the rainfall that falls with different schedule on cities than elsewhere  or viceversa ? Has it to do with different canopies ? Different partition of fluxes ? Or all of it ?
      Cities gave a lot to sciences, they are, partially, the product of science an technology, but technical sciences does not study very much cities, … maybe.  Fletcher et al., (2013) can be a short review of the topic for beginners. 

      When hydrologists think to cities often they do not directly think to the built environment, and the way the models has to be adapted to simulate the urban water cycle. 
      Fact checking shows that just a few models are present around the world that are concerned with the topic. At least recently and in major journal. An exception is Joshua Cantone and Arthur Schmidt work, who have an approach very similar to mine, and Schmidt is steadily adding material to their first ideas. 

      Actually we, as engineers, we are also concerned on how these infrastructures can be designed (for a literature review, see my presentation here). As my students knows, I try to use a geomorphological approach to the problem, and I developed a model called Trento_p to design culverts and the relates sewage.  I also wrote a couple of paper on it (in Italian). However, I grow a sort of  dissatisfaction or not being able to deal with the whole set of measures that constitute the center of the modern view that aims to develop sustainable cities. 
      In this new context, new tools are necessary. The more used tool in recent context (almost the only one which seems referenced) is an old tool, called SWMM (its site here) written and promoted by EPA researchers. It is open source (but better see EPA's Github site or the Open Water Analytics Initiative), and exists from long time. Therefore it is pretty well documented (see below), and supported by many video tutorials.

      First impression is that its hydrology is really outdated. However, since it has many features that I like, in a pragmatic perspective, I could  use it with students, while my groups, on the ashes of the old Trento_p, builds a new model.

      An update (2018-01-18)

      Recently I came across the work of Aditi Bhaskar (GS), which addressed the urban hydrology issues "from below", meaning considering the effects on urban groundwater. The perspective is very interesting and complementary to the surface waters one.

      Another update(2019-10-10)

      Interesting is the approach used by this project, called Virtual Water, which deals with the applications of virtual reality to Urban Drainage Systems.

      References

      Bhaskar, A.S. and C. Welty (2012), Water Balances along an Urban-to-Rural Gradient of Metropolitan Baltimore, 2001-2009, Environmental and Engineering Geoscience. 18(1), 37-50. doi: 10.2113/gseegeosci.18.1.37.

      Bhaskar, A.S., C. Welty, R.M. Maxwell, A.J. Miller (2015), Untangling the effects of urban development on subsurface storage in Baltimore, Water Resources Research, doi: 10.1002/2014WR016039.

      Bhaskar, A.S. and C. Welty (2015), Analysis of subsurface storage and streamflow generation in urban watersheds, Water Resources Research, doi: 10.1002/2014WR015607.

      Bhaskar, A.S., L. Beesley, M.J. Burns, T.D. Fletcher, P. Hamel, C.E. Oldham, and A.H. Roy (2016), Will it rise or will it fall? Managing the diverse effects of urbanization on base flow, Freshwater Science, 35(1), 293-310, doi: 10.1086/685084.

      AS Bhaskar, DM Hogan, SA Archfield, Urban base flow with low impact development, Hydrological Processes 30 (18), 3156-3171


      D. Tamanini, A.B. Esmail, F. Zanotti, S. Simoni, P. Bertola, R. Rigon (2009). Trento_p : un modello geomorfologico per lo studio del drenaggio urbano. L'ACQUA, vol. 2009, p. 73-74, ISSN: 1125-1255

      Fletcher T.D., Andrieu  H., Hamel P., Understanding, management and modelling of urban hydrology and its consequences for receiving waters: A state of the art, Advances in Water Resources 51 (2013) 261–279

      Kexuan Wang (advisor, A.Schmidt) , Hydrologic response of sustainable urban drainage to different climate scenario, M.Sc. Thesis, 2015


      Morales, V. M., Quijano, J. C., Schmidt, A., & Garcia, M. H. (2016). Innovative framework to simulate the fate and transport of non‐conservative constituents in urban combined‐sewer catchments. Water Resources Res., 1–53. http://doi.org/10.1002/2016WR018807

      Pathirana, A,  Introduction to EPA-SWMM, presentation

      Rigon, R., Bertola, P. - La progettazione con un metodo geomorfologico delle reti di drenaggio urbane, II Conferenza Nazionale sul Drenaggio Urbano, Palermo, 10-12 maggio 2000


      Sanzana, P., Gironás, J., Braud, I., Branger, F., Rodriguez, F., Vargas, X., et al. (2017). A GIS-based urban and peri-urban landscape representation toolbox for hydrological distributed modeling. Environmental Modelling and Software, 91, 168–185. http://doi.org/10.1016/j.envsoft.2017.01.022

      Wang, A., Park, S., Huang, S., and Schmidt, A. (2015) Hydrologic Response of Sustainable Urban Drainage to Different Climate Scenarios. World Environmental and Water Resources Congress 2015: pp. 312-321.doi: 10.1061/9780784479162.030