Basic Pipe and Open Channel Hydraulics
Overview
Functions for basic hydraulic calculations related to water flow in circular pipes both flowing full (under pressure), and partially full (gravity flow), and trapezoidal open channels. For pressure flow this includes friction loss calculations by solving the Darcy-Weisbach equation for head loss, flow or diameter, plotting a Moody diagram, matching a pump characteristic curve to a system curve, and solving for flows in a pipe network using the Hardy-Cross method. The Darcy-Weisbach friction factor is calculated using the Colebrook (or Colebrook-White equation), the basis of the Moody diagram, the original citation being Colebrook (1939) doi:10.1680/ijoti.1939.13150. For gravity flow, the Manning equation is used, again solving for missing parameters. The derivation of and solutions using the Darcy-Weisbach equation and the Manning equation are outlined in many fluid mechanics texts such as Finnemore and Maurer (2024, ISBN:978-1-264-78729-6). Some gradually- and rapidly-varied flow functions are included. For the Manning equation solutions, this package uses modifications of original code from the 'iemisc' package by Irucka Embry.
- Update moody.R to accommodate deprecation of ggplot aes_string
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- WARNING12 OK, 1 WARNING2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 18
- Examples that run
- 100%17 run in a plain check
- Exported functions with examples
- 94%
- Documented parameters
- 100%
- Return-value docs
- 89%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 39
- Median days to close, 50 most recently updated closed PRs
- 192
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/edm44/hydraulics on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-10-10 · The repository has a site deploy workflow
pkgdown site last built 2025-10-10
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.7.2Latest
- RR 4.5.0 released · 2025-04-11
- 0.7.12024-11-18 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.7.02024-03-06 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.6.12022-12-06 · diff ↗
- 0.6.0
- 0.5.0
- RR 4.2.0 released · 2022-04-22
- 0.4.1
- 0.4.0
- 0.3.0
- RR 4.1.0 released · 2021-05-18
- 0.2.42021-02-25 · diff ↗
Package metadata
- First published
- 2020-05-18
- Total releases
- 15 / 6 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.6.0
- Download size
- 871 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("hydraulics")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.