Skip to contents

Simulate Performances of LID

Usage

simulate_performances(
  lid_selected,
  lid_area_fractions = c(0, 1),
  catchment_area_m2 = 1000,
  swmm_base_inp = keys.lid::extdata_file("scenarios/models/model_template.inp"),
  swmm_climate_dir = keys.lid::extdata_file("rawdata/weather_sponge_regions"),
  swmm_exe = NULL,
  model_dir = keys.lid::extdata_file("scenarios/models"),
  zone_ids = 1L:5L
)

Arguments

lid_selected

tibble with a selected LID as retrieved by read_scenarios

lid_area_fractions

fractions of LID in subcatchment (default: c(0,1)

catchment_area_m2

catchment area (default: 1000 m2)

swmm_base_inp

path to SWMM model to be used as template for modification (default: keys.lid::extdata_file("scenarios/models/model_template.inp"))

swmm_climate_dir

directory with climate data (default: keys.lid::extdata_file("rawdata/weather_sponge_regions")

swmm_exe

Name and path to swmm5 executable. If not manually set, the following paths are looked up: linux: "/usr/bin/swmm5" darwin: "/Applications/swmm5" windows: "C:/Program Files (x86)/EPA SWMM 5.1/swmm5.exe", (default: NULL)

model_dir

default: keys.lid::extdata_file("scenarios/models")

zone_ids

climate zone ids to be used for simulation (default: 1L:5L)

Value

tibble with nested lists containing all scenario performances for varying lid_area_fractions

Examples

if (FALSE) {
scenarios <- keys.lid::read_scenarios()
unique(scenarios$lid_name_tidy)
lid <- "permeable_pavement"
lid_selected <- scenarios %>%  dplyr::filter(.data$lid_name_tidy == lid)
pp <- keys.lid::simulate_performances(lid_selected,
                                      lid_area_fractions = c(0,1)
                                      )
}