riverRouting: base function for rivers and reachs simulation

View source: R/riverRouting.R

riverRoutingR Documentation

base function for rivers and reachs simulation

Description

Given a sort of demand(s), riverRouting function enable us to simulate rivers and channels under givn a hydrologic time series, inflow, and optional demand(s).

Usage

  riverRouting(demand=NA, priority = NA, discharge, seepageFraction=NA, simulation)

Arguments

demand

(optional) A matrix: is column-wise matrix of demands, at which the rows presents demands for each time step and columns are for different individual demand sites (MCM).

priority

(optional) A vector: is a vector of priorities associated to demand

discharge

(optional) A vector : a vector of water flowing into the diversion (MCM)

seepageFraction

(optional) The seepage coeffcient of river discharge flow. The seepage is computed as the product of seepageFraction and river discharge. It is in [0, 1] interval

simulation

A list: simulation is a list of three vectors: start, end, and interval. the start and end components must be in 'YYYY-MM-DD' format. the interval component can takes either of 'day','week', or 'month'.

Value

the riverRouting returns a matrix of release(s) corresponding to each demand(s).

Author(s)

Rezgar Arabzadeh

See Also

diversionRouting

Examples

    demand         <-matrix(rnorm(480,15,3),120)
    priority       <-sample(1:3,4,replace=TRUE)
    discharge      <-rlnorm(120,log(50),log(4))
    simulation     <-list(start='2000-01-01',end='2000-04-29',interval='day')
    
    riverRouting(demand    = demand   ,
                 priority  = priority ,
                 discharge = discharge,
                 simulation= simulation)
    
  

WRSS documentation built on May 30, 2022, 1:07 a.m.