Learn R Programming

Overview

The 'hydReng' package provides a set of functions for hydraulic engineering tasks and natural hazard assessments. It includes basic hydraulics (wetted area, wetted perimeter, flow, flow velocity, flow depth, and maximum flow) for open channels with arbitrary geometry under uniform flow conditions. For structures such as circular pipes, weirs, and gates, the package includes calculations for pressure flow, backwater depth, and overflow over a weir crest. Additionally, it provides formulas for calculating bedload transport. The formulas used can be found in standard literature on hydraulics, such as Bollrich (2019, ISBN:978-3-410-29169-5) or Hager (2011, ISBN:978-3-642-77430-0).

Installation

The package can be installed directly via CRAN

install.packages("hydReng")

or via github (devtools required)

install_github("NiccoloGalatioto/hydReng")

Copy Link

Version

Install

install.packages('hydReng')

Monthly Downloads

126

Version

1.0.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Galatioto Niccolo

Last Published

November 16th, 2025

Functions in hydReng (1.0.0)

flow_depth

Flow Depth
block_size

Calculate dimensions of rip rap block size
CScircle-class

CScircle Class
CSarbitrary-class

CSarbitrary Class
flow_depth_gate

Water Depth Upstream Of Gate
bedload_SJ

Bedload Transport Capacity (Smart and Jaeggi)
flow

Flow
d_aequiv

Equivalent Hydraulic Diameter
bedload_MPM

Bedload Transport Capacity (Meyer-Peter Müller)
filterlayer

Calculate grain size distribution of a filter layer
flow_velocity

Flow Velocity
flow_max

Maximum Flow
freeboard

Freeboard Calculation
flow_depth_weir

Flow Depth At Weir Crest
flow_max_freeboard

Maximum Flow Including Freeboard
pressflow

Flow Under Pressure (Bernoulli)
flow_gate

Discharge At Underflow Gate
scour_vert

Scour depth and length (vertical jet)
pressflow_depth

Backwater Height Upstream A Inlet Under Pressure (Bernoulli)
flow_weir

Flow Over Weir Crest
shear_str

Shear stress, shear velocity, and dimensionless shear stress
froude_number

Froude Number
scour_groyne

Scour depth formed by a groyne
scour_horz

Scour depth and length (horizontal jet)
pressflow_depth_sub

Backwater Height Upstream A Inlet Under Pressure (Bernoulli)
scour_curve

Scour depth in a curve
wt_sup

Superelevation of water table in curve
mean_roughness

Mean Roughness
wetted_perimeter

Wetted Perimeter
par_fill

Partial Filling Flow Diagram
wetted_area

Wetted Area