Steady and Unsteady Open-Channel Flow Computation

A tool for undergraduate and graduate courses in open-channel hydraulics. Provides functions for computing normal and critical depths, steady-state water surface profiles (e.g. backwater curves) and unsteady flow computations (e.g. flood wave routing) as described in Koohafkan MC, Younis BA (2015). "Open-channel computation with R." The R Journal, 7(2), 249–262. .


rivr 1.2

This minor version update adds new documentation.

  • New vignette which allows reproduction of R Journal article.
  • New shiny app for interactive exploration of gradually-varied flow profiles.

rivr 1.0

This major version update defines an S3 class for rivr and methods for printing, summarizing and plotting results of gradually-varied and unsteady flow simulations. A technical vignette has also been added that provides nitty-gritty details on the derivations and numerical schemes used in the package.

rivr 0.9.2

This minor version update improves error messages and clarifies some of the documentation.

rivr 0.9.1

This package is on CRAN now! The binaries should be available soon, but if you get an error try install.packages("rivr", type = "source").

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.2-3 by Michael C Koohafkan, 9 months ago

Report a bug at

Browse source code at

Authors: Michael C Koohafkan [aut, cre]

Documentation:   PDF Manual  

GPL (>= 3) license

Imports utils, graphics, Rcpp

Suggests dplyr, ggplot2, knitr, rmarkdown, shiny

Linking to Rcpp

Suggested by iemisc, iemiscdata, reval.

See at CRAN