powered by
Calculates the upstream water depth for a gate based on given discharge and gate parameters.
flow_depth_gate(a, Q, B, alpha, h2 = NULL, ret = "h0")
A list containing the following hydraulic variables:
Upstream water depth [m].
Contraction coefficient [-].
Discharge coefficient [-].
Flow velocity [m/s].
Gate opening height [m].
Discharge [m3/s].
Gate width [m].
Gate angle from horizontal [degrees].
Optional. Downstream water depth [m]. Default is NULL (free flow).
Specifies the return value. "h0" for depth only or "all" for all intermediate results.
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")
Run the code above in your browser using DataLab