head_loss: Head loss over the length of pipe

View source: R/head_loss.R

head_lossR Documentation

Head loss over the length of pipe

Description

headLoss calculate the head loss by friction in pipes by different methods

Usage

head_loss(
  d,
  q,
  q_unit = "m3/s",
  l,
  rc = 0.002,
  v = 1.01e-06,
  g = 9.81,
  x1 = 0.06
)

Arguments

d

Diameter in milimeters

q

Flow rate in cubic meters per second

q_unit

Flow measurement unit. Default is cubic meters per second (m3/s). Also allowed liters per hour (l/h) and cubic meters per hour (m3/h)

l

Length of pipe in meters

rc

Roughness coefficient. Absolute roughness (in meters) for Universal equation.

v

Kinematic viscosity of fluid in square meters per second. By default use the value for water at 20 Celsius degree (v = 1.01e-6 m^2/s). Unnecessary for empirical equations.

g

Gravitational acceleration. By default use the value g = 9.81 m/s^2

x1

Initial parameter of f for Newton-Raphson. By default x1=0.06. Unnecessary for empirical or explicit equations.

Value

hf Head loss in meters

Examples

head_loss(d = 25, q = 31e-6, l = 100, rc = 1e-4)
head_loss(d = 25, q = 111.6, q_unit="l/h", l = 100, rc = 1e-4)

joaobtj/hydirrig documentation built on Oct. 2, 2023, 2:08 p.m.