There are situations in which the following diffusion-like term need to be computed on unstructured meshes:
(8.39)
in vertices with a space-varying diffusion coefficient (a tensor) and a scalar defined in vertices. In SWAN, these are
- the alleviation of the garden-sprinkler effect; see Eq. (3.13), and
- the computation of the diffraction parameter; see Eq. (2.181).
We consider the centroid dual as shown in Figure 8.4. The calculation consists of 3 steps. First, we compute the gradient of 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).
The SWAN team 2024-09-09