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 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. The vertical grid is
configured according to the config options in the
The bottom depth is then set according to config options
left_bottom_depth. The initial layer
thicknesses are set to the minimum thickness and the initial state is set to
a constant value by default according to the config options
background_salinity. Optionally, a mass of
warmer water can be initialized over part of the domain, a “plug,” using
plug_width_temperature. For current
configurations, tracer tendencies are off and these tracer options do not
affect the flow.
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
run(). The time step is determined as a function of resolution by the
dt_per_km. The number of tasks is determined as a function
of resolution by
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
produces a convergence plot for a series of forward steps at different
resolutions. It uses the analytical solution available at 5 discrete times t
compute the RMSE.
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.
on the default class to include initial and forward steps for multiple
resolutions and an analysis step to generate a convergence plot.
test performs two 12-hour runs on 1 and 12 cores, respectively.
Validation is performed by comparing the output of the two runs.
This class accepts resolution and coordinate type
coord_type as arguments.
single_layer coordinate types are supported. For
sigma coordinates, this case is hard-coded to run with
config_Rayleigh_damping_coeff equal to 0.01. The
runs at one value of the implicit bottom drag coefficient.
compass.ocean.tests.drying_slope.loglaw.LogLaw is identical to the
default class except it uses the log-law implicit drag option.