- Permanent form periodic waves with zero-average mass flux are generated in a two-dimensional numerical wave tank solving fully nonlinear potential flow equations. An absorbing beach is modeled at the end of the tank in which (1) an external free-surface pressure absorbs energy from high frequency waves; and (2) a pistonlike condition absorbs energy from low-frequency waves. A feedback mechanism adaptively calibrates the beach parameters to absorb the period-averaged energy of incident waves. Wave generation and absorption are validated over constant depth, for tanks and beaches of various lengths, and optimal parameter values are identified for which reflection from the beach is reduced to a few percent. Shoaling of periodic waves is then modeled over a 1:50 slope, up to very close to the breaking point. A quasi-steady state is reached in the tank for which (not previously calculated) characteristics of fully nonlinear shoaling waves are obtained.