Next Article in Journal
Long-Term Spatial and Temporal Rainfall Trends over Italy
Previous Article in Journal
A Methodological Approach to Assess Nature-Based Solutions’ Effectiveness in Flood Hazard Reduction: The Case Study of Gudbrandsdalen Valley
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Excel-Based Tool for Automatic Calibration of Urban Drainage System Models †

Department of Civil Engineering and Architecture, Tallinn University of Technology, 19086 Tallinn, Estonia
*
Author to whom correspondence should be addressed.
Presented at the International Conference EWaS5, Naples, Italy, 12–15 July 2022.
Environ. Sci. Proc. 2022, 21(1), 30; https://doi.org/10.3390/environsciproc2022021030
Published: 21 October 2022

Abstract

:
Climate change and aging infrastructure are the main stressors for existing urban drainage systems (UDS), causing more frequent overloading. The locations of flooded areas and system behavior under different scenarios can be analyzed using calibrated SWMM5 models. This study presents the implementation of an automatic calibration module designed for SWMM5. This module can be utilized for different types of drainage systems, including those that contain only impervious subareas, a mix of impervious and pervious subareas, as well systems that include natural ditches or channels. The latter are the most complex because, in this case, it is necessary to include the inflow of groundwater to the model. A dynamic link library (DLL) created by the authors enables automatic calibration of 21 parameters in SWMM5 in previously defined limits. The module enables calibrating up to five parameters simultaneously. This study presents different strategies for calibration, describes their limitations and possible solutions.

1. Introduction

Climate change is having a considerable impact on urban areas [1,2], and it is predicted that many areas around the world will be subjected to more frequent weather extremes, including intense rainfall events [3]. Hundreds of large cities in Europe are already known to be extremely vulnerable to pluvial floods, but there could be thousands more, although this cannot be confirmed without undertaking further investigations and risk assessments [4]. As public awareness has grown, so has the political and technical pressure to implement various flood mitigation and adaption measures, such as integrated stormwater planning and management initiatives, smart and real-time controlled infrastructure, and nature-based solutions. However, the implementation of some of the more advanced stormwater management approaches requires an in-depth knowledge of system behavior, which is typically based on estimations and predictions obtained through analyzing hydraulic models.
One of the most commonly used models for analyzing the impact of changes in precipitation volume and intensity on the existing drainage systems is SWMM5 [5,6]. To utilize this model for decision making, a calibration is required. Depending on the location of the site of interest, this is not always easy because the data needed for model building and calibration may be inaccurate or lacking, or the collection of it may be time consuming and labor intensive. A typical model requires data on the catchment characteristics, environmental conditions, as well as the geometry and the condition of the stormwater system. Behrouz et al. [7] have summarized the three main data calibration approaches: the data forcing approach, the manual “trial-and-error” approach and the automatic calibration approach. The primary distinction between the approaches is that the data forcing and “trial-and-error” approaches rely heavily on the judgement and experience of the practitioner, whereas automatic calibration is designed to be an objective and reproducible procedure. Nonetheless, both manual and automatic calibration are capable of producing the best fit values for the model; the key difference is the reproducibility of the results and the speed with which they are obtained. The best fit is typically estimated using either single- or multi-objective functions, and the appropriateness of the results is assessed through RMSE, peak flow error or total flow volume error.
Due to the inherent benefits of automatic calibration, a number of modules have been developed over the years, some of which are based on changing the SWMM5 input file during the calibration steps, while others are based on creating a dynamic link library (DLL), which allows one to change parameters without creating and reading new input file after each step [7,8,9,10,11]. The latter is preferred, as it takes less time to calibrate the model. This methodology is implemented in this study.
The goal of the study is to explain in detail how to calibrate a hydraulic model of an urban drainage system by using the modified DLL and a simple user interface developed by the authors.

2. Materials and Methods

In practice, automatic calibration of the urban drainage system model in SWMM5 can be achieved in two ways—either by creating and reading an input file after each calculation step or by changing the parameter settings directly within the program without the need for any additional actions. If the latter approach is chosen for model calibration, it is necessary to create a DLL, which allows the parameters to be changed within SWMM5. McDonnell [8] developed one of these tools, and it was adapted by the authors to achieve greater flexibility in changing the calibration parameters during the calibration. This newly attained ability to adjust 21 parameters [11] was added to the SWMM5 source code [12].
The authors designed this DLL to be compatible with a variety of programs, including Microsoft Excel. The software was chosen because it is widely used, and it does not require specific programing language knowledge while also offering a variety of options for data analysis and visualization. The DLL created is compatible with both 32-bit and 64-bit software versions.

3. Results

In Visual Basic for Applications (VBA), two options for automatic calibration were created: Option A for calibrating one or two parameters using the trial-and-error approach and Option B for calibrating up to five parameters at the same time using the Levenberg–Marquardt algorithm. An informative worksheet (“paramID”) is dedicated for the parameters, which may be included in the automatic model calibration. Each parameter is equipped with an ID, description, and minimal and maximal values, which may be defined by the user. Table 1 lists all of the parameters that can be calibrated with the developed tool.
If the user intends to investigate the sensitivity of different model parameters, either individually or in relation to other parameters, the first option should be chosen (A). If, on the other hand, the user had already defined the most sensitive set of parameters to be included in the calibration, the second option may be used (B). It is important to note that Option A (Figure 1) allows choosing between different variants for calculations (from 1 value for one parameter up to 21 values for both parameters), and Option B (Figure 2) allows calibrating up to five parameters at the same time. In the workbook, Option A may be found under worksheet “Surf”, and Option B may be found under worksheet “roughLM”.
In addition to the previously shown sheets, the workbook contains many others that are either directly used for or supplementary to the calibration. For instance, the supplementary sheets include lists of errors (“err_list”) and the information on various limits of parameters (“limits”). One of the most important sheets for calibration is the sheet “measured”, where the user needs to add measured data, which will be used in the model calibration. The measured data can include flow rates or water depths measured at selected conduits or nodes, and it is used to calculate the objective function.
The calibration results can be found in the worksheet “out_data”, which displays the final parameter values, as well as the difference between the measured and the modeled results. This sheet also includes information on the number of iterations, the number of function calls and the finish code, all of which indicate potential errors during the calibration. To learn more about the error message, the user can compare the error code in the sheet with the codes listed in the worksheet “error list”.
The user interface currently lacks the ability to save the calibration results directly to the SWMM5 input file, but this capability can easily be added through MS Excel.

4. Discussion

The authors have tested the automatic calibration module on several different UDS models and configurations. During the analysis, a number of problems and limitations emerged. First of all, it is necessary to mention some limitations regarding the SWMM5. If the modeled system only contains pipes, the excess water that infiltrates into the soil within the pervious areas is not included in the runoff calculations; typically, this is not an issue. This becomes a problem once there are ditches in the model into which the water exfiltrates from the ground. For such cases, it is necessary to include aquifers in the model and connect them to some junctions, similarly to surface catchments. The area of such catchment is usually estimated using surface elevation models, and therefore, it often does not coincide with the area of the groundwater basin (for example, part of precipitation that infiltrated into the soil in other catchments may exfiltrate into a ditch within another catchment). Therefore, it is suggested to adjust the size of the aquifers during the calibration. As such adjustment changes the size of the catchments in the model, it is evident that the modeler must be extra diligent when assessing and ensuring the model performance during different scenarios and flow regimes.
The second calibration option (B) contains five parameters, which may be calibrated simultaneously. It is possible to increase this number in the future, but a large number of parameters often give unrealistic results, especially in the case of a low number of measurements. Additionally, the addition of parameters may increase the number of errors in the simulations, as in some cases, the SWMM stops the calculation during calibration. The termination of the process of calculation is typically related to the selected calibration parameters, and it refers to conflicts between different parameters and their limits. In such cases, it is suggested to exclude some of the calibration parameters and perform an initial sensitivity study to analyze the impact of different parameters on the calibration and SWMM performance in general. The initial feedback on the calibration is provided in the MS Excel UI through the process finish code. The error messages are given through eight different states. These states give an instant overview to the user on the background of calibration failure (e.g., if the input parameters were improperly selected or if the selected precision was too small) or success (e.g., giving an indication on the lowest relative error). Additionally, as a source of reference and self-help, a worksheet containing a list of SWMM errors with their short descriptions was added to the Excel workbook. The addition of this worksheet is supposed to provide a quick and low-effort means of looking up the potential reasons why the program does not work as expected.

5. Conclusions

  • A dynamic link library was created for the automatic calibration of urban drainage system models in SWMM5. It is possible to use the DLL in MS Excel, as well as in other computer programs. In this study, the user interface for the automatic calibration module was created in MS Excel.
  • MS Excel was selected because it has several built-in analysis and visualization capabilities, and it is a familiar software for the potential users.
  • The initial testing of the calibration module pointed out several limitations both in the SWMM5 and the module itself. These limitations must be considered and addressed during the calibration and usage of the hydraulic model. The reduction in the limitations is an on-going task, as is the creation of a dedicated help file and user manual to support the potential users of the module.
  • Automatic model calibration may still be arduous and time consuming, as the number of parameters that must be included in the calibration can be high. For such cases, parallel computation may be used.
  • Upon request, the automatic calibration module is freely available to all interested parties.

Author Contributions

Conceptualization, I.A., A.V. and N.K.; methodology, I.A. and A.V.; software development, A.V. and K.S.; validation, I.A., K.K. and K.S.; writing—original draft preparation, I.A., A.V., N.K., K.K. and M.T.; writing—review and editing, I.A., A.V., N.K., K.K., M.T. and K.S.; visualization, K.K., M.T. and K.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Estonian Research Council, grant number PRG667, and the European Union (European Regional Development Fund) Interreg Baltic Sea Region Programme, grant number #R093.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to the fact that the presented calibration module is only available by request at present.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study, in the collection, analyses, or interpretation of the data, in the writing of the manuscript or in the decision to publish the results.

References

  1. Langeveld, J.G.; Schilperoort, R.P.S.; Weijers, S.R. Climate Change and Urban Wastewater Infrastructure: There is More to Explore. J. Hydrol. 2013, 476, 112–119. [Google Scholar] [CrossRef]
  2. Truu, M.; Annus, I.; Roosimägi, J.; Kändler, N.; Vassiljev, A.; Kaur, K. Integrated Decision Support System for Pluvial Flood-Resilient Spatial Planning in Urban Areas. Water 2021, 13, 3340. [Google Scholar] [CrossRef]
  3. Alfieri, L.; Feyen, L.; Dottori, F.; Bianchi, A. Ensemble flood risk assessment in Europe under high end climate scenarios. Glob. Environ. Chang. 2015, 35, 199–212. [Google Scholar] [CrossRef]
  4. Guerreiro, S.B.; Dawson, R.J.; Kilsby, C.; Lewis, E.; Ford, A. Future Heatwaves, Droughts, and Floods in 571 European Cities. Environ. Res. Lett. 2018, 13, 034009. [Google Scholar] [CrossRef]
  5. Mohammed, M.H.; Zwain, H.M.; Hassan, W.H. Modeling the impacts of climate change and flooding on sanitary sewage system using SWMM simulation: A case study. Results Eng. 2021, 12, 100307. [Google Scholar] [CrossRef]
  6. Kourtis, I.M.; Tsihrintzis, V.A. Adaptation of urban drainage networks to climate change: A review. Sci. Total Environ. 2021, 771, 145431. [Google Scholar] [CrossRef] [PubMed]
  7. Shahed Behrouz, M.; Zhu, Z.; Matott, L.S.; Rabideau, A.J. A new tool for automatic calibration of the Storm Water Management Model (SWMM). J. Hydrol. 2020, 581, 124436. [Google Scholar] [CrossRef]
  8. SWMM-Docs: Open Water Analytics Stormwater Management Model. Available online: http://wateranalytics.org/StormwaterManagement-Model/index.html (accessed on 16 March 2022).
  9. Dent, S.; Hanna, R.B.; Wright, L.T. Automated Calibration using Optimization Techniques with SWMM RUNOFF. J. Water Manag. Model. 2004, 12, 220–238. [Google Scholar] [CrossRef] [Green Version]
  10. Perin, R.; Trigatti, M.; Nicolini, M.; Campolo, M.; Goi, D. Automated calibration of the EPA-SWMM model for a small suburban catchment using PEST: A case study. Environ. Monit. Assess. 2020, 192, 1–17. [Google Scholar] [CrossRef] [PubMed]
  11. Annus, I.; Vassiljev, A.; Kändler, N.; Kaur, K. Automatic Calibration Module for an Urban Drainage System Model. Water 2021, 13, 1419. [Google Scholar] [CrossRef]
  12. Rossman, L.A. Storm Water Management Model; US EPA: Cincinnati, OH, USA, 2020. [Google Scholar]
Figure 1. Snippet from the calibration module for option (A). The boxes next to the red text should be filled with the user specified values.
Figure 1. Snippet from the calibration module for option (A). The boxes next to the red text should be filled with the user specified values.
Environsciproc 21 00030 g001
Figure 2. Snippet from the calibration module for option (B). The boxes below the green text should be filled with user specified values. The values associated with calibration parameters are listed below in red text.
Figure 2. Snippet from the calibration module for option (B). The boxes below the green text should be filled with user specified values. The values associated with calibration parameters are listed below in red text.
Environsciproc 21 00030 g002
Table 1. Parameters that may be calibrated.
Table 1. Parameters that may be calibrated.
Parameter IDActionMinimumMaximum
0Changes area using coefficient0.16
1Changes width using coefficient0.13
2Changes slope using coefficient0.12
3Changes impervious percent0100
4Changes Dstore impervious0.2542.54
5Changes Dstore pervious5.0810.16
6Changes N impervious0.010.3
7Changes N pervious0.030.8
8Changes max. infiltration rate/Suction head8/26049/321
9Changes min. infiltration rate/conductivity0.2/1200.2/120
10Changes decay constant/initial deficit2/70.09/0.38
11Changes roughness of pipes0.010.3
12Conductivity [mm/h]0.2130
13Conductivity slope [mm/h]260
14Aquifer bottom elevation [m]−0.30.3
15Ground water elevation [m]−0.30.3
16Groundwater flow coefficient A10.20.9
17Groundwater flow exponent B10.51.5
18Surface water flow coefficient A20.20.9
19Surface water flow exponent B20.51.5
20Surface water and groundwater interaction coefficient A30.20.9
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Vassiljev, A.; Annus, I.; Kändler, N.; Truu, M.; Kaur, K.; Suits, K. Excel-Based Tool for Automatic Calibration of Urban Drainage System Models. Environ. Sci. Proc. 2022, 21, 30. https://doi.org/10.3390/environsciproc2022021030

AMA Style

Vassiljev A, Annus I, Kändler N, Truu M, Kaur K, Suits K. Excel-Based Tool for Automatic Calibration of Urban Drainage System Models. Environmental Sciences Proceedings. 2022; 21(1):30. https://doi.org/10.3390/environsciproc2022021030

Chicago/Turabian Style

Vassiljev, Anatoli, Ivar Annus, Nils Kändler, Murel Truu, Katrin Kaur, and Kristjan Suits. 2022. "Excel-Based Tool for Automatic Calibration of Urban Drainage System Models" Environmental Sciences Proceedings 21, no. 1: 30. https://doi.org/10.3390/environsciproc2022021030

Article Metrics

Back to TopTop