In an open channel flow, hydraulic jump occurs when: