Description Usage Arguments Value Author(s) References See Also Examples
View source: R/reservoirRouting.R
function for routing flood through a reservoir using classical Muskingum technique
1 | reservoirRouting(inflow,geometry,initialStorage,simulation)
|
inflow |
a vector of in (cms) presenting a runoff event generated by excess rainfall computed by |
geometry |
a list of geometric specifications of the reservoir:
|
initialStorage |
(optional) the initial storage of reservoir at the first time step of simulation (MCM). default to the capacity. |
simulation |
a list of simulation time and dates as below:
|
a data.frame: including inflow time series and routing resaults
Rezgar Arabzadeh
Chow, V. T., Maidment, D. R., & Mays, L. W. (1988). Applied hydrology.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | inflow<-sin(seq(0,pi,length.out=50))*1000
storageElevationCurve<-data.frame(s=0:49*2,h=100:149)
dischargeElevationCurve<-data.frame(q=0:9*250,h=140:149)
geometry<-list(storageElevationCurve=storageElevationCurve,
dischargeElevationCurve=dischargeElevationCurve,
capacity=80)
simulation<-list(start='2000-01-01',end='2000-01-05',by=1800)
reservoir_sim<-reservoirRouting(inflow=inflow,
geometry=geometry,
simulation=simulation)
plot(reservoir_sim$operation[,1],typ="o",
ylab="Discharge rate (cms)",
xlab="Time step")
lines(reservoir_sim$operation[,3],col=2)
|
Loading required package: pso
Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2
Attaching package: 'Hmisc'
The following objects are masked from 'package:base':
format.pval, units
Loading required package: network
network: Classes for Relational Data
Version 1.15 created on 2019-04-01.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
Mark S. Handcock, University of California -- Los Angeles
David R. Hunter, Penn State University
Martina Morris, University of Washington
Skye Bender-deMoll, University of Washington
For citation information, type citation("network").
Type help("network-package") to get started.
Attaching package: 'network'
The following object is masked from 'package:Hmisc':
is.discrete
Loading required package: GGally
Attaching package: 'RHMS'
The following objects are masked from 'package:base':
transform, transform.default
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.