# Wave–maker¶

- Internal wavemaker theory

Internal wavemaker was implemented based on Wei and Kirby’s (1999) two–way internal wavemaker and Chawla and Kirby’s (2000) one–way internal wavemaker (under development). Here, we briefly summarize the formulations used in the wavemakers. Detailed theory can be found in Wei and Kirby (1999) and Chawla and Kirby (2000).

Wei and Kirby (1999) followed the approach of Larsen and Dancy (1983) who used an ad–hoc source mechanism where water mass is added and subtracted along a straight source/sink line inside the computing domain. This approach works well in a staggered–grid differencing scheme, where water is essentially being added to or drained from a single grid block. In applying this technique to the Boussinesq model on an unstaggered grid, however, Wei and Kirby found that use of a single source line accused high frequency noise, leading to blowup of the model. They then used a partially distributed mass source \(f(x,y,t)\)

where \(g(x)\) is a Gaussian shape function and \(s(y,t)\) the input time series of the magnitude of source function with an assumption that the center of the source region is parallel to the y–axis. The functions \(g(x)\) and \(s(y,t)\) are defined as

where \(\beta\) is the shape coefficient for the source function, and \(x_s\) is the central location of the source in the \(x\) direction, for a source oriented parallel to the \(y\) axis, as shown in Figure. \(D\) is the magnitude of the source function, \(\lambda = k \mbox{sin} (\theta)\) the wavenumber in the \(y\) direction, and \(k\) is the linear wavenumber.

For a monochromatic wave or a single wave component of a random wave train, the magnitude \(D\) of source function can be determined by

where \(\alpha = -0.390, \alpha_1 = \alpha + 1/3\), and \(I\) is the integral given by

where \(l=k\cos (\theta)\) is the wavenumber in \(x\) direction. In theory, the shape coefficient \(\beta\) can be any number. The larger the value \(\beta\) is, the narrower the source function becomes. The definition of the source function width \(W\) is not unique, and here we define \(W\) to be the distance between two coordinates \(x_1\) and \(x_2\) where the corresponding source function heights are equal to \(\exp (-5) = 0.0067\) times the maximum height \(D\). Then \(x_1\) and \(x_2\) must satisfy the quadratic equation

from which the width of source function is given by

In the previous version of FUNWAVE (Kirby et al., 1998), it is suggested that \(W\) equals about half of the wavelength for monochromatic wave. If \(L\) is the wavelength, the requirement of \(W=\delta L/2\) (where \(\delta\) is of order 1) results in

For random waves, the value of $beta$ is determined according to the peak frequency component and then used for all components in the wave train. FUNWAVE–TVD follows the criteria for determining \(\beta\) though a narrow \(W\) does not seem to cause any problem.

For the irregular wavemaker, an extension was made to incorporate an alongshore periodicity into wave generation, in order to eliminate a boundary effect on wave simulations. The technique exactly follows the strategy in Chen et al. (2003), who adjusted the distribution of wave directions in each frequency bin to obtain alongshore periodicity. This approach is effective in modeling of breaking wave–induced nearshore circulation such as alongshore currents and rip currents.

- Regular wave generation

The generation of monochromatic wave using the internal wavemaker is straightforward. Following the formulations given in 3.7.1, the magnitude of source function \(D\) is calculated by D equation shown above for given wave amplitude \(a_0\), wave angle \(\theta\), water depth \(h\) and wave period. The source function can be obtained using the Source function above.

- Irregular wave generation using directional spectral data

Irregular waves can be generated by integrating wave components split by frequency and direction and with random phases Each wave component contains wave amplitude \(a_0\) converted from wave energy, wave angle \(\theta\) and wave period. The source function for each component can be obtained using the source function.

- Irregular wave generation using analytical spectrum function

The input for the wavemaker can be wave bulk parameters or directional spectral data. TMA shallow–water spectrum, JONSWAP spectrum and a wrapped–normal directional–spreading function are used to simulate a directional sea state. The combined spectrum function can be expressed as

\(E\) is the energy density distribution as follows

in which \(f_p\) is the peak frequency. \(\gamma\) presents a frequency spreading parameter, and \(\alpha\) and \(\sigma\) are coefficients which may be found in Bouws et al. (1985). $alpha$ is obtained using the input \(H_{mo}/H_{sig}\),

\(\Phi\) = 1.0 for the JONSWAP spectrum. For TMA, \(\Phi\) may be expressed as

where

here \(G(\theta)\) is the wrapped normal directional spreading function written as

where \(\sigma_{\theta}\) denotes circular deviation of the wrapped normal spreading function. To avoid the computational underflow, \(N = 20\) in the model.

In the spectral wavemaker, the directional spectrum is first divided into \(1000\) frequency components and then reconstructed into a user–specified number of components with the equal energy. The directional components s evenly split in each frequency. The source function technique (Wei, et al., 1999) is then used for each component and the final surface elevation function can be written as

where

in which y–axis is oriented along the main axis of the wave maker. \(D_{mn}, k _{mn}\) and \(\varepsilon_{mn}\) are respectively the amplitude, wave number in the y direction and phase of a component. The phase can be random.

The model also provides an option for 1–D spectral wave generation (uni–directional).