Description Usage Arguments Value Examples
Rain tanks typically collect water from house roofs. The amount of roof runoff is very simple: $(precipitation * precipitation_area * discharge_coef) - first_flush_diverted$ The discharge coefficient determines the proportion of rainfall to the total rainfall, that is actually discharged from the roof. An inclined hard roof, with shingles, assume a discharge coefficient of 80 of about 30 First flush devices are designed to siphon off the first rainwater that falls on the roof. If suc a device is fitted to the rain pipes, the volume of water diverted will have to be subtracted from the roof runoff volume.
1 2 | get_roof_runoff(precipitation, precipitation_area, discharge_coef = 0.8,
first_flush_diverted = 0)
|
precipitation |
the amount of rain fallen in mm (that is l/m2) |
precipitation_area |
the surface area of the roof (in m2) |
discharge_coef |
the discharge coefficient (optional, defaults to 0.8) |
first_flush_diverted |
the amount of water diverted by "first flush devices" (in l, optional, default to 0, i.e. no first flush device installed). |
volume of water runoff (numeric, in l)
1 2 3 4 5 6 7 | # Amount of roof runoff following a 10 mm rain on a 150 m2 roof
get_roof_runoff(10, 150)
# Amount of roof runoff following a 10 mm rain on a 150 m2 green roof,
get_roof_runoff(10, 150, 0.3)
# Amount of roof runoff following a 10 mm rain on a 150 m2 green roof,
# where a first flush device that diverts 50 litres is fitted,
get_roof_runoff(10, 150, 0.3, 50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.