The face-normal gradient is computed for the water surface in the pressure gradient term and the current velocities when simulating momentum diffusion with the conservative formulation. The operator is described here for the water surface elevation but is the same for the current velocity. The face-normal gradient is computed with a simple two-point stencil as

1) \displaystyle \nabla z_s \cdot \textbf{n} _k = \frac{\partial z_s}{\partial N} \approx \frac{z_{s,R} - z_{s,L}}{\Delta x_N}


where \Delta x_N is the face-normal distance between the cell centers as described in the figure below. The distance  is the distance between points  and . The water surface elevation in the neighboring cells is assumed to be spatially constant.

where \Delta x_N is the face-normal distance between points L' and R' as described in the figure below. The scheme assumes that cell variables are piece-wise constant and does not include a non-orthogonal correction. The method is second-order for regular Cartesian cells and first-order for general polygonal cells. 


Cell Directional Derivatives

Figure 1. Cell Directional Derivatives.


Face-normal gradients at closed boundaries are set to zero. In addition, velocity face-normal gradients at wet/dry boundaries are set to zero.