New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Chap_LDF.tex in branches/2015/nemo_v3_6_STABLE/DOC/TexFiles/Chapters – NEMO

source: branches/2015/nemo_v3_6_STABLE/DOC/TexFiles/Chapters/Chap_LDF.tex @ 6993

Last change on this file since 6993 was 6993, checked in by nicolasmartin, 8 years ago

Add missing files and modifications from previous commit

File size: 29.2 KB
Line 
1\documentclass[NEMO_book]{subfiles}
2\begin{document}
3
4% ================================================================
5% Chapter ———  Lateral Ocean Physics (LDF)
6% ================================================================
7\chapter{Lateral Ocean Physics (LDF)}
8\label{LDF}
9\minitoc
10
11
12\newpage
13$\ $\newline    % force a new ligne
14
15
16The lateral physics terms in the momentum and tracer equations have been
17described in \S\ref{PE_zdf} and their discrete formulation in \S\ref{TRA_ldf} 
18and \S\ref{DYN_ldf}). In this section we further discuss each lateral physics option.
19Choosing one lateral physics scheme means for the user defining, (1) the space
20and time variations of the eddy coefficients ; (2) the direction along which the
21lateral diffusive fluxes are evaluated (model level, geopotential or isopycnal
22surfaces); and (3) the type of operator used (harmonic, or biharmonic operators,
23and for tracers only, eddy induced advection on tracers). These three aspects
24of the lateral diffusion are set through namelist parameters and CPP keys
25(see the \textit{\ngn{nam\_traldf}} and \textit{\ngn{nam\_dynldf}} below). Note
26that this chapter describes the default implementation of iso-neutral
27tracer mixing, and Griffies's implementation, which is used if
28\np{traldf\_grif}=true, is described in Appdx\ref{sec:triad}
29
30%-----------------------------------nam_traldf - nam_dynldf--------------------------------------------
31\namdisplay{namtra_ldf} 
32\namdisplay{namdyn_ldf} 
33%--------------------------------------------------------------------------------------------------------------
34
35
36% ================================================================
37% Lateral Mixing Coefficients
38% ================================================================
39\section [Lateral Mixing Coefficient (\textit{ldftra}, \textit{ldfdyn})]
40        {Lateral Mixing Coefficient (\mdl{ldftra}, \mdl{ldfdyn}) }
41\label{LDF_coef}
42
43
44Introducing a space variation in the lateral eddy mixing coefficients changes
45the model core memory requirement, adding up to four extra three-dimensional
46arrays for the geopotential or isopycnal second order operator applied to
47momentum. Six CPP keys control the space variation of eddy coefficients:
48three for momentum and three for tracer. The three choices allow:
49a space variation in the three space directions (\key{traldf\_c3d}\key{dynldf\_c3d}),
50in the horizontal plane (\key{traldf\_c2d}\key{dynldf\_c2d}),
51or in the vertical only (\key{traldf\_c1d}\key{dynldf\_c1d}).
52The default option is a constant value over the whole ocean on both momentum and tracers.
53   
54The number of additional arrays that have to be defined and the gridpoint
55position at which they are defined depend on both the space variation chosen
56and the type of operator used. The resulting eddy viscosity and diffusivity
57coefficients can be a function of more than one variable. Changes in the
58computer code when switching from one option to another have been
59minimized by introducing the eddy coefficients as statement functions
60(include file \hf{ldftra\_substitute} and \hf{ldfdyn\_substitute}). The functions
61are replaced by their actual meaning during the preprocessing step (CPP).
62The specification of the space variation of the coefficient is made in
63\mdl{ldftra} and \mdl{ldfdyn}, or more precisely in include files
64\textit{traldf\_cNd.h90} and \textit{dynldf\_cNd.h90}, with N=1, 2 or 3.
65The user can modify these include files as he/she wishes. The way the
66mixing coefficient are set in the reference version can be briefly described
67as follows:
68
69\subsubsection{Constant Mixing Coefficients (default option)}
70When none of the \textbf{key\_dynldf\_...} and \textbf{key\_traldf\_...} keys are
71defined, a constant value is used over the whole ocean for momentum and
72tracers, which is specified through the \np{rn\_ahm\_0\_lap} and \np{rn\_aht\_0} namelist
73parameters.
74
75\subsubsection{Vertically varying Mixing Coefficients (\key{traldf\_c1d} and \key{dynldf\_c1d})} 
76The 1D option is only available when using the $z$-coordinate with full step.
77Indeed in all the other types of vertical coordinate, the depth is a 3D function
78of (\textbf{i},\textbf{j},\textbf{k}) and therefore, introducing depth-dependent
79mixing coefficients will require 3D arrays. In the 1D option, a hyperbolic variation
80of the lateral mixing coefficient is introduced in which the surface value is
81\np{rn\_aht\_0} (\np{rn\_ahm\_0\_lap}), the bottom value is 1/4 of the surface value,
82and the transition takes place around z=300~m with a width of 300~m
83($i.e.$ both the depth and the width of the inflection point are set to 300~m).
84This profile is hard coded in file \hf{traldf\_c1d}, but can be easily modified by users.
85
86\subsubsection{Horizontally Varying Mixing Coefficients (\key{traldf\_c2d} and \key{dynldf\_c2d})}
87By default the horizontal variation of the eddy coefficient depends on the local mesh
88size and the type of operator used:
89\begin{equation} \label{Eq_title}
90  A_l = \left\{     
91   \begin{aligned}
92         & \frac{\max(e_1,e_2)}{e_{max}} A_o^l           & \text{for laplacian operator } \\
93         & \frac{\max(e_1,e_2)^{3}}{e_{max}^{3}} A_o^l          & \text{for bilaplacian operator } 
94   \end{aligned}    \right.
95\end{equation}
96where $e_{max}$ is the maximum of $e_1$ and $e_2$ taken over the whole masked
97ocean domain, and $A_o^l$ is the \np{rn\_ahm\_0\_lap} (momentum) or \np{rn\_aht\_0} (tracer)
98namelist parameter. This variation is intended to reflect the lesser need for subgrid
99scale eddy mixing where the grid size is smaller in the domain. It was introduced in
100the context of the DYNAMO modelling project \citep{Willebrand_al_PO01}.
101Note that such a grid scale dependance of mixing coefficients significantly increase
102the range of stability of model configurations presenting large changes in grid pacing
103such as global ocean models. Indeed, in such a case, a constant mixing coefficient
104can lead to a blow up of the model due to large coefficient compare to the smallest
105grid size (see \S\ref{STP_forward_imp}), especially when using a bilaplacian operator.
106
107Other formulations can be introduced by the user for a given configuration.
108For example, in the ORCA2 global ocean model (see Configurations), the laplacian
109viscosity operator uses \np{rn\_ahm\_0\_lap}~= 4.10$^4$ m$^2$/s poleward of 20\deg 
110north and south and decreases linearly to \np{rn\_aht\_0}~= 2.10$^3$ m$^2$/s
111at the equator \citep{Madec_al_JPO96, Delecluse_Madec_Bk00}. This modification
112can be found in routine \rou{ldf\_dyn\_c2d\_orca} defined in \mdl{ldfdyn\_c2d}.
113Similar modified horizontal variations can be found with the Antarctic or Arctic
114sub-domain options of ORCA2 and ORCA05 (see \&namcfg namelist).
115
116\subsubsection{Space Varying Mixing Coefficients (\key{traldf\_c3d} and \key{dynldf\_c3d})}
117
118The 3D space variation of the mixing coefficient is simply the combination of the
1191D and 2D cases, $i.e.$ a hyperbolic tangent variation with depth associated with
120a grid size dependence of the magnitude of the coefficient.
121
122\subsubsection{Space and Time Varying Mixing Coefficients}
123
124There are no default specifications of space and time varying mixing coefficient.  One
125available case is specific to the ORCA2 and ORCA05 global ocean configurations. It
126provides only a tracer mixing coefficient for eddy induced velocity (ORCA2) or both
127iso-neutral and eddy induced velocity (ORCA05) that depends on the local growth rate of
128baroclinic instability. This specification is actually used when an ORCA key
129and both \key{traldf\_eiv} and \key{traldf\_c2d} are defined.
130
131\subsubsection{Smagorinsky viscosity (\key{dynldf\_c3d} and \key{dynldf\_smag})}
132
133The \key{dynldf\_smag} key activates a 3D, time-varying viscosity that depends on the
134resolved motions. Following \citep{Smagorinsky_93} the viscosity coefficient is set
135proportional to a local deformation rate based on the horizontal shear and tension,
136namely:
137
138\begin{equation}
139A_{m_{Smag}} = \left(\frac{{\sf CM_{Smag}}}{\pi}\right)^2L^2\vert{D}\vert
140\end{equation}
141
142\noindent where the deformation rate $\vert{D}\vert$ is given by
143
144\begin{equation}
145\vert{D}\vert=\sqrt{\left({\frac{\partial{u}} {\partial{x}}}
146                         -{\frac{\partial{v}} {\partial{y}}}\right)^2
147                 +  \left({\frac{\partial{u}} {\partial{y}}}
148                         +{\frac{\partial{v}} {\partial{x}}}\right)^2} 
149\end{equation}
150
151\noindent and $L$ is the local gridscale given by:
152
153\begin{equation}
154L^2 = \frac{2{e_1}^2 {e_2}^2}{\left ( {e_1}^2 + {e_2}^2 \right )}
155\end{equation}
156
157\citep{Griffies_Hallberg_MWR00} suggest values in the range 2.2 to 4.0 of the coefficient
158$\sf CM_{Smag}$ for oceanic flows. This value is set via the \np{rn\_cmsmag\_1} namelist
159parameter. An additional parameter: \np{rn\_cmsh} is included in NEMO for experimenting
160with the contribution of the shear term. A value of 1.0 (the default) calculates the
161deformation rate as above; a value of 0.0 will discard the shear term entirely.
162
163For numerical stability, the calculated viscosity is bounded according to the following:
164
165\begin{equation}
166{\rm MIN}\left ({ L^2\over {8\Delta{t}}}, rn\_ahm\_m\_lap\right ) \geq A_{m_{Smag}} 
167                                                                  \geq rn\_ahm\_0\_lap
168\end{equation}
169
170\noindent with both parameters for the upper and lower bounds being provided via the
171indicated namelist parameters.
172
173\bigskip When $ln\_dynldf\_bilap = .true.$, a biharmonic version of the Smagorinsky
174viscosity is also available which sets a coefficient for the biharmonic viscosity as:
175
176\begin{equation}
177B_{m_{Smag}} = - \left(\frac{{\sf CM_{bSmag}}}{\pi}\right)^2 {L^4\over 8}\vert{D}\vert
178\end{equation}
179
180\noindent which is bounded according to:
181
182\begin{equation}
183{\rm MAX}\left (-{ L^4\over {64\Delta{t}}}, rn\_ahm\_m\_blp\right ) \leq B_{m_{Smag}} 
184                                                                    \leq rn\_ahm\_0\_blp
185\end{equation}
186
187\noindent Note the reversal of the inequalities here because NEMO requires the biharmonic
188coefficients as negative numbers. $\sf CM_{bSmag}$ is set via the \np{rn\_cmsmag\_2}
189namelist parameter and the bounding values have corresponding entries in the namelist too.
190
191\bigskip The current implementation in NEMO also allows for 3D, time-varying diffusivities
192to be set using the Smagorinsky approach. Users should note that this option is not
193recommended for many applications since diffusivities will tend to be largest near
194boundaries (where shears are greatest) leading to spurious upwellings
195(\citep{Griffies_Bk04}, chapter 18.3.4). Nevertheless the option is there for those
196wishing to experiment. This choice requires both \key{traldf\_c3d} and \key{traldf\_smag}
197and uses the \np{rn\_chsmag} (${\sf CH_{Smag}}$), \np{rn\_smsh} and \np{rn\_aht\_m}
198namelist parameters in an analogous way to \np{rn\_cmsmag\_1}, \np{rn\_cmsh} and
199\np{rn\_ahm\_m\_lap} (see above) to set the diffusion coefficient:
200
201\begin{equation}
202A_{h_{Smag}} = \left(\frac{{\sf CH_{Smag}}}{\pi}\right)^2L^2\vert{D}\vert
203\end{equation}
204
205 
206For numerical stability, the calculated diffusivity is bounded according to the following:
207
208\begin{equation}
209{\rm MIN}\left ({ L^2\over {8\Delta{t}}}, rn\_aht\_m\right ) \geq A_{h_{Smag}} 
210                                                             \geq rn\_aht\_0
211\end{equation}
212
213
214
215$\ $\newline    % force a new ligne
216
217The following points are relevant when the eddy coefficient varies spatially:
218
219(1) the momentum diffusion operator acting along model level surfaces is
220written in terms of curl and divergent components of the horizontal current
221(see \S\ref{PE_ldf}). Although the eddy coefficient could be set to different values
222in these two terms, this option is not currently available.
223
224(2) with an horizontally varying viscosity, the quadratic integral constraints
225on enstrophy and on the square of the horizontal divergence for operators
226acting along model-surfaces are no longer satisfied
227(Appendix~\ref{Apdx_dynldf_properties}).
228
229(3) for isopycnal diffusion on momentum or tracers, an additional purely
230horizontal background diffusion with uniform coefficient can be added by
231setting a non zero value of \np{rn\_ahmb\_0} or \np{rn\_ahtb\_0}, a background horizontal
232eddy viscosity or diffusivity coefficient (namelist parameters whose default
233values are $0$). However, the technique used to compute the isopycnal
234slopes is intended to get rid of such a background diffusion, since it introduces
235spurious diapycnal diffusion (see \S\ref{LDF_slp}).
236
237(4) when an eddy induced advection term is used (\key{traldf\_eiv}), $A^{eiv}$,
238the eddy induced coefficient has to be defined. Its space variations are controlled
239by the same CPP variable as for the eddy diffusivity coefficient ($i.e.$ 
240\textbf{key\_traldf\_cNd}).
241
242(5) the eddy coefficient associated with a biharmonic operator must be set to a \emph{negative} value.
243
244(6) it is possible to use both the laplacian and biharmonic operators concurrently.
245
246(7) it is possible to run without explicit lateral diffusion on momentum (\np{ln\_dynldf\_lap} =
247\np{ln\_dynldf\_bilap} = false). This is recommended when using the UBS advection
248scheme on momentum (\np{ln\_dynadv\_ubs} = true, see \ref{DYN_adv_ubs})
249and can be useful for testing purposes.
250
251% ================================================================
252% Direction of lateral Mixing
253% ================================================================
254\section  [Direction of Lateral Mixing (\textit{ldfslp})]
255      {Direction of Lateral Mixing (\mdl{ldfslp})}
256\label{LDF_slp}
257
258%%%
259\gmcomment{  we should emphasize here that the implementation is a rather old one.
260Better work can be achieved by using \citet{Griffies_al_JPO98, Griffies_Bk04} iso-neutral scheme. }
261
262A direction for lateral mixing has to be defined when the desired operator does
263not act along the model levels. This occurs when $(a)$ horizontal mixing is
264required on tracer or momentum (\np{ln\_traldf\_hor} or \np{ln\_dynldf\_hor})
265in $s$- or mixed $s$-$z$- coordinates, and $(b)$ isoneutral mixing is required
266whatever the vertical coordinate is. This direction of mixing is defined by its
267slopes in the \textbf{i}- and \textbf{j}-directions at the face of the cell of the
268quantity to be diffused. For a tracer, this leads to the following four slopes :
269$r_{1u}$, $r_{1w}$, $r_{2v}$, $r_{2w}$ (see \eqref{Eq_tra_ldf_iso}), while
270for momentum the slopes are  $r_{1t}$, $r_{1uw}$, $r_{2f}$, $r_{2uw}$ for
271$u$ and  $r_{1f}$, $r_{1vw}$, $r_{2t}$, $r_{2vw}$ for $v$.
272
273%gm% add here afigure of the slope in i-direction
274
275\subsection{slopes for tracer geopotential mixing in the $s$-coordinate}
276
277In $s$-coordinates, geopotential mixing ($i.e.$ horizontal mixing) $r_1$ and
278$r_2$ are the slopes between the geopotential and computational surfaces.
279Their discrete formulation is found by locally solving \eqref{Eq_tra_ldf_iso} 
280when the diffusive fluxes in the three directions are set to zero and $T$ is
281assumed to be horizontally uniform, $i.e.$ a linear function of $z_T$, the
282depth of a $T$-point.
283%gm { Steven : My version is obviously wrong since I'm left with an arbitrary constant which is the local vertical temperature gradient}
284
285\begin{equation} \label{Eq_ldfslp_geo}
286\begin{aligned}
287 r_{1u} &= \frac{e_{3u}}{ \left( e_{1u}\;\overline{\overline{e_{3w}}}^{\,i+1/2,\,k} \right)}
288           \;\delta_{i+1/2}[z_t]
289      &\approx \frac{1}{e_{1u}}\; \delta_{i+1/2}[z_t]
290\\
291 r_{2v} &= \frac{e_{3v}}{\left( e_{2v}\;\overline{\overline{e_{3w}}}^{\,j+1/2,\,k} \right)} 
292           \;\delta_{j+1/2} [z_t]
293      &\approx \frac{1}{e_{2v}}\; \delta_{j+1/2}[z_t]
294\\
295 r_{1w} &= \frac{1}{e_{1w}}\;\overline{\overline{\delta_{i+1/2}[z_t]}}^{\,i,\,k+1/2}
296      &\approx \frac{1}{e_{1w}}\; \delta_{i+1/2}[z_{uw}]
297 \\
298 r_{2w} &= \frac{1}{e_{2w}}\;\overline{\overline{\delta_{j+1/2}[z_t]}}^{\,j,\,k+1/2}
299      &\approx \frac{1}{e_{2w}}\; \delta_{j+1/2}[z_{vw}]
300 \\
301\end{aligned}
302\end{equation}
303
304%gm%  caution I'm not sure the simplification was a good idea!
305
306These slopes are computed once in \rou{ldfslp\_init} when \np{ln\_sco}=True,
307and either \np{ln\_traldf\_hor}=True or \np{ln\_dynldf\_hor}=True.
308
309\subsection{Slopes for tracer iso-neutral mixing}\label{LDF_slp_iso}
310In iso-neutral mixing  $r_1$ and $r_2$ are the slopes between the iso-neutral
311and computational surfaces. Their formulation does not depend on the vertical
312coordinate used. Their discrete formulation is found using the fact that the
313diffusive fluxes of locally referenced potential density ($i.e.$ $in situ$ density)
314vanish. So, substituting $T$ by $\rho$ in \eqref{Eq_tra_ldf_iso} and setting the
315diffusive fluxes in the three directions to zero leads to the following definition for
316the neutral slopes:
317
318\begin{equation} \label{Eq_ldfslp_iso}
319\begin{split}
320 r_{1u} &= \frac{e_{3u}}{e_{1u}}\; \frac{\delta_{i+1/2}[\rho]}
321                        {\overline{\overline{\delta_{k+1/2}[\rho]}}^{\,i+1/2,\,k}}
322\\
323 r_{2v} &= \frac{e_{3v}}{e_{2v}}\; \frac{\delta_{j+1/2}\left[\rho \right]}
324                        {\overline{\overline{\delta_{k+1/2}[\rho]}}^{\,j+1/2,\,k}}
325\\
326 r_{1w} &= \frac{e_{3w}}{e_{1w}}\; 
327         \frac{\overline{\overline{\delta_{i+1/2}[\rho]}}^{\,i,\,k+1/2}}
328             {\delta_{k+1/2}[\rho]}
329\\
330 r_{2w} &= \frac{e_{3w}}{e_{2w}}\; 
331         \frac{\overline{\overline{\delta_{j+1/2}[\rho]}}^{\,j,\,k+1/2}}
332             {\delta_{k+1/2}[\rho]}
333\\
334\end{split}
335\end{equation}
336
337%gm% rewrite this as the explanation is not very clear !!!
338%In practice, \eqref{Eq_ldfslp_iso} is of little help in evaluating the neutral surface slopes. Indeed, for an unsimplified equation of state, the density has a strong dependancy on pressure (here approximated as the depth), therefore applying \eqref{Eq_ldfslp_iso} using the $in situ$ density, $\rho$, computed at T-points leads to a flattening of slopes as the depth increases. This is due to the strong increase of the $in situ$ density with depth.
339
340%By definition, neutral surfaces are tangent to the local $in situ$ density \citep{McDougall1987}, therefore in \eqref{Eq_ldfslp_iso}, all the derivatives have to be evaluated at the same local pressure (which in decibars is approximated by the depth in meters).
341
342%In the $z$-coordinate, the derivative of the  \eqref{Eq_ldfslp_iso} numerator is evaluated at the same depth \nocite{as what?} ($T$-level, which is the same as the $u$- and $v$-levels), so  the $in situ$ density can be used for its evaluation.
343
344As the mixing is performed along neutral surfaces, the gradient of $\rho$ in
345\eqref{Eq_ldfslp_iso} has to be evaluated at the same local pressure (which,
346in decibars, is approximated by the depth in meters in the model). Therefore
347\eqref{Eq_ldfslp_iso} cannot be used as such, but further transformation is
348needed depending on the vertical coordinate used:
349
350\begin{description}
351
352\item[$z$-coordinate with full step : ] in \eqref{Eq_ldfslp_iso} the densities
353appearing in the $i$ and $j$ derivatives  are taken at the same depth, thus
354the $in situ$ density can be used. This is not the case for the vertical
355derivatives: $\delta_{k+1/2}[\rho]$ is replaced by $-\rho N^2/g$, where $N^2$ 
356is the local Brunt-Vais\"{a}l\"{a} frequency evaluated following
357\citet{McDougall1987} (see \S\ref{TRA_bn2}).
358
359\item[$z$-coordinate with partial step : ] this case is identical to the full step
360case except that at partial step level, the \emph{horizontal} density gradient
361is evaluated as described in \S\ref{TRA_zpshde}.
362
363\item[$s$- or hybrid $s$-$z$- coordinate : ] in the current release of \NEMO,
364iso-neutral mixing is only employed for $s$-coordinates if the
365Griffies scheme is used (\np{traldf\_grif}=true; see Appdx \ref{sec:triad}).
366In other words, iso-neutral mixing will only be accurately represented with a
367linear equation of state (\np{nn\_eos}=1 or 2). In the case of a "true" equation
368of state, the evaluation of $i$ and $j$ derivatives in \eqref{Eq_ldfslp_iso} 
369will include a pressure dependent part, leading to the wrong evaluation of
370the neutral slopes.
371
372%gm%
373Note: The solution for $s$-coordinate passes trough the use of different
374(and better) expression for the constraint on iso-neutral fluxes. Following
375\citet{Griffies_Bk04}, instead of specifying directly that there is a zero neutral
376diffusive flux of locally referenced potential density, we stay in the $T$-$S$ 
377plane and consider the balance between the neutral direction diffusive fluxes
378of potential temperature and salinity:
379\begin{equation}
380\alpha \ \textbf{F}(T) = \beta \ \textbf{F}(S)
381\end{equation}
382%gm{  where vector F is ....}
383
384This constraint leads to the following definition for the slopes:
385
386\begin{equation} \label{Eq_ldfslp_iso2}
387\begin{split}
388 r_{1u} &= \frac{e_{3u}}{e_{1u}}\; \frac
389      {\alpha_u \;\delta_{i+1/2}[T] - \beta_u \;\delta_{i+1/2}[S]}
390      {\alpha_u \;\overline{\overline{\delta_{k+1/2}[T]}}^{\,i+1/2,\,k}
391       -\beta_\;\overline{\overline{\delta_{k+1/2}[S]}}^{\,i+1/2,\,k} }
392\\
393 r_{2v} &= \frac{e_{3v}}{e_{2v}}\; \frac
394      {\alpha_v \;\delta_{j+1/2}[T] - \beta_v \;\delta_{j+1/2}[S]}
395      {\alpha_v \;\overline{\overline{\delta_{k+1/2}[T]}}^{\,j+1/2,\,k}
396       -\beta_\;\overline{\overline{\delta_{k+1/2}[S]}}^{\,j+1/2,\,k} }
397\\
398 r_{1w} &= \frac{e_{3w}}{e_{1w}}\; \frac
399      {\alpha_w \;\overline{\overline{\delta_{i+1/2}[T]}}^{\,i,\,k+1/2}
400       -\beta_\;\overline{\overline{\delta_{i+1/2}[S]}}^{\,i,\,k+1/2} }
401      {\alpha_w \;\delta_{k+1/2}[T] - \beta_w \;\delta_{k+1/2}[S]}
402\\
403 r_{2w} &= \frac{e_{3w}}{e_{2w}}\; \frac
404      {\alpha_w \;\overline{\overline{\delta_{j+1/2}[T]}}^{\,j,\,k+1/2}
405       -\beta_\;\overline{\overline{\delta_{j+1/2}[S]}}^{\,j,\,k+1/2} }
406      {\alpha_w \;\delta_{k+1/2}[T] - \beta_w \;\delta_{k+1/2}[S]}
407\\
408\end{split}
409\end{equation}
410where $\alpha$ and $\beta$, the thermal expansion and saline contraction
411coefficients introduced in \S\ref{TRA_bn2}, have to be evaluated at the three
412velocity points. In order to save computation time, they should be approximated
413by the mean of their values at $T$-points (for example in the case of $\alpha$
414$\alpha_u=\overline{\alpha_T}^{i+1/2}$$\alpha_v=\overline{\alpha_T}^{j+1/2}$ 
415and $\alpha_w=\overline{\alpha_T}^{k+1/2}$).
416
417Note that such a formulation could be also used in the $z$-coordinate and
418$z$-coordinate with partial steps cases.
419
420\end{description}
421
422This implementation is a rather old one. It is similar to the one
423proposed by Cox [1987], except for the background horizontal
424diffusion. Indeed, the Cox implementation of isopycnal diffusion in
425GFDL-type models requires a minimum background horizontal diffusion
426for numerical stability reasons.  To overcome this problem, several
427techniques have been proposed in which the numerical schemes of the
428ocean model are modified \citep{Weaver_Eby_JPO97,
429  Griffies_al_JPO98}. Griffies's scheme is now available in \NEMO if
430\np{traldf\_grif\_iso} is set true; see Appdx \ref{sec:triad}. Here,
431another strategy is presented \citep{Lazar_PhD97}: a local
432filtering of the iso-neutral slopes (made on 9 grid-points) prevents
433the development of grid point noise generated by the iso-neutral
434diffusion operator (Fig.~\ref{Fig_LDF_ZDF1}). This allows an
435iso-neutral diffusion scheme without additional background horizontal
436mixing. This technique can be viewed as a diffusion operator that acts
437along large-scale (2~$\Delta$x) \gmcomment{2deltax doesnt seem very
438  large scale} iso-neutral surfaces. The diapycnal diffusion required
439for numerical stability is thus minimized and its net effect on the
440flow is quite small when compared to the effect of an horizontal
441background mixing.
442
443Nevertheless, this iso-neutral operator does not ensure that variance cannot increase,
444contrary to the \citet{Griffies_al_JPO98} operator which has that property.
445
446%>>>>>>>>>>>>>>>>>>>>>>>>>>>>
447\begin{figure}[!ht]      \begin{center}
448\includegraphics[width=0.70\textwidth]{Fig_LDF_ZDF1}
449\caption {    \label{Fig_LDF_ZDF1}
450averaging procedure for isopycnal slope computation.}
451\end{center}    \end{figure}
452%>>>>>>>>>>>>>>>>>>>>>>>>>>>>
453
454%There are three additional questions about the slope calculation.
455%First the expression for the rotation tensor has been obtain assuming the "small slope" approximation, so a bound has to be imposed on slopes.
456%Second, numerical stability issues also require a bound on slopes.
457%Third, the question of boundary condition specified on slopes...
458
459%from griffies: chapter 13.1....
460
461
462
463% In addition and also for numerical stability reasons \citep{Cox1987, Griffies_Bk04},
464% the slopes are bounded by $1/100$ everywhere. This limit is decreasing linearly
465% to zero fom $70$ meters depth and the surface (the fact that the eddies "feel" the
466% surface motivates this flattening of isopycnals near the surface).
467
468For numerical stability reasons \citep{Cox1987, Griffies_Bk04}, the slopes must also
469be bounded by $1/100$ everywhere. This constraint is applied in a piecewise linear
470fashion, increasing from zero at the surface to $1/100$ at $70$ metres and thereafter
471decreasing to zero at the bottom of the ocean. (the fact that the eddies "feel" the
472surface motivates this flattening of isopycnals near the surface).
473
474%>>>>>>>>>>>>>>>>>>>>>>>>>>>>
475\begin{figure}[!ht]     \begin{center}
476\includegraphics[width=0.70\textwidth]{Fig_eiv_slp}
477\caption {     \label{Fig_eiv_slp}
478Vertical profile of the slope used for lateral mixing in the mixed layer :
479\textit{(a)} in the real ocean the slope is the iso-neutral slope in the ocean interior,
480which has to be adjusted at the surface boundary (i.e. it must tend to zero at the
481surface since there is no mixing across the air-sea interface: wall boundary
482condition). Nevertheless, the profile between the surface zero value and the interior
483iso-neutral one is unknown, and especially the value at the base of the mixed layer ;
484\textit{(b)} profile of slope using a linear tapering of the slope near the surface and
485imposing a maximum slope of 1/100 ; \textit{(c)} profile of slope actually used in
486\NEMO: a linear decrease of the slope from zero at the surface to its ocean interior
487value computed just below the mixed layer. Note the huge change in the slope at the
488base of the mixed layer between  \textit{(b)}  and \textit{(c)}.}
489\end{center}   \end{figure}
490%>>>>>>>>>>>>>>>>>>>>>>>>>>>>
491
492\colorbox{yellow}{add here a discussion about the flattening of the slopes, vs  tapering the coefficient.}
493
494\subsection{slopes for momentum iso-neutral mixing}
495
496The iso-neutral diffusion operator on momentum is the same as the one used on
497tracers but applied to each component of the velocity separately (see
498\eqref{Eq_dyn_ldf_iso} in section~\ref{DYN_ldf_iso}). The slopes between the
499surface along which the diffusion operator acts and the surface of computation
500($z$- or $s$-surfaces) are defined at $T$-, $f$-, and \textit{uw}- points for the
501$u$-component, and $T$-, $f$- and \textit{vw}- points for the $v$-component.
502They are computed from the slopes used for tracer diffusion, $i.e.$ 
503\eqref{Eq_ldfslp_geo} and \eqref{Eq_ldfslp_iso} :
504
505\begin{equation} \label{Eq_ldfslp_dyn}
506\begin{aligned}
507&r_{1t}\ \ = \overline{r_{1u}}^{\,i}       &&&    r_{1f}\ \ &= \overline{r_{1u}}^{\,i+1/2} \\
508&r_{2f} \ \ = \overline{r_{2v}}^{\,j+1/2} &&&   r_{2t}\ &= \overline{r_{2v}}^{\,j} \\
509&r_{1uw}  = \overline{r_{1w}}^{\,i+1/2} &&\ \ \text{and} \ \ &   r_{1vw}&= \overline{r_{1w}}^{\,j+1/2} \\
510&r_{2uw}= \overline{r_{2w}}^{\,j+1/2} &&&         r_{2vw}&= \overline{r_{2w}}^{\,j+1/2}\\
511\end{aligned}
512\end{equation}
513
514The major issue remaining is in the specification of the boundary conditions.
515The same boundary conditions are chosen as those used for lateral
516diffusion along model level surfaces, i.e. using the shear computed along
517the model levels and with no additional friction at the ocean bottom (see
518\S\ref{LBC_coast}).
519
520
521% ================================================================
522% Eddy Induced Mixing
523% ================================================================
524\section  [Eddy Induced Velocity (\textit{traadv\_eiv}, \textit{ldfeiv})]
525      {Eddy Induced Velocity (\mdl{traadv\_eiv}, \mdl{ldfeiv})}
526\label{LDF_eiv}
527
528When Gent and McWilliams [1990] diffusion is used (\key{traldf\_eiv} defined),
529an eddy induced tracer advection term is added, the formulation of which
530depends on the slopes of iso-neutral surfaces. Contrary to the case of iso-neutral
531mixing, the slopes used here are referenced to the geopotential surfaces, $i.e.$ 
532\eqref{Eq_ldfslp_geo} is used in $z$-coordinates, and the sum \eqref{Eq_ldfslp_geo} 
533+ \eqref{Eq_ldfslp_iso} in $s$-coordinates. The eddy induced velocity is given by:
534\begin{equation} \label{Eq_ldfeiv}
535\begin{split}
536 u^* & = \frac{1}{e_{2u}e_{3u}}\; \delta_k \left[e_{2u} \, A_{uw}^{eiv} \; \overline{r_{1w}}^{\,i+1/2} \right]\\
537v^* & = \frac{1}{e_{1u}e_{3v}}\; \delta_k \left[e_{1v} \, A_{vw}^{eiv} \; \overline{r_{2w}}^{\,j+1/2} \right]\\
538w^* & = \frac{1}{e_{1w}e_{2w}}\; \left\{ \delta_i \left[e_{2u} \, A_{uw}^{eiv} \; \overline{r_{1w}}^{\,i+1/2} \right] + \delta_j \left[e_{1v} \, A_{vw}^{eiv} \; \overline{r_{2w}}^{\,j+1/2} \right] \right\} \\
539\end{split}
540\end{equation}
541where $A^{eiv}$ is the eddy induced velocity coefficient whose value is set
542through \np{rn\_aeiv}, a \textit{nam\_traldf} namelist parameter.
543The three components of the eddy induced velocity are computed and add
544to the eulerian velocity in \mdl{traadv\_eiv}. This has been preferred to a
545separate computation of the advective trends associated with the eiv velocity,
546since it allows us to take advantage of all the advection schemes offered for
547the tracers (see \S\ref{TRA_adv}) and not just the $2^{nd}$ order advection
548scheme as in previous releases of OPA \citep{Madec1998}. This is particularly
549useful for passive tracers where \emph{positivity} of the advection scheme is
550of paramount importance.
551
552At the surface, lateral and bottom boundaries, the eddy induced velocity,
553and thus the advective eddy fluxes of heat and salt, are set to zero.
554
555
556
557
558
559\end{document}
Note: See TracBrowser for help on using the repository browser.