# Internal Wavemaker (traditional)¶

There are two primary types of numerical wave–makers: Internal and Boundary. In this section, we will discuss internal wave–maker theory.

## Internal wave–maker theory¶

The internal wavemaker was implemented based on Wei et al. (1999) two–way internal wavemaker and Chawla and Kirby (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 the figure below. \(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 the \(x\) direction. In theory, the shape coefficient \(\beta\) can be any number. The larger the value of \(\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 Equation 13 shown above for given wave amplitude \(a_0\), wave angle \(\theta\), water depth \(h\) and wave period \(T=1/2\pi\omega\). 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 \(T\). *The source function for each component can be obtained using the source function.*

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 are 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 the amplitude, wave number in the y direction and phase of a component, respectively. The phase can be random.

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

### Wavemaker with user-specified wave coherence¶

Users can specify degree of wave cohenrence according to the technique proposed by Salatin et al. (2021). The instruction for such a wavemaker setup and examples and be found in Wave-maker specification.

## References¶

Bouws, E., Günther, H., Rosenthal, W., Vincent, C.L., 1985. “Similarity of the Wind Wave Spectrum in Finite Depth Water: 1. Spectral Form”. J. of Geophysical Research, 90, NO. C1, 975-986. DOI: 10.1029/JC090iC01p00975.

Chawla, A., and Kirby, J.T., 2000. “A source function method for generation of waves on currents in Boussinesq models”. App. Ocean Research, 22 (2), 75-83. DOI: 10.1016/S0141-1187(00)00005-5.

Chen, Q., Kirby, J.T., Dalrymple, R.A., Shi, F., Thorton, E.B., 2003. “Boussinesq modeling of longshore currents”. J. of Geophysical Research, 108, NO. C11, 3362. DOI: 10.1029/2002JC001308

Kirby, J.T., Wei, G., Chen, Q., Kennedy, A.B., Dalrymple, R.A., 1998. “Funwave 1.0: Fully Nonlinear Boussinesq Wave Model – Documentation and User’s Manual”. Hydraulic Eng. Reports: NO. CACR-98-06. University of Delaware.

Salatin, R., Chen, Q., Bak, A. S., Shi, F., and Brandt, S. R., 2021, Effects of Wave Coherence on Longshore Variability of Nearshore Wave Processes, Journal of Geophysical Research - Ocean, DOI:1029/2021JC017641

Wei, G., Kirby J.T., Sinha, A., 1999. “Generation of waves in Boussinesq models using a source function method”. Coastal Eng. 36 (4), 271-299. DOI: 10.1016/S0378-3839(99)00009-5