UFSF_prismatic_q(): uniform flow in a prismatic open-channel

About:
Calculate the uniform flow in a prismatic open-channel.
Channel sections considerations:



  • for a triangle section, b = 0.0
  • for a rectangular section, ml = mr = 0.0
Module: UniformFreeSurfaceFlow
Function:
UFSF_prismatic_q(y, n, s, b, ml, mr)
Definition of variables:
  • q, flow - m3/s;
  • n, Manning coefficient;
  • s, slope, m/m;
  • b, channel bottom, m/m;
  • ml, slope of left embankment of the channel (1/ml);
  • mr, Slop of the embankment of the channel (1/mr);

Sample code:
from UniformFreeSurfaceFlow import*

y = 0.7333  #(m)
n = 0.0133333
s = 0.001   #(m/m)
b = 3.0     #(m)
ml = 1.0    #(1/ml)
mr = 3.0    #(1/mr)

q = UFSF_prismatic_q(y, n, s, b, ml, mr)

print("q:",q,"m3/s")
Results:
q: 4.99313936627 m3/s