GEO_geometry_aprism(): Area of a prismatic open-channel

About:
Calculate the area of a prismatic open-channel .
©WETpython, 2015
\begin{equation} A = y \times(B + m_l\times y\times 0.5 + m_r\times y\times 0.5) \end{equation}  
This equation is a applied to trapezoidal, triangular a rectangular sections:

  • for a trapezoidal section: $B \not= 0, m_l \not= 0, m_r \not= 0$
  • for a triangular section: $B = 0$
  • for a rectangular section: $m_l = m_r = 0$


  • Module: Geometry
    Function: GEO_geometry_aprism(y, b, ml, mr)
    Parameters:
    • y, flow height, m;
    • b, channel bottom , m;
    • ml, slope of left embankment (1/ml);
    • mr, slope of right embankment (1/ml)
    Sample code:
    from Geometry import *
    
    y = 0.75 #(m)
    b = 1.5 #(m)
    ml = 1.5
    mr = 3
    
    area = GEO_geometry_aprism(y, b, ml, mr)
    print ("Area:", area,"m2")
    
    Result:
    Area: 2.390625 m2