orifice flow condition is assumed when the upstream water surface elevation is greater than or equal to 1.25
times the gate opening and the weir flow condition is assumed when the upstream water surface elevation is less than or equal to the gate opening.