.. _swash:

Swash
=====

This test case addresses wave dynamics on a gently sloping laboratory beach 
(Globex experiment), using a wave-resolving configuration. The simulation 
is compared in :cite:t:`marchesiello_tridimensional_2021` against GLOBEX 
experiments B3 in 2012 in the Scheldt flume of Deltares 
(Delft, the Netherlands), and described in :cite:t:`michallet_2014` 
(parameters for B2 and A3 experiments are also available). The 
flume is 110 m long and contains a solid beach of 1:80 slope with its toe at 
16.6 m from the wave maker. Experiments are run with a still water depth of 
0.85 m and shoreline at x = 84.6 m. Second-order bichromatic waves (B3) are 
generated at the offshore boundary, with shore normal direction. The grid 
spacing is dx=12 cm with 10 vertical levels evenly spaced between the free 
surface and bottom. Best results are given with dx=1 cm, 
but the solution is moderately degraded with 
coarser horizontal resolution (dx=3, 6 and 12 cm), which shows good convergence 
properties. The model time step is dt = 2 ms. The minimum depth is 1 mm 
on the shore, the position of which varies with swash oscillation, relying 
on CROCO's wetting-drying scheme. For bottom drag, the logarithmic law 
of the wall is used with roughness length :math:`z_0 = 0.0625` mm.

::

    # define SWASH

CPP options:

::

    # define SWASH_GLOBEX_B3
    # undef  SWASH_GLOBEX_B2
    # undef  SWASH_GLOBEX_A3
    # undef  OPENMP
    # undef  MPI
    # define SOLVE3D
    # define AVERAGES
    # define NBQ
    # define NBQ_PRECISE
    # define WAVE_MAKER
    # define UV_ADV
    # define UV_HADV_WENO5
    # define UV_VADV_WENO5
    # define W_HADV_WENO5
    # define W_VADV_WENO5
    # define GLS_MIXING_3D 
    # define GLS_KOMEGA
    # define NEW_S_COORD
    # define ANA_GRID
    # define ANA_INITIAL
    # define ANA_SMFLUX
    # define ANA_STFLUX
    # define ANA_SSFLUX
    # define ANA_SRFLUX
    # define ANA_SST
    # define ANA_BTFLUX
    # define OBC_WEST
    # define OBC_SPECIFIED_WEST
    # define FRC_BRY
    # define ANA_BRY
    # define Z_FRC_BRY
    # define M2_FRC_BRY
    # define M3_FRC_BRY
    # define T_FRC_BRY
    # define WET_DRY
    # define NO_FRCFILE

**Settings :**

**Results :**    

.. figure:: figures/test_cases/test_cases_swash.png
            :scale: 50 %

            SWASH results : Velocity and elevation


.. raw:: latex

    \clearpage
