Research Article  Open Access
Generation of Water Waves Using Momentum Source WaveMaker Applied to a RANS Solver
Abstract
Nowadays, as the development of Computational Fluid Dynamics (CFD) and the numerical wave tank (NWT) has advanced, numerical analysis has become increasingly useful and powerful for the ship designing and ship hydrodynamics. In this study, a momentum source wavemaker and an analytical relaxation wave absorber were embedded into 2D RANS equation model with RSM turbulence closure scheme to establish the NWT for ship designing and hydrodynamics. The VOF (volumeoffluid) method was applied to accurately capture the water free surface. The body forceweighted scheme is chosen for pressure interpolation and the second order upwind scheme for discretization of the momentum equation. In order to calculate convection and diffusion fluxes through the control volume faces, PISO algorithm is adopted for pressurevelocity coupling. The momentum source function for wave generation and the analytical relaxation function for wave absorption were deduced for constructing the NWT (numerical wave tank). The proposed NWT was then validated by the laboratory measurements of Umeyama and the analytical solution, indicating that the constructed NWT is effective and accurate.
1. Introduction
Recently, the computer technology and numerical methods used in marine science and technology have evolved a lot including these aspects: ocean wave power generation, marine resources exploitation, and marine transportation. All these are related to the numerical simulation of ocean waves. The ocean waves can be categorized into linear waves, high order stokes waves, solitary waves, irregular waves, and so on. The physical methods are very limited due to the aspects of high cost (for establishing the experimental wave tank and for flow measuring), inconvenience for maintenance and management, and hardness for monitoring of some specific flow data leading to the ignorance of some important details [1–4]. As the development of computer technology and numerical methods based on Computational Fluid Dynamics (CFD) has advanced, numerical simulation has become increasingly useful and powerful for showing the complicated flow fields encountered in developing the marine science and technology under water wave and current conditions. First of all, it is essential to establish a numerical wave tank accurately. Numerical wave tanks are computer codes whose main goal is to reproduce physical wave basins as closely as possible, which have solved many complex water wave problems as an effective tool. As an important influencing aspect of the marine science and technology, the ocean waves have been analyzed a lot recently based on the numerical wave tanks (NWT). At present, there are many models used to establish the numerical wave tanks, and the NavierStokes or Reynolds Averaged NavierStokes (RANS) equation models have been widely used. The NavierStokes equations can accurately describe water wave problems, but the direct numerical simulation (DNS) of the NavierStokes equations which solves the entire spectrum of motions (ranging from large eddy motions to the smallest turbulence scale motions) as well as nonlinear terms, viscous and turbulent stresses, has low computational efficiency and is always restricted to the hardware limitations. Reynolds Averaged NavierStokes (RANS) equations [5, 6], which were firstly applied in marine technology about 20 years ago, are alternatives that hugely reduce computational load compared to that of DNS. The studies on establishing the numerical wave tank using the RANS equations have been increasing, among which three types of wavemakers have been developed: static boundary wavemaker, moving boundary wavemaker, and internal wavemaker [7].
With the application of static boundary wavemaker, waves are generated at the inlet boundary given specified velocities and the water surface elevation derived from any wave theory formulation [8]. As pointed out by Pengzhi Lin [9], the static boundary wavemaker will produce obvious numerical dissipation due to the strong wave reflection. With the application of moving boundary wavemaker, the motion of a realistic wavemaker (flaptype wavemaker or pistontype wavemaker) is numerically simulated by a moving boundary. For example, Wood et al. [10] analyzed the runup of steep nonbreaking waves using the pistontype wavemaker based on the FLUENT software, and Finnegan and Goggins [11] simulated the linear water waves and wavestructure interactions using the flaptype wavemaker based on the Ansys CFX commercial software. Since the computational domain changes as the solid body moves toward or away from the fluid, a remeshing is inevitable in each time step or after a large distortion of the generated grid, which should be avoided as suggested by most researchers. The moving boundary wavemaker has also been applied with the meshless method (smoothed particle hydrodynamics) for wave generation. For example, Jiawen Sun [12] simulated the wave impact on a horizontal deck by establishing a numerical wave tank with the moving boundary wavemaker method based on an improved incompressible smoothed particle hydrodynamics. The application of meshless method in establishing the numerical wave tanks is still in an early stage, and there are many technical obstacles, such as the lack of particles nearby the wavemaker, that need to be conquered.
With the application of internal wavemaker, waves are generated by applying a source function or a source line within a designated region inside the computational zone not interacting with reflected waves and being able to be combined with various wave absorber methods. For the source line method, waves are generated at a single point in the wave propagation direction, by adding, at each time step, an incremental water surface elevation computed by the resolution of the model equations. Larsen and Dancy [13] were the first to use the method based on the Boussinesq equations and suggested that the phase velocity is related to the incremental water surface elevation. For the application of the source line method based on the mildslope equations model, Lee and Suh [14] successfully generated directional monochromatic and random waves. This method was developed and applied to the study of wave energy converters by Beels et al. [15]. The source function method may be subdivided into analytical relaxation method, mass source function method, and momentum source function method. Mayer et al. [16] proposed the analytical relaxation method for generating and absorbing waves simultaneously in the relaxation domain. The analytical relaxation method is usually linked to the numerical sponge layer method, and thus the relaxation zone should be enlarged. The mass source function method and the momentum source function method were first proposed by Ge Wei [17] based on Boussinesqtype equations and were developed based on NavierStokes equations or RANS equations. The mass source function method based on the NavierStokes equations model was first proposed by Lin and Liu by using the finite difference method (FDM) on a staggered grid system. The VOF scheme was adopted to track the free surface. The proposed numerical wave tank was applied to generate various types of wave, and the rules of thumb for designing the source region have become a general principle. J.S. Zhang et al. [18] applied the mass source function method and the rules of thumb for designing the source region in analyzing the wavecurrent interactions by using the finite volume method (FVM). Nevertheless, a lot of numerical tests are needed for the mass source function designing for generating a particular wave. The momentum source function method proposed firstly by Junwoo Choi [19] is more convenient than the mass source function method because the width of the momentum source domain is the only parameter to be specified, whereas the mass source function method has three parameters (i.e., height, width, and location of the mass source domain), but the application based on NavierStokes equations or RANS equations for simulating the regular and irregular wave propagation over constant water depth has been reported in few studies.
In this study, we deduced the momentum source functions of the RANS equations for the internal wavemaker and the wave absorber based on analytical relaxation method mentioned above. FLUENT software was chosen as the base solver due to its popularity and applicability to water wave problems. All the numerical simulations were run in parallel using series of Intel XEON E52640V3 processors (2.60 GHz). To evaluate the application of this method to generate a target wave train in a vertical 2dimensional channel of constant depth, the numerical results were compared to the laboratory measurements by Umeyama [20] and the analytical solutions.
2. Numerical Model
2.1. Governing Equations
The incompressible fluid motion due to the water wave propagation can be described by the mass conservation equation, momentum conservation equations, and RANS equations:
in which is time, is the density, denotes the Cartesian coordinates, is an ensemble mean velocity component, is the fluid pressure, is the dynamic viscosity, and is the gravitational acceleration. is the additional mass source term, which is equal to here for the momentum wavemaker method. is the additional momentum source term which will be deduced in Sections 2.2 and 2.3 for wave generation and absorption, respectively. is the Reynolds stress term.
The VOF method is used to track the free water surface. The main idea of VOF method is to define a function α to represent the fractional volume of water fluid.
indicates that the cell is full of water, while corresponds to a cell fully occupied by air. Cells with value of contain a water free surface.
2.2. Wave Generation
As shown above, the water free surface displacement is not a variable of the RANS equations; it is impossible to get the exact relation expression between the water free surface displacement and its momentum source function of the RANS equations for generating the target water waves. However, the water free surface displacement is an unknown variable of the depthintegrated equations and Wei et al. (1999) derived the mass source function based on the Boussinesq approximation for generating water waves. Their idea can be embedded into the RANS equation, and the momentum source function can be calculated via the appropriate numerical technique. In other words, the mass source function of the continuity equation, in which the water free surface is a key variable, will be transformed into the momentum source function of the RANS equations for generating the target waves in this study.
Wei et al. used the following linear Boussinesq equations to derive the mass source function to generate target water waves over constant water depth:
in which is the water depth, the gravitational acceleration, the surface elevation, and the velocity vector. The parameters and used her are and
The velocity vector can be expressed as , in which is the velocity potential. The model equations ((4) and (5)) become as follows.
For internal wave generation the mass source function in (4) has been proposed as
in which, , where angular frequency , wave number , and wave height are the wave parameters used to obtain a target wave train. And , where , is the wavelength, and is a parameter for the width of internal generation region.
In order to transform the mass source function derived above into a momentum source function for internal wave generation, the linear Boussinesq equations (4) and (5) will be transformed into the following equations by deleting mass source function in the continuity equation and the momentum source function will be added.
By demanding (11) on the partial derivative, we get
in which can be expressed as follows according to (10).
By substituting the expression (13) into (12), we get the following.
By integrating the above equation, the momentum source function can be expressed as follows.
Using the relation above and the source mass function derived in Wei et al., the xdirectional component of the momentum source function can be derived as follows.
Similarly, we can get the ydirectional component of the momentum source function.
According to the Fourier transform, the momentum source function for a linear monochromatic wave can be simplified as follows.
For 2D simulation of the propagation of the linear waves over constant water depth, the wave direction angle and .
2.3. Wave Absorption
The analytical relaxation method proposed by Mayer and Madson was used here for wave absorption, and the mechanism of the analytical relaxation method can be described as follows: Within the relaxation domain, the velocity and the pressure will be updated at every time step by the added source. As application to the NavierStokes equations, the relaxation algorithm for velocity and pressure can be renewed as
in which the subscript stands for the renewed value of the physical quantity in the specified zone, the subscript stands for the computed value at previous time step, and is the relaxation function, , .
Then, the source function for the analytical relaxation wave absorbing method can be deduced from the Euler equations by ignoring the water viscosity. The difference forms of momentum equations with and without the additive source can be written as follows.
By subtracting (21) with (23) and (22) with (24), the source function can be expressed as follows.
More details about the source function can be found in [16].
3. Model Configuration and Validation
3.1. Setup of the Numerical Model
The Computational Fluid Dynamics code, FLUENT 13.0 [21], which proved to be viable for solving compressible and incompressible flows based on the twodimensional or threedimensional NS equations or RANS equations, was chosen as the base solver. In the following, only the numerical methods used here are briefly described. For turbulent flows, the FLUENT solver supports various turbulence models. When deciding the exact turbulence model for wave generation using the momentum source function method, we found that the Reynolds Stress Model (RSM) converged faster and gives better results than the other turbulence models. Therefore, the RSM using a linear pressurestrain model was used in conjunction with the standard wall function method for a smooth wall for all the present simulations. With the above models, the FLUENT solver, employing the finite volume method (FVM) for the discretion of the governing equations on the basis of staggered grids, generally solved the RANS and employed the volumeoffluid method (VOF) employing a geometric reconstruction scheme to track free surface movement. Pressure, turbulent kinetic energy, turbulent dissipation rate, and water volume fraction function are arranged at the central point of grid; fluid velocity components are arranged at the central point of corresponding grid boundary. The body forceweighted scheme was chosen for pressure interpolation and the second order upwind scheme for discretization of the momentum equation. In order to calculate convection and diffusion fluxes through the control volume faces, PISO algorithm is adopted for pressurevelocity coupling. The convergence criterion is set to 0.001 for all simulations. For unidirectional wave generation in twodimensional numerical wave tank, only the momentum source function was embedded into the xmomentum equations without any zdirectional variation by using the macro of the UDFDEFINE_SOURCE (mom_source, cell, thread, ds, eqn) in software FLUENT. At both ends in the xdirection with thickness of approximately three wavelengths, the analytical relaxation wave absorber, by using the source function expressed by (25) and (26) embedding into the momentum equations, was used for absorbing the wave energy also achieved by the UDFDEFINE_SOURCE (mom_source, cell, thread, ds, eqn).
Figure 1 shows the sketch of the numerical wave tank established by using the momentum source function wave generation method and the analytical relaxation wave absorption method. The noslip boundary with the smooth wall function was set for left, right, and bottom boundary conditions, and the pressureoutlet boundary was set for the top boundary. The computational zones were discreted by the structured grids using GAMBIT. The grid size and the temporal grid size have huge influence on the computational results, which will be discussed later in detail.
3.2. Model Verification
To validate the proposed model, the numerical results are compared with laboratory measurements of Umeyama. Umeyama performed a series of experiments in a physical wave channel with length of 25m, width of 0.7m, and maximum depth of 1.0m. Waves were generated by placing a pistontype wavemaker at one end of the wave channel and were absorbed by installing a wave absorber at the other end. During all the tests in the channel, the water depth was kept at 0.3m and the wave period was chosen as 1.0s; the parameters for the tests are listed in Table 1. The displacement of the free water surface was measured using a resistancetype probe, located 14.0m from the wave generator, while the horizontal velocities of waterparticles were determined by PIV device and PTV device based on a singleexposure image. For more details about the laboratory measurement, the reader can refer to Umeyama. A computational domain with a range of 20 m to 20 m and 0m to 0.5 m is used in the numerical simulation, and the grid size and the temporal grid size are decided by the following sensitivity analysis.

To check the grid and temporal grid sensitivity of the solutions, the temporal grid sensitivity analysis is carried out first. The medium grid (93.1MB, containing 1000000 quadrilateral cells) is used and three different time steps are considered, which are 0.01 (T/100), 0.005 (T/200), and 0.002 s (T/500). The wave amplitude is set to 0.00515m, the period is 1 s, and the simulation is carried out for a duration of 25 periods. The momentum source region is located at x=0m to x=0.5m. The momentum source distribution for all the numerical tests is shown in Figure 2. As shown in Figure 2, the amplitude of the source increases with the wave height.
Figure 3(a) shows the time series of surface elevation at x=10m for different time steps, revealing that the results are nearly the same. Consequently, for efficiency, the time step of 0.01s is selected for all cases. Then, three different grid systems of coarse (22.9 MB, containing 250000 quadrilateral cells, , ), medium (93.1MB, containing 1000000 quadrilateral cells, , ), and fine grids (137MB, containing 1440000 quadrilateral cells, , nonuniform in direction with ) are used to test the grid sensitivity of the solutions. The results are shown in Figure 3(b), where it can be seen that the results are more coincident for the medium grids and fine grids. Considering a further study to capture the fluid interface more exactly and the time consumed, the fine grid system is used for the present simulation. Additional numerical tests show that the numerical results are insensitive to the temporal grid size as long as the temporal grid size is within . The grid size in the xdirection was within the range of , the grid size in the zdirection nearby the free surface was within the range of , and the ratio of xdirection grid and zdirection grid was no more than five.
(a)
(b)
Figure 4 shows the comparison of simulated and measured, analytical water surface profile within one wave period. As expected, there is a good agreement among the simulated results, the physical experimental results, and the theoretical solution. For the numerical results, the error near the wave crest is a little bit larger than the experimental results. As a whole, the numerical results are more close to the theoretical results than to the experimental results.
To demonstrate the effectiveness of the internal wavemaker and the wave absorber, the simulated average wave elevation profiles at time in the last five wave periods are compared to the theoretical results as shown in Figure 5. It can be found that the wave elevation profiles in working zone areas for all cases fit well with the theoretical wave elevation profiles, and the analytical relaxation wave absorption method can absorb the wave energy effectively for avoiding the reflected waves generated by the left and right wall boundaries influencing the wave profiles in the working zones. By investigating Figure 4 carefully, a tiny phase discrepancy is observed since the target waves are generated from a narrow region instead of a vertical line. A larger discrepancy is observed in caseW3 (wave steepness ) due to the limitations of momentum source internal wavemaker in generating deep water waves since the momentum source function is derived from linear Boussinesq equations based on the shallow water wave assumption. In general, the momentum source internal wavemaker can generate welltargeted waves by being applied to a RANS solver based on the finite volume method (FVM) with fine spatial and temporal grid.
Figures 6–8 (, distance from the free surface) display the comparison of simulated horizontal and verticalvelocity profiles for the casesW1, W2, and W3. It can be found that the simulated horizontal and verticalvelocity profiles agree well with the theoretical results for all cases with tiny discrepancy in cases W1 and W2 and a larger discrepancy in caseW3 due to the larger wave steepness. The results indicate that the vertical and horizontalvelocity profiles are mainly affected by the surface wave motion. As shown in the lower parts of Figures 6–8, the absolute value of the vertical velocity above the bottom boundary layer increases toward the water surface (see the velocity profile at time t=0.25s (t=0.75s) of Figures 6–8) when the zero wave elevation arrives. Similarly, the absolute value of horizontal velocity above the bottom boundary layer increases toward the water surface (see the velocity profile at time t=0.0s (t=0.5s) of Figures 6–8) when the wave trough and wave crest arrive, as shown in the upper parts of the Figures 6–8.
4. Conclusion
In this study, a momentum source internal wavemaker and an analytical wave absorber were embedded into 2D RANS equation model with RSM turbulence closure scheme to simulate the water wave propagation over constant water depth. By comparing the simulated results with the experimental data and the theoretical results, it can be found that the momentum source internal wavemaker can generate welltargeted waves and the analytical relaxation wave absorption method can absorb the wave energy effectively for avoiding the reflected waves generated by the left and right wall boundaries influencing the wave profiles in the working zones. The established NWT can be effectively used in the ship designing and ship hydrodynamic analysis.
Data Availability
The [physical experimental results] data supporting this article are from previously reported studies and datasets, which have been cited. The processed data are available from the corresponding author of the cited article (Motohiko Umeyama, Coupled PIV and PTV Measurements of Particle Velocities and Trajectories for Surface Waves Following a Steady Current, Journal of Waterway, Port, Coastal, and Ocean Engineering, vol. 137, no. 2, pp. 8594, 2011.) upon request. The [numerical cases] data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
Acknowledgments
This project is supported by the National Natural Science Foundation of China (Nos. 51409032 and 51409031) and the Fundamental Research Funds for the Central Universities (China) (Nos. 3132017006 and 3132016314).
References
 T. Kristiansen and O. M. Faltinsen, “Experimental and numerical study of an aquaculture net cage with floater in waves and current,” Journal of Fluids and Structures, vol. 54, pp. 1–26, 2015. View at: Publisher Site  Google Scholar
 A. Toffoli, T. Waseda, H. Houtani et al., “Excitation of rogue waves in a variable medium: an experimental study on the interaction of water waves and currents,” Physical Review E: Statistical, Nonlinear, and Soft Matter Physics, vol. 87, no. 5, pp. 1–4, 2013. View at: Publisher Site  Google Scholar
 N. Tambroni, J. Figueiredo da Silva, R. Duck, S. McLelland, C. Venier, and S. Lanzoni, “Experimental investigation of the impact of macroalgal mats on the wave and current dynamics,” Advances in Water Resources, vol. 93, pp. 326–335, 2016. View at: Publisher Site  Google Scholar
 T. A. De Jesus Henriques, S. C. Tedds, A. Botsari et al., “The effects of wave–current interaction on the performance of a model horizontal axis tidal turbine,” International Journal of Marine Energy, vol. 8, pp. 17–35, 2014. View at: Publisher Site  Google Scholar
 P. Higuera, J. L. Lara, and I. J. Losada, “Simulating coastal engineering processes with OpenFOAM,” Coastal Engineering Journal, vol. 71, pp. 119–134, 2013. View at: Publisher Site  Google Scholar
 S. C. Hsiao and T. C. Lin, “Tsunamilike solitary waves impinging and overtopping an impermeable seawall: experiment and RANS modeling,” Coastal Engineering Journal, vol. 57, no. 1, pp. 1–18, 2010. View at: Publisher Site  Google Scholar
 P. Higuera, J. L. Lara, and I. J. Losada, “Realistic wave generation and active wave absorption for Navier–Stokes models: application to OpenFOAM,” Coastal Engineering Journal, vol. 71, pp. 102–118, 2013. View at: Publisher Site  Google Scholar
 D. Markus and F. Ferri, “Complementary numericalexperimental benchmarking for shape optimization and validation of structures subjected to wave and current forces,” Computers Fluid, vol. 118, pp. 69–88, 2015. View at: Publisher Site  Google Scholar
 P. Lin and P. L.F. Liu, “Internal wavemaker for NavierStokes equation models,” Journal of Waterway, Port, Coastal, and Ocean Engineering, vol. 125, no. 4, pp. 207–215, 1999. View at: Publisher Site  Google Scholar
 D. J. Wood, G. K. Pedersen, and A. Jensen, “Modelling of run up of steep nonbreaking waves,” Ocean Engineering, vol. 30, no. 5, pp. 625–644, 2003. View at: Publisher Site  Google Scholar
 W. Finnegan and J. Goggins, “Numerical simulation of linear water waves and wavestructure interaction,” Ocean Engineering, vol. 43, pp. 23–31, 2012. View at: Publisher Site  Google Scholar
 J.W. Sun, S.X. Liang, Z.C. Sun, and X.Z. Zhao, “Simulation of wave impact on a horizontal deck based on SPH method,” Journal of Marine Science and Application, vol. 9, no. 4, pp. 372–378, 2010. View at: Publisher Site  Google Scholar
 J. Larsen and H. Dancy, “Open boundaries in short wave simulations: a new approach,” Coastal Engineering Journal, vol. 7, no. 3, pp. 285–297, 1983. View at: Publisher Site  Google Scholar
 C. Lee and K. D. Suh, “Internal generation of waves for timedependent mildslope equations,” Coastal Engineering Journal, vol. 34, no. 12, pp. 35–57, 1998. View at: Publisher Site  Google Scholar
 C. Beels, P. Troch, G. De Backer, M. Vantorre, and J. De Rouck, “Numerical implementation and sensitivity analysis of a wave energy converter in a timedependent mildslope equation model,” Coastal Engineering Journal, vol. 57, no. 5, pp. 471–492, 2010. View at: Publisher Site  Google Scholar
 S. Mayer, A. Garapon, and L. S. Sørensen, “A fractional step method for unsteady free surface flow with applications to nonlinear wave dynamics,” International Journal for Numerical Methods in Fluids, vol. 28, no. 2, pp. 293–315, 1998. View at: Publisher Site  Google Scholar
 G. Wei, J. T. Kirby, and A. Sinha, “Generation of waves in Boussinesq models using a source function method,” Coastal Engineering Journal, vol. 36, no. 4, pp. 271–299, 1999. View at: Publisher Site  Google Scholar
 J.S. Zhang, Y. Zhang, D.S. Jeng, P. L.F. Liu, and C. Zhang, “Numerical simulation of wavecurrent interaction using a RANS solver,” Ocean Engineering, vol. 75, pp. 157–164, 2014. View at: Publisher Site  Google Scholar
 J. Choi and S. B. Yoon, “Numerical simulations using momentum source wavemaker applied to RANS equations model,” Coastal Engineering Journal, vol. 56, no. 10, pp. 1043–1060, 2009. View at: Publisher Site  Google Scholar
 M. Umeyama, “Coupled PIV and PTV measurements of Particle velocities and trajectories for surface waves following a steady current,” Journal of Waterway, Port, Coastal, and Ocean Engineering, vol. 137, no. 2, pp. 85–94, 2011. View at: Publisher Site  Google Scholar
 ANSYS/FLUENT, “Fluent user’s guide (Version 13.0),” Canonsburg (WA): ANSYS Inc, 2012. View at: Google Scholar
Copyright
Copyright © 2019 Xing Feng and Wanqing Wu. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.