Momentum–depth relationship in a rectangular channel