The fluxes in the spectral space
, as given in Eq. (3.2), should not be approximated
with the first order upwind scheme since, it turns out to be very diffusive for frequencies near the blocking
frequency3.2. Central differences
should be used because of second order accuracy. However, such schemes tend to produce unphysical oscillations
due to relatively large gradients in action density near the blocking frequency. Instead, a hybrid
central/upwind scheme is employed:
(3.20)
and
(3.21)
where the parameters and are still to be chosen. For all values and ,
a blended form arises between first order upwind differencing () and central differencing
(). Like the fluxes in the geographical space, both fluxes at and
acts together with the same sign of . The same holds for fluxes at and
acting together with the same sign of . Note that the above scheme is flux conservative and thus suitable
for cases with rapidly varying bathymetry.
Let us consider a few examples for the purpose of the last term of Eq. (3.1), i.e. the refraction term. We substitute approximation
(3.21) in the last term of Eq. (3.2), and central differences () yields
(keep in mind that bin is the bin of consideration for the approximation of this refraction term)
(3.22)
whereas for the counter-clockwise case
and
, first order upwinding () returns
(3.23)
and for the clockwise case
and
, we have
(3.24)
It is important to note that we consider the flux as one single quantity defined in
directional bins only. Suppose that the divergence of this flux is zero. Applying the above upwind
approximations implies that the wave action flux is constant in every directional bin. Hence, this upwind
scheme () preserves exactly the constancy of this flux. This is called pointwise conservation.
Note that this scheme also preserves causality.
Although the central difference scheme () is flux conservative, it is not pointwise conservative.
Furthermore, due to the nature of this approximation a checkerboard problem may arise. Therefore,
in practice, we always choose
in SWAN.
The usual choice in SWAN is
. This approximation contains three consecutive transport velocities which can either be positive or negative. In other cases,
they are negligibly small (zero crossing), for which central differences () will then be applied (no clear wave direction).
We first consider the counter-clockwise case
,
and
, and the associated approximation then reads
(3.25)
This choice has a smaller amount of numerical diffusion than the upwind scheme, but may
create wiggles, albeit small. This asymmetric approximation, containing three distinctive fluxes, indicates that the waves are turning counter-clockwise where both bins
and are receiving energy from the bin . However, bin receives
less energy than bin . Hence, it slows down the turning of the waves.
Since the downstream bin receives some energy, this scheme violates causality. Furthermore, although this scheme is flux conservative, it is
not pointwise conservative, i.e. the energy flux may not remain constant in each directional bin.
The other case is the clockwise one, i.e.
,
and
. For this case, the approximation is given
by
(3.26)
Note that changes in wave action from one spectral bin to another are usually small,
at least away from blocking frequency and considering broad wave spectra,
so that both the numerical dispersion and diffusion produced by the hybrid scheme and its lack of causality preservation is likely to be much less significant.
The SWAN team 2024-09-09