Skip to content

SWMMLIDopt: a tool for optimization of low impact development (LID) measures using the SWMM model

Notifications You must be signed in to change notification settings

ElhadiMohsenAbdalla/SWMMLIDOPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SWMMLIDOPT

SWMMLIDopt: a tool for optimization of low impact development (LID) measures using the SWMM model

The SWMMLIDOPT tool is developed in the EviBAN project (https://www.sintef.no/projectweb/eviban/). It uses the Storm Water Management Model (SWMM) and provides a user-friendly environment for conducting multi-objective optimization of the selection and placement of LID measures in urban catchments.

The SWMMLIDopt operates from a simplified user interface that prepares the optimization input, executes the multi-objective optimization, based on the total cost and reduction of peak drainage flow rates, and visualizes the optimization results. SWMMLIDopt is created using several R packages such as Shiny (creates interactive user interface with R), swmmr (prepares, executes, and reads results of SWMM models from R environment) and mco (solves multi-objective optimization problems using the non-dominated sorting genetic algorithm (NSGA-II)).

To operate SWMMLIDOPT in your computer, the following must be installed:

  1. R and Rstudio: follow the instruction in this link (https://posit.co/download/rstudio-desktop/)

  2. The Storm Water Management Model (SWMM): install the (x64) version in this link (https://www.epa.gov/water-research/storm-water-management-model-swmm)

  3. Rtools: install the version that is compatible with your R version from this link (https://cran.r-project.org/bin/windows/Rtools/)

    To check your R version, run this command in the R terminal

    R --version

    Alternatively, check the version of R in R studio>Tools>Global options ...>General

How to use SWMMLIDopt

The following example illustrates the use of SWMMLIDopt tool for optimization of LID measures. In this example we use NTNU_case_noLID.inp which can be downloaded from the example folder in this repository. Open the example NTNU_case_noLID.inp in your SWMM software to make sure that it is working. Next, open Rstudio and follow these steps

  1. DOWNLOAD and open the SWMMLIDopt.R.

  2. Click Run App bottom.

ScreenShot

  1. The following window should appear.

ScreenShot

  1. Choose the inp file (i.e., the model created by SWMM software). In this example, we will use the NTNU_case_noLID.inp. It is important that the inp file has no LID measures.

  2. The SWMMLIDopt will execute the model, plot the catchment, simulation results, and print the catchment characteristics as shown in the following figure

ScreenShot

  1. In the box (Subcatchment tags), assign the land types of each catchment to one of the standard types in SWMMLIDOPT ('Parking', 'Roof','Vegetation','Road','Walkway') as shown in the following figure. Make sure that your .inp file contains tags for each catchment similar to the example provided here. It is possible to assign the same tag to many catchment in the inp file

ScreenShot

  1. The tab "LID creation tool" is used to create inp file with LID measures that are assigned based on user input. For example, As in the following figure, four LID measures were selected: BR(Bioretenetion cell), GR(Green roof), PP (permeable pavement) and VS (vegetated swales). BR will be implemented in the land types 'Parking' and 'Vegetation', while GR will only be implemented in the land type 'Roof'. Click the bottom "Create LIDs and Export results" to export the .inp file with LID measures

ScreenShot

  1. The LID measures parameters have the default values from the SWMM manual. It is possible to open the exported SWMM inp file and modify the parameters of the LID measures, as shown in the following figure

ScreenShot

  1. In the box (Optimization), you can set the Optimization constrains and run the Optimization. First, choose the inp file with LID measures. In the "Optimization constrains" tab, you can set the maximum LID measure for the entire catchment. In addition, you can set an upper limit for the density of each LID measure and the unit cost of each LID measure (euro/m2)

ScreenShot

  1. In the tab "Run optimization", you can run the multi-objective. After the optimization is finished, the text "Optimization is finished. Please export the results" will be printed in the screen. Then you can export the optimization results (.json)

ScreenShot

  1. The tab "Optimization results" can be used to visualize the results and compare between pareto optimal results. You first choose the results file (.json) and the SWMM file with LID measures (.inp). The pareto front will be plotted as follows.

ScreenShot

  1. you can choose a pareto optimal scenario as shown the following figure. You can then export the LID measure scenario as inp file and .csv file

ScreenShot

  1. In the tab "Compare pareto solutions", you can select and compare different pareto optimal solutions

ScreenShot

  1. In the tab "Details pareto solutions comparison ", you can compare the density of specific LID measures between two pareto optimal solutions

ScreenShot

License

MIT

Acknowledgements

This work was supported by the EviBAN project (Evidence based assessment of NWRM for sustainable water management). EviBAN is funded under the Water JPI 2018 Joint Call - WaterWorks 2017 on “Closing the Water Cycle Gap – Sustainable Management of Water Resources”, the research council of Norway (grant no 300281), and the Academy of Finland (no 326787).

About

SWMMLIDopt: a tool for optimization of low impact development (LID) measures using the SWMM model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages