For the sake of clarity of the algorithm description below, we put all the terms but the time derivative and propagation term in the geographical space of Eq. (2.16)
in one term
:
(8.5)
with
the geographic velocity vector.
For the time being, we restrict ourselves to triangular meshes. However, other
type of meshes can be employed as well, e.g. hybrid grids (consisting of both triangles and quadrilaterals). We consider a triangulation of a geographical domain in which
Eq. (8.5) is solved; see Fig 8.1.
Figure 8.1:
An example of triangulation.
|
Every vertex and all the triangles around this vertex are taken into account.
Observe that the number of cells around a vertex can be different for all vertices.
A vertex-based scheme is used in which the wave action is stored at the vertices and Eq. (8.5) is solved in each vertex.
We note that the values at boundary vertices are fixed during the computation.
For the time integration, we adopt the first order implicit Euler scheme, as follows
(8.6)
where is the time step and is the time step counter. The main property of this approximation is that it does not suffer from the stability restriction
imposed by the CFL condition inherent in the explicit methods as employed in most spectral models. In principle, the time step is limited only by
the desired temporal accuracy. This procedure, however, involves the solution of a large system of equations.
A point-by-point multi-directional Gauss-Seidel iteration technique is employed for updating all grid vertices.
A key feature of this technique is that it takes advantage of the newly acquired vertex values during an iteration.
It is locally implicit but globally explicit. In other words, it circumvents the need to build or store large matrices and remains stable at any time steps.
This means that this numerical procedure can converge to steady state much more rapidly than
explicit methods without requiring too much computational work and memory as do implicit methods.
We consider the update of a vertex as labeled 1 in Figure 8.2. This involves looping over each cell of this vertex.
Figure 8.2:
Update of the wave action at vertex 1 in a triangle 123 and the shaded directional sector
in spectral space for which the waves are propagated.
|
We want to find an approximation for the propagation term of Eq. (8.6). To this end, we employ some vector calculus.
We consider a triangular cell as depicted in Figure 8.3.
Figure 8.3:
A triangular cell with geometrical quantities used for discretization in geographical space. Definitions of these quantities are provided in the text.
|
In vertex 1, we apply a mapping from a local coordinate system = (,) to the
Cartesian one = (,).
Based on this transformation
, we have the following base vectors that are tangential to the coordinate lines and , respectively,
(8.7)
The vectors
(8.8)
are normal to the coordinate surface of constant and , respectively (see Figure 8.3). Moreover, they are reciprocal to the base vectors, i.e.
(8.9)
where
is Kronecker delta (which is unity if = , and zero otherwise). Using Cramer's rule, one can find
(8.10)
Next, we expand the propagation term of Eq. (8.6):
(8.11)
where and are the and components of the wave propagation vector
, respectively.
Using the chain rule, we obtain
(8.12)
Further, we approximate the derivatives in Eq. (8.12). The most simplest one is a one-sided first order difference scheme, as follows
|
|
|
|
|
|
|
|
|
|
|
(8.13) |
where the action densities at vertices 1, 2 and 3 are denoted by , and , respectively.
Here, we choose the mapping
such that = = 1.
The approximation is completed by substituting (8.13) in (8.12):
(8.14)
Note that the components of the vectors
and
in Eq. (8.14) are given by Eqs. (8.10), while
the base vectors are calculated according to
(8.15)
with
the position vector of vertex in a Cartesian coordinate system.
This space discretization is of lowest order accurate and conserves action (see Section 8.7).
The upwind difference scheme BSBT (8.14) is
employed for three reasons. First, it is compact, i.e. operating on one triangle only. Second, it enforces the propagation of wave action to follow the characteristics.
Hence, this scheme produces numerical diffusion along these
characteristics, and as such, it is multidimensional with a minimum amount of cross-diffusion. Third, it is monotone, i.e. guaranteeing everywhere.
This finite difference BSBT scheme appears to be identical to the well-known N(arrow) scheme, based on the fluctuation splitting method,
on regular, triangular grids obtained from triangulation of rectangles with diagonals aligning with the wave characteristic as much as possible
(see Struijs, 1994, pp. 63-64).
Hence, the BSBT scheme share with the N scheme in many respects: it is multidimensional, first order accurate, optimal in terms of cross-diffusion, monotone, conservative,
narrow stencil and consistent with local wave characteristics (see Section 3.2.1), but they are not identical in general.
Given the action densities and at vertices 2 and 3 of triangle 123,
the wave action in vertex 1 is readily determined according to
|
|
|
|
|
|
|
(8.16) |
The wave directions between faces and enclose all wave energy propagation in between the corresponding directions and as
indicated as a shaded sector in Figure 8.2.
This sector is the domain of dependence of Eq. (8.16) in vertex 1.
Since, the wave characteristics lie within this directional sector, this ensures that the CFL number
used will properly capture the propagation of wave action towards vertex 1. So, propagation is in line with the causality principle and is not subjected to a CFL stability criterion.
Next, the term in Eq. (8.16) is discretized implicitly in the sector considered.
Since the approximation in the spectral space and the linearization of the source terms are well explained in Section 3.3, we shall not pursue them any further.
Eq. (8.16) constitute a coupled set of linear, algebraic equations for all spectral bins within the sector considered at vertex 1. The solution is found by means
of an iterative solver; see Section 3.3 for details.
The update of vertex 1 is completed when all surrounding cells have been treated. This allows waves to transmit from all directions.
Due to refraction and nonlinear interactions, wave energy shifts in the spectral space from one directional sector to another. This is taken into account properly
by repeating the whole procedure with
converging results.
The SWAN team 2024-09-09