Introduction
The topic is not so simple as could appear. Starting from the beginning, what is the final aim? The dimensions of each pipe of our sewer system.
The steps to do that are:
- Design the planar view of the sewer system;
- Evaluation of the maximum discharge for each pipe;
- Calculation of the pipe’s diameter, as a consequence of 2 and 3
Design of the sewer system
So we need a sewer system, that can be create based on the urban destination of the area and of the position of the roads. In this draft is done with QGIS interfaced by GISWATER.
In this way is possible to obtain an input file for EPA-SWMM.
Evaluation of the maximum discharge
The discharge is a result of the simulation done in EPA-SWMM. However this result is based on different models (for infiltration, evaporation, etc) with different complexity. So to evaluate the maximum discharge in a node is necessary that the user select the appropriate part of the models. This is also done using GISWATER.
Calculation of the pipe’s diameter
At this point, the calculation of the diameter related to the evaluated discharge is very simple. Once the maximum discharge is estimated the diameter is directly obtained through the Gauckler-Strickler relation.
Install all the software
Prerequisites
The software used in this exercise are three: QGIS works on all operative systems, GISWATER and SWMM (with GUI) only on Windows. So for the complete design you need (unfortunately) a working Windows OS.
How to install the software
To install QGIS 2.18 click here. ( To install QGIS 2.14 click here. )
To install GISWATER click here.
To install EPA-SWMM click here.
The “flowchart” of the design
To explain better the path of how use these software to design a sewer here is reported the flowchart-like scheme of the complete project:
Use of the software
QGIS and GISWATER
QGIS is an Geografic Information System. It can be use to represent spatial quantities and infrastructures. In this case, aqueducts and sewers. To learn how to use QGIS please refer to QGIS Documentation. Instead, to understand how to use QGIS interfaced with GISWATER follow these series of videos that explain very well how to do.
The result of the use of GISWATER is an input file with all the GIS based and other fields fully filled directly in QGIS. To understand how to do that follow these other videos.
DOCKER
What is Docker?
Docker is lightweight virtual machine that simulates a Linux environment. It allows to abstract the characteristic of any operating system, and make easy the management of programs/models that needs to work everywhere. Here the complete official explanation.
Why Docker?
Because it makes our life easier and is a OS-free tools. Unfortunately, the first step above is not OS-free, because GISWater does work only in Windows, Docker can allow to replace the use of EPA-SWMM GUI which is also OS dependent.
How to install Docker?
How use Docker?
For general uses of Docker please follow the official site documentation.
In our case the use its very simple, just follow below scheme:
In this post case we use a standard example of SWMM. To prepare the simulation first prepare a directory (say SWMMex) and put inside it the files you find at the following this link.
The steps to do to run the analysis with Docker are:
- Launch the Terminal: Quickstart Terminal for Docker Toolbox or Command-line/PowerShell Terminal for Docker;
- Move into the working directories where there are the input files: use the command
cd
to do that; - Verify if the files are inside the directory: type
ls
and all directories and files should list, if not check if you are in the right directory; - Launch the command depending on OS and Docker tool you are using: actually the commands are two..
- With Quickstart Docker Terminal or Command-line Terminal on OS X and Linux OS:
- With Docker in PowerShell on Windows OS:
NOTE:
is meaning that if the file is called 2D.inp the command should be
docker run –rm -v $(pwd):/data ftt01/swmm5.1 2D - With Quickstart Docker Terminal or Command-line Terminal on OS X and Linux OS:
- A directory with the same name (i.e. 2D in the case above) of the input file should be created, with the tree explained before. If not something went wrong! Check to have done all previous steps right.
For any problems related on Docker errors please check inside the installation post depending on your OS and Docker/Docker Toolbox choice or the Official troubleshooting page (here for Docker Toolbox).
EPA-SWMM
If you prefer the GUI old way, please follow the manuals on the EPA-SWMM official page downloads. It doesn’t create a directory tree but you can manually copy the data from the report file.
Summary
The right way is to create a pipe, an area and a node. Analyze this, dimensioning the pipe. Then create the second pipe, area and node and so on.
The way that we adopted is a bit different due to software limits. So here the steps:
- Create the entire sewer tree on QGIS and set up with GISWATER:
- Draw the sewer on QGIS following plan rules;
- Set first dimension of the pipes;
- Set other dimension with QGIS tools;
- Set the constant intensity of rainfall for different time obtained from DDF (LSPP);
- Set all the models to use in the analysis;
- Run GISWATER for each different rainfall time to obtain an input file.
- Run Docker (and so behind it SWMM) to create the directory tree;
- Evaluate the maximum discharge and the diameter of each pipe starting from externals:
- Select the first area, with related node and pipe;
- Run Jupyter Notebook and open the file Evaluate the maximum discharge.ipynb to evaluate the maximum discharge of the node analyzed;
- Always inside the Jupyter Notebook open the file Estimating the diameter of a sewer’s pipe .ipynb (from AboutHydrology post) to evaluate the dimension of the pipe;
- Change the dimension of the pipe inside each input files and run again Docker as explained above.
- Check if the entire sewer system respects law and technical aspects (degree of filling, velocity, etc).
Conclusions
This guide is under construction, so every advice, improvements and comments are appreciated. Thanks for reading!
Thanks to Prof.Rigon for the needed corrections.
GWH!
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.