diameter: Diameter of pipes

Description Usage Arguments Value Examples

View source: R/diameter.R

Description

diameter calculates the diameter of pipes for a given head loss

Usage

1
diameter(hf, Q, L, RC, v = 1.01e-06, g = 9.81, x1 = 0.06)

Arguments

hf

Total head loss in meters

Q

Flow rate in cubic meters per second

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

D Diameter of pipe in meters

Examples

1
2
diameter(hf = 19.7, L = 100, Q = 0.0000005)
diameter(hf = 9.7, L = 10, Q = 0.005, RC = 0.0001)

joaobtj/HF documentation built on April 16, 2021, 8:43 a.m.