Package: hydraulics 0.7.1

hydraulics: Basic Pipe and Open Channel Hydraulics

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.

Authors:Ed Maurer [aut, cre], Irucka Embry [aut, ctb]

hydraulics_0.7.1.tar.gz
hydraulics_0.7.1.zip(r-4.5)hydraulics_0.7.1.zip(r-4.4)hydraulics_0.7.1.zip(r-4.3)
hydraulics_0.7.1.tgz(r-4.4-any)hydraulics_0.7.1.tgz(r-4.3-any)
hydraulics_0.7.1.tar.gz(r-4.5-noble)hydraulics_0.7.1.tar.gz(r-4.4-noble)
hydraulics_0.7.1.tgz(r-4.4-emscripten)hydraulics_0.7.1.tgz(r-4.3-emscripten)
hydraulics.pdf |hydraulics.html
hydraulics/json (API)
NEWS

# Install 'hydraulics' in R:
install.packages('hydraulics', repos = c('https://edm44.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/edm44/hydraulics/issues

On CRAN:

5.13 score 9 stars 8 scripts 442 downloads 28 exports 37 dependencies

Last updated 4 days agofrom:cf7856591a. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 18 2024
R-4.5-winOKNov 18 2024
R-4.5-linuxOKNov 18 2024
R-4.4-winOKNov 18 2024
R-4.4-macOKNov 18 2024
R-4.3-winOKNov 18 2024
R-4.3-macOKNov 18 2024

Exports:atmdensatmos_tableatmpresatmtempcolebrookdarcyweisbachdensdirect_stepdviscEvhardycrosskviscmanningcmanningtmoodyoperpointpumpcurvereynolds_numbersequent_depthspec_energy_trapspecwtsurf_tensionsvpsystemcurvevelocitywater_tablexc_circlexc_trap

Dependencies:clicolorspacefansifarverggplot2gluegtablegtoolsisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigplyrpracmapurrrR6RColorBrewerRcppreshape2rlangscalesstringistringrtibbleunitsutf8vctrsviridisLitewithr

Hydraulics Vignette

Rendered fromhydraulics_vignette.Rmdusingknitr::rmarkdownon Nov 18 2024.

Last update: 2024-11-17
Started: 2020-08-19

Readme and manuals

Help Manual

Help pageTopics
Tabulates into a tibble some properties of the standard atmosphere: temperature, density, and pressure.atmos_table
Functions to calculate ICAO standard atmospheric properties: temperature, density, and pressure.atmdens atmosprops atmpres atmtemp
Calculates the Darcy-Weisbach Friction Factor fcolebrook reynolds_number velocity
Solves the Darcy-Weisbach Equation for the either head loss (hf), flow rate (Q), diameter (D), or roughness height (ks).darcyweisbach
Uses the direct step method to find the distance between two known depths in a trapezoidal channeldirect_step
Applies the Hardy-Cross method to solve for pipe flows in a network.hardycross
Solves the Manning Equation for gravity flow in a circular pipemanningc
Solves the Manning Equation for water flow in an open channelmanningt
Creates a Moody diagram with optional manually added pointsmoody
Uses input pump and system curves to find the operating point for a pump and create a plot.operpoint
Fits a polynomial curve to three or more points from a pump characteristic curve to be used in solving for an operating point of the pump in a piping system.pumpcurve
Solves the Momentum Equation for sequent (or conjugate) depth in a trapezoidal channelsequent_depth
Creates a specific energy diagram for a trapezoidal channelspec_energy_trap
Creates a system curve for a piping system using the static head and a coefficient.systemcurve
Tabulates into a tibble the basic water properties: density, dynamic and kinematic viscosity, saturation vapor pressure, surface tension, and bulk modulus.water_table
Functions to calculate water properties: density, specific weight, dynamic and kinematic viscosity, saturation vapor pressure, surface tension, and bulk modulus.dens dvisc Ev kvisc specwt surf_tension svp waterprops
Creates a cross-section plot for a partially filled pipexc_circle
Creates a cross-section plot for an open channelxc_trap