The webpage is created to demonstrate the application procedures of the toolbox written in R for coupling the United States Environmental Protection Agency (EPA)’s Storm Water Management Model (SWMM) and other green infrastructure (GI) models. The toolbox can be download at this GitHub repository. The main functions are included in interface_function.R.
This website is built using R Markdown format. The R version 4.0.2 was used for the experiments. The packages used by the toolbox are tidyverse, lubridate, and swwmr, which can be easily installed using the install.packages
function.
The code chunk below loads the functions provided by the toolbox. At the same time, the required packages are automatically installed (if unavailable) and loaded using the pacman package.
source("interface_functions.R")
To follow the examples, SWMM needs to be installed. It can be downloaded for free from this link. The source code can be found in the example.Rmd file, and the data can be found in the example folder. The experiments were conducted on the Microsoft Windows 10 operating system, and SWMM build 5.1.015 was used.