The problem with refraction in non-stationary applications
In this section we discuss how refraction affects the accuracy of the discretization of the total derivative of wave energy along a non-curved wave ray.
Initially, the energy is uniformly distributed over the wave directions.
Under these conditions, we reconsider Eq. (3.47),
(3.54)
and we examine the discretization of the following total derivative of the energy density
(3.55)
with
the propagation velocity vector in the geographical space.
This total derivative indicates that the time rate of change in energy is computed along the wave characteristics defined by the following ODEs
(3.56)
For the purpose of illustration the spatial derivatives are replaced by first order upwind differences.
If we assume and positive during the first sweep, see Figure 3.4,
Figure 3.4:
Numerical scheme for wave propagation in geographic space with below the first quadrant for which the waves are propagated, and right the stencil.
|
then the approximation of Eq. (3.55) is as follows
(3.57)
Note that the time integration is based on the first order implicit Euler scheme. Furthermore, is the time step, and and are the mesh spaces. This approximation can be viewed as the well-known semi-Lagrangian approximation, which is rewritten as
(3.58)
which is, in turn, interpreted as an approximation of the total derivative, Eq. (3.55), as follows
(3.59)
with
(3.60)
Note that and are the Courant numbers. They are not integers, and therefore is not a grid point. This point, however, lies on the wave characteristic. The quantity
can be
interpreted as the value of at time in which is being convected in in a lapsed time .
This value is simply obtained from the interpolation of the surrounding values ,
, and in the plane. In this case, there is no restriction on time step as the characteristic lies inside the computational stencil.
Note that the lapsed time is a function of time step and grid sizes
and , and is called the Lagrangian time step, which should not be confused with the Eulerian time step . Generally,
.
Causality requires that wave energy being refracted from one directional bin to another further down must pass through all the bins along a wave crest between them.
Hence, for an accurate time integration along the wave characteristic, viz. Eq. (3.59), we must employ the Lipschitz criterion (3.52).
In the present context, this criterion reads
(3.61)
which ensures that wave energy propagate from a bin to the adjacent one during one time step .
Thus, for physical consistency, a restriction on the time step must be imposed in order for the wave directions not to cross each other and the boundaries of a quadrant in the spectral space.
Specifically, the Courant number based on and (i.e. directional bin) must be less than unity, that is,
(3.62)
with the turning rate3.7.
This condition is a sufficient one and implies the Lipschitz criterion.
A violation of this criterion implies
that the energy can travel in one time or distance step over a number of directional bins or more than the length of one sweep (which in the absence of a current is 90,
see Figure 3.4).
For example, consider the first sweep, see Figure 3.4, the boundaries of the first quadrant are the lines 0 and 90. Next, we consider the directional
sector in the spectral space associated with the considered sweep, see Figure 3.5.
Figure 3.5:
Directional sector associated with the first sweep.
|
We shall show that condition, Eq. (3.62), is sufficient to assure that 1) during the distance travelled in direction is at most
and 2) wave energy propagating in any bin in direction will not cross the boundaries of the directional sector,
except for the first and last bins. Hence, this prevents wave rays from intersecting each other.
Note that we implicitly assume that the net change in mean wave direction within the distance covered during is less than the directional resolution.
Since, by definition,
(3.63)
we may approximate this, as follows,
(3.64)
For a given , we choose an arbitrary point, , inside the directional sector; see Figure 3.5.
If
then, Eqs. (3.64) and (3.62) imply
, and hence the chosen point at next time step, , still lies inside the directional sector. If
, i.e. in the first bin, then one obtains
(3.65)
or
(3.66)
If
and
then, the point at next step will be keep inside the directional sector, if Eq. (3.62) holds. In other cases the energy is leaving
through boundary , though the change in direction is limited to the adjacent directional bin of the other quadrant.
This holds also for the last bin and the corresponding right boundary .
Note that Eq. (3.62) is not required for the stability of the method but contributes to improve its physical accuracy, so that the principle of causality is obeyed.
For instance, in a large-scale application, one often applies coarse (nested) grids with
a desired time step. Both the mesh width and the time step might be too large to represent wave refraction appropriately. This is readily seen as follows. We consider stationary, long-crested waves in space, propagating at an angle with the positive axis.
There is a bottom gradient along this axis so that refraction is present. There are no currents.
The associated characteristic or wave ray is given by
. This is the
spatial turning rate, i.e. the change in wave direction per unit forward distance.
Hence, the directional turn of the wave crest over a distance is given by
(3.67)
and the Courant number becomes (cf. Eq. (3.62))
(3.68)
which must be smaller than unity to prevent crossing of wave rays.
The turning rate of the wave direction per unit time is given by
(3.69)
where is the wave number, is the frequency, is the water depth and is the coordinate along the wave crest (i.e. orthogonal to the propagation direction). On a coarse grid,
the depth difference in two adjacent grid points , and thereby , can be very large, especially for low-frequency components in very shallow water
(see also Section 3.8.5).
This implies that the Lipschitz condition may be violated, i.e.
.
Complying with the Lipschitz criterion (3.62) simply prevents wave energy to jump over a number of directional bins, where this
energy would go way beyond some other bins ahead.
This was demonstrated to be a useful criterion with respect to the behavior of refraction when the bathymetry is poorly resolved by the model. As the refraction becomes
excessive in a region with steep bottom gradients, it is possible that the wave rays falsely cross and that the wave energy
focus toward a single grid point, creating unrealistically large wave heights and long periods; see Dietrich et al. (2013).
Yet the value of in the shallowest grid point can be simply too large due to a large difference in bottom levels over one mesh width,
so that wave energy will change direction over more than some directional bins
or even the directional sector, so that wave rays falsely intersect each other.
To prevent this artefact a limitation on seems to be justified. Recalling Eq. (3.62), a limitation would be
(3.70)
We estimate the reciprocal of the elapsed time as a fraction of
(3.71)
and so,
(3.72)
with a user-defined maximum Courant number, which is generally smaller than 1. (In SWAN, the default value is
.)
Often the desired time step is such that the first term between brackets can be safely neglected. This implies a slightly more restriction
on the turning rate and, in turn, a safety margin in the CFL condition, as follows
(3.73)
It must be stressed that this limitation may affect the solution locally depending on .
In fact, we need to find a good estimate for which solely depends on .
However, it is unlikely that this measure affects the solution nearshore or on fine grids, since the turning rate will not too much vary over one (spatial) step.
This is an effective survival measure in the sense that it prevents the excessive refraction without deteriorating the solution
elsewhere.
The SWAN team 2024-09-09