In a one-dimensional approximation and in the absence of friction forces, a mathematical model has been developed for the steady flow of an incompressible fluid along a straight line, for example, a drainage gutter, into which a distributed flow flows from above. The boundary condition missing for solving the system of equations of momentum and continuity is determined using the principle of minimum potential energy. For a rectangular chute, equations are obtained that allow one to calculate the distributions of the layer thickness and fluid velocity along the length of the chute with a plug at one end and without a plug, slope and without slope to the horizon, depending on the intensity of the incoming flow, the size of the chute, and the density of the liquid. This model, by means of a simple recalculation, can also be extended to the flow in a trough of a different cross-sectional profile. The results of the study can be applied to the calculation of external drainage systems.