Upstream boundary conditions are required at the upstream end of all reaches that are not connected to other reaches or storage areas. An upstream boundary condition is applied as a flow hydrograph of discharge versus time. The equation of a flow hydrograph for reach m is:
1)
\displaystyle \Delta Q_k^{n+1} = Q_k^n - Q_k
where k is the upstream node of reach m. The finite difference form of (1) is: