flow_depth_gate: Water Depth Upstream Of Gate

View source: R/Gate.R

flow_depth_gateR Documentation

Water Depth Upstream Of Gate

Description

Calculates the upstream water depth for a gate based on given discharge and gate parameters.

Usage

flow_depth_gate(a, Q, B, alpha, h2 = NULL, ret = "h0")

Arguments

a

Gate opening height [m].

Q

Discharge [m3/s].

B

Gate width [m].

alpha

Gate angle from horizontal [degrees].

h2

Optional. Downstream water depth [m]. Default is NULL (free flow).

ret

Specifies the return value. "h0" for depth only or "all" for all intermediate results.

Value

A list containing the following hydraulic variables:

h0

Upstream water depth [m].

psi

Contraction coefficient [-].

mu

Discharge coefficient [-].

v

Flow velocity [m/s].

Examples

flow_depth_gate(a = 0.5, Q = 2.5, B = 2.0, alpha = 90)
flow_depth_gate(a = 0.5, Q = 2.5, B = 2.0, alpha = 90, h2 = 0.8)
flow_depth_gate(a = 0.5, Q = 2.5, B = 2.0, alpha = 90, h2 = 0.8, ret = "all")

hydReng documentation built on April 4, 2025, 1:57 a.m.