The CFD software FLUENT was used as the foundation to develop the numerical wave flume, in which the governing equations are the Reynolds-averaged Navier-Stokes (RANS) equations and the standard k~ε turbulence model. The wave generating and absorbing were introduced into the RANS equations as the source terms using the relaxation approach. A new module of the wave generating and absorbing function, which is suitable for FLUENT based on the volume of fluid method (VOF), was established. Within the numerical wave flume, the reflected waves from the model within the computation domain can be absorbed effectively before second reflection appears due to the wave generating boundary. The computational results of the wave pressures on the bottom of the rectangular slab were validated for the different relative clearance by the experimental data. Good agreements were found.