7. Horizontal mixing parameterizations

The namelist hmix_nml controls horizontal mixing.

Several horizontal mixing options are available for mixing tracers and momentum. With a few exceptions (discussed later), the choice of tracer mixing can be made independently of the choice of momentum mixing.

As with vertical mixing, the main namelist input only selects the choice of mixing options; the actual mixing parameters associated with each option are read from a namelist specific to that option.

The del2 (Laplacian) and del4 (bi-harmonic) mixing options are ad hoc level-oriented parameterizations that mix water-mass properties across sloping isopycnic surfaces. The Gent-McWilliams [11] parameterization remedies this shortcoming by forcing the mixing (of tracers only) to take place along isopycnic surfaces. The principal drawback of the gent option is cost; it nearly doubles the running time. For momentum mixing, an anisotropic viscosity parameterization (aniso) is also available which assigns different values of viscosity parallel and perpendicular to a given direction, where the direction can be specified as described in a later section. Under the aniso option, a Smagorinsky form of viscosity can be specified.

7.1. Laplacian horizontal mixing.

The namelist hmix_del2t_nml controls Laplacian tracer mixing.

The Laplacian mixing coefficients for tracers ah and momentum am are specified in separate namelists. The defaults shown in the namelists are only valid for a particular grid size; the user must determine the appropriate values for their particular grid size.

The variable_hmix option modifies the coefficients ah and am based on functions of the grid cell areas and will reduce the values for smaller grid cells (am and ah thus represent the values at the largest grid cells).

Currently, the functional form of this scaling can only be changed by editing the modules. The auto_hmix option attempts to compute coefficients based on known values for other resolutions. The result may or may not be suitable and the auto_hmix option is provided mainly for flexible benchmarking of the code at various resolutions.

7.2. Biharmonic horizontal mixing.

The biharmonic mixing coefficients for tracers ah and momentum am are specified in separate namelists. The defaults shown in the namelists are only valid for a particular grid size; the user must determine the appropriate values for their particular grid size. The variable_hmix option modifies the coefficients ah and am based on functions of the grid cell areas and will reduce the values for smaller grid cells (am and ah thus represent the values at the largest grid cells). Currently, the functional form of this scaling can only be changed by editing the modules. The auto_hmix option attempts to compute coefficients based on known values for other resolutions. The result may or may not be suitable and the auto_hmix option is provided mainly for flexible benchmarking of the code at various resolutions.

Todo

put in link for &hmix_del4u_nml Biharmonic momentum mixing namelist

Todo

put in link for &hmix_del4t_nml Biharmonic tracer mixing namelist

7.3. Gent-McWilliams isopycnic tracer diffusion

Gent-McWilliams (gent) mixing operates only on tracer species (potential temperature, salinity and other tracers), so it should be used in conjunction with a different option for hmix_momentum_choice, typically either del2 or aniso. No bi-harmonic form of gent has been developed and accepted yet, so it is appropriate to use the del2 values of ah. For vertical dependence of the mixing, a profile with the form \kappa _1 - \kappa _2*\exp^{-z/D} can be chosen, where D is a depth scale, z is model depth and \kappa _1 and \kappa _2 parameters specifiy factors multiplying the diffusivity. Note that this function is multiplied by the diffusivity ah; for a constant \kappa the first parameter should be set to 1 and the second to 0. Two diffusivities can be specified for the Redi and bolus parts of the GM parameterization; ah is used for the Redi part, ah_bolus is used for the bolus part. Two different maximum slopes can also be specified to allow different taperings of the Redi and bolus terms. A backgroud horizontal diffusivity ah_bkg can be used for bottom cells. If the gm_bolus flag is set, the bolus velocity is explicitly calculated and used as part of the velocity field, as opposed to the incorporating this process as part of the horizontal mixing. This last option does not currently work with partial bottom cells.

Todo

put in a link to &hmix_gm_nml Gent-McWilliams horizontal mixing namelist

The user is referred to the The Parallel Ocean Program (POP) Reference Manual for details on the various options listed in the POP2 hmix_gm_nml and mix_submeso_nml namelists.

7.4. Anisotropic viscosity options

The anisotropic viscosity routine computes the viscous terms in the momentum equation as the divergence of a stress tensor, which is linearly related to the rate-of-strain tensor with viscous coefficents visc_para and visc_perp . These coefficients represent energy dissipation in directions parallel and perpendicular to a specified alignment direction which breaks the isotropy of the dissipation. There are three options for choosing the alignment direction: 1) along the local instantaneous flow direction, 2) along the east direction, and 3) along the coordinate directions (note: the viscous operator is invariant under a rotation of the alignment direction by 90 degrees, so for example, choosing the alignment direction as north, south, east or west are all equivalent.). A functional approach is used to derived the discrete operator, which ensures positive-definite energy dissipation, provided visc_para > visc_perp.

Parallel and perpendicular viscosities can vary in space by setting the flag lvariable_hmix_aniso to .true. The spatially-varying viscosities in the parallel and perpendicular directions are read from a file (var_viscosity_infile). A specific form of the viscosities can be internally computed if the input filename is ‘ccsm-internal’. In such a case, the six viscosity parameters for the form must also be supplied.

The viscosities may optionally (lsmag_aniso = .true.) be evaluated with Smagorinsky-like non-linear dependence on the deformation rate, which is proportional to the norm of the strain tensor. With the Smagorinsky option, the viscosities are evalutated as

\nu_\parallel \rightarrow \max(c_\parallel|D|ds^2)

\nu_\perp \rightarrow \max(c_\perp|D|ds^2), u_\perp ds)

where

ds = min(dx,dy), |D| = \sqrt{2}|E| is the deformation rate, |E| is the norm of the strain tensor, c_\parallel and c_\perp are dimensionless coefficients of order 1, and u_\parallel and u_\perp are velocities associated with the grid Reynolds number which determine minimum background viscosities in regions where the nonlinear viscosities are too small to control grid-point noise. Typically

System Message: WARNING/2 (u_\parallel\` and :math:`u_\perp)

latex exited with error [stdout] This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./math.tex LaTeX2e <2015/01/01> Babel <3.9l> and hyphenation patterns for 79 languages loaded. (/usr/local/texlive/2015/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/local/texlive/2015/texmf-dist/tex/latex/base/size12.clo)) (/usr/local/texlive/2015/texmf-dist/tex/latex/base/inputenc.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/ucs/utf8x.def)) (/usr/local/texlive/2015/texmf-dist/tex/latex/ucs/ucs.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/ucs/data/uni-global.def)) (/usr/local/texlive/2015/texmf-dist/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?’ option. (/usr/local/texlive/2015/texmf-dist/tex/latex/amsmath/amstext.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/amsmath/amsgen.sty)) (/usr/local/texlive/2015/texmf-dist/tex/latex/amsmath/amsbsy.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/amsmath/amsopn.sty)) (/usr/local/texlive/2015/texmf-dist/tex/latex/amscls/amsthm.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/amsfonts/amssymb.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (/usr/local/texlive/2015/texmf-dist/tex/latex/anyfontsize/anyfontsize.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/tools/bm.sty) (./math.aux) (/usr/local/texlive/2015/texmf-dist/tex/latex/ucs/ucsencs.def) (/usr/local/texlive/2015/texmf-dist/tex/latex/amsfonts/umsa.fd) (/usr/local/texlive/2015/texmf-dist/tex/latex/amsfonts/umsb.fd) LaTeX Warning: Command \` invalid in math mode on input line 13. ! Please use \mathaccent for accents in math mode. \add@accent ...@spacefactor \spacefactor }\accent #1 #2\egroup \spacefactor ... l.13 \fontsize{12}{14}\selectfont $u_\parallel\` a nd :math:`u_\perp$ ! You can’t use `\spacefactor’ in math mode. \add@accent ...}\accent #1 #2\egroup \spacefactor \accent@spacefactor l.13 \fontsize{12}{14}\selectfont $u_\parallel\` a nd :math:`u_\perp$ [1] (./math.aux) ) (see the transcript file for additional information) Output written on math.dvi (1 page, 348 bytes). Transcript written on math.log.
are order 1 cm/s. Perpendicular Smagorinsky coefficients can be reduced using a latitudinally-dependent Gaussian function. The form of this function is governed by the three smag_lat parameters.

Todo

add link to &hmix_aniso_nml for Anisotropic viscosity namelist