pipeSizingAlgorithm: Pipe diameter sizing algorithm

Description Usage Arguments Value

View source: R/drainage_network_helper_functions.R

Description

The conduit diameters are calculated and designed for a user defined storm event. Initially the sizing algorithm runs a SWMM model with all conduits having a diameter of 0.3 m by default (or smaller if defined). After each iteration, it is checked whether conduits still surcharge. If so, diameters of the surcharging conduits are increased by a nominal diameter. The algorithm stops if no conduit surcharge occurs any more. The final inp file is stored.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
pipeSizingAlgorithm(
  inp,
  path_out,
  conduits_sf,
  junctions,
  outfalls,
  target,
  DN_start = 300,
  rpt_filename = "artificial_SWMM_model.rpt",
  inp_filename = "artificial_SWMM_model.inp",
  link_filename = "links_artificial_SWMM_format.shp"
)

Arguments

inp

A object of class inp. Containing a complete SWMM model.

path_out

A directory path to write the results to.

conduits_sf

A sf object containing polyline information.

junctions

A sf object containing junction point information.

outfalls

A sf object containing outfall point informations.

target

Either node_flooding or conduit_surcharge.

DN_start

Initial pipe diameter (unit: mm).

rpt_filename

File name for SWMM's report file.

inp_filename

File name for SWMM's input file.

link_filename

File name for a shp file containing the sized conduits.

Value

A sf object containing polylines with all attributes needed for the conduit section in SWMM's input file.


DoeringA/urbandrain documentation built on Jan. 18, 2021, 12:32 a.m.