There are situations in which the following diffusion-like term need to be computed on unstructured meshes:
(8.39)
a space-varying diffusion coefficient (a tensor) and
a scalar defined in vertices. In SWAN, these are
inside
each surrounding cell using expressions (8.23) and (8.24). Next, this gradient is multiplied by the appropriate diffusion
coefficient
as given in the centroid. Finally, we compute the gradient of
inside the CV according to
Eqs. (8.36) and (8.37).