drying_slope test group
implements variants of the drying slope test case. Here,
we describe the shared framework for this test group and the 1 test case.
The shared config options for the
drying_slope test group are described
in drying_slope in the User’s Guide.
Additionally, the test group has shared
namelist.forward files with a few common namelist options related to run
duration, bottom drag, and tidal forcing options, as well as shared
streams.forward files that defines
Namelist options specific to resolutions and vertical coordinates are given in
defines a step for setting up the initial state for each test case.
First, a mesh appropriate for the resolution is generated using
mpas_tools.planar_hex.make_planar_hex_mesh(). Then, the mesh is
culled to remove periodicity in the y direction. MPAS-Ocean is then run in init
mode. If the vertical coordinate is
sigma, the vertical grid configured
accordingly during init mode. During this init mode run, ssh is initialized
using the tidal forcing config options, and temperature and salinity are set
to constant values by default. (Namelist options may be modified to produce a
plug of different temperature values from the background, but this is not
employed in this test case.)
defines a step for running MPAS-Ocean from the initial condition produced in
initial_state step. If
damping_coeff is provided as an argument to
the constructor, the associate namelist option
config_Rayleigh_damping_coeff) will be given this value. MPAS-Ocean is run
defines a visualization step which serves the purpose of validation. This
validation is tailored for the default config options and the two Rayleigh
damping coefficients set by the default sigma-coordinate test case, 0.0025 and
0.01. One plot verifies that the time evolution of the ssh forcing at the
boundary matches the analytical solution intended to drive the test case.
Another plot compares the time evolution of the ssh profile across the channel
between the analytical solution, MPAS-Ocean and ROMS. Similar plots are used
to create a movie showing the solution from MPAS-Ocean at more fine-grained
test performs two 12-hour runs on 4 cores. It doesn’t contain any
Validation. This class accepts resolution and coordinate type
coord_type as arguments. Both
types are supported. For
sigma coordinates, this case is hard-coded to run
two cases at different values of
config_Rayleigh_damping_coeff, 0.0025 and
0.01, for which there is comparison data. The
single_layer case runs at one
value of the implicit bottom drag coefficient.
compass.ocean.tests.drying_slope.ramp.Ramp is identical to the
default class except it sets
True for the forward step to enable
the ramp feature for wetting and drying.
compass.ocean.tests.drying_slope.loglaw.LogLaw is identical to the
default class except it uses the log-law implicit drag option.