reservoirRouting {RHMS} | R Documentation |
reservoir routing
Description
function for routing flood through a reservoir using classical Muskingum technique
Usage
reservoirRouting(inflow,geometry,initialStorage,simulation)
Arguments
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:
|
Value
a data.frame: including inflow time series and routing resaults
Author(s)
Rezgar Arabzadeh
References
Chow, V. T., Maidment, D. R., & Mays, L. W. (1988). Applied hydrology.
See Also
Examples
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)