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 NEMO/trunk/doc/latex/NEMO/subfiles – NEMO

source: NEMO/trunk/doc/latex/NEMO/subfiles/chap_LDF.tex @ 11596

Last change on this file since 11596 was 11596, checked in by nicolasmartin, 5 years ago

Application of some coding rules

  • Replace comments before sectioning cmds by a single line of 100 characters long to display when every line should break
  • Replace multi blank lines by one single blank line
  • For list environment, put \item, label and content on the same line
  • Remove \newpage and comments line around figure envs
File size: 31.6 KB
Line 
1\documentclass[../main/NEMO_manual]{subfiles}
2
3\begin{document}
4
5\chapter{Lateral Ocean Physics (LDF)}
6\label{chap:LDF}
7
8\chaptertoc
9
10The lateral physics terms in the momentum and tracer equations have been described in \autoref{eq:MB_zdf} and
11their discrete formulation in \autoref{sec:TRA_ldf} and \autoref{sec:DYN_ldf}).
12In this section we further discuss each lateral physics option.
13Choosing one lateral physics scheme means for the user defining,
14(1) the type of operator used (laplacian or bilaplacian operators, or no lateral mixing term);
15(2) the direction along which the lateral diffusive fluxes are evaluated
16(model level, geopotential or isopycnal surfaces); and
17(3) the space and time variations of the eddy coefficients.
18These three aspects of the lateral diffusion are set through namelist parameters
19(see the \nam{tra_ldf}{tra\_ldf} and \nam{dyn_ldf}{dyn\_ldf} below).
20Note that this chapter describes the standard implementation of iso-neutral tracer mixing.
21Griffies's implementation, which is used if \np[=.true.]{ln_traldf_triad}{ln\_traldf\_triad},
22is described in \autoref{apdx:TRIADS}
23
24%-----------------------------------namtra_ldf - namdyn_ldf--------------------------------------------
25
26%--------------------------------------------------------------------------------------------------------------
27
28\section[Lateral mixing operators]{Lateral mixing operators}
29\label{sec:LDF_op}
30We remind here the different lateral mixing operators that can be used. Further details can be found in \autoref{subsec:TRA_ldf_op} and  \autoref{sec:DYN_ldf}.
31
32\subsection[No lateral mixing (\forcode{ln_traldf_OFF} \& \forcode{ln_dynldf_OFF})]{No lateral mixing (\protect\np{ln_traldf_OFF}{ln\_traldf\_OFF} \& \protect\np{ln_dynldf_OFF}{ln\_dynldf\_OFF})}
33
34It is possible to run without explicit lateral diffusion on tracers (\protect\np[=.true.]{ln_traldf_OFF}{ln\_traldf\_OFF}) and/or
35momentum (\protect\np[=.true.]{ln_dynldf_OFF}{ln\_dynldf\_OFF}). The latter option is even recommended if using the
36UBS advection scheme on momentum (\np[=.true.]{ln_dynadv_ubs}{ln\_dynadv\_ubs},
37see \autoref{subsec:DYN_adv_ubs}) and can be useful for testing purposes.
38
39\subsection[Laplacian mixing (\forcode{ln_traldf_lap} \& \forcode{ln_dynldf_lap})]{Laplacian mixing (\protect\np{ln_traldf_lap}{ln\_traldf\_lap} \& \protect\np{ln_dynldf_lap}{ln\_dynldf\_lap})}
40Setting \protect\np[=.true.]{ln_traldf_lap}{ln\_traldf\_lap} and/or \protect\np[=.true.]{ln_dynldf_lap}{ln\_dynldf\_lap} enables
41a second order diffusion on tracers and momentum respectively. Note that in \NEMO\ 4, one can not combine
42Laplacian and Bilaplacian operators for the same variable.
43
44\subsection[Bilaplacian mixing (\forcode{ln_traldf_blp} \& \forcode{ln_dynldf_blp})]{Bilaplacian mixing (\protect\np{ln_traldf_blp}{ln\_traldf\_blp} \& \protect\np{ln_dynldf_blp}{ln\_dynldf\_blp})}
45Setting \protect\np[=.true.]{ln_traldf_blp}{ln\_traldf\_blp} and/or \protect\np[=.true.]{ln_dynldf_blp}{ln\_dynldf\_blp} enables
46a fourth order diffusion on tracers and momentum respectively. It is implemented by calling the above Laplacian operator twice.
47We stress again that from \NEMO\ 4, the simultaneous use Laplacian and Bilaplacian operators is not allowed.
48
49\section[Direction of lateral mixing (\textit{ldfslp.F90})]{Direction of lateral mixing (\protect\mdl{ldfslp})}
50\label{sec:LDF_slp}
51
52%%%
53\gmcomment{
54  we should emphasize here that the implementation is a rather old one.
55  Better work can be achieved by using \citet{griffies.gnanadesikan.ea_JPO98, griffies_bk04} iso-neutral scheme.
56}
57
58A direction for lateral mixing has to be defined when the desired operator does not act along the model levels.
59This occurs when $(a)$ horizontal mixing is required on tracer or momentum
60(\np{ln_traldf_hor}{ln\_traldf\_hor} or \np{ln_dynldf_hor}{ln\_dynldf\_hor}) in $s$- or mixed $s$-$z$- coordinates,
61and $(b)$ isoneutral mixing is required whatever the vertical coordinate is.
62This direction of mixing is defined by its slopes in the \textbf{i}- and \textbf{j}-directions at the face of
63the cell of the quantity to be diffused.
64For a tracer, this leads to the following four slopes:
65$r_{1u}$, $r_{1w}$, $r_{2v}$, $r_{2w}$ (see \autoref{eq:TRA_ldf_iso}),
66while for momentum the slopes are  $r_{1t}$, $r_{1uw}$, $r_{2f}$, $r_{2uw}$ for $u$ and
67$r_{1f}$, $r_{1vw}$, $r_{2t}$, $r_{2vw}$ for $v$.
68
69%gm% add here afigure of the slope in i-direction
70
71\subsection{Slopes for tracer geopotential mixing in the $s$-coordinate}
72
73In $s$-coordinates, geopotential mixing (\ie\ horizontal mixing) $r_1$ and $r_2$ are the slopes between
74the geopotential and computational surfaces.
75Their discrete formulation is found by locally solving \autoref{eq:TRA_ldf_iso} when
76the diffusive fluxes in the three directions are set to zero and $T$ is assumed to be horizontally uniform,
77\ie\ a linear function of $z_T$, the depth of a $T$-point.
78%gm { Steven : My version is obviously wrong since I'm left with an arbitrary constant which is the local vertical temperature gradient}
79
80\begin{equation}
81  \label{eq:LDF_slp_geo}
82  \begin{aligned}
83    r_{1u} &= \frac{e_{3u}}{ \left( e_{1u}\;\overline{\overline{e_{3w}}}^{\,i+1/2,\,k} \right)}
84    \;\delta_{i+1/2}[z_t]
85    &\approx \frac{1}{e_{1u}}\; \delta_{i+1/2}[z_t] \ \ \ \\
86    r_{2v} &= \frac{e_{3v}}{\left( e_{2v}\;\overline{\overline{e_{3w}}}^{\,j+1/2,\,k} \right)}
87    \;\delta_{j+1/2} [z_t]
88    &\approx \frac{1}{e_{2v}}\; \delta_{j+1/2}[z_t] \ \ \ \\
89    r_{1w} &= \frac{1}{e_{1w}}\;\overline{\overline{\delta_{i+1/2}[z_t]}}^{\,i,\,k+1/2}
90    &\approx \frac{1}{e_{1w}}\; \delta_{i+1/2}[z_{uw}\\
91    r_{2w} &= \frac{1}{e_{2w}}\;\overline{\overline{\delta_{j+1/2}[z_t]}}^{\,j,\,k+1/2}
92    &\approx \frac{1}{e_{2w}}\; \delta_{j+1/2}[z_{vw}]
93  \end{aligned}
94\end{equation}
95
96%gm%  caution I'm not sure the simplification was a good idea!
97
98These slopes are computed once in \rou{ldf\_slp\_init} when \np[=.true.]{ln_sco}{ln\_sco},
99and either \np[=.true.]{ln_traldf_hor}{ln\_traldf\_hor} or \np[=.true.]{ln_dynldf_hor}{ln\_dynldf\_hor}.
100
101\subsection{Slopes for tracer iso-neutral mixing}
102\label{subsec:LDF_slp_iso}
103
104In iso-neutral mixing  $r_1$ and $r_2$ are the slopes between the iso-neutral and computational surfaces.
105Their formulation does not depend on the vertical coordinate used.
106Their discrete formulation is found using the fact that the diffusive fluxes of
107locally referenced potential density (\ie\ $in situ$ density) vanish.
108So, substituting $T$ by $\rho$ in \autoref{eq:TRA_ldf_iso} and setting the diffusive fluxes in
109the three directions to zero leads to the following definition for the neutral slopes:
110
111\begin{equation}
112  \label{eq:LDF_slp_iso}
113  \begin{split}
114    r_{1u} &= \frac{e_{3u}}{e_{1u}}\; \frac{\delta_{i+1/2}[\rho]}
115    {\overline{\overline{\delta_{k+1/2}[\rho]}}^{\,i+1/2,\,k}} \\
116    r_{2v} &= \frac{e_{3v}}{e_{2v}}\; \frac{\delta_{j+1/2}\left[\rho \right]}
117    {\overline{\overline{\delta_{k+1/2}[\rho]}}^{\,j+1/2,\,k}} \\
118    r_{1w} &= \frac{e_{3w}}{e_{1w}}\;
119    \frac{\overline{\overline{\delta_{i+1/2}[\rho]}}^{\,i,\,k+1/2}}
120    {\delta_{k+1/2}[\rho]} \\
121    r_{2w} &= \frac{e_{3w}}{e_{2w}}\;
122    \frac{\overline{\overline{\delta_{j+1/2}[\rho]}}^{\,j,\,k+1/2}}
123    {\delta_{k+1/2}[\rho]}
124  \end{split}
125\end{equation}
126
127%gm% rewrite this as the explanation is not very clear !!!
128%In practice, \autoref{eq:LDF_slp_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 \autoref{eq:LDF_slp_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.
129
130%By definition, neutral surfaces are tangent to the local $in situ$ density \citep{mcdougall_JPO87}, therefore in \autoref{eq:LDF_slp_iso}, all the derivatives have to be evaluated at the same local pressure (which in decibars is approximated by the depth in meters).
131
132%In the $z$-coordinate, the derivative of the  \autoref{eq:LDF_slp_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.
133
134As the mixing is performed along neutral surfaces, the gradient of $\rho$ in \autoref{eq:LDF_slp_iso} has to
135be evaluated at the same local pressure
136(which, in decibars, is approximated by the depth in meters in the model).
137Therefore \autoref{eq:LDF_slp_iso} cannot be used as such,
138but further transformation is needed depending on the vertical coordinate used:
139
140\begin{description}
141
142\item [$z$-coordinate with full step: ]
143  in \autoref{eq:LDF_slp_iso} the densities appearing in the $i$ and $j$ derivatives  are taken at the same depth,
144  thus the $in situ$ density can be used.
145  This is not the case for the vertical derivatives: $\delta_{k+1/2}[\rho]$ is replaced by $-\rho N^2/g$,
146  where $N^2$ is the local Brunt-Vais\"{a}l\"{a} frequency evaluated following \citet{mcdougall_JPO87}
147  (see \autoref{subsec:TRA_bn2}).
148
149\item [$z$-coordinate with partial step: ]
150  this case is identical to the full step case except that at partial step level,
151  the \emph{horizontal} density gradient is evaluated as described in \autoref{sec:TRA_zpshde}.
152
153\item [$s$- or hybrid $s$-$z$- coordinate: ]
154  in the current release of \NEMO, iso-neutral mixing is only employed for $s$-coordinates if
155  the Griffies scheme is used (\np[=.true.]{ln_traldf_triad}{ln\_traldf\_triad};
156  see \autoref{apdx:TRIADS}).
157  In other words, iso-neutral mixing will only be accurately represented with a linear equation of state
158  (\np[=.true.]{ln_seos}{ln\_seos}).
159  In the case of a "true" equation of state, the evaluation of $i$ and $j$ derivatives in \autoref{eq:LDF_slp_iso}
160  will include a pressure dependent part, leading to the wrong evaluation of the neutral slopes.
161
162%gm%
163  Note: The solution for $s$-coordinate passes trough the use of different (and better) expression for
164  the constraint on iso-neutral fluxes.
165  Following \citet{griffies_bk04}, instead of specifying directly that there is a zero neutral diffusive flux of
166  locally referenced potential density, we stay in the $T$-$S$ plane and consider the balance between
167  the neutral direction diffusive fluxes of potential temperature and salinity:
168  \[
169    \alpha \ \textbf{F}(T) = \beta \ \textbf{F}(S)
170  \]
171  % gm{  where vector F is ....}
172
173This constraint leads to the following definition for the slopes:
174
175\[
176  % \label{eq:LDF_slp_iso2}
177  \begin{split}
178    r_{1u} &= \frac{e_{3u}}{e_{1u}}\; \frac
179    {\alpha_u \;\delta_{i+1/2}[T] - \beta_u \;\delta_{i+1/2}[S]}
180    {\alpha_u \;\overline{\overline{\delta_{k+1/2}[T]}}^{\,i+1/2,\,k}
181      -\beta_u  \;\overline{\overline{\delta_{k+1/2}[S]}}^{\,i+1/2,\,k} } \\
182    r_{2v} &= \frac{e_{3v}}{e_{2v}}\; \frac
183    {\alpha_v \;\delta_{j+1/2}[T] - \beta_v \;\delta_{j+1/2}[S]}
184    {\alpha_v \;\overline{\overline{\delta_{k+1/2}[T]}}^{\,j+1/2,\,k}
185      -\beta_v  \;\overline{\overline{\delta_{k+1/2}[S]}}^{\,j+1/2,\,k} }    \\
186    r_{1w} &= \frac{e_{3w}}{e_{1w}}\; \frac
187    {\alpha_w \;\overline{\overline{\delta_{i+1/2}[T]}}^{\,i,\,k+1/2}
188      -\beta_w  \;\overline{\overline{\delta_{i+1/2}[S]}}^{\,i,\,k+1/2} }
189    {\alpha_w \;\delta_{k+1/2}[T] - \beta_w \;\delta_{k+1/2}[S]} \\
190    r_{2w} &= \frac{e_{3w}}{e_{2w}}\; \frac
191    {\alpha_w \;\overline{\overline{\delta_{j+1/2}[T]}}^{\,j,\,k+1/2}
192      -\beta_w  \;\overline{\overline{\delta_{j+1/2}[S]}}^{\,j,\,k+1/2} }
193    {\alpha_w \;\delta_{k+1/2}[T] - \beta_w \;\delta_{k+1/2}[S]} \\
194  \end{split}
195\]
196where $\alpha$ and $\beta$, the thermal expansion and saline contraction coefficients introduced in
197\autoref{subsec:TRA_bn2}, have to be evaluated at the three velocity points.
198In order to save computation time, they should be approximated by the mean of their values at $T$-points
199(for example in the case of $\alpha$:
200$\alpha_u=\overline{\alpha_T}^{i+1/2}$$\alpha_v=\overline{\alpha_T}^{j+1/2}$ and
201$\alpha_w=\overline{\alpha_T}^{k+1/2}$).
202
203Note that such a formulation could be also used in the $z$-coordinate and $z$-coordinate with partial steps cases.
204
205\end{description}
206
207This implementation is a rather old one.
208It is similar to the one proposed by \citet{cox_OM87}, except for the background horizontal diffusion.
209Indeed, the \citet{cox_OM87} implementation of isopycnal diffusion in GFDL-type models requires
210a minimum background horizontal diffusion for numerical stability reasons.
211To overcome this problem, several techniques have been proposed in which the numerical schemes of
212the ocean model are modified \citep{weaver.eby_JPO97, griffies.gnanadesikan.ea_JPO98}.
213Griffies's scheme is now available in \NEMO\ if \np[=.true.]{ln_traldf_triad}{ln\_traldf\_triad}; see \autoref{apdx:TRIADS}.
214Here, another strategy is presented \citep{lazar_phd97}:
215a local filtering of the iso-neutral slopes (made on 9 grid-points) prevents the development of
216grid point noise generated by the iso-neutral diffusion operator (\autoref{fig:LDF_ZDF1}).
217This allows an iso-neutral diffusion scheme without additional background horizontal mixing.
218This technique can be viewed as a diffusion operator that acts along large-scale
219(2~$\Delta$x) \gmcomment{2deltax doesnt seem very large scale} iso-neutral surfaces.
220The diapycnal diffusion required for numerical stability is thus minimized and its net effect on the flow is quite small when compared to the effect of an horizontal background mixing.
221
222Nevertheless, this iso-neutral operator does not ensure that variance cannot increase,
223contrary to the \citet{griffies.gnanadesikan.ea_JPO98} operator which has that property.
224
225\begin{figure}[!ht]
226  \centering
227  \includegraphics[width=0.66\textwidth]{Fig_LDF_ZDF1}
228  \caption{Averaging procedure for isopycnal slope computation}
229  \label{fig:LDF_ZDF1}
230\end{figure}
231
232%There are three additional questions about the slope calculation.
233%First the expression for the rotation tensor has been obtain assuming the "small slope" approximation, so a bound has to be imposed on slopes.
234%Second, numerical stability issues also require a bound on slopes.
235%Third, the question of boundary condition specified on slopes...
236
237%from griffies: chapter 13.1....
238
239% In addition and also for numerical stability reasons \citep{cox_OM87, griffies_bk04},
240% the slopes are bounded by $1/100$ everywhere. This limit is decreasing linearly
241% to zero fom $70$ meters depth and the surface (the fact that the eddies "feel" the
242% surface motivates this flattening of isopycnals near the surface).
243
244For numerical stability reasons \citep{cox_OM87, griffies_bk04}, the slopes must also be bounded by
245the namelist scalar \np{rn_slpmax}{rn\_slpmax} (usually $1/100$) everywhere.
246This constraint is applied in a piecewise linear fashion, increasing from zero at the surface to
247$1/100$ at $70$ metres and thereafter decreasing to zero at the bottom of the ocean
248(the fact that the eddies "feel" the surface motivates this flattening of isopycnals near the surface).
249\colorbox{yellow}{The way slopes are tapered has be checked. Not sure that this is still what is actually done.}
250
251\begin{figure}[!ht]
252  \centering
253  \includegraphics[width=0.66\textwidth]{Fig_eiv_slp}
254  \caption[Vertical profile of the slope used for lateral mixing in the mixed layer]{
255    Vertical profile of the slope used for lateral mixing in the mixed layer:
256    \textit{(a)} in the real ocean the slope is the iso-neutral slope in the ocean interior,
257    which has to be adjusted at the surface boundary
258    \ie\ it must tend to zero at the surface since there is no mixing across the air-sea interface:
259    wall boundary condition).
260    Nevertheless,
261    the profile between the surface zero value and the interior iso-neutral one is unknown,
262    and especially the value at the base of the mixed layer;
263    \textit{(b)} profile of slope using a linear tapering of the slope near the surface and
264    imposing a maximum slope of 1/100;
265    \textit{(c)} profile of slope actually used in \NEMO:
266    a linear decrease of the slope from zero at the surface to
267    its ocean interior value computed just below the mixed layer.
268    Note the huge change in the slope at the base of the mixed layer between
269    \textit{(b)} and \textit{(c)}.}
270  \label{fig:LDF_eiv_slp}
271\end{figure}
272
273\colorbox{yellow}{add here a discussion about the flattening of the slopes, vs tapering the coefficient.}
274
275\subsection{Slopes for momentum iso-neutral mixing}
276
277The iso-neutral diffusion operator on momentum is the same as the one used on tracers but
278applied to each component of the velocity separately
279(see \autoref{eq:DYN_ldf_iso} in section~\autoref{subsec:DYN_ldf_iso}).
280The slopes between the surface along which the diffusion operator acts and the surface of computation
281($z$- or $s$-surfaces) are defined at $T$-, $f$-, and \textit{uw}- points for the $u$-component, and $T$-, $f$- and
282\textit{vw}- points for the $v$-component.
283They are computed from the slopes used for tracer diffusion,
284\ie\ \autoref{eq:LDF_slp_geo} and \autoref{eq:LDF_slp_iso}:
285
286\[
287  % \label{eq:LDF_slp_dyn}
288  \begin{aligned}
289    &r_{1t}\ \ = \overline{r_{1u}}^{\,i}       &&&    r_{1f}\ \ &= \overline{r_{1u}}^{\,i+1/2} \\
290    &r_{2f} \ \ = \overline{r_{2v}}^{\,j+1/2} &&&  r_{2t}\ &= \overline{r_{2v}}^{\,j} \\
291    &r_{1uw}  = \overline{r_{1w}}^{\,i+1/2} &&\ \ \text{and} \ \ &   r_{1vw}&= \overline{r_{1w}}^{\,j+1/2} \\
292    &r_{2uw}= \overline{r_{2w}}^{\,j+1/2} &&&         r_{2vw}&= \overline{r_{2w}}^{\,j+1/2}\\
293  \end{aligned}
294\]
295
296The major issue remaining is in the specification of the boundary conditions.
297The same boundary conditions are chosen as those used for lateral diffusion along model level surfaces,
298\ie\ using the shear computed along the model levels and with no additional friction at the ocean bottom
299(see \autoref{sec:LBC_coast}).
300
301\section[Lateral mixing coefficient (\forcode{nn_aht_ijk_t} \& \forcode{nn_ahm_ijk_t})]{Lateral mixing coefficient (\protect\np{nn_aht_ijk_t}{nn\_aht\_ijk\_t} \& \protect\np{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t})}
302\label{sec:LDF_coef}
303
304The specification of the space variation of the coefficient is made in modules \mdl{ldftra} and \mdl{ldfdyn}.
305The way the mixing coefficients are set in the reference version can be described as follows:
306
307\subsection[Mixing coefficients read from file (\forcode{=-20, -30})]{ Mixing coefficients read from file (\protect\np[=-20, -30]{nn_aht_ijk_t}{nn\_aht\_ijk\_t} \& \protect\np[=-20, -30]{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t})}
308
309Mixing coefficients can be read from file if a particular geographical variation is needed. For example, in the ORCA2 global ocean model,
310the laplacian viscosity operator uses $A^l$~= 4.10$^4$ m$^2$/s poleward of 20$^{\circ}$ north and south and
311decreases linearly to $A^l$~= 2.10$^3$ m$^2$/s at the equator \citep{madec.delecluse.ea_JPO96, delecluse.madec_icol99}.
312Similar modified horizontal variations can be found with the Antarctic or Arctic sub-domain options of ORCA2 and ORCA05.
313The provided fields can either be 2d (\np[=-20]{nn_aht_ijk_t}{nn\_aht\_ijk\_t}, \np[=-20]{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t}) or 3d (\np[=-30]{nn_aht_ijk_t}{nn\_aht\_ijk\_t}\np[=-30]{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t}). They must be given at U, V points for tracers and T, F points for momentum (see \autoref{tab:LDF_files}).
314
315%-------------------------------------------------TABLE---------------------------------------------------
316\begin{table}[htb]
317  \centering
318  \begin{tabular}{|l|l|l|l|}
319    \hline
320    Namelist parameter                       & Input filename                               & dimensions & variable names                      \\  \hline
321    \np[=-20]{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t}     & \forcode{eddy_viscosity_2D.nc }            &     $(i,j)$         & \forcode{ahmt_2d, ahmf_2d}  \\  \hline
322    \np[=-20]{nn_aht_ijk_t}{nn\_aht\_ijk\_t}           & \forcode{eddy_diffusivity_2D.nc }           &     $(i,j)$           & \forcode{ahtu_2d, ahtv_2d}    \\   \hline
323    \np[=-30]{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t}        & \forcode{eddy_viscosity_3D.nc }            &     $(i,j,k)$          & \forcode{ahmt_3d, ahmf_3d}  \\  \hline
324    \np[=-30]{nn_aht_ijk_t}{nn\_aht\_ijk\_t}     & \forcode{eddy_diffusivity_3D.nc }           &     $(i,j,k)$         & \forcode{ahtu_3d, ahtv_3d}    \\   \hline
325  \end{tabular}
326  \caption{Description of expected input files if mixing coefficients are read from NetCDF files}
327  \label{tab:LDF_files}
328\end{table}
329%--------------------------------------------------------------------------------------------------------------
330
331\subsection[Constant mixing coefficients (\forcode{=0})]{ Constant mixing coefficients (\protect\np[=0]{nn_aht_ijk_t}{nn\_aht\_ijk\_t} \& \protect\np[=0]{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t})}
332
333If constant, mixing coefficients are set thanks to a velocity and a length scales ($U_{scl}$, $L_{scl}$) such that:
334
335\begin{equation}
336  \label{eq:LDF_constantah}
337  A_o^l = \left\{
338    \begin{aligned}
339      & \frac{1}{2} U_{scl} L_{scl}            & \text{for laplacian operator } \\
340      & \frac{1}{12} U_{scl} L_{scl}^3                    & \text{for bilaplacian operator }
341    \end{aligned}
342  \right.
343\end{equation}
344
345 $U_{scl}$ and $L_{scl}$ are given by the namelist parameters \np{rn_Ud}{rn\_Ud}, \np{rn_Uv}{rn\_Uv}, \np{rn_Ld}{rn\_Ld} and \np{rn_Lv}{rn\_Lv}.
346
347\subsection[Vertically varying mixing coefficients (\forcode{=10})]{Vertically varying mixing coefficients (\protect\np[=10]{nn_aht_ijk_t}{nn\_aht\_ijk\_t} \& \protect\np[=10]{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t})}
348
349In the vertically varying case, a hyperbolic variation of the lateral mixing coefficient is introduced in which
350the surface value is given by \autoref{eq:LDF_constantah}, the bottom value is 1/4 of the surface value,
351and the transition takes place around z=500~m with a width of 200~m.
352This profile is hard coded in module \mdl{ldfc1d\_c2d}, but can be easily modified by users.
353
354\subsection[Mesh size dependent mixing coefficients (\forcode{=20})]{Mesh size dependent mixing coefficients (\protect\np[=20]{nn_aht_ijk_t}{nn\_aht\_ijk\_t} \& \protect\np[=20]{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t})}
355
356In that case, the horizontal variation of the eddy coefficient depends on the local mesh size and
357the type of operator used:
358\begin{equation}
359  \label{eq:LDF_title}
360  A_l = \left\{
361    \begin{aligned}
362      & \frac{1}{2} U_{scl}  \max(e_1,e_2)         & \text{for laplacian operator } \\
363      & \frac{1}{12} U_{scl}  \max(e_1,e_2)^{3}             & \text{for bilaplacian operator }
364    \end{aligned}
365  \right.
366\end{equation}
367where $U_{scl}$ is a user defined velocity scale (\np{rn_Ud}{rn\_Ud}, \np{rn_Uv}{rn\_Uv}).
368This variation is intended to reflect the lesser need for subgrid scale eddy mixing where
369the grid size is smaller in the domain.
370It was introduced in the context of the DYNAMO modelling project \citep{willebrand.barnier.ea_PO01}.
371Note that such a grid scale dependance of mixing coefficients significantly increases the range of stability of
372model configurations presenting large changes in grid spacing such as global ocean models.
373Indeed, in such a case, a constant mixing coefficient can lead to a blow up of the model due to
374large coefficient compare to the smallest grid size (see \autoref{sec:TD_forward_imp}),
375especially when using a bilaplacian operator.
376
377\colorbox{yellow}{CASE \np{nn_aht_ijk_t}{nn\_aht\_ijk\_t} = 21 to be added}
378
379\subsection[Mesh size and depth dependent mixing coefficients (\forcode{=30})]{Mesh size and depth dependent mixing coefficients (\protect\np[=30]{nn_aht_ijk_t}{nn\_aht\_ijk\_t} \& \protect\np[=30]{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t})}
380
381The 3D space variation of the mixing coefficient is simply the combination of the 1D and 2D cases above,
382\ie\ a hyperbolic tangent variation with depth associated with a grid size dependence of
383the magnitude of the coefficient.
384
385\subsection[Velocity dependent mixing coefficients (\forcode{=31})]{Flow dependent mixing coefficients (\protect\np[=31]{nn_aht_ijk_t}{nn\_aht\_ijk\_t} \& \protect\np[=31]{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t})}
386In that case, the eddy coefficient is proportional to the local velocity magnitude so that the Reynolds number $Re =  \lvert U \rvert  e / A_l$ is constant (and here hardcoded to $12$):
387\colorbox{yellow}{JC comment: The Reynolds is effectively set to 12 in the code for both operators but shouldn't it be 2 for Laplacian ?}
388
389\begin{equation}
390  \label{eq:LDF_flowah}
391  A_l = \left\{
392    \begin{aligned}
393      & \frac{1}{12} \lvert U \rvert e          & \text{for laplacian operator } \\
394      & \frac{1}{12} \lvert U \rvert e^3             & \text{for bilaplacian operator }
395    \end{aligned}
396  \right.
397\end{equation}
398
399\subsection[Deformation rate dependent viscosities (\forcode{nn_ahm_ijk_t=32})]{Deformation rate dependent viscosities (\protect\np[=32]{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t})}
400
401This option refers to the \citep{smagorinsky_MW63} scheme which is here implemented for momentum only. Smagorinsky chose as a
402characteristic time scale $T_{smag}$ the deformation rate and for the lengthscale $L_{smag}$ the maximum wavenumber possible on the horizontal grid, e.g.:
403
404\begin{equation}
405  \label{eq:LDF_smag1}
406  \begin{split}
407    T_{smag}^{-1} & = \sqrt{\left( \partial_x u - \partial_y v\right)^2 + \left( \partial_y u + \partial_x v\right)^} \\
408    L_{smag} & = \frac{1}{\pi}\frac{e_1 e_2}{e_1 + e_2}
409  \end{split}
410\end{equation}
411
412Introducing a user defined constant $C$ (given in the namelist as \np{rn_csmc}{rn\_csmc}), one can deduce the mixing coefficients as follows:
413
414\begin{equation}
415  \label{eq:LDF_smag2}
416  A_{smag} = \left\{
417    \begin{aligned}
418      & C^2  T_{smag}^{-1}  L_{smag}^2       & \text{for laplacian operator } \\
419      & \frac{C^2}{8} T_{smag}^{-1} L_{smag}^4        & \text{for bilaplacian operator }
420    \end{aligned}
421  \right.
422\end{equation}
423
424For stability reasons, upper and lower limits are applied on the resulting coefficient (see \autoref{sec:TD_forward_imp}) so that:
425\begin{equation}
426  \label{eq:LDF_smag3}
427    \begin{aligned}
428      & C_{min} \frac{1}{2}   \lvert U \rvert  e    < A_{smag} < C_{max} \frac{e^2}{   8\rdt}                 & \text{for laplacian operator } \\
429      & C_{min} \frac{1}{12} \lvert U \rvert  e^3 < A_{smag} < C_{max} \frac{e^4}{64 \rdt}                 & \text{for bilaplacian operator }
430    \end{aligned}
431\end{equation}
432
433where $C_{min}$ and $C_{max}$ are adimensional namelist parameters given by \np{rn_minfac}{rn\_minfac} and \np{rn_maxfac}{rn\_maxfac} respectively.
434
435\subsection{About space and time varying mixing coefficients}
436
437The following points are relevant when the eddy coefficient varies spatially:
438
439(1) the momentum diffusion operator acting along model level surfaces is written in terms of curl and
440divergent components of the horizontal current (see \autoref{subsec:MB_ldf}).
441Although the eddy coefficient could be set to different values in these two terms,
442this option is not currently available.
443
444(2) with an horizontally varying viscosity, the quadratic integral constraints on enstrophy and on the square of
445the horizontal divergence for operators acting along model-surfaces are no longer satisfied
446(\autoref{sec:INVARIANTS_dynldf_properties}).
447
448\section[Eddy induced velocity (\forcode{ln_ldfeiv})]{Eddy induced velocity (\protect\np{ln_ldfeiv}{ln\_ldfeiv})}
449
450\label{sec:LDF_eiv}
451
452%--------------------------------------------namtra_eiv---------------------------------------------------
453
454\begin{listing}
455  \nlst{namtra_eiv}
456  \caption{\forcode{&namtra_eiv}}
457  \label{lst:namtra_eiv}
458\end{listing}
459
460%--------------------------------------------------------------------------------------------------------------
461
462%%gm  from Triad appendix  : to be incorporated....
463\gmcomment{
464  Values of iso-neutral diffusivity and GM coefficient are set as described in \autoref{sec:LDF_coef}.
465  If none of the keys \key{traldf\_cNd}, N=1,2,3 is set (the default), spatially constant iso-neutral $A_l$ and
466  GM diffusivity $A_e$ are directly set by \np{rn_aeih_0}{rn\_aeih\_0} and \np{rn_aeiv_0}{rn\_aeiv\_0}.
467  If 2D-varying coefficients are set with \key{traldf\_c2d} then $A_l$ is reduced in proportion with horizontal
468  scale factor according to \autoref{eq:title}
469  \footnote{
470    Except in global ORCA  $0.5^{\circ}$ runs with \key{traldf\_eiv},
471    where $A_l$ is set like $A_e$ but with a minimum vale of $100\;\mathrm{m}^2\;\mathrm{s}^{-1}$
472  }.
473  In idealised setups with \key{traldf\_c2d}, $A_e$ is reduced similarly, but if \key{traldf\_eiv} is set in
474  the global configurations with \key{traldf\_c2d}, a horizontally varying $A_e$ is instead set from
475  the Held-Larichev parameterisation
476  \footnote{
477    In this case, $A_e$ at low latitudes $|\theta|<20^{\circ}$ is further reduced by a factor $|f/f_{20}|$,
478    where $f_{20}$ is the value of $f$ at $20^{\circ}$~N
479  } (\mdl{ldfeiv}) and \np{rn_aeiv_0}{rn\_aeiv\_0} is ignored unless it is zero.
480}
481
482When  \citet{gent.mcwilliams_JPO90} diffusion is used (\np[=.true.]{ln_ldfeiv}{ln\_ldfeiv}),
483an eddy induced tracer advection term is added,
484the formulation of which depends on the slopes of iso-neutral surfaces.
485Contrary to the case of iso-neutral mixing, the slopes used here are referenced to the geopotential surfaces,
486\ie\ \autoref{eq:LDF_slp_geo} is used in $z$-coordinates,
487and the sum \autoref{eq:LDF_slp_geo} + \autoref{eq:LDF_slp_iso} in $s$-coordinates.
488
489If isopycnal mixing is used in the standard way, \ie\ \np[=.false.]{ln_traldf_triad}{ln\_traldf\_triad}, the eddy induced velocity is given by:
490\begin{equation}
491  \label{eq:LDF_eiv}
492  \begin{split}
493    u^* & = \frac{1}{e_{2u}e_{3u}}\; \delta_k \left[e_{2u} \, A_{uw}^{eiv} \; \overline{r_{1w}}^{\,i+1/2} \right]\\
494    v^* & = \frac{1}{e_{1u}e_{3v}}\; \delta_k \left[e_{1v} \, A_{vw}^{eiv} \; \overline{r_{2w}}^{\,j+1/2} \right]\\
495    w^* & = \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\} \\
496  \end{split}
497\end{equation}
498where $A^{eiv}$ is the eddy induced velocity coefficient whose value is set through \np{nn_aei_ijk_t}{nn\_aei\_ijk\_t} \nam{tra_eiv}{tra\_eiv} namelist parameter.
499The three components of the eddy induced velocity are computed in \rou{ldf\_eiv\_trp} and
500added to the eulerian velocity in \rou{tra\_adv} where tracer advection is performed.
501This has been preferred to a separate computation of the advective trends associated with the eiv velocity,
502since it allows us to take advantage of all the advection schemes offered for the tracers
503(see \autoref{sec:TRA_adv}) and not just the $2^{nd}$ order advection scheme as in
504previous releases of OPA \citep{madec.delecluse.ea_NPM98}.
505This is particularly useful for passive tracers where \emph{positivity} of the advection scheme is of
506paramount importance.
507
508At the surface, lateral and bottom boundaries, the eddy induced velocity,
509and thus the advective eddy fluxes of heat and salt, are set to zero.
510The value of the eddy induced mixing coefficient and its space variation is controlled in a similar way as for lateral mixing coefficient described in the preceding subsection (\np{nn_aei_ijk_t}{nn\_aei\_ijk\_t}, \np{rn_Ue}{rn\_Ue}, \np{rn_Le}{rn\_Le} namelist parameters).
511\colorbox{yellow}{CASE \np{nn_aei_ijk_t}{nn\_aei\_ijk\_t} = 21 to be added}
512
513In case of setting \np[=.true.]{ln_traldf_triad}{ln\_traldf\_triad}, a skew form of the eddy induced advective fluxes is used, which is described in \autoref{apdx:TRIADS}.
514
515\section[Mixed layer eddies (\forcode{ln_mle})]{Mixed layer eddies (\protect\np{ln_mle}{ln\_mle})}
516\label{sec:LDF_mle}
517
518%--------------------------------------------namtra_eiv---------------------------------------------------
519
520\begin{listing}
521  \nlst{namtra_mle}
522  \caption{\forcode{&namtra_mle}}
523  \label{lst:namtra_mle}
524\end{listing}
525
526%--------------------------------------------------------------------------------------------------------------
527
528If  \np[=.true.]{ln_mle}{ln\_mle} in \nam{tra_mle}{tra\_mle} namelist, a parameterization of the mixing due to unresolved mixed layer instabilities is activated (\citet{foxkemper.ferrari_JPO08}). Additional transport is computed in \rou{ldf\_mle\_trp} and added to the eulerian transport in \rou{tra\_adv} as done for eddy induced advection.
529
530\colorbox{yellow}{TBC}
531
532\onlyinsubfile{\input{../../global/epilogue}}
533
534\end{document}
Note: See TracBrowser for help on using the repository browser.