where h = flow depth; u = flow velocity in the x-direction; v = flow velocity in the y-direction; g = acceleration due to gravity; S0x = channel bottom slope in the x-direction; S0) = channel bottom slope in the x-direction;and Sfx and Sf are the slopes of the energy grade lines in the x- and y-directions, respectively, computed using the steady state friction formulas