# SMS:CGWAVE Math Details: Boundary Conditions

Domains on which the elliptic eq. (5) is solved are enclosed by closed boundaries (represented by coastlines and surface-penetrating structures like pier walls or pier legs, breakwaters, seawalls, etc.) and open boundaries (which represent an artificial boundary between the area being modelled and the sea region outside. A separation between the model domain and an outer water area from where no waves enter the model domain (e.g. a creek or tributary at the backbay or down wave end of the domain) may be considered to be a fully-absorbing closed boundary. An open boundary is considered to be one where an incident wave is specified (and may contain other radiated waves). Along these boundaries, appropriate conditions must be specified to solve (1); however, even in the best of circumstances, only approximate boundary conditions can be developed (e.g. see Dingemaans, 1997).

## Closed Boundary Conditions

Along coastline and surface-protruding structures, the following boundary condition has traditionally been used (e.g. Berkhoff 1976; Tsay & Liu 1983; Tsay et al. 1989; Oliveira and Anastasiou 1998; Li 1994a)

- File:Equation12.jpg
^{(6)}

where n is the outward normal to the boundary and a is related to a user-specified reflection coefficient as follows:

- File:Alpha.jpg=ikFile:Equation13.jpg
^{(7)}

K_{r} varies between 0 and 1 and specific values for different types of reflecting surfaces have been compiled by Thompson et al. (1996).

It may be verified that (6) is strictly valid only for fully-reflecting boundaries (i.e. K_{r}= 1). For partially reflecting boundaries, it is valid only if waves approach the boundary normally. For other conditions, (6) is approximate, and may produce distortions in the model solutions. These limitations may be eliminated by describing the solution at the boundary more fully as a sum of incident and reflected waves:

- File:Equation14.jpg
^{(8)}

where A is the amplitude of the approaching waves, File:Theta.jpg is the direction at which they intersect the boundary (File:Theta.jpg = 0 for normally incident waves), s is the coordinate along the tangent to the boundary, and File:Beta.jpg is a phase shift between the incident and the reflected wave. (8) leads to the following boundary condition.)

- File:Equation15.jpg
^{(9)}

Unfortunately, File:Theta.jpg and File:Beta.jpg are not known a priori inside the model domain, and must be estimated by approximation. For fully absorbing boundaries (K_{r} = 0), Li and Anastasiou (1992) and Li et al. (1993) have used (9) after estimating File:Theta.jpg from Snell's Law and the deep-water incident wave angle. Alternatively, Isaacson and Qu (1990) estimated File:Theta.jpg as follows:

- File:Equation16.jpg
^{(10)}

where File:Chi.jpg is the argument of the complex quantity [Image:Theta:jpg]] (i.e. the phase of File:Theta.jpg). For implementation, they first used (6) as a boundary condition, obtained File:Chi.jpg from the results, determined File:Theta.jpg from (10), used (9) as a boundary condition to perform a second iteration of the model, recalculated File:Chi.jpg and File:Theta.jpg, performed a third model iteration using (9), and so on. Like Pos (1985), they assumed File:Beta.jpg = 0 while using (9), based on limited numerical tests that showed little sensitivity to File:Beta.jpg. Clearly, like the Snell’s Law approach, (10) is valid only for K_{r} = 0 (although problems with non-zero K_{r} were also considered). To include the effect of the reflected waves (i.e the second term in the right hand side of (8)), Isaacson et al. (1993) suggested estimating File:Theta.jpg as follows:

- File:Equation17.jpg
^{(11)}

Again an iterative method with repeated model calculations were needed. Steward and Panchang (2000) analyzed these methods and noted difficulties with convergence of the above iterative methods and with the quality of the solutions obtained with (10) and (11). They were able to eliminate these difficulties by estimating θ from the following expression:

- File:Equation18.jpg
^{(12)}

(12) is a generalization of (10) that allows non-zero K_{r} and β. For a detailed comparison of results, see Steward and Panchang (2000). Fig. 2 shows a simulation with of waves propagating into a rectangular harbor area. Clearly, solutions obtained with (12) are qualitatively superior to those obtained with (10).

Despite the increasing sophistication seen progressively in (6) and (9) and in the various ways of estimating θ, some fundamental problems remain. The most important one is inherent in (8), i.e. the assumption that the total wave field near the boundary can be represented either by one set of plane waves (in the case of (10) or the Snell's Law approach of Li et al. (1993)) or by two sets of plane waves (in the case of (11) and (12)) propagating in constant depth. In domains of complex shapes (as in Fig. 1) with arbitrary bathymetry and boundaries with varying reflectivities, a complex pattern of waves can result; simple wave trains are not easily discernible and, as noted by Isaacson and Qu (1990), the definition of a single θ (and β) can become meaningless. Further, even when there is a well-defined train of waves near the boundary (justifying the use of the above methods), precise estimation of K_{r} and β is still problematic. Values of K_{r} provided by Thompson et al. (1996) certainly do not cover full range of reflecting surfaces that the modeller encounters, nor do they cover the dependence of these parameters on the incident wave frequency. Efforts to incorporate the work of Dickson et al. (1995) and Sutherland and O’Donoghue (1998) pertaining to β in models such as the one described here are lacking.

In some ways it may be best to recognize these difficulties at the outset and use the simplest expressions (6) and (7) by combining all the uncertainties noted above into a single parameter α, which may be regarded as a tuning parameter. This is the approach followed in CGWAVE.

## Open Boundary Conditions

Along the open boundary, an incident wave φ_{i} must be specified. Along this boundary, however, waves backscattered from within the domain will also exist, and their magnitude is generally not known. In the context of simple rectangular domain models, with one side (aligned, say, in the y direction) constituting the open boundary, Panchang et al. (1988, 1991), Li (1994a, b), and Oliveira and Anastasiou (1998) have used the following condition

- File:Equation19.jpg
^{(13)}

(13) is obtained by assuming that the incident and backscattered components along this boundary can be described by φ_{i} = A_{i}exp(ikx) and φ = Bexp(-ikx) respectively (where A_{i} is the (specified) amplitude of the incoming wave and B is an unknown), adding the two components, and differentiating. Obviously, this is valid only if the incident and backscattered waves near the boundary are plane waves propagating in the +/- x direction.

For more complex domains involving multidirectional scattering, (13) is inappropriate. Harbor applications generally use model domains such as that described in Fig. 3, where the semicircle is used to separate the model area from the open sea. In the exterior domain Ω' the potential φ is comprised of three components:

- φ = φ
_{i}+ φ_{r}+ φ_{s}^{(14)}

where φ_{i} = the incident wave that must be specified to force the model, φ_{r} = a reflected wave that would exist in the absence of the harbor, and φ_{s} = a scattered wave that emanates as a consequence of the harbor and must satisfy the Sommerfeld radiation condition. With appropriate descriptions for these components, a boundary condition can be developed along the semicircle.

In traditional harbor models (Mei 1983; Tsay and Liu, 1983; Thompson et al. 1996; Chen and Houston, 1987; Xu and Panchang, 1993; Demirbilek and Panchang, 1998), the exterior wave conditions are described as follows:

- File:Equation20.jpg
^{(15)}, which is the specified input - File:Equation21.jpg
^{(16)}

- File:Equation22.jpg
^{(17)}

where (r, θ) denotes the location of a point in polar coordinates, H_{n} is the Hankel function of the first kind and order n, and A_{n} and B_{n} are unknown coefficients.

For the specified incident wave field given by (15), equations (16) and (17) result from the solution of the relevant eigenvalue problem in the traditional method. As demonstrated by Xu et al. (1996), however, this eigenvalue problem, in which φ_{s} and φ_{r} are coupled, may be solved only under the following conditions:

- (i) The exterior region must have a constant depth,
- (ii) the exterior coastlines A1D1 and A2D2 must be fully reflecting and collinear.

These requirements usually cannot be met in practice where the exterior geometry varies arbitrarily, and the unrealistic bathymetric representation used perforce by the modeller invariably has an adverse influence on the solution. In field applications, the exterior bathymetry is irregular and the depth generally increases in the x-direction. Condition (i) is thus violated, causing two problems as demonstrated by Panchang et al. (2000). First, the modeller must arbitrarily select a representative “constant” depth and test the sensitivity of the solutions to these depths. This can be extremely time-consuming. Second, the effect of reflections from the sloping exterior bathymetry is ignored. These effects are often significant, especially for long periods that are of interest in harbor resonance studies. Condition (ii) is also problematic. Exterior coastlines are not always fully reflecting for all wave conditions, and imposing full reflection in such cases yields extremely large amplification factors and rapid variations in the wave pattern in the outer regions of the domain. (See examples in Xu et al. (1996), Demirbilek et al. (1996), and in Thompson et al. 1996)). One may of course enlarge the interior region in the hope that these effects do not contaminate the results in the area of interest; however, there is no guarantee that these effects are confined to specific regions. In addition, the extra memory requirements and grid-generation for a larger domain are usually exceedingly demanding. Thus, while (16)-(17) constitute rigorous solutions of the eigenvalue problem, their use renders the application of harbor wave models problematic in practice. (One consequence of the above is that many of the models in this category cannot correctly simulate fairly simple phenomena like waves approaching a sloping beach. Investing confidence in model results when applied to field situations is therefore difficult.)

An effective alternative, followed in CGWAVE, is to use a “parabolic approximation” to describe φ_{s}:

- File:Equation23.jpg
^{(18)}

where

- File:Equation24.jpg,File:Equation25.jpg
^{(18a)}

where r and θ represent the polar coordinates of a point on the open boundary. (p and q are not unique, and alternative forms, each obtained with an appropriate rationale, have been investigated by Givoli (1991), Xu et al. (1996), Panchang et al. (2000)). The parabolic approximation (18) allows the scattered waves to exit only through a limited aperture around the radial direction. Unlike (17), therefore, it does not rigorously satisfy the Sommerfeld radiation condition. However, using this formulation decouples φ_{s} from the other components. These components (φ_{i} and φ_{r}) may be obtained by making a compromise between a detailed exterior bathymetric representation (which as noted earlier, is difficult) and the constant depth representation (which is unrealistic). A one-dimensional representation, where the depths vary in the cross-shore direction only (Fig. 1), may be selected. This is reasonable, since in general, this is often the direction in which the depths vary the most. If natural variations do not permit the representation of the exterior depths by only one section, a second one-dimensional section, shown as transect 2 in Fig. 1, may be constructed. For transects 1 and 2 with varying depths, no simple analytical expression (such as (16)) can be found for the reflected wave (since φ_{i} and φ_{r} are coupled). However, the quantity:

- φ
_{0}= φ_{i}+ φ_{r}^{(19)}

may be obtained by the solution of the one-dimensional version of (5), since the depths along these transects vary in one direction only. This one-dimensional equation is (Schaffer and Jonsson, 1992; Panchang et al. 2000):

- File:Equation25.jpg
^{(20)}

where, for one-dimensional geometry,

- φ
_{0}= ψ(x) exp( iky sinθ)^{(21)}

(20) is an elliptic ordinary differential equation requiring two boundary conditions. It may easily be solved via a simple finite-difference scheme. (For the present, the dissipation factor W is considered to be prespecified). Assuming that transect 1 extends out to a region of constant depth (or deep water), a condition at P_{1} may be obtained by combining a specified incident wave

- φ
_{i}(P_{1}) = A_{i}exp (ikx cosθ_{i}+ iky sinθ_{i})^{(22)}

(where A_{i} = a given input wave amplitude) and an unknown reflected wave:

- φ
_{r}(P_{1}) = B exp (-ikx cosθ_{i}+ iky sinθ_{i})^{(23)}

Without loss of generality, the point P_{1} may be located at x = 0, which allows elimination of B to yield

- File:Equation26.jpg
^{(24)}

At the coastal boundary point Q_{1}, the partial reflection boundary condition (9) may be used in the following form:

- File:Equation27.jpg
^{(25)}

where K_{r} is the reflection coefficient for the exterior coastline (i.e. near Q_{1}) and ksin#952; is constant for the one-dimensional problem.

The solution of (20) using boundary conditions (24) and (25) along with (21) produces φ_{0} along transects 1 and 2. These solutions are denoted by φ_{01} and φ_{02}. The desired φ_{0} along the semicircle may be obtained by laterally translating φ_{01} and φ_{02} via interpolation between transects 1 and 2 as follows:

- φ
_{0}= (1- m ) φ_{01}exp(-ik(r-y)sinθ) + m φ_{02}exp(ik(r+y)sinθ)^{(26)}

where we have set y = 0 at the center of semicircle, the interpolation function m = (r-y)/2r, r is the radius of the semicircle, y is the lateral coordinate of the open boundary node relative to the origin of semicircle (Fig.3).

The boundary condition for φ along the semicircle Γ may be obtained by using the continuity of the potential (equations 14 and 19) and its derivative along with (18) and (26):

- File:Equation27.jpg
^{(27)}

Thus, the solution of (20) provides φ_{0} along the 1-dimensional transects. These values can be translated laterally and substituted into (27) to obtain the open boundary condition for the two-dimensional equation (1). Zhao et al. (2000) and Panchang et al. (2000) have demonstrated that this procedure provides extremely satisfactory solutions for a large number of test cases.

In CGWAVE, if non-linear breaking is implemented, a version of (21) is solved by iteration since W depends on the (unknown) amplitude.