3. Grid and Coordinates¶
Related CPP options:
CURVGRID |
Activate curvilinear coordinate transformation |
SPHERICAL |
Activate longitude/latitude grid positioning |
MASKING |
Activate land masking |
WET_DRY |
Activate wetting-Drying scheme |
NEW_S_COORD |
Choose new vertical S-coordinates |
Preselected options:
# define CURVGRID
# define SPHERICAL
# define MASKING
# undef WET_DRY
# undef NEW_S_COORD
3.1. Vertical Grid parameters¶
Two vertical transformation are available for the generalized vertical terrain following vertical system : By default, we have :
When activated the cpp key NEW_S_COORD, we have :
with :
\(z_0 (x,y,\sigma)\) a nonlinear vertical transformation
\(\zeta (x,y,\sigma)\) the free-surface
\(h(x,y)\) the ocean bottom
\(\sigma\) afractional vertical stretching coordinate, \(-1 \le \sigma \le 0\)
\(h_c\) a positive thickness controlling the stretching
\(Cs(\sigma)\) a nondimensional, monotonic, vertical stretching, \(-1 \le (C\sigma) \le 0\)
Vertical grid stretching is controlled by the following parameters, that have to be set similarly in croco.in
, and crocotools_param.m
:
theta_s |
Vertical S-coordinate surface stretching parameter.
When building the climatology and initial CROCO files, we have to define the vertical grid.
Warning! The different vertical grid parameters should be identical in this crocotools_param.m
and in croco.in. This is a serious cause of bug.
|
theta_b |
Vertical S-coordinate bottom stretching parameter. |
hc |
Vertical S-coordinate Hc parameter.
It gives approximately the transition depth between the horizontal surfacelevels and the bottom
terrain following levels. (Note it should be inferior to hmin in case of Vtransform =1).
|
Then we have, with \(N\) the number of vertical levels:
with the old transformation :
with NEW_S_COORD defined :
Other parameters have to be set to prepare the grid file in crocotools_param.m
:
vtransform |
S-coordinate type (1: old- ; 2: new- coordinates).
It is associated to #NEW_S_COORD cpp-keys in CROCO source code.
|
hmin |
Minimum depth in meters.
The model depth is cut a this level to prevent, for example, the occurrence of model grid cells
without water. This does not influence the masking routines. At lower resolution, hmin should
be quite large (for example 150m for dl=1/2). Otherwise, since topography smoothing is based on,
the bottom slopes can be totally eroded.
|
hmax_coast |
Maximum depth under the mask.
It prevents selected isobaths (here 500 m) to go under the mask. If this is the case, this could
be a source of problems for western boundary currents (for example).
|
hmax |
Maximum depth |
rtarget |
This variable control the maximum value of the -parameter that measures the slope of the sigma
layers (Beckmann and Haidvogel, 1993): To prevent horizontal pressure gradients errors, well
in terrain-following coordinate models (Haney, 1991), realistic topography requires some smoothing.
Empirical results have shown that reliable model results are obtained if does not exceed 0.2.
|
n_filter_deep_topo |
Number of pass of a Hanning filter to prevent the occurrence of noise and isolated seamounts on deep regions. |
n_filter_final |
Number of pass of a Hanning filter at the end of the smoothing process to be sure that no noise is present
in the topography.
|
The effects of theta_s, theta_b, hc, and N can be tested using the Matlab script :
croco_tools/Preprocessing_tools/test_vgrid.m
Below are some examples of different vertical choices (Courtesy of ROMS-RUTGERS team) :
Vtransform=1, \(\theta_S=7.0, \theta_B=0.1\) |
Vtransform=1, \(\theta_S=7.0, \theta_B=1.0\) |
Vtransform=1, \(\theta_S=7.0, \theta_B=3.0\) |
Vtransform =1, \(\theta_S=7.0,\theta_B=1.0\) |
Vtransform=2, \(\theta_S=7.0, \theta_B=1.0\) |
Vtransform=2, \(\theta_S=7.0, \theta_B=3.0\) |
3.2. Wetting-Drying¶
The Wetting-Drying scheme is derived from John Warner’s code (Rutgers ROMS) and adapted to the time stepping scheme of CROCO. The main idea is to cancel the outgoing momentum flux (not the incoming) from a grid cell if its total depth is below a threshold value (critical depth Dcrit between 5 and 20 cm according to local slope; Dcrit min and max adjustable in param.h). This scheme is tested in the Thacker case producing oscillations in a rotating bowl for which an analytical solution is known.