pressflow_depth | R Documentation |
Calculates the backwater height upstream of an inlet (pipe or rectangle) under pressure (Bernoulli). The outlet is not submerged, e.g., the exit loss equals 0.
pressflow_depth(
z0, z1, Q, Di = NULL, h = NULL, b = NULL, L, ks = NULL, kst,
xi_e = 0.5, nu = 1.14e-6, calc_lam = "kst"
)
z0 |
Absolute height of upper gate – upstream of the inlet [m.a.s.l]. |
z1 |
Absolute height of the pipe/rectangle vertical middle axis at lower gate [m.a.s.l]. |
Q |
Flow [m^3/s]. |
Di |
Diameter of pipe [m]. If Di is specified, h and b must be NULL. |
h |
Height of rectangle [m]. If h is specified, Di must be NULL. |
b |
Width of rectangle [m]. If b is specified, Di must be NULL. |
L |
Length of pipe [m]. |
ks |
Equivalent sand roughness [m]. |
kst |
Roughness [m^(1/3)/s]. |
xi_e |
Entrance loss [-]. Default = 0.5. |
nu |
Kinematic viscosity [m^2/s]. Default = 1.14e-6. |
calc_lam |
Defines if lambda should be calculated with ks or kst. |
Returns the backwater height upstream the inlet:
Water depth upstream the inlet [m].
Flow velocity [m/s].
# Flow in a pipe under pressure with ks value
pressflow_depth(z0 = 415, z1 = 413, Q = 5.18, L = 20, Di = 1,
ks = 0.01, calc_lam = "ks")
# Flow in a rectangle under pressure with kst value
pressflow_depth(z0 = 415, z1 = 413, Q = 13.7, L = 20, b = 2, h = 1,
kst = 60, calc_lam = "kst")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.