hydraulics
0.7.2Basic 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.
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- WARNING2026-06-0812 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 89%
- References docs
- 0%
Downloads
Repository
Repository practices
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/edm44/hydraulics on 2026-08-23.
Dependencies
Nothing depends on this yet.
Code & Tests
People & History
15 releases. Pick two to compare their code metrics. R releases are shown for context.
- 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.02022-11-09 · diff ↗
- 0.5.02022-10-11 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.4.12022-03-07 · diff ↗
- 0.4.02022-01-04 · diff ↗
- 0.3.02021-05-19 · diff ↗
- 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
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("hydraulics")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.