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.
Changeset 1224 – NEMO

Changeset 1224


Ignore:
Timestamp:
2008-11-26T14:52:28+01:00 (15 years ago)
Author:
gm
Message:

minor corrections in the Chapters from Steven + gm see ticket #283

Location:
trunk/DOC/TexFiles/Chapters
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/DOC/TexFiles/Chapters/Abstracts_Foreword.tex

    r994 r1224  
    99 
    1010\small{  
    11 The ocean engine of NEMO (Nucleus for European Modelling of the Ocean) is a primitive equation model adapted to regional and global ocean circulation problems. It is intended to be a flexible tool for studying the ocean and its interactions with the others components of the earth climate system (atmosphere, sea-ice, biogeochemical tracers, ...) over a wide range of space and time scales. Prognostic variables are the three-dimensional velocity field, a linear or non-linear sea surface height, the temperature and the salinity. In the horizontal direction, the model uses a curvilinear orthogonal grid and in the vertical direction, a full or partial step $z$-coordinate, or $s$-coordinate, or a mixture of the two. The distribution of variables is a three-dimensional Arakawa C-type grid. Various physical choices are available to describe ocean physics, including TKE and KPP vertical physics. Within NEMO, the ocean is interfaced with a sea-ice model (LIM), passive tracer and biogeochemical models (TOP) and, via the OASIS coupler, with several atmospheric general circulation models.  
     11The ocean engine of NEMO (Nucleus for European Modelling of the Ocean) is a primitive  
     12equation model adapted to regional and global ocean circulation problems. It is intended to  
     13be a flexible tool for studying the ocean and its interactions with the others components of  
     14the earth climate system (atmosphere, sea-ice, biogeochemical tracers, ...) over a wide range  
     15of space and time scales. Prognostic variables are the three-dimensional velocity field, a linear  
     16or non-linear sea surface height, the temperature and the salinity. In the horizontal direction,  
     17the model uses a curvilinear orthogonal grid and in the vertical direction, a full or partial step  
     18$z$-coordinate, or $s$-coordinate, or a mixture of the two. The distribution of variables is a  
     19three-dimensional Arakawa C-type grid. Various physical choices are available to describe  
     20ocean physics, including TKE and KPP vertical physics. Within NEMO, the ocean is interfaced  
     21with a sea-ice model (LIM v2 and v3), passive tracer and biogeochemical models (TOP)  
     22and, via the OASIS coupler, with several atmospheric general circulation models.  
    1223 
    1324% ================================================================ 
    1425 \vspace{0.5cm} 
    1526 
    16 Le moteur oc\'{e}anique de NEMO (Nucleus for European Modelling of the Ocean) est un mod\`{e}le aux \'{e}quations primitives de la circulation oc\'{e}anique r\'{e}gionale et globale. Il se veut un outil flexible pour \'{e}tudier sur un vaste spectre spatiotemporel l'oc\'{e}an et ses interactions avec les autres composantes du syst\`{e}me climatique terrestre (atmosph\`{e}re, glace de mer, traceurs biog\'{e}ochimiques...). Les variables pronostiques sont le champ tridimensionnel de vitesse, une hauteur de la mer lin\'{e}aire ou non, la temperature et la salinit\'{e}. La distribution des variables se fait sur une grille C d'Arakawa tridimensionnelle utilisant une coordonn\'{e}e verticale $z$ \`{a} niveaux entiers ou partiels, ou une coordonn\'{e}e s, ou encore une combinaison des deux. Diff\'{e}rents choix sont propos\'{e}s pour d\'{e}crire la physique oc\'{e}anique, incluant notamment des physiques verticales TKE et KPP . A travers l'infrastructure NEMO, l'oc\'{e}an est interfac\'{e} avec un mod\`{e}le de glace de mer, des mod\`{e}les biog\'{e}ochimiques et de traceur passif, et, via le coupleur OASIS, \`{a} plusieurs mod\`{e}les de circulation g\'{e}n\'{e}rale atmosph\'{e}rique.  
     27Le moteur oc\'{e}anique de NEMO (Nucleus for European Modelling of the Ocean) est un  
     28mod\`{e}le aux \'{e}quations primitives de la circulation oc\'{e}anique r\'{e}gionale et globale.  
     29Il se veut un outil flexible pour \'{e}tudier sur un vaste spectre spatiotemporel l'oc\'{e}an et ses  
     30interactions avec les autres composantes du syst\`{e}me climatique terrestre (atmosph\`{e}re,  
     31glace de mer, traceurs biog\'{e}ochimiques...). Les variables pronostiques sont le champ  
     32tridimensionnel de vitesse, une hauteur de la mer lin\'{e}aire ou non, la temperature et la salinit\'{e}.  
     33La distribution des variables se fait sur une grille C d'Arakawa tridimensionnelle utilisant une  
     34coordonn\'{e}e verticale $z$ \`{a} niveaux entiers ou partiels, ou une coordonn\'{e}e s, ou encore  
     35une combinaison des deux. Diff\'{e}rents choix sont propos\'{e}s pour d\'{e}crire la physique  
     36oc\'{e}anique, incluant notamment des physiques verticales TKE et KPP. A travers l'infrastructure  
     37NEMO, l'oc\'{e}an est interfac\'{e} avec un mod\`{e}le de glace de mer, des mod\`{e}les  
     38biog\'{e}ochimiques et de traceur passif, et, via le coupleur OASIS, \`{a} plusieurs mod\`{e}les  
     39de circulation g\'{e}n\'{e}rale atmosph\'{e}rique.  
    1740}  
    1841 
     
    3255 
    3356 \vspace{0.5cm} 
    34 Additional information can be found on www.locean-ipsl.upmc.fr/NEMO 
     57Additional information can be found on http://www.nemo-ocean.eu/ 
    3558 \vspace{0.5cm} 
    3659 
  • trunk/DOC/TexFiles/Chapters/Chap_DOM.tex

    r998 r1224  
    7373provided by \eqref{Eq_scale_factors}. As a result, the mesh on which partial  
    7474derivatives $\frac{\partial}{\partial \lambda}, \frac{\partial}{\partial \varphi}$, and  
    75 $\frac{\partial}{\partial z} $ are evaluated is a uniform mesh with a grid size of unity. Discrete partial derivatives are formulated by the traditional, centred second order  
     75$\frac{\partial}{\partial z} $ are evaluated is a uniform mesh with a grid size of unity.  
     76Discrete partial derivatives are formulated by the traditional, centred second order  
    7677finite difference approximation while the scale factors are chosen equal to their  
    7778local analytical value. An important point here is that the partial derivative of the  
     
    262263same $k$ index, in opposition to what is done in the horizontal plane where  
    263264it is the $T$-point and the nearest velocity points in the direction of the horizontal  
    264 axis that have the same $i$ or $j$ index (compare the dashed area in Fig.\ref{Fig_index_hor} and \ref{Fig_index_vert}). Since the scale factors are chosen  
    265 to be strictly positive, a \emph{minus sign} appears in the \textsc{Fortran} code  
    266 \emph{before all the vertical derivatives} of the discrete equations given in this  
    267 documentation. 
     265axis that have the same $i$ or $j$ index (compare the dashed area in  
     266Fig.\ref{Fig_index_hor} and \ref{Fig_index_vert}). Since the scale factors are  
     267chosen to be strictly positive, a \emph{minus sign} appears in the \textsc{Fortran}  
     268code \emph{before all the vertical derivatives} of the discrete equations given in  
     269this documentation. 
    268270 
    269271%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    601603through statement functions, using parameters provided in the \textit{par\_oce.h90} file.  
    602604 
    603 It is possible to define a simple regular vertical grid by giving zero stretching (\pp{ppacr=0}). In that case, the parameters \jp{jpk} (number of $w$-levels) and \pp{pphmax} (total ocean depth in meters) fully define the grid.  
     605It is possible to define a simple regular vertical grid by giving zero stretching (\pp{ppacr=0}).  
     606In that case, the parameters \jp{jpk} (number of $w$-levels) and \pp{pphmax}  
     607(total ocean depth in meters) fully define the grid.  
    604608 
    605609For climate-related studies it is often desirable to concentrate the vertical resolution  
    606 near the ocean surface. The following function is proposed as a standard for a $z$-coordinate (with either full or partial steps):  
     610near the ocean surface. The following function is proposed as a standard for a  
     611$z$-coordinate (with either full or partial steps):  
    607612\begin{equation} \label{DOM_zgr_ana} 
    608613\begin{split} 
     
    715720one grid point to the next). The reference layer thicknesses $e_{3t}^0$ have been  
    716721defined in the absence of bathymetry. With partial steps, layers from 1 to  
    717 \jp{jpk}-2 can have a thickness smaller than $e_{3t}(jk)$. The model deepest layer (\jp{jpk}-1) is  
    718 allowed to have either a smaller or larger thickness than $e_{3t}(jpk)$: the  
     722\jp{jpk}-2 can have a thickness smaller than $e_{3t}(jk)$. The model deepest layer (\jp{jpk}-1)  
     723is allowed to have either a smaller or larger thickness than $e_{3t}(jpk)$: the  
    719724maximum thickness allowed is $2*e_{3t}(jpk-1)$. This has to be kept in mind when  
    720725specifying the maximum depth \pp{pphmax} in partial steps: for example, with  
    721 \pp{pphmax}$=5750~m$ for the DRAKKAR 45 layer grid, the maximum ocean depth allowed is actually $6000~m$ (the default thickness $e_{3t}(jpk-1)$ being $250~m$). Two  
    722 variables in the namdom namelist are used to define the partial step  
     726\pp{pphmax}$=5750~m$ for the DRAKKAR 45 layer grid, the maximum ocean depth  
     727allowed is actually $6000~m$ (the default thickness $e_{3t}(jpk-1)$ being $250~m$).  
     728Two variables in the namdom namelist are used to define the partial step  
    723729vertical grid. The mimimum water thickness (in meters) allowed for a cell  
    724730partially filled with bathymetry at level jk is the minimum of \np{e3zpsmin}  
     
    750756surface to $1$ at the ocean bottom. The depth field $h$ is not necessary the ocean  
    751757depth, since a mixed step-like and bottom-following representation of the  
    752 topography can be used (Fig.~\ref{Fig_z_zps_s_sps}d-e). In the example provided (\hf{zgr\_s} file) $h$ is a smooth envelope bathymetry and steps are used to represent sharp bathymetric gradients. 
     758topography can be used (Fig.~\ref{Fig_z_zps_s_sps}d-e). In the example provided  
     759(\hf{zgr\_s} file) $h$ is a smooth envelope bathymetry and steps are used to represent  
     760sharp bathymetric gradients. 
    753761 
    754762A new flexible stretching function, modified from \citet{Song1994} is provided as an example: 
     
    763771where $h_c$ is the thermocline depth and $\theta$ and $b$ are the surface and  
    764772bottom control parameters such that $0\leqslant \theta \leqslant 20$, and  
    765 $0\leqslant b\leqslant 1$. $b$ has been designed to allow surface and/or bottom increase of the vertical resolution (Fig.~\ref{Fig_sco_function}). 
     773$0\leqslant b\leqslant 1$. $b$ has been designed to allow surface and/or bottom  
     774increase of the vertical resolution (Fig.~\ref{Fig_sco_function}). 
    766775 
    767776%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    768777\begin{figure}[!tb] \label{Fig_sco_function}  \begin{center} 
    769778\includegraphics[width=1.0\textwidth]{./TexFiles/Figures/Fig_sco_function.pdf} 
    770 \caption{Examples of the stretching function applied to a sea mont; from left to right: surface, surface and bottom, and bottom intensified resolutions} 
     779\caption{Examples of the stretching function applied to a sea mont; from left to right:  
     780surface, surface and bottom, and bottom intensified resolutions} 
    771781\end{center}   \end{figure} 
    772782%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    859869well as the implications in terms of starting or restarting a model  
    860870simulation. Note that the time stepping is generally performed in a one step  
    861 operation. With such a complex and nonlinear system of equations it would be dangerous to let a prognostic variable evolve in time for each term separately. 
    862 %%% 
    863 \gmcomment{ STEVEN  suggest separately instead of successively...  wrong?} 
    864 %%% 
     871operation. With such a complex and nonlinear system of equations it would be  
     872dangerous to let a prognostic variable evolve in time for each term separately. 
    865873 
    866874The three level scheme requires three arrays for each prognostic variables.  
     
    896904to diverge into a physical and a computational mode. Time splitting can  
    897905be controlled through the use of an Asselin time filter (first designed by  
    898 \citep{Robert1966} and more comprehensively studied by \citet{Asselin1972}), or by  
    899 periodically reinitialising the leapfrog solution through a single  
     906\citep{Robert1966} and more comprehensively studied by \citet{Asselin1972}),  
     907or by periodically reinitialising the leapfrog solution through a single  
    900908integration step with a two-level scheme. In \NEMO we follow the first  
    901909strategy: 
     
    9961004\right. 
    9971005\end{equation} 
    998 where $e$ is the smallest grid size in the two horizontal directions and $A^h$ is the mixing coefficient. The linear constraint \eqref{Eq_DOM_nxt_euler_stability} is a necessary condition, but not sufficient. If it is not satisfied, even mildly, then the model soon becomes wildly unstable. The instability can be removed by either reducing the length of the time steps or reducing the mixing coefficient. 
     1006where $e$ is the smallest grid size in the two horizontal directions and $A^h$ is  
     1007the mixing coefficient. The linear constraint \eqref{Eq_DOM_nxt_euler_stability}  
     1008is a necessary condition, but not sufficient. If it is not satisfied, even mildly,  
     1009then the model soon becomes wildly unstable. The instability can be removed  
     1010by either reducing the length of the time steps or reducing the mixing coefficient. 
    9991011 
    10001012For the vertical diffusion terms, a forward time differencing scheme can be  
     
    10321044\right] 
    10331045\end{equation} 
    1034 where RHS is the right hand side of the equation except for the vertical diffusion term. We rewrite \eqref{Eq_DOM_nxt_imp} as: 
     1046where RHS is the right hand side of the equation except for the vertical diffusion term.  
     1047We rewrite \eqref{Eq_DOM_nxt_imp} as: 
    10351048\begin{equation} \label{Eq_DOM_nxt_imp_mat} 
    10361049-c(k+1)\;u^{t+1}(k+1)+d(k)\;u^{t+1}(k)-\;c(k)\;u^{t+1}(k-1) \equiv b(k) 
     
    10751088gradient (see \S\ref{DYN_hpg_imp}), an extra three-dimensional field has to be  
    10761089added in the restart file to ensure an exact restartability. This is done only optionally  
    1077 via the namelist parameter \np{nn\_dynhpg\_rst}, so that a reduction of the size of restart file can be obtained when the restartability is not a key issue (operational oceanography or ensemble simulation for seasonal forcast). 
     1090via the namelist parameter \np{nn\_dynhpg\_rst}, so that a reduction of the size of  
     1091restart file can be obtained when the restartability is not a key issue (operational  
     1092oceanography or ensemble simulation for seasonal forcast). 
    10781093%%% 
    10791094\gmcomment{add here how to force the restart to contain only one time step for operational purposes} 
  • trunk/DOC/TexFiles/Chapters/Chap_DYN.tex

    r998 r1224  
    88% add a figure for  dynvor ens, ene latices 
    99 
    10  
     10%\vspace{2.cm} 
    1111$\ $\newline      %force an empty line 
    1212 
     
    5959MISC correspond to "extracting tendency terms" or "vorticity balance"?} 
    6060 
     61$\ $\newline    % force a new ligne 
    6162% ================================================================ 
    6263% Coriolis and Advection terms: vector invariant form 
     
    7071The vector invariant form of the momentum equations is the one most  
    7172often used in applications of \NEMO ocean model. The flux form option  
    72 (see next section) has been recently introduced in version $2$.  
    73 Coriolis and momentum  
    74 advection terms are evaluated using a leapfrog scheme, $i.e.$ the velocity  
    75 appearing in these expressions is centred in time (\textit{now} velocity).  
     73(see next section) has been introduced since version $2$.  
     74Coriolis and momentum advection terms are evaluated using a leapfrog  
     75scheme, $i.e.$ the velocity appearing in these expressions is centred in  
     76time (\textit{now} velocity).  
    7677At the lateral boundaries either free slip, no slip or partial slip boundary  
    7778conditions are applied following Chap.\ref{LBC}. 
     
    8889 
    8990Different discretisations of the vorticity term (\textit{ln\_dynvor\_xxx}=.true.) are  
    90 available: conserving potential enstrophy of horizontally non-divergent flow;  
    91 conserving horizontal kinetic energy; or conserving potential enstrophy for the  
    92 relative vorticity term and horizontal kinetic energy for the planetary vorticity term  
    93 (see  Appendix~\ref{Apdx_C}). The vorticity terms are given below for the general  
    94 case, but note that in the full step $z$-coordinate (\key{zco} is defined),  
    95 $e_{3u} =e_{3v} =e_{3f}$ so that the vertical scale factors disappear. 
     91available: conserving potential enstrophy of horizontally non-divergent flow ;  
     92conserving horizontal kinetic energy ; or conserving potential enstrophy for the  
     93relative vorticity term and horizontal kinetic energy for the planetary vorticity  
     94term (see  Appendix~\ref{Apdx_C}). The vorticity terms are given below for the  
     95general case, but note that in the full step $z$-coordinate (\key{zco} is defined),  
     96$e_{3u} =e_{3v} =e_{3f}$ so that the vertical scale factors disappear. They are  
     97all computed in dedicated routines that can be found in the \mdl{dynvor} module. 
    9698 
    9799%------------------------------------------------------------- 
     
    108110\left\{  
    109111\begin{aligned} 
    110 {+\frac{1}{e_{1u} } } & {\overline {\left( { \frac{\zeta +f}{e_{3f} }} \right)} }^{\,i} & {\overline{\overline {\left( {e_{1v} e_{3v} v} \right)}} }^{\,i, j+1/2}    \\ 
    111 {-\frac{1}{e_{2v} } } & {\overline {\left( {\frac{\zeta +f}{e_{3f} }} \right)} }^{\,j}  & {\overline{\overline {\left( {e_{2u} e_{3u} u} \right)}} }^{\,i+1/2, j}   
     112{+\frac{1}{e_{1u} } } & {\overline {\left( { \frac{\zeta +f}{e_{3f} }} \right)} }^{\,i}  
     113                                & {\overline{\overline {\left( {e_{1v} e_{3v} v} \right)}} }^{\,i, j+1/2}    \\ 
     114{- \frac{1}{e_{2v} } } & {\overline {\left( {\frac{\zeta +f}{e_{3f} }} \right)} }^{\,j}   
     115                                & {\overline{\overline {\left( {e_{2u} e_{3u} u} \right)}} }^{\,i+1/2, j}   
    112116\end{aligned}  
    113117 \right. 
     
    123127kinetic energy but not the global enstrophy. It is given by: 
    124128\begin{equation} \label{Eq_dynvor_ene} 
    125 \left\{ { 
    126 \begin{aligned} 
    127 {+\frac{1}{e_{1u} }\; {\overline {\left( {\frac{\zeta +f}{e_{3f} }} \right) 
    128 \;\overline {\left( {e_{1v} e_{3v} v} \right)} ^{\,i+1/2}} }^{\,j} }    \\ 
    129 {-\frac{1}{e_{2v} }\; {\overline {\left( {\frac{\zeta +f}{e_{3f} }} \right) 
    130 \;\overline {\left( {e_{2u} e_{3u} u} \right)} ^{\,j+1/2}} }^{\,i} } 
    131 \end{aligned}  
    132 } \right. 
     129\left\{   \begin{aligned} 
     130{+\frac{1}{e_{1u}}\; {\overline {\left( {\frac{\zeta +f}{e_{3f} }} \right) 
     131                            \;  \overline {\left( {e_{1v} e_{3v} v} \right)} ^{\,i+1/2}} }^{\,j} }    \\ 
     132{- \frac{1}{e_{2v}}\; {\overline {\left( {\frac{\zeta +f}{e_{3f} }} \right) 
     133                            \;  \overline {\left( {e_{2u} e_{3u} u} \right)} ^{\,j+1/2}} }^{\,i} } 
     134\end{aligned}    \right. 
    133135\end{equation}  
    134136 
     
    230232} \right. 
    231233\end{equation}  
    232 where $a$, $b$, $c$ and $d$ are triad combinations of the neighbouring  
    233 potential vorticities (Fig. \ref{Fig_DYN_een_triad}):  
     234where $a$, $b$, $c$ and $d$ are the following triad combinations of the  
     235neighbouring potential vorticities (Fig.~\ref{Fig_DYN_een_triad}):  
    234236\begin{equation} \label{Eq_een_triads} 
    235237\left\{  
     
    377379 
    378380The scheme is non diffusive (i.e. conserves the kinetic energy) but dispersive  
    379 ($i.e.$ it may create false extrema). It is therefore notoriously noisy and must  
    380 be used in conjunction with an explicit diffusion operator to produce a sensible  
    381 solution. The associated time-stepping is performed using a leapfrog scheme in conjunction with an Asselin time-filter, so $u$ and $v$ are the \emph{now}  
    382 velocities. 
     381($i.e.$ it may create false extrema). It is therefore notoriously noisy and must be  
     382used in conjunction with an explicit diffusion operator to produce a sensible solution.  
     383The associated time-stepping is performed using a leapfrog scheme in conjunction  
     384with an Asselin time-filter, so $u$ and $v$ are the \emph{now} velocities. 
    383385 
    384386%------------------------------------------------------------- 
     
    716718by $t-\Delta t$, $t, t+\Delta t$, and $t+2\Delta t$.  
    717719The curved line represents a leap-frog time step, and the smaller time  
    718 steps $N \Delta t_e=\frac{3}{2}\Delta t$ are denoted by the zig-zag line. The vertically  
    719 integrated forcing \textbf{M}(t) computed at the model time step $t$  
     720steps $N \Delta t_e=\frac{3}{2}\Delta t$ are denoted by the zig-zag line.  
     721The vertically integrated forcing \textbf{M}(t) computed at the model time step $t$  
    720722represents the interaction between the external and internal motions.  
    721 While keeping \textbf{M} and freshwater forcing field fixed, a  
    722 leap-frog integration carries the external mode variables (surface height and vertically integrated velocity) from $t$ to $t+\frac{3}{2} \Delta t$ using N external time steps of length $\Delta t_e$.  
    723 Time averaging the external fields over the $\frac{2}{3}N+1$ time steps (endpoints  
    724 included) centers the vertically integrated velocity and the sea surface height at the model timestep $t+\Delta t$. These averaged values are used to update \textbf{M}(t) with both the surface pressure gradient and the Coriolis force.  
    725 A baroclinic leap-frog time step carries the surface height to The model time stepping scheme can then be achieved by  
    726 $t+\Delta t$ using the convergence of the time averaged vertically integrated  
    727 velocity taken from baroclinic time step t. } 
    728 %%% 
    729 \gmcomment{STEVEN: what does convergence mean in this context?} 
    730 %%% 
     723While keeping \textbf{M} and freshwater forcing field fixed, a leap-frog  
     724integration carries the external mode variables (surface height and vertically  
     725integrated velocity) from $t$ to $t+\frac{3}{2} \Delta t$ using N external time  
     726steps of length $\Delta t_e$. Time averaging the external fields over the  
     727$\frac{2}{3}N+1$ time steps (endpoints included) centers the vertically integrated  
     728velocity and the sea surface height at the model timestep $t+\Delta t$.  
     729These averaged values are used to update \textbf{M}(t) with both the surface  
     730pressure gradient and the Coriolis force, therefore providing the $t+\Delta t$ 
     731velocity.  The model time stepping scheme can then be achieved by a baroclinic  
     732leap-frog time step that carries the surface height from $t-\Delta t$ to $t+\Delta t$.  } 
    731733\end{center} 
    732734\end{figure} 
     
    988990 
    989991The turbulent flux of momentum at the bottom of the ocean is specified through  
    990 a bottom friction parameterization (see \S\ref{ZDF_bfr}) 
     992a bottom friction parameterisation (see \S\ref{ZDF_bfr}) 
    991993 
    992994% ================================================================ 
     
    10611063\end{equation}  
    10621064 
    1063 Note that in the $z$-coordinate with full step (\key{zco} is defined), $e_{3u} =e_{3v} =e_{3f}$ so that they cancel in \eqref{Eq_divcur_div}. 
     1065Note that in the $z$-coordinate with full step (\key{zco} is defined),  
     1066$e_{3u} =e_{3v} =e_{3f}$ so that they cancel in \eqref{Eq_divcur_div}. 
    10641067 
    10651068Note also that whereas the vorticity have the same discrete expression in $z$-  
  • trunk/DOC/TexFiles/Chapters/Chap_LBC.tex

    r998 r1224  
    55\label{LBC} 
    66\minitoc 
     7 
     8\newpage 
     9$\ $\newline    % force a new ligne 
     10 
    711 
    812%gm% add here introduction to this chapter 
     
    146150\label{LBC_jperio} 
    147151 
    148 At the model domain boundaries several choices are offered: closed, cyclic east-west, south symmetric across the equator, a north-fold, and combination closed-north fold or cyclic-north-fold. The north-fold boundary condition is associated with the 3-pole ORCA mesh.  
     152At the model domain boundaries several choices are offered: closed, cyclic east-west,  
     153south symmetric across the equator, a north-fold, and combination closed-north fold  
     154or cyclic-north-fold. The north-fold boundary condition is associated with the 3-pole ORCA mesh.  
    149155 
    150156% ------------------------------------------------------------------------------------------------------------- 
     
    198204\label{LBC_north_fold} 
    199205 
    200 The north fold boundary condition has been introduced in order to handle the north boundary of a three-polar ORCA grid. Such a grid has two poles in the northern hemisphere. \colorbox{yellow}{to be completed...} 
     206The north fold boundary condition has been introduced in order to handle the north  
     207boundary of a three-polar ORCA grid. Such a grid has two poles in the northern hemisphere.  
     208\colorbox{yellow}{to be completed...} 
    201209 
    202210%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    203211\begin{figure}[!t] \label{Fig_North_Fold_T}  \begin{center} 
    204212\includegraphics[width=0.90\textwidth]{./TexFiles/Figures/Fig_North_Fold_T.pdf} 
    205 \caption {North fold boundary with a $T$-point pivot and cyclic east-west boundary condition ($jperio=4$), as used in ORCA 2, 1/4, and 1/12. Pink shaded area corresponds to the inner domain mask (see text). } 
     213\caption {North fold boundary with a $T$-point pivot and cyclic east-west boundary condition  
     214($jperio=4$), as used in ORCA 2, 1/4, and 1/12. Pink shaded area corresponds to the inner  
     215domain mask (see text). } 
    206216\end{center}   \end{figure} 
    207217%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    240250and the solving of the elliptic equation associated with the surface pressure  
    241251gradient computation (delocalization over the whole horizontal domain).  
    242 Therefore, a pencil strategy is used for the data sub-structuration \gmcomment{no  
    243 idea what this means!}: the 3D initial domain is laid out on local processor  
     252Therefore, a pencil strategy is used for the data sub-structuration  
     253\gmcomment{no idea what this means!} 
     254: the 3D initial domain is laid out on local processor  
    244255memories following a 2D horizontal topological splitting. Each sub-domain  
    245256computes its own surface and bottom boundary conditions and has a side  
     
    249260phase starts: each processor sends to its neighbouring processors the update  
    250261values of the points corresponding to the interior overlapping area to its  
    251 neighbouring sub-domain (i.e. the innermost of the two overlapping rows). The communication is done through message passing. Usually the parallel virtual  
     262neighbouring sub-domain (i.e. the innermost of the two overlapping rows).  
     263The communication is done through message passing. Usually the parallel virtual  
    252264language, PVM, is used as it is a standard language available on  nearly  all  
    253265MPP computers. More specific languages (i.e. computer dependant languages)  
     
    272284 \jp{jpnij} most often equal to $jpni \times jpnj$ (model parameters set in  
    273285 \mdl{par\_oce}). Each processor is independent and without message passing  
    274  or synchronous process \gmcomment{how does a synchronous process relate to this?},  
     286 or synchronous process  
     287 \gmcomment{how does a synchronous process relate to this?},  
    275288 programs run alone and access just its own local memory. For this reason, the  
    276289 main model dimensions are now the local dimensions of the subdomain (pencil)  
     
    286299where \jp{jpni}, \jp{jpnj} are the number of processors following the i- and j-axis. 
    287300 
    288 \colorbox{yellow}{Figure IV.3: example of a domain splitting with 9 processors and no east-west cyclic boundary conditions.} 
     301\colorbox{yellow}{Figure IV.3: example of a domain splitting with 9 processors and  
     302no east-west cyclic boundary conditions.} 
    289303 
    290304One also defines variables nldi and nlei which correspond to the internal  
     
    309323\item       nbondi =  2    no splitting following the i-axis. 
    310324\end{itemize} 
    311    During the simulation, processors exchange data with their neighbours. If there is effectively a neighbour, the processor receives variables from this processor on its overlapping row, and sends the data issued from internal domain corresponding to the overlapping row of the other processor. 
     325During the simulation, processors exchange data with their neighbours.  
     326If there is effectively a neighbour, the processor receives variables from this  
     327processor on its overlapping row, and sends the data issued from internal  
     328domain corresponding to the overlapping row of the other processor. 
    312329        
    313  
    314330\colorbox{yellow}{Figure IV.4: pencil splitting with the additional outer halos } 
    315331 
    316332 
    317  
    318 The OPA model computes equation terms with the help of mask arrays (0 on land  
     333The \NEMO model computes equation terms with the help of mask arrays (0 on land  
    319334points and 1 on sea points). It is easily readable and very efficient in the context of  
    320335a computer with vectorial architecture. However, in the case of a scalar processor,  
     
    332347nono, noea,...) so that the land-only processors are not taken into account.  
    333348 
    334 \colorbox{yellow}{Note that the inimpp2 routine is general so that the original inimpp routine should be suppressed from the code.} 
    335  
    336 When land processors are eliminated, the value corresponding to these locations in the model output files is zero. Note that this is a problem for a mesh output file written by such a model configuration, because model users often divide by the scale factors ($e1t$, $e2t$, etc) and do not expect the grid size to be zero, even on land. It may be best not to eliminate land processors when running the model especially to write the mesh files as outputs (when \np{nmsh} namelist parameter differs from 0). 
    337 \gmcomment{Steven : dont understand this, no land processor means no output file covering this part of globe; its only when files are stitched together into one that you can leave a hole} 
     349\colorbox{yellow}{Note that the inimpp2 routine is general so that the original inimpp  
     350routine should be suppressed from the code.} 
     351 
     352When land processors are eliminated, the value corresponding to these locations in  
     353the model output files is zero. Note that this is a problem for a mesh output file written  
     354by such a model configuration, because model users often divide by the scale factors  
     355($e1t$, $e2t$, etc) and do not expect the grid size to be zero, even on land. It may be  
     356best not to eliminate land processors when running the model especially to write the  
     357mesh files as outputs (when \np{nmsh} namelist parameter differs from 0). 
     358\gmcomment{Steven : dont understand this, no land processor means no output file  
     359covering this part of globe; its only when files are stitched together into one that you  
     360can leave a hole} 
    338361 
    339362%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    383406NEMO (originally in OPA8.2). It allows the user to  
    384407\begin{itemize} 
    385 \item tell the model that a boundary is ''open'' and not closed by a wall, for example by modifying the calculation of the divergence of velocity there; 
    386 \item impose values of tracers and velocities at that boundary (values which may be taken from a climatology): this is the``fixed OBC'' option.  
    387 \item calculate boundary values by a sophisticated algorithm combining radiation and relaxation (``radiative OBC'' option) 
     408\item tell the model that a boundary is ''open'' and not closed by a wall, for example  
     409by modifying the calculation of the divergence of velocity there; 
     410\item impose values of tracers and velocities at that boundary (values which may  
     411be taken from a climatology): this is the``fixed OBC'' option.  
     412\item calculate boundary values by a sophisticated algorithm combining radiation  
     413and relaxation (``radiative OBC'' option) 
    388414\end{itemize} 
    389415 
     
    529555to indices $ib:ie$, $jb:je$ of the global domain, the bathymetry and forcing of the  
    530556small domain can be created by using the following netcdf utility on the global files:  
    531 ncks -F $-d\;x,ib,ie$ $-d\;y,jb,je$ (part of the nco series of utilities, see http://nco.sourceforge.net). The open boundary files can be constructed using ncks  
     557ncks -F $-d\;x,ib,ie$ $-d\;y,jb,je$ (part of the nco series of utilities, see http://nco.sourceforge.net).  
     558The open boundary files can be constructed using ncks  
    532559commands, following table~\ref{Tab_obc_ind}.  
    533560 
  • trunk/DOC/TexFiles/Chapters/Chap_LDF.tex

    r999 r1224  
    7575 
    7676\subsubsection{Horizontally Varying Mixing Coefficients (\key{ldftra\_c2d} and \key{ldfdyn\_c2d})} 
    77 By default the horizontal variation of the eddy coefficient depends on the local mesh size and the type of operator used: 
     77By default the horizontal variation of the eddy coefficient depends on the local mesh  
     78size and the type of operator used: 
    7879\begin{equation} \label{Eq_title} 
    7980  A_l = \left\{      
     
    8485\quad \text{comments} 
    8586\end{equation} 
    86 where $e_{max}$ is the maximum of $e_1$ and $e_2$ taken over the whole masked ocean domain, and $A_o^l$ is the \np{ahm0} (momentum) or \np{aht0} (tracer) namelist parameter. This variation is intended to reflect the lesser need for subgrid scale eddy mixing where the grid size is smaller in the domain. It was introduced in the context of the DYNAMO modelling project \citep{Willebrand2001}.  
     87where $e_{max}$ is the maximum of $e_1$ and $e_2$ taken over the whole masked  
     88ocean domain, and $A_o^l$ is the \np{ahm0} (momentum) or \np{aht0} (tracer)  
     89namelist parameter. This variation is intended to reflect the lesser need for subgrid  
     90scale eddy mixing where the grid size is smaller in the domain. It was introduced in  
     91the context of the DYNAMO modelling project \citep{Willebrand2001}.  
    8792%%% 
    88 \gmcomment { not only that! stability reasons: with non uniform grid size, it is common to face a blow up of the model due to to large diffusive coefficient compare to the smallest grid size... this is especially true for bilaplacian (to be added in the text!)  } 
     93\gmcomment { not only that! stability reasons: with non uniform grid size, it is common  
     94to face a blow up of the model due to to large diffusive coefficient compare to the smallest  
     95grid size... this is especially true for bilaplacian (to be added in the text!)  } 
    8996 
    9097Other formulations can be introduced by the user for a given configuration.  
     
    150157 
    151158%%% 
    152 \gmcomment{  we should emphasize here that the implementation is a rather old one. Better work can be achieved by using \citet{Griffies1998, Griffies2004} iso-neutral scheme. } 
     159\gmcomment{  we should emphasize here that the implementation is a rather old one.  
     160Better work can be achieved by using \citet{Griffies1998, Griffies2004} iso-neutral scheme. } 
    153161 
    154162A direction for lateral mixing has to be defined when the desired operator does  
     
    227235\end{equation} 
    228236 
    229 %gm% rewrite this as the explanation in not very clear !!! 
     237%gm% rewrite this as the explanation is not very clear !!! 
    230238%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.  
    231239 
     
    262270 
    263271%gm%  
    264 Note: The solution for $s$-coordinate passes trough the use of different (and better) expression for the constraint on iso-neutral fluxes. Following \citet{Griffies2004}, instead of specifying directly that there is a zero neutral diffusive flux of locally referenced potential density, we stay in the $T$-$S$ plane and consider the balance between the neutral direction diffusive fluxes of potential temperature and salinity: 
     272Note: The solution for $s$-coordinate passes trough the use of different  
     273(and better) expression for the constraint on iso-neutral fluxes. Following  
     274\citet{Griffies2004}, instead of specifying directly that there is a zero neutral  
     275diffusive flux of locally referenced potential density, we stay in the $T$-$S$  
     276plane and consider the balance between the neutral direction diffusive fluxes  
     277of potential temperature and salinity: 
    265278\begin{equation} 
    266279\alpha \ \textbf{F}(T) = \beta \ \textbf{F}(S) 
     
    323336the effect of an horizontal background mixing.  
    324337 
    325 Nevertheless, this iso-neutral operator does not ensure that variance cannot increase, contrary to the \citet{Griffies1998} operator which has that property.  
     338Nevertheless, this iso-neutral operator does not ensure that variance cannot increase,  
     339contrary to the \citet{Griffies1998} operator which has that property.  
    326340 
    327341%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    332346%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    333347 
    334 %There are three additional questions about the slope calculation. First the expression for the rotation tensor has been obtain assuming the "small slope" approximation, so a bound has to be imposed on slopes. Second, numerical stability issues also require a bound on slopes. Third, the question of boundary condition specified on slopes... 
     348%There are three additional questions about the slope calculation.  
     349%First the expression for the rotation tensor has been obtain assuming the "small slope" approximation, so a bound has to be imposed on slopes.  
     350%Second, numerical stability issues also require a bound on slopes.  
     351%Third, the question of boundary condition specified on slopes... 
    335352 
    336353%from griffies: chapter 13.1.... 
     
    338355 
    339356 
    340 In addition and also for numerical stability reasons \citep{Cox1987, Griffies2004}, the slopes are bounded by $1/100$ everywhere. This limit is decreasing linearly to zero fom $70$ meters depth  
    341 and the surface (the fact that the eddies "feel" the surface motivates this  
    342 flattening of isopycnals near the surface). 
     357In addition and also for numerical stability reasons \citep{Cox1987, Griffies2004},  
     358the slopes are bounded by $1/100$ everywhere. This limit is decreasing linearly  
     359to zero fom $70$ meters depth and the surface (the fact that the eddies "feel" the  
     360surface motivates this flattening of isopycnals near the surface). 
    343361 
    344362For numerical stability reasons \citep{Cox1987, Griffies2004}, the slopes must also  
     
    404422an eddy induced tracer advection term is added, the formulation of which  
    405423depends on the slopes of iso-neutral surfaces. Contrary to the case of iso-neutral  
    406 mixing, the slopes used here are referenced to the geopotential surfaces, $i.e.$ \eqref{Eq_ldfslp_geo} is used in $z$-coordinates, and the sum \eqref{Eq_ldfslp_geo}   
     424mixing, the slopes used here are referenced to the geopotential surfaces, $i.e.$  
     425\eqref{Eq_ldfslp_geo} is used in $z$-coordinates, and the sum \eqref{Eq_ldfslp_geo}   
    407426+ \eqref{Eq_ldfslp_iso} in $s$-coordinates. The eddy induced velocity is given by:  
    408427\begin{equation} \label{Eq_ldfeiv} 
  • trunk/DOC/TexFiles/Chapters/Chap_MISC.tex

    r998 r1224  
    4040\textit{Top}: using partially open cells. The meridional scale factor at $v$-point  
    4141is reduced on both sides of the strait to account for the real width of the strait  
    42 (about 20 km). Note that the scale factors of the strait $T$-point remains unchanged. \textit{Bottom}: using viscous boundary layers. The four fmask parameters  
     42(about 20 km). Note that the scale factors of the strait $T$-point remains unchanged.  
     43\textit{Bottom}: using viscous boundary layers. The four fmask parameters  
    4344along the strait coastlines are set to a value larger than 4, $i.e.$ "strong" no-slip  
    4445case (see Fig.\ref{Fig_LBC_shlat}) creating a large viscous boundary layer  
     
    124125\key{cfg\_1d} CPP key. This 1D model is a very useful tool  \textit{(a)} to learn  
    125126about the physics and numerical treatment of vertical mixing processes ; \textit{(b)}  
    126 to investigate suitable parameterizations of unresolved turbulence (wind steering,  
     127to investigate suitable parameterisations of unresolved turbulence (wind steering,  
    127128langmuir circulation, skin layers) ; \textit{(c)} to compare the behaviour of different  
    128129vertical mixing schemes  ; \textit{(d)} to perform sensitivity studies on the vertical  
     
    254255size. This allows a very large model domain to be used, just by changing the domain  
    255256size (\jp{jpiglo}, \jp{jpjglo}) and without adjusting either the time-step or the physical  
    256 parameterizations.  
     257parameterisations.  
    257258 
    258259 
     
    429430{\textbf{ x}}^{n+1}=\text{inf} _{{\textbf{ y}}={\textbf{ x}}^n+\alpha^n \,{\textbf{ d}}^n} \,\phi ({\textbf{ y}})\;\;\Leftrightarrow \;\;\frac{d\phi }{d\alpha}=0 
    430431\end{equation*} 
    431 and expressing $\phi (\textbf{y})$ as a function of \textit{$\alpha $}, we obtain the value that minimises the functional:  
     432and expressing $\phi (\textbf{y})$ as a function of \textit{$\alpha $}, we obtain the  
     433value that minimises the functional:  
    432434\begin{equation*} 
    433435\alpha ^n = \langle{ \textbf{r}^n , \textbf{r}^n} \rangle  / \langle {\textbf{ A d}^n, \textbf{d}^n} \rangle 
     
    439441product linked to \textbf{A}. Expressing the condition  
    440442$\langle \textbf{A d}^n, \textbf{d}^{n-1} \rangle = 0$ the value of $\beta ^n$ is found: 
    441  $\beta ^n = \langle{ \textbf{r}^n , \textbf{r}^n} \rangle  / \langle {\textbf{r}^{n-1}, \textbf{r}^{n-1}} \rangle$. As a result, the errors $ \textbf{r}^n$ form an orthogonal  
     443 $\beta ^n = \langle{ \textbf{r}^n , \textbf{r}^n} \rangle  / \langle {\textbf{r}^{n-1}, \textbf{r}^{n-1}} \rangle$.  
     444 As a result, the errors $ \textbf{r}^n$ form an orthogonal  
    442445base for the canonic dot product while the descent vectors $\textbf{d}^n$ form  
    443446an orthogonal base for the dot product linked to \textbf{A}. The resulting  
     
    497500The same algorithm can be used to solve \eqref{Eq_pmat} if instead of the  
    498501canonical dot product the following one is used:  
    499 ${\langle{ \textbf{a} , \textbf{b}} \rangle}_Q = \langle{ \textbf{a} , \textbf{Q b}} \rangle$,  
    500 and if $\textbf{\~{b}} = \textbf{Q}^{-1}\;\textbf{b}$ and $\textbf{\~{A}} = \textbf{Q}^{-1}\;\textbf{A}$ are substituted to \textbf{b} and \textbf{A} \citep{Madec1988}.  
    501 In \NEMO, \textbf{Q} is chosen as the diagonal of \textbf{ A}, i.e. the simplest form for \textbf{Q} so that it can be easily inverted. In this case, the discrete formulation of  
     502${\langle{ \textbf{a} , \textbf{b}} \rangle}_Q = \langle{ \textbf{a} , \textbf{Q b}} \rangle$, and  
     503if $\textbf{\~{b}} = \textbf{Q}^{-1}\;\textbf{b}$ and $\textbf{\~{A}} = \textbf{Q}^{-1}\;\textbf{A}$  
     504are substituted to \textbf{b} and \textbf{A} \citep{Madec1988}.  
     505In \NEMO, \textbf{Q} is chosen as the diagonal of \textbf{ A}, i.e. the simplest form for  
     506\textbf{Q} so that it can be easily inverted. In this case, the discrete formulation of  
    502507\eqref{Eq_pmat} is in fact given by \eqref{Eq_solmat_p} and thus the matrix and  
    503508right hand side are computed independently from the solver used. 
     
    609614%       Tracer/Dynamics Trends 
    610615% ------------------------------------------------------------------------------------------------------------- 
    611 \subsection{Tracer/Dynamics Trends (\key{trdlmd}, \key{diatrdtra}, \key{diatrddyn})} 
     616\subsection[Tracer/Dynamics Trends (\key{trdlmd}, \textbf{key\_diatrd...})] 
     617                  {Tracer/Dynamics Trends (\key{trdlmd}, \key{diatrdtra}, \key{diatrddyn})} 
    612618\label{MISC_tratrd} 
    613619 
     
    636642 
    637643The on-line computation of floats adevected either by the three dimensional velocity  
    638 field or constraint to remain at a given depth ($w = 0$ in the computation) have been introduced in the system during the CLIPPER project. The algorithm used is based on  
     644field or constraint to remain at a given depth ($w = 0$ in the computation) have been  
     645introduced in the system during the CLIPPER project. The algorithm used is based on  
    639646the work of \cite{Blanke_Raynaud_JPO97}. (see also the web site describing the off-line  
    640647use of this marvellous diagnostic tool (http://stockage.univ-brest.fr/~grima/Ariane/). 
  • trunk/DOC/TexFiles/Chapters/Chap_Model_Basics.tex

    r998 r1224  
    2727velocity, plus the following additional assumptions made from scale considerations: 
    2828 
    29 \textit{(1) spherical earth approximation: }the geopotential surfaces are assumed to be spheres so that gravity (local vertical) is parallel to the earth's radius 
     29\textit{(1) spherical earth approximation: }the geopotential surfaces are assumed to  
     30be spheres so that gravity (local vertical) is parallel to the earth's radius 
    3031 
    3132\textit{(2) thin-shell approximation: }the ocean depth is neglected compared to the earth's radius 
    3233 
    33 \textit{(3) turbulent closure hypothesis: }the turbulent fluxes (which represent the effect of small scale processes on the large-scale) are expressed in terms of large-scale features 
    34  
    35 \textit{(4) Boussinesq hypothesis:} density variations are neglected except in their contribution to the buoyancy force 
    36  
    37 \textit{(5) Hydrostatic hypothesis: }the vertical momentum equation is reduced to a balance between the vertical pressure gradient and the buoyancy force (this removes convective processes from  
    38 the initial Navier-Stokes equations and so convective processes must be parameterized instead) 
    39  
    40 \textit{(6) Incompressibility hypothesis: }the three dimensional divergence of the velocity vector is assumed to be zero. 
    41  
    42 Because the gravitational force is so dominant in the equations of large-scale motions, it is useful to choose an orthogonal set of unit vectors (\textbf{i},\textbf{j},\textbf{k}) linked to the earth such that \textbf{k} is the local upward vector and (\textbf{i},\textbf{j}) are two vectors orthogonal to \textbf{k}, $i.e.$ tangent to the geopotential surfaces. Let us define the following variables: \textbf{U} the vector velocity, $\textbf{U}=\textbf{U}_h + w\, \textbf{k}$ (the subscript $h$ denotes the local horizontal vector, $i.e.$ over the (\textbf{i},\textbf{j}) plane), $T$ the potential temperature, $S$ the salinity, \textit{$\rho $} the \textit{in situ} density. The vector invariant form of the primitive equations in the (\textbf{i},\textbf{j},\textbf{k}) vector system provides the following six equations (namely the momentum balance, the hydrostatic equilibrium, the incompressibility equation, the heat and salt conservation equations and an equation of state): 
     34\textit{(3) turbulent closure hypothesis: }the turbulent fluxes (which represent the effect  
     35of small scale processes on the large-scale) are expressed in terms of large-scale features 
     36 
     37\textit{(4) Boussinesq hypothesis:} density variations are neglected except in their  
     38contribution to the buoyancy force 
     39 
     40\textit{(5) Hydrostatic hypothesis: }the vertical momentum equation is reduced to a  
     41balance between the vertical pressure gradient and the buoyancy force (this removes  
     42convective processes from the initial Navier-Stokes equations and so convective processes  
     43must be parameterized instead) 
     44 
     45\textit{(6) Incompressibility hypothesis: }the three dimensional divergence of the velocity  
     46vector is assumed to be zero. 
     47 
     48Because the gravitational force is so dominant in the equations of large-scale motions,  
     49it is useful to choose an orthogonal set of unit vectors (\textbf{i},\textbf{j},\textbf{k}) linked  
     50to the earth such that \textbf{k} is the local upward vector and (\textbf{i},\textbf{j}) are two  
     51vectors orthogonal to \textbf{k}, $i.e.$ tangent to the geopotential surfaces. Let us define  
     52the following variables: \textbf{U} the vector velocity, $\textbf{U}=\textbf{U}_h + w\, \textbf{k}$  
     53(the subscript $h$ denotes the local horizontal vector, $i.e.$ over the (\textbf{i},\textbf{j}) plane),  
     54$T$ the potential temperature, $S$ the salinity, \textit{$\rho $} the \textit{in situ} density.  
     55The vector invariant form of the primitive equations in the (\textbf{i},\textbf{j},\textbf{k})  
     56vector system provides the following six equations (namely the momentum balance, the  
     57hydrostatic equilibrium, the incompressibility equation, the heat and salt conservation  
     58equations and an equation of state): 
    4359\begin{subequations} \label{Eq_PE} 
    4460  \begin{equation}     \label{Eq_PE_dyn} 
     
    6581  \end{equation} 
    6682\end{subequations} 
    67 where $\nabla$ is the generalised derivative vector operator in $(\bf i,\bf j, \bf k)$ directions, $t$ is the time, $z$ is the vertical coordinate, $\rho $ is the \textit{in situ} density given by the equation of state (\ref{Eq_PE_eos}), $\rho_o$ is a reference density, $p$ the pressure, $f=2 \bf \Omega \cdot \bf k$ is the Coriolis acceleration (where $\bf \Omega$ is the Earth's angular velocity vector), and $g$ is the gravitational acceleration.  
    68 ${\rm {\bf D}}^{\rm {\bf U}}$, $D^T$ and $D^S$ are the parameterizations of small-scale physics for momentum, temperature and salinity, and ${\rm {\bf F}}^{\rm {\bf U}}$, $F^T$ and $F^S$ surface forcing terms. Their nature and formulation are discussed in \S\ref{PE_zdf_ldf} and page \S\ref{PE_boundary_condition}. 
     83where $\nabla$ is the generalised derivative vector operator in $(\bf i,\bf j, \bf k)$ directions,  
     84$t$ is the time, $z$ is the vertical coordinate, $\rho $ is the \textit{in situ} density given by  
     85the equation of state (\ref{Eq_PE_eos}), $\rho_o$ is a reference density, $p$ the pressure,  
     86$f=2 \bf \Omega \cdot \bf k$ is the Coriolis acceleration (where $\bf \Omega$ is the Earth's  
     87angular velocity vector), and $g$ is the gravitational acceleration.  
     88${\rm {\bf D}}^{\rm {\bf U}}$, $D^T$ and $D^S$ are the parameterisations of small-scale  
     89physics for momentum, temperature and salinity, and ${\rm {\bf F}}^{\rm {\bf U}}$, $F^T$  
     90and $F^S$ surface forcing terms. Their nature and formulation are discussed in  
     91\S\ref{PE_zdf_ldf} and page \S\ref{PE_boundary_condition}. 
    6992 
    7093. 
     
    7699\label{PE_boundary_condition} 
    77100 
    78 An ocean is bounded by complex coastlines, bottom topography at its base and an air-sea or ice-sea interface at its top. These boundaries can be defined by two surfaces, $z=-H(i,j)$ and $z=\eta(i,j,k,t)$, where $H$ is the depth of the ocean bottom and $\eta$ is the height of the sea surface. Both $H$ and $\eta$ are usually referenced to a given surface, $z=0$, chosen as a mean sea surface (Fig.~\ref{Fig_ocean_bc}). Through these two boundaries, the ocean can exchange fluxes of heat, fresh water, salt, and momentum with the solid earth, the continental margins, the sea ice and the atmosphere. However, some of these fluxes are so weak that even on climatic time scales of thousands of years they can be neglected. In the following, we briefly review the fluxes exchanged at the interfaces between the ocean and the other components of the earth system. 
     101An ocean is bounded by complex coastlines, bottom topography at its base and an air-sea  
     102or ice-sea interface at its top. These boundaries can be defined by two surfaces, $z=-H(i,j)$  
     103and $z=\eta(i,j,k,t)$, where $H$ is the depth of the ocean bottom and $\eta$ is the height  
     104of the sea surface. Both $H$ and $\eta$ are usually referenced to a given surface, $z=0$,  
     105chosen as a mean sea surface (Fig.~\ref{Fig_ocean_bc}). Through these two boundaries,  
     106the ocean can exchange fluxes of heat, fresh water, salt, and momentum with the solid earth,  
     107the continental margins, the sea ice and the atmosphere. However, some of these fluxes are  
     108so weak that even on climatic time scales of thousands of years they can be neglected.  
     109In the following, we briefly review the fluxes exchanged at the interfaces between the ocean  
     110and the other components of the earth system. 
    79111 
    80112%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    81113\begin{figure}[!ht] \label{Fig_ocean_bc}  \begin{center} 
    82114\includegraphics[width=0.90\textwidth]{./TexFiles/Figures/Fig_I_ocean_bc.pdf} 
    83 \caption{The ocean is bounded by two surfaces, $z=-H(i,j)$ and $z=\eta(i,j,k,t)$, where $H$ is the depth of the sea floor and $\eta$ the height of the sea surface. Both $H$ and $\eta $ are referenced to $z=0$.} 
     115\caption{The ocean is bounded by two surfaces, $z=-H(i,j)$ and $z=\eta(i,j,k,t)$, where $H$  
     116is the depth of the sea floor and $\eta$ the height of the sea surface. Both $H$ and $\eta $  
     117are referenced to $z=0$.} 
    84118\end{center}   \end{figure} 
    85119%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    87121 
    88122\begin{description} 
    89 \item[Land - ocean interface:] the major flux between continental margins and the ocean is a mass exchange of fresh water through river runoff. Such an exchange modifies the sea surface salinity especially in the vicinity of major river mouths. It can be neglected for short range integrations but has to be taken into account for long term integrations as it influences the characteristics of water masses formed (especially at high latitudes). It is required in order to close the water cycle of the climate system. It is usually specified as a fresh water flux at the air-sea interface in the vicinity of river mouths. 
    90 \item[Solid earth - ocean interface:] heat and salt fluxes through the sea floor are small, except in special areas of little extent. They are usually neglected in the model \footnote{In fact, it has been shown that the heat flux associated with the solid Earth cooling ($i.e.$the geothermal heating) is not negligible for the thermohaline circulation of the world ocean (see \ref{TRA_bbc}).}. The boundary condition is thus set to no flux of heat and salt across solid boundaries. For momentum, the situation is different. There is no flow across solid boundaries, $i.e.$ the velocity normal to the ocean bottom and coastlines is zero (in other words, the bottom velocity is parallel to solid boundaries). This kinematic boundary condition can be expressed as: 
     123\item[Land - ocean interface:] the major flux between continental margins and the ocean is  
     124a mass exchange of fresh water through river runoff. Such an exchange modifies the sea  
     125surface salinity especially in the vicinity of major river mouths. It can be neglected for short  
     126range integrations but has to be taken into account for long term integrations as it influences  
     127the characteristics of water masses formed (especially at high latitudes). It is required in order  
     128to close the water cycle of the climate system. It is usually specified as a fresh water flux at  
     129the air-sea interface in the vicinity of river mouths. 
     130\item[Solid earth - ocean interface:] heat and salt fluxes through the sea floor are small,  
     131except in special areas of little extent. They are usually neglected in the model  
     132\footnote{In fact, it has been shown that the heat flux associated with the solid Earth cooling  
     133($i.e.$the geothermal heating) is not negligible for the thermohaline circulation of the world  
     134ocean (see \ref{TRA_bbc}).}.  
     135The boundary condition is thus set to no flux of heat and salt across solid boundaries.  
     136For momentum, the situation is different. There is no flow across solid boundaries,  
     137$i.e.$ the velocity normal to the ocean bottom and coastlines is zero (in other words,  
     138the bottom velocity is parallel to solid boundaries). This kinematic boundary condition  
     139can be expressed as: 
    91140\begin{equation} \label{Eq_PE_w_bbc} 
    92141w = -{\rm {\bf U}}_h \cdot  \nabla _h \left( H \right) 
    93142\end{equation} 
    94 In addition, the ocean exchanges momentum with the earth through frictional processes. Such momentum transfer occurs at small scales in a boundary layer. It must be parameterized in terms of turbulent fluxes using bottom and/or lateral boundary conditions. Its specification depends on the nature of the physical parameterization used for ${\rm {\bf D}}^{\rm {\bf U}}$ in \eqref{Eq_PE_dyn}. It is discussed in \S\ref{PE_zdf}, page~\pageref{PE_zdf}.% and Chap. III.6 to 9. 
    95 \item[Atmosphere - ocean interface:] the kinematic surface condition plus the mass flux of fresh water PE  (the precipitation minus evaporation budget) leads to:  
     143In addition, the ocean exchanges momentum with the earth through frictional processes.  
     144Such momentum transfer occurs at small scales in a boundary layer. It must be parameterized  
     145in terms of turbulent fluxes using bottom and/or lateral boundary conditions. Its specification  
     146depends on the nature of the physical parameterisation used for ${\rm {\bf D}}^{\rm {\bf U}}$  
     147in \eqref{Eq_PE_dyn}. It is discussed in \S\ref{PE_zdf}, page~\pageref{PE_zdf}.% and Chap. III.6 to 9. 
     148\item[Atmosphere - ocean interface:] the kinematic surface condition plus the mass flux  
     149of fresh water PE  (the precipitation minus evaporation budget) leads to:  
    96150\begin{equation} \label{Eq_PE_w_sbc} 
    97151w = \frac{\partial \eta }{\partial t}  
     
    99153    + P-E 
    100154\end{equation} 
    101 The dynamic boundary condition, neglecting the surface tension (which removes capillary waves from the system) leads to the continuity of pressure across the interface $z=\eta$. The atmosphere and ocean also exchange horizontal momentum (wind stress), and heat. 
    102 \item[Sea ice - ocean interface:] the ocean and sea ice exchange heat, salt, fresh water and momentum. The sea surface temperature is constrained to be at the freezing point at the interface. Sea ice salinity is very low ($\sim4-6 \,psu$) compared to those of the ocean ($\sim34 \,psu$). The cycle of freezing/melting is associated with fresh water and salt fluxes that cannot be neglected. 
     155The dynamic boundary condition, neglecting the surface tension (which removes capillary  
     156waves from the system) leads to the continuity of pressure across the interface $z=\eta$.  
     157The atmosphere and ocean also exchange horizontal momentum (wind stress), and heat. 
     158\item[Sea ice - ocean interface:] the ocean and sea ice exchange heat, salt, fresh water  
     159and momentum. The sea surface temperature is constrained to be at the freezing point  
     160at the interface. Sea ice salinity is very low ($\sim4-6 \,psu$) compared to those of the  
     161ocean ($\sim34 \,psu$). The cycle of freezing/melting is associated with fresh water and  
     162salt fluxes that cannot be neglected. 
    103163\end{description} 
    104164 
     
    116176\label{PE_p_formulation} 
    117177 
    118 The total pressure at a given depth $z$ is composed of a surface pressure $p_s$ at a reference geopotential surface ($z=0$) and a hydrostatic pressure $p_h$ such that: $p(i,j,k,t)=p_s(i,j,t)+p_h(i,j,k,t)$. The latter is computed by integrating (\ref{Eq_PE_hydrostatic}), assuming that pressure in decibars can be approximated by depth in meters in (\ref{Eq_PE_eos}). The hydrostatic pressure is then given by: 
     178The total pressure at a given depth $z$ is composed of a surface pressure $p_s$ at a  
     179reference geopotential surface ($z=0$) and a hydrostatic pressure $p_h$ such that:  
     180$p(i,j,k,t)=p_s(i,j,t)+p_h(i,j,k,t)$. The latter is computed by integrating (\ref{Eq_PE_hydrostatic}),  
     181assuming that pressure in decibars can be approximated by depth in meters in (\ref{Eq_PE_eos}).  
     182The hydrostatic pressure is then given by: 
    119183\begin{equation} \label{Eq_PE_pressure} 
    120184p_h \left( {i,j,z,t} \right) 
    121  = \int_{\varsigma =z}^{\varsigma =0} {g\;\rho \left( {T,S,z} \right)\;d\varsigma }  
    122 \end{equation} 
    123  Two strategies can be considered for the surface pressure term: $(a)$ introduce of a new variable $\eta$, the free-surface elevation, for which a prognostic equation can be established and solved; $(b)$ assume that the ocean surface is a rigid lid, on which the pressure (or its horizontal gradient) can be diagnosed. When the former strategy is used, one solution of the free-surface elevation consists of the excitation of external gravity waves. The flow is barotropic and the surface moves up and down with gravity as the restoring force. The phase speed of such waves is high (some hundreds of metres per second) so that the time step would have to be very short if they were present in the model. The latter strategy filters out these waves since the rigid lid approximation implies $\eta=0$, $i.e.$ the sea surface is the surface $z=0$. This well known approximation increases the surface wave speed to infinity and modifies certain other longwave dynamics ($e.g.$ barotropic Rossby or planetary waves). In the present release of \NEMO, both strategies are still available. They are further described in the next two sub-sections. 
     185 = \int_{\varsigma =z}^{\varsigma =0} {g\;\rho \left( {T,S,\varsigma} \right)\;d\varsigma }  
     186\end{equation} 
     187 Two strategies can be considered for the surface pressure term: $(a)$ introduce of a  
     188 new variable $\eta$, the free-surface elevation, for which a prognostic equation can be  
     189 established and solved; $(b)$ assume that the ocean surface is a rigid lid, on which the  
     190 pressure (or its horizontal gradient) can be diagnosed. When the former strategy is used,  
     191 one solution of the free-surface elevation consists of the excitation of external gravity waves.  
     192 The flow is barotropic and the surface moves up and down with gravity as the restoring force.  
     193 The phase speed of such waves is high (some hundreds of metres per second) so that  
     194 the time step would have to be very short if they were present in the model. The latter  
     195 strategy filters out these waves since the rigid lid approximation implies $\eta=0$, $i.e.$  
     196 the sea surface is the surface $z=0$. This well known approximation increases the surface  
     197 wave speed to infinity and modifies certain other longwave dynamics ($e.g.$ barotropic  
     198 Rossby or planetary waves). In the present release of \NEMO, both strategies are still available.  
     199 They are further described in the next two sub-sections. 
    124200 
    125201% ------------------------------------------------------------------------------------------------------------- 
     
    129205\label{PE_free_surface} 
    130206 
    131 In the free surface formulation, a variable $\eta$, the sea-surface height, is introduced which describes the shape of the air-sea interface. This variable is solution of a prognostic equation which is established by forming the vertical average of the kinematic surface condition (\ref{Eq_PE_w_bbc}): 
     207In the free surface formulation, a variable $\eta$, the sea-surface height, is introduced  
     208which describes the shape of the air-sea interface. This variable is solution of a  
     209prognostic equation which is established by forming the vertical average of the kinematic  
     210surface condition (\ref{Eq_PE_w_bbc}): 
    132211\begin{equation} \label{Eq_PE_ssh} 
    133212\frac{\partial \eta }{\partial t}=-D+P-E 
     
    137216and using (\ref{Eq_PE_hydrostatic}) the surface pressure is given by: $p_s = \rho \, g \, \eta$. 
    138217 
    139 Allowing the air-sea interface to move introduces the external gravity waves (EGWs) as a class of solution of the primitive equations. These waves are barotropic because of hydrostatic assumption, and their phase speed is quite high. Their time scale is short with respect to the other processes described by the primitive equations. 
    140  
    141 Three choices can be made regarding the implementation of the free surface in the model, depending on the physical processes of interest.  
     218Allowing the air-sea interface to move introduces the external gravity waves (EGWs)  
     219as a class of solution of the primitive equations. These waves are barotropic because  
     220of hydrostatic assumption, and their phase speed is quite high. Their time scale is  
     221short with respect to the other processes described by the primitive equations. 
     222 
     223Three choices can be made regarding the implementation of the free surface in the model,  
     224depending on the physical processes of interest.  
    142225 
    143226$\bullet$ If one is interested in EGWs, in particular the tides and their interaction  
    144 with the baroclinic structure of the ocean (internal waves) possibly in  
    145 shallow seas, then a non linear free surface is the most appropriate. This  
    146 means that no approximation is made in (\ref{Eq_PE_ssh}) and that the variation of the  
    147 ocean volume is fully taken into account. Note that in order to study the  
    148 fast time scales associated with EGWs it is necessary to minimize time  
    149 filtering effects (use an explicit time scheme with very small time step, or  
    150 a split-explicit scheme with reasonably small time step, see \S\ref{DYN_spg_exp} or 
    151 \S\ref{DYN_spg_ts}. 
     227with the baroclinic structure of the ocean (internal waves) possibly in shallow seas,  
     228then a non linear free surface is the most appropriate. This means that no  
     229approximation is made in (\ref{Eq_PE_ssh}) and that the variation of the ocean  
     230volume is fully taken into account. Note that in order to study the fast time scales  
     231associated with EGWs it is necessary to minimize time filtering effects (use an  
     232explicit time scheme with very small time step, or a split-explicit scheme with  
     233reasonably small time step, see \S\ref{DYN_spg_exp} or \S\ref{DYN_spg_ts}. 
    152234 
    153235$\bullet$ If one is not interested in EGW but rather sees them as high frequency  
     
    163245external waves are removed from the system.  
    164246 
    165 The filtering of EGWs in models with a free surface is usually a matter of discretisation of the temporal derivatives, using the time splitting method \citep{Killworth1991, Zhang1992} or the implicit scheme \citep{Dukowicz1994}. In \NEMO, we use a slightly different approach developed by \citet{Roullet2000}: the damping of EGWs is ensured by introducing an additional force in the momentum equation. \eqref{Eq_PE_dyn} becomes:  
     247The filtering of EGWs in models with a free surface is usually a matter of discretisation  
     248of the temporal derivatives, using the time splitting method \citep{Killworth1991, Zhang1992}  
     249or the implicit scheme \citep{Dukowicz1994}. In \NEMO, we use a slightly different approach  
     250developed by \citet{Roullet2000}: the damping of EGWs is ensured by introducing an  
     251additional force in the momentum equation. \eqref{Eq_PE_dyn} becomes:  
    166252\begin{equation} \label{Eq_PE_flt} 
    167253\frac{\partial {\rm {\bf U}}_h }{\partial t}= {\rm {\bf M}} 
     
    169255- g \ T_c \nabla \left( \widetilde{\rho} \ \partial_t \eta \right)  
    170256\end{equation} 
    171 where $T_c$, is a parameter with dimensions of time which characterizes the force, $\widetilde{\rho} = \rho / \rho_o$ is the dimensionless density, and $\rm {\bf M}$ represents the collected contributions of the Coriolis, hydrostatic pressure gradient, non-linear and viscous terms in \eqref{Eq_PE_dyn}. 
    172  
    173 The new force can be interpreted as a diffusion of vertically integrated volume flux divergence. The time evolution of $D$ is thus governed by a balance of two terms, $-g$ \textbf{A} $\eta$ and $g \, T_c \,$ \textbf{A} $D$, associated with a propagative regime and a diffusive regime in the temporal spectrum, respectively. In the diffusive regime, the EGWs no longer propagate, $i.e.$ they are stationary and damped. The diffusion regime applies to the modes shorter than $T_c$. For longer ones, the diffusion term vanishes. Hence, the temporally unresolved EGWs can be damped by choosing $T_c > \Delta t$. \citet{Roullet2000} demonstrate that (\ref{Eq_PE_flt}) can be integrated with a leap frog scheme except the additional term which has to be computed implicitly. This is not surprising since the use of a large time step has a necessarily numerical cost. Two gains arise in comparison with the previous formulations. Firstly, the damping of EGWs can be quantified through the magnitude of the additional term. Secondly, the numerical scheme does not need any tuning. Numerical stability is ensured as soon as $T_c > \Delta t$. 
    174  
    175 When the variations of free surface elevation are small compared to the thickness of the first model layer, the free surface equation (\ref{Eq_PE_ssh}) can be linearized. As emphasized by \citet{Roullet2000} the linearization of (\ref{Eq_PE_ssh}) has consequences on the conservation of salt in the model. With the nonlinear free surface equation, the time evolution of the total salt content is  
     257where $T_c$, is a parameter with dimensions of time which characterizes the force,  
     258$\widetilde{\rho} = \rho / \rho_o$ is the dimensionless density, and $\rm {\bf M}$  
     259represents the collected contributions of the Coriolis, hydrostatic pressure gradient,  
     260non-linear and viscous terms in \eqref{Eq_PE_dyn}. 
     261 
     262The new force can be interpreted as a diffusion of vertically integrated volume flux divergence.  
     263The time evolution of $D$ is thus governed by a balance of two terms, $-g$ \textbf{A} $\eta$  
     264and $g \, T_c \,$ \textbf{A} $D$, associated with a propagative regime and a diffusive regime  
     265in the temporal spectrum, respectively. In the diffusive regime, the EGWs no longer propagate,  
     266$i.e.$ they are stationary and damped. The diffusion regime applies to the modes shorter than  
     267$T_c$. For longer ones, the diffusion term vanishes. Hence, the temporally unresolved EGWs  
     268can be damped by choosing $T_c > \Delta t$. \citet{Roullet2000} demonstrate that  
     269(\ref{Eq_PE_flt}) can be integrated with a leap frog scheme except the additional term which  
     270has to be computed implicitly. This is not surprising since the use of a large time step has a  
     271necessarily numerical cost. Two gains arise in comparison with the previous formulations.  
     272Firstly, the damping of EGWs can be quantified through the magnitude of the additional term.  
     273Secondly, the numerical scheme does not need any tuning. Numerical stability is ensured as  
     274soon as $T_c > \Delta t$. 
     275 
     276When the variations of free surface elevation are small compared to the thickness of the first  
     277model layer, the free surface equation (\ref{Eq_PE_ssh}) can be linearized. As emphasized  
     278by \citet{Roullet2000} the linearization of (\ref{Eq_PE_ssh}) has consequences on the  
     279conservation of salt in the model. With the nonlinear free surface equation, the time evolution  
     280of the total salt content is  
    176281\begin{equation} \label{Eq_PE_salt_content} 
    177 \frac{\partial }{\partial t}\int\limits_{D\eta } {S\;dv} =\int\limits_S  
    178 {S\;(-\frac{\partial \eta }{\partial t}-D+P-E)\;ds} 
    179 \end{equation} 
    180 where $S$ is the salinity, and the total salt is integrated over the whole ocean volume $D_\eta$ bounded by the time-dependent free surface. The right hand side (which is an integral over the free surface) vanishes when the nonlinear equation (\ref{Eq_PE_ssh}) is satisfied, so that the salt is perfectly conserved. When the free surface equation is linearized, \citet{Roullet2000} show that the total salt content integrated in the fixed volume $D$ (bounded by the surface $z=0$) is no longer conserved: 
     282    \frac{\partial }{\partial t}\int\limits_{D\eta } {S\;dv}  
     283                        =\int\limits_S {S\;(-\frac{\partial \eta }{\partial t}-D+P-E)\;ds} 
     284\end{equation} 
     285where $S$ is the salinity, and the total salt is integrated over the whole ocean volume  
     286$D_\eta$ bounded by the time-dependent free surface. The right hand side (which is an  
     287integral over the free surface) vanishes when the nonlinear equation (\ref{Eq_PE_ssh})  
     288is satisfied, so that the salt is perfectly conserved. When the free surface equation is  
     289linearized, \citet{Roullet2000} show that the total salt content integrated in the fixed  
     290volume $D$ (bounded by the surface $z=0$) is no longer conserved: 
    181291\begin{equation} \label{Eq_PE_salt_content_linear} 
    182 \frac{\partial }{\partial t}\int\limits_D {S\;dv} =-\int\limits_S  
    183 {S\;\frac{\partial \eta }{\partial t}ds}  
    184 \end{equation} 
    185  
    186 The right hand side of (\ref{Eq_PE_salt_content_linear}) is small in equilibrium solutions \citep{Roullet2000}. It can be significant when the freshwater forcing is not balanced and the globally averaged free surface is drifting. An increase in sea surface height \textit{$\eta $} results in a decrease of the salinity in the fixed volume $D$. Even in that case though, the total salt integrated in the variable volume $D_{\eta}$ varies much less, since (\ref{Eq_PE_salt_content_linear}) can be rewritten as  
     292         \frac{\partial }{\partial t}\int\limits_D {S\;dv}  
     293               = - \int\limits_S {S\;\frac{\partial \eta }{\partial t}ds}  
     294\end{equation} 
     295 
     296The right hand side of (\ref{Eq_PE_salt_content_linear}) is small in equilibrium solutions  
     297\citep{Roullet2000}. It can be significant when the freshwater forcing is not balanced and  
     298the globally averaged free surface is drifting. An increase in sea surface height \textit{$\eta $}  
     299results in a decrease of the salinity in the fixed volume $D$. Even in that case though,  
     300the total salt integrated in the variable volume $D_{\eta}$ varies much less, since  
     301(\ref{Eq_PE_salt_content_linear}) can be rewritten as  
    187302\begin{equation} \label{Eq_PE_salt_content_corrected} 
    188303\frac{\partial }{\partial t}\int\limits_{D\eta } {S\;dv}  
     
    191306\end{equation} 
    192307 
    193 Although the total salt content is not exactly conserved with the linearized free surface, its variations are driven by correlations of the time variation of surface salinity with the sea surface height, which is a negligible term. This situation contrasts with  
    194 the case of the rigid lid approximation (following section) in which case freshwater forcing is represented by a virtual salt flux, leading to a spurious source of salt at the ocean surface \citep{Roullet2000}. 
     308Although the total salt content is not exactly conserved with the linearized free surface,  
     309its variations are driven by correlations of the time variation of surface salinity with the  
     310sea surface height, which is a negligible term. This situation contrasts with the case of  
     311the rigid lid approximation (following section) in which case freshwater forcing is  
     312represented by a virtual salt flux, leading to a spurious source of salt at the ocean  
     313surface \citep{Roullet2000}. 
    195314 
    196315% ------------------------------------------------------------------------------------------------------------- 
     
    200319\label{PE_rigid_lid} 
    201320 
    202 With the rigid lid approximation, we assume that the ocean surface ($z=0$) is a rigid lid on which a pressure $p_s$ is exerted. This implies that the vertical velocity at the surface is equal to zero. From the continuity equation \eqref{Eq_PE_continuity} and the kinematic condition at the bottom \eqref{Eq_PE_w_bbc} (no flux across the bottom), it can be shown that the vertically integrated flow $H{\rm {\bf \bar {U}}}_h$ is non-divergent (where the overbar indicates a vertical average over the whole water column, i.e. from $z=-H$, the ocean bottom, to $z=0$ , the rigid-lid). Thus, $\rm {\bf \bar {U}}_h$ can be derived from a volume transport streamfunction $\psi$: 
     321With the rigid lid approximation, we assume that the ocean surface ($z=0$) is a rigid lid  
     322on which a pressure $p_s$ is exerted. This implies that the vertical velocity at the surface  
     323is equal to zero. From the continuity equation \eqref{Eq_PE_continuity} and the kinematic  
     324condition at the bottom \eqref{Eq_PE_w_bbc} (no flux across the bottom), it can be shown  
     325that the vertically integrated flow $H{\rm {\bf \bar {U}}}_h$ is non-divergent (where the  
     326overbar indicates a vertical average over the whole water column, i.e. from $z=-H$,  
     327the ocean bottom, to $z=0$ , the rigid-lid). Thus, $\rm {\bf \bar {U}}_h$ can be derived  
     328from a volume transport streamfunction $\psi$: 
    203329\begin{equation} \label{Eq_PE_u_psi} 
    204330\overline{\vect{U}}_h =\frac{1}{H}\left(   \vect{k} \times \nabla \psi   \right) 
    205331\end{equation} 
    206332 
    207 As $p_s$ does not depend on depth, its horizontal gradient is obtained by forming the vertical average of \eqref{Eq_PE_dyn} and using \eqref{Eq_PE_u_psi}: 
     333As $p_s$ does not depend on depth, its horizontal gradient is obtained by forming the  
     334vertical average of \eqref{Eq_PE_dyn} and using \eqref{Eq_PE_u_psi}: 
    208335 
    209336\begin{equation} \label{Eq_PE_u_barotrope} 
     
    214341\end{equation} 
    215342 
    216 Here ${\rm {\bf M}} = \left( M_u,M_v \right)$ represents the collected contributions of the Coriolis, hydrostatic pressure gradient, nonlinear and viscous terms in \eqref{Eq_PE_dyn}. The time derivative of $\psi $ is the solution of an elliptic equation which is obtained from the vertical component of the curl of (\ref{Eq_PE_u_barotrope}): 
     343Here ${\rm {\bf M}} = \left( M_u,M_v \right)$ represents the collected contributions of the  
     344Coriolis, hydrostatic pressure gradient, nonlinear and viscous terms in \eqref{Eq_PE_dyn}.  
     345The time derivative of $\psi $ is the solution of an elliptic equation which is obtained from  
     346the vertical component of the curl of (\ref{Eq_PE_u_barotrope}): 
    217347\begin{equation} \label{Eq_PE_psi} 
    218348\left[   {\nabla \times \left[ {\frac{1}{H} \vect{\bf k}  
     
    221351\end{equation} 
    222352 
    223 Using the proper boundary conditions, \eqref{Eq_PE_psi} can be solved to find $\partial_t \psi$ and thus using \eqref{Eq_PE_u_barotrope} the horizontal surface pressure gradient. It should be noted that $p_s$ can be computed by taking the divergence of \eqref{Eq_PE_u_barotrope} and solving the resulting elliptic equation. Thus the surface pressure is a diagnostic quantity that can be recovered for analysis purposes. 
    224  
    225 A difficulty lies in the determination of the boundary condition on $\partial_t \psi$. The boundary condition on velocity is that there is no flow normal to a solid wall, $i.e.$ the coastlines are streamlines. Therefore \eqref{Eq_PE_psi} is solved with the following Dirichlet boundary condition: $\partial_t \psi$ is constant along each coastline of the same continent or of the same island. When all the coastlines are connected (there are no islands), the constant value of $\partial_t \psi$ along the coast can be arbitrarily chosen to be zero. When islands are present in the domain, the value of the barotropic streamfunction will generally be different for each island and for the continent, and will vary with respect to time. So the boundary condition is: $\psi=0$ along the continent and $\psi=\mu_n$ along island $n$ ($1 \leq n \leq Q$), where $Q$ is the number of islands present in the domain and $\mu_n$ is a time dependent variable. A time evolution equation of the unknown $\mu_n$ can be found by evaluating the circulation of the time derivative of the vertical average (barotropic) velocity field along a closed contour around each island. Since the circulation of a gradient field along a closed contour is zero, from \eqref{Eq_PE_u_barotrope} we have: 
     353Using the proper boundary conditions, \eqref{Eq_PE_psi} can be solved to find $\partial_t \psi$  
     354and thus using \eqref{Eq_PE_u_barotrope} the horizontal surface pressure gradient.  
     355It should be noted that $p_s$ can be computed by taking the divergence of  
     356\eqref{Eq_PE_u_barotrope} and solving the resulting elliptic equation. Thus the surface  
     357pressure is a diagnostic quantity that can be recovered for analysis purposes. 
     358 
     359A difficulty lies in the determination of the boundary condition on $\partial_t \psi$.  
     360The boundary condition on velocity is that there is no flow normal to a solid wall,  
     361$i.e.$ the coastlines are streamlines. Therefore \eqref{Eq_PE_psi} is solved with  
     362the following Dirichlet boundary condition: $\partial_t \psi$ is constant along each  
     363coastline of the same continent or of the same island. When all the coastlines are  
     364connected (there are no islands), the constant value of $\partial_t \psi$ along the  
     365coast can be arbitrarily chosen to be zero. When islands are present in the domain,  
     366the value of the barotropic streamfunction will generally be different for each island  
     367and for the continent, and will vary with respect to time. So the boundary condition is:  
     368$\psi=0$ along the continent and $\psi=\mu_n$ along island $n$ ($1 \leq n \leq Q$),  
     369where $Q$ is the number of islands present in the domain and $\mu_n$ is a time  
     370dependent variable. A time evolution equation of the unknown $\mu_n$ can be found  
     371by evaluating the circulation of the time derivative of the vertical average (barotropic)  
     372velocity field along a closed contour around each island. Since the circulation of a  
     373gradient field along a closed contour is zero, from \eqref{Eq_PE_u_barotrope} we have: 
    226374\begin{equation} \label{Eq_PE_isl_circulation} 
    227375\oint_n {\frac{1}{H}\left[ {{\rm {\bf k}}\times \nabla \left(  
     
    256404\right)_{1\leqslant n\leqslant Q} ={\rm {\bf B}} 
    257405\end{equation} 
    258 where \textbf{A} is a $Q  \times Q$ matrix and \textbf{B} is a time dependent vector. As \textbf{A} is independent of time, it can be calculated and inverted once. The time derivative of the streamfunction when islands are present is thus given by: 
     406where \textbf{A} is a $Q  \times Q$ matrix and \textbf{B} is a time dependent vector.  
     407As \textbf{A} is independent of time, it can be calculated and inverted once. The time  
     408derivative of the streamfunction when islands are present is thus given by: 
    259409\begin{equation} \label{Eq_PE_psi_isl_dt} 
    260410\frac{\partial \psi }{\partial t}=\frac{\partial \psi _o }{\partial  
     
    277427\label{PE_tensorial} 
    278428 
    279 In many ocean circulation problems, the flow field has regions of enhanced dynamics ($i.e.$ surface layers, western boundary currents, equatorial currents, or ocean fronts). The representation of such dynamical processes can be improved by specifically increasing the model resolution in these regions. As well, it may be convenient to use a lateral boundary-following coordinate system to better represent coastal dynamics. Moreover, the common geographical coordinate system has a singular point at the North Pole that cannot be easily treated in a global model without filtering. A solution consists of introducing an appropriate coordinate transformation that shifts the singular point onto land \citep{MadecImb1996, Murray1996}. As a consequence, it is important to solve the primitive equations in various curvilinear coordinate systems. An efficient way of introducing an appropriate coordinate transform can be found when using a tensorial formalism. This formalism is suited to any multidimensional curvilinear coordinate system. Ocean modellers mainly use three-dimensional orthogonal grids on the sphere (spherical earth approximation), with preservation of the local vertical. Here we give the simplified equations for this particular case. The general case is detailed by \citet{Eiseman1980} in their survey of the conservation laws of fluid dynamics. 
    280  
    281 Let (\textbf{i},\textbf{j},\textbf{k}) be a set of orthogonal curvilinear coordinates on the sphere associated with the positively oriented orthogonal set of unit vectors (\textbf{i},\textbf{j},\textbf{k}) linked to the earth such that \textbf{k} is the local upward vector and (\textbf{i},\textbf{j}) are two vectors orthogonal to \textbf{k}, $i.e.$ along geopotential surfaces (Fig.\ref{Fig_referential}). Let $(\lambda,\varphi,z)$ be the geographical coordinate system in which a position is defined by the latitude $\varphi(i,j)$, the longitude $\lambda(i,j)$ and the distance from the centre of the earth $a+z(k)$ where $a$ is the earth's radius and $z$ the altitude above a reference sea level (Fig.\ref{Fig_referential}). The local deformation of the curvilinear coordinate system is given by $e_1$, $e_2$ and $e_3$, the three scale factors: 
     429In many ocean circulation problems, the flow field has regions of enhanced dynamics  
     430($i.e.$ surface layers, western boundary currents, equatorial currents, or ocean fronts).  
     431The representation of such dynamical processes can be improved by specifically increasing  
     432the model resolution in these regions. As well, it may be convenient to use a lateral  
     433boundary-following coordinate system to better represent coastal dynamics. Moreover,  
     434the common geographical coordinate system has a singular point at the North Pole that  
     435cannot be easily treated in a global model without filtering. A solution consists of introducing  
     436an appropriate coordinate transformation that shifts the singular point onto land  
     437\citep{MadecImb1996, Murray1996}. As a consequence, it is important to solve the primitive  
     438equations in various curvilinear coordinate systems. An efficient way of introducing an  
     439appropriate coordinate transform can be found when using a tensorial formalism.  
     440This formalism is suited to any multidimensional curvilinear coordinate system. Ocean  
     441modellers mainly use three-dimensional orthogonal grids on the sphere (spherical earth  
     442approximation), with preservation of the local vertical. Here we give the simplified equations  
     443for this particular case. The general case is detailed by \citet{Eiseman1980} in their survey  
     444of the conservation laws of fluid dynamics. 
     445 
     446Let (\textbf{i},\textbf{j},\textbf{k}) be a set of orthogonal curvilinear coordinates on the sphere  
     447associated with the positively oriented orthogonal set of unit vectors (\textbf{i},\textbf{j},\textbf{k})  
     448linked to the earth such that \textbf{k} is the local upward vector and (\textbf{i},\textbf{j}) are  
     449two vectors orthogonal to \textbf{k}, $i.e.$ along geopotential surfaces (Fig.\ref{Fig_referential}).  
     450Let $(\lambda,\varphi,z)$ be the geographical coordinate system in which a position is defined  
     451by the latitude $\varphi(i,j)$, the longitude $\lambda(i,j)$ and the distance from the centre of  
     452the earth $a+z(k)$ where $a$ is the earth's radius and $z$ the altitude above a reference sea  
     453level (Fig.\ref{Fig_referential}). The local deformation of the curvilinear coordinate system is  
     454given by $e_1$, $e_2$ and $e_3$, the three scale factors: 
    282455\begin{equation} \label{Eq_scale_factors} 
    283456\begin{aligned} 
     
    295468\begin{figure}[!tb] \label{Fig_referential}  \begin{center} 
    296469\includegraphics[width=0.60\textwidth]{./TexFiles/Figures/Fig_I_earth_referential.pdf} 
    297 \caption{the geographical coordinate system $(\lambda,\varphi,z)$ and the curvilinear coordinate system (\textbf{i},\textbf{j},\textbf{k}). } 
     470\caption{the geographical coordinate system $(\lambda,\varphi,z)$ and the curvilinear  
     471coordinate system (\textbf{i},\textbf{j},\textbf{k}). } 
    298472\end{center}   \end{figure} 
    299473%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    300474 
    301 Since the ocean depth is far smaller than the earth's radius, $a+z$, can be replaced by $a$ in (\ref{Eq_scale_factors}) (thin-shell approximation). The resulting horizontal scale factors $e_1$, $e_2$  are independent of $k$ while the vertical scale factor is a single function of $k$ as \textbf{k} is parallel to \textbf{z}. The scalar and vector operators that appear in the primitive equations (Eqs. \eqref{Eq_PE_dyn} to \eqref{Eq_PE_eos}) can be written in the tensorial form, invariant in any orthogonal horizontal curvilinear coordinate system transformation: 
     475Since the ocean depth is far smaller than the earth's radius, $a+z$, can be replaced by  
     476$a$ in (\ref{Eq_scale_factors}) (thin-shell approximation). The resulting horizontal scale  
     477factors $e_1$, $e_2$  are independent of $k$ while the vertical scale factor is a single  
     478function of $k$ as \textbf{k} is parallel to \textbf{z}. The scalar and vector operators that  
     479appear in the primitive equations (Eqs. \eqref{Eq_PE_dyn} to \eqref{Eq_PE_eos}) can  
     480be written in the tensorial form, invariant in any orthogonal horizontal curvilinear coordinate  
     481system transformation: 
    302482\begin{subequations} \label{Eq_PE_discrete_operators} 
    303483\begin{equation} \label{Eq_PE_grad} 
     
    341521\label{PE_zco_Eq} 
    342522 
    343 In order to express the Primitive Equations in tensorial formalism, it is necessary to compute the horizontal component of the non-linear and viscous terms of the equation using \eqref{Eq_PE_grad}) to \eqref{Eq_PE_lap_vector}. Let us set $\vect U=(u,v,w)={\vect{U}}_h +w\;\vect{k}$, the velocity in the $(i,j,k)$ coordinate system and define the relative vorticity $\zeta$ and the divergence of the horizontal velocity field $\chi$, by: 
     523In order to express the Primitive Equations in tensorial formalism, it is necessary to compute  
     524the horizontal component of the non-linear and viscous terms of the equation using  
     525\eqref{Eq_PE_grad}) to \eqref{Eq_PE_lap_vector}.  
     526Let us set $\vect U=(u,v,w)={\vect{U}}_h +w\;\vect{k}$, the velocity in the $(i,j,k)$ coordinate  
     527system and define the relative vorticity $\zeta$ and the divergence of the horizontal velocity  
     528field $\chi$, by: 
    344529\begin{equation} \label{Eq_PE_curl_Uh} 
    345530\zeta =\frac{1}{e_1 e_2 }\left[ {\frac{\partial \left( {e_2 \,v}  
     
    353538\end{equation} 
    354539 
    355 Using the fact that the horizontal scale factors $e_1$ and $e_2$ are independent of $k$ and that $e_3$  is a function of the single variable $k$, the nonlinear term of \eqref{Eq_PE_dyn} can be transformed as follows: 
     540Using the fact that the horizontal scale factors $e_1$ and $e_2$ are independent of $k$  
     541and that $e_3$  is a function of the single variable $k$, the nonlinear term of  
     542\eqref{Eq_PE_dyn} can be transformed as follows: 
    356543\begin{flalign*} 
    357544&\left[ {\left( { \nabla \times {\rm {\bf U}}    } \right) \times {\rm {\bf U}} 
     
    391578\end{flalign*} 
    392579 
    393 The last term of the right hand side is obviously zero, and thus the nonlinear term of \eqref{Eq_PE_dyn} is written in the $(i,j,k)$ coordinate system: 
     580The last term of the right hand side is obviously zero, and thus the nonlinear term of  
     581\eqref{Eq_PE_dyn} is written in the $(i,j,k)$ coordinate system: 
    394582\begin{equation} \label{Eq_PE_vector_form} 
    395583\left[ {\left( {  \nabla \times {\rm {\bf U}}    } \right) \times {\rm {\bf U}} 
     
    401589\end{equation} 
    402590 
    403 This is the so-called \textit{vector invariant form} of the momentum advection term. For some purposes, it can be advantageous to write this term in the so-called flux form, $i.e.$ to write it as the divergence of fluxes. For example, the first component of \eqref{Eq_PE_vector_form} (the $i$-component) is transformed as follows: 
     591This is the so-called \textit{vector invariant form} of the momentum advection term.  
     592For some purposes, it can be advantageous to write this term in the so-called flux form,  
     593$i.e.$ to write it as the divergence of fluxes. For example, the first component of  
     594\eqref{Eq_PE_vector_form} (the $i$-component) is transformed as follows: 
    404595\begin{flalign*} 
    405596&{ \begin{array}{*{20}l} 
     
    486677\end{multline} 
    487678 
    488 The flux form has two terms, the first one is expressed as the divergence of momentum fluxes (hence the flux form name given to this formulation) and the second one is due to the curvilinear nature of the coordinate system used. The latter is called the \emph{metric} term and can be viewed as a modification of the Coriolis parameter:  
     679The flux form has two terms, the first one is expressed as the divergence of momentum  
     680fluxes (hence the flux form name given to this formulation) and the second one is due to  
     681the curvilinear nature of the coordinate system used. The latter is called the \emph{metric}  
     682term and can be viewed as a modification of the Coriolis parameter:  
    489683\begin{equation} \label{Eq_PE_cor+metric} 
    490684f \to f + \frac{1}{e_1 \; e_2}   \left(    v \frac{\partial e_2}{\partial i} 
     
    492686\end{equation} 
    493687 
    494 Note that in the case of geographical coordinate, $i.e.$ when $(i,j) \to (\lambda ,\varphi )$ and $(e_1 ,e_2) \to (a \,\cos \varphi ,a)$, we recover the commonly used modification of the Coriolis parameter $f \to f+(u/a) \tan \varphi$. 
     688Note that in the case of geographical coordinate, $i.e.$ when $(i,j) \to (\lambda ,\varphi )$  
     689and $(e_1 ,e_2) \to (a \,\cos \varphi ,a)$, we recover the commonly used modification of  
     690the Coriolis parameter $f \to f+(u/a) \tan \varphi$. 
    495691 
    496692To sum up, the equations solved by the ocean model can be written in the following tensorial formalism: 
     
    545741\end{multline} 
    546742\end{subequations} 
    547 where $\zeta$ is given by \eqref{Eq_PE_curl_Uh} and the surface pressure gradient formulation depends on the one of the free surface: 
     743where $\zeta$ is given by \eqref{Eq_PE_curl_Uh} and the surface pressure gradient formulation  
     744depends on the one of the free surface: 
    548745 
    549746$*$ free surface formulation 
     
    566763\end{equation} 
    567764where ${\vect{M}}= \left( M_u,M_v \right)$ represents the collected contributions of nonlinear,  
    568 viscosity and hydrostatic pressure gradient terms in \eqref{Eq_PE_dyn_vect} and the overbar indicates a vertical average over the whole water column ($i.e.$ from $z=-H$, the ocean bottom, to $z=0$, the rigid-lid), and where the time derivative of $\psi$ is the solution of an elliptic equation: 
     765viscosity and hydrostatic pressure gradient terms in \eqref{Eq_PE_dyn_vect} and the overbar  
     766indicates a vertical average over the whole water column ($i.e.$ from $z=-H$, the ocean bottom,  
     767to $z=0$, the rigid-lid), and where the time derivative of $\psi$ is the solution of an elliptic equation: 
    569768\begin{multline} \label{Eq_psi_total} 
    570769  \frac{\partial }{\partial i}\left[ {\frac{e_2 }{H\,e_1}\frac{\partial}{\partial i} 
     
    605804\end{equation} 
    606805 
    607 The expression of \textbf{D}$^{U}$, $D^{S}$ and $D^{T}$ depends on the subgrid  
    608 scale parameterization used. It will be defined in \S\ref{PE_zdf}. The nature and formulation of ${\rm {\bf F}}^{\rm {\bf U}}$, $F^T$ and $F^S$, the surface forcing terms, are discussed in Chapter~\ref{SBC}. 
     806The expression of \textbf{D}$^{U}$, $D^{S}$ and $D^{T}$ depends on the subgrid scale  
     807parameterisation used. It will be defined in \S\ref{PE_zdf}. The nature and formulation of  
     808${\rm {\bf F}}^{\rm {\bf U}}$, $F^T$ and $F^S$, the surface forcing terms, are discussed  
     809in Chapter~\ref{SBC}. 
    609810 
    610811\newpage  
     
    617818\begin{figure}[!b] \label{Fig_z_zstar}  \begin{center} 
    618819\includegraphics[width=1.0\textwidth]{./TexFiles/Figures/Fig_z_zstar.pdf} 
    619 \caption{(a) $z$-coordinate in linear free-surface case ; (b) $z-$coordinate in non-linear free surface case (c) re-scaled height coordinate (become popular as the \textit{z*-}coordinate \citep{Adcroft_Campin_OM04} ).} 
     820\caption{(a) $z$-coordinate in linear free-surface case ; (b) $z-$coordinate in non-linear  
     821free surface case (c) re-scaled height coordinate (become popular as the \textit{z*-}coordinate  
     822\citep{Adcroft_Campin_OM04} ).} 
    620823\end{center}   \end{figure} 
    621824%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    622825 
    623826 
    624 In that case, the free surface equation is nonlinear, and the variations of volume are fully taken into account. These coordinates systems is presented in a report  
    625 \citep{Levier2007} available on the \NEMO web site.  
     827In that case, the free surface equation is nonlinear, and the variations of volume are fully  
     828taken into account. These coordinates systems is presented in a report \citep{Levier2007}  
     829available on the \NEMO web site.  
    626830 
    627831\gmcomment{ 
    628 The \textit{z*} coordinate approach is an unapproximated, non-linear free surface implementation which allows one to deal with large amplitude free-surface 
     832The \textit{z*} coordinate approach is an unapproximated, non-linear free surface implementation  
     833which allows one to deal with large amplitude free-surface 
    629834variations relative to the vertical resolution \citep{Adcroft_Campin_OM04}. In 
    630835the  \textit{z*} formulation, the variation of the column thickness due to sea-surface 
     
    642847 
    643848Since the vertical displacement of the free surface is incorporated in the vertical 
    644 coordinate  \textit{z*}, the upper and lower boundaries are at fixed  \textit{z*} position,  $\textit{z*} = 0$ and  $\textit{z*} = ?H$ respectively. Also the divergence of the flow field is no longer zero as shown by the continuity equation: 
     849coordinate  \textit{z*}, the upper and lower boundaries are at fixed  \textit{z*} position,   
     850$\textit{z*} = 0$ and  $\textit{z*} = ?H$ respectively. Also the divergence of the flow field  
     851is no longer zero as shown by the continuity equation: 
    645852 
    646853$\frac{\partial r}{\partial t} = \nabla_{\textit{z*}} \cdot \left( r \; \rm{\bf U}_h \right) 
     
    662869\subsection{Introduction} 
    663870 
    664 Several important aspects of the ocean circulation are influenced by bottom topography. Of course, the most important is that bottom topography determines deep ocean sub-basins, barriers, sills and channels that strongly constrain the path of water masses, but more subtle effects exist. For example, the topographic $\beta$-effect is usually larger than the planetary one along continental slopes. Topographic Rossby waves can be excited and can interact with the mean current. In the $z-$coordinate system presented in the previous section (\S\ref{PE_zco}), $z-$surfaces are geopotential surfaces. The bottom topography is discretised by steps. This often leads to a misrepresentation of a gradually sloping bottom and to large localized depth gradients associated with large localized vertical velocities. The response to such a velocity field often leads to numerical dispersion effects. One solution to strongly reduce this error is to use a partial step representation of bottom topography instead of a full step one \cite{Pacanowski_Gnanadesikan_MWR98}. Another solution is to introduce a terrain-following coordinate system (hereafter $s-$coordinate)  
    665  
    666 The $s$-coordinate avoids the discretisation error in the depth field since the layers of computation are gradually adjusted with depth to the ocean bottom. Relatively small topographic features as well as  gentle, large-scale slopes of the sea floor in the deep ocean, which would be ignored in typical $z$-model applications with the largest grid spacing at greatest depths, can easily be represented (with relatively low vertical resolution). A terrain-following model (hereafter $s-$model) also facilitates the modelling of the boundary layer flows over a large depth range, which in the framework of the $z$-model would require high vertical resolution over the whole depth range. Moreover, with a $s$-coordinate it is possible, at least in principle, to have the bottom and the sea surface as the only boundaries of the domain (nomore lateral boundary condition to specify). Nevertheless, a $s$-coordinate also has its drawbacks. Perfectly adapted to a homogeneous ocean, it has strong limitations as soon as stratification is introduced. The main two problems come from the truncation error in the horizontal pressure gradient and a possibly increased diapycnal diffusion. The horizontal pressure force in $s$-coordinate consists of two terms (see Appendix~\ref{Apdx_A}), 
     871Several important aspects of the ocean circulation are influenced by bottom topography.  
     872Of course, the most important is that bottom topography determines deep ocean sub-basins,  
     873barriers, sills and channels that strongly constrain the path of water masses, but more subtle  
     874effects exist. For example, the topographic $\beta$-effect is usually larger than the planetary  
     875one along continental slopes. Topographic Rossby waves can be excited and can interact  
     876with the mean current. In the $z-$coordinate system presented in the previous section  
     877(\S\ref{PE_zco}), $z-$surfaces are geopotential surfaces. The bottom topography is  
     878discretised by steps. This often leads to a misrepresentation of a gradually sloping bottom  
     879and to large localized depth gradients associated with large localized vertical velocities.  
     880The response to such a velocity field often leads to numerical dispersion effects.  
     881One solution to strongly reduce this error is to use a partial step representation of bottom  
     882topography instead of a full step one \cite{Pacanowski_Gnanadesikan_MWR98}.  
     883Another solution is to introduce a terrain-following coordinate system (hereafter $s-$coordinate)  
     884 
     885The $s$-coordinate avoids the discretisation error in the depth field since the layers of  
     886computation are gradually adjusted with depth to the ocean bottom. Relatively small  
     887topographic features as well as  gentle, large-scale slopes of the sea floor in the deep  
     888ocean, which would be ignored in typical $z$-model applications with the largest grid  
     889spacing at greatest depths, can easily be represented (with relatively low vertical resolution).  
     890A terrain-following model (hereafter $s-$model) also facilitates the modelling of the  
     891boundary layer flows over a large depth range, which in the framework of the $z$-model  
     892would require high vertical resolution over the whole depth range. Moreover, with a  
     893$s$-coordinate it is possible, at least in principle, to have the bottom and the sea surface  
     894as the only boundaries of the domain (nomore lateral boundary condition to specify).  
     895Nevertheless, a $s$-coordinate also has its drawbacks. Perfectly adapted to a  
     896homogeneous ocean, it has strong limitations as soon as stratification is introduced.  
     897The main two problems come from the truncation error in the horizontal pressure  
     898gradient and a possibly increased diapycnal diffusion. The horizontal pressure force  
     899in $s$-coordinate consists of two terms (see Appendix~\ref{Apdx_A}), 
    667900 
    668901\begin{equation} \label{Eq_PE_p_sco} 
     
    671904\end{equation} 
    672905 
    673 The second term in \eqref{Eq_PE_p_sco} depends on the tilt of the coordinate surface and introduces a truncation error that is not present in a $z$-model. In the special case of a $\sigma-$coordinate (i.e. a depth-normalised coordinate system $\sigma = z/H$), \citet{Haney1991} and \citet{Beckmann1993} have given estimates of the magnitude of this truncation error. It depends on topographic slope, stratification, horizontal and vertical resolution, the equation of state, and the finite difference scheme. This error limits the possible topographic slopes that a model can handle at a given horizontal and vertical resolution. This is a severe restriction for large-scale applications using realistic bottom topography. The large-scale slopes require high horizontal resolution, and the computational cost becomes prohibitive. This problem can be at least partially overcome by mixing $s$-coordinate and step-like representation of bottom topography \citep{Gerdes1993a,Gerdes1993b,Madec1996}. However, the definition of the model domain vertical coordinate becomes then a non-trivial thing for a realistic bottom topography: a envelope topography is defined in $s$-coordinate on which a full or partial step bottom topography is then applied in order to adjust the model depth to the observed one (see \S\ref{DOM_zgr}. 
    674  
    675 For numerical reasons a minimum of diffusion is required along the coordinate surfaces of any finite difference model. It causes spurious diapycnal mixing when coordinate surfaces do not coincide with isoneutral surfaces. This is the case for a $z$-model as well as for a $s$-model.  
    676 However, density varies more strongly on $s-$surfaces than on horizontal surfaces in regions of large topographic slopes, implying larger diapycnal diffusion in a $s$-model than in a $z$-model. Whereas such a diapycnal diffusion in a $z$-model tends to weaken horizontal density (pressure) gradients and thus the horizontal circulation, it usually reinforces these gradients in a $s$-model, creating spurious circulation. For example, imagine an isolated bump of topography in an ocean at rest with a horizontally uniform stratification. Spurious diffusion along $s$-surfaces will induce a bump of isoneutral surfaces over the topography, and thus will generate there a baroclinic eddy. In contrast, the ocean will stay at rest in a $z$-model. As for the truncation error, the problem can be reduced by introducing the terrain-following coordinate below the strongly stratified portion of the water column (i.e. the main thermocline) \citep{Madec1996}. An alternate solution consists of rotating the lateral diffusive tensor to geopotential or to isoneutral surfaces (see \S\ref{PE_ldf}. Unfortunately, the slope of isoneutral surfaces relative to the $s$-surfaces can very large, strongly exceeding the stability limit of such a operator when it is discretized (see Chapter~\ref{LDF}).  
    677  
    678 The $s-$coordinates introduced here \citep{Lott1990,Madec1996} differ mainly in two aspects from similar models:  it allows  a representation of bottom topography with mixed full or partial step-like/terrain following topography ; It also offers a completely general transformation, $s=s(i,j,z)$ for the vertical coordinate. 
     906The second term in \eqref{Eq_PE_p_sco} depends on the tilt of the coordinate surface  
     907and introduces a truncation error that is not present in a $z$-model. In the special case  
     908of a $\sigma-$coordinate (i.e. a depth-normalised coordinate system $\sigma = z/H$),  
     909\citet{Haney1991} and \citet{Beckmann1993} have given estimates of the magnitude  
     910of this truncation error. It depends on topographic slope, stratification, horizontal and  
     911vertical resolution, the equation of state, and the finite difference scheme. This error  
     912limits the possible topographic slopes that a model can handle at a given horizontal  
     913and vertical resolution. This is a severe restriction for large-scale applications using  
     914realistic bottom topography. The large-scale slopes require high horizontal resolution,  
     915and the computational cost becomes prohibitive. This problem can be at least partially  
     916overcome by mixing $s$-coordinate and step-like representation of bottom topography \citep{Gerdes1993a,Gerdes1993b,Madec1996}. However, the definition of the model  
     917domain vertical coordinate becomes then a non-trivial thing for a realistic bottom  
     918topography: a envelope topography is defined in $s$-coordinate on which a full or  
     919partial step bottom topography is then applied in order to adjust the model depth to  
     920the observed one (see \S\ref{DOM_zgr}. 
     921 
     922For numerical reasons a minimum of diffusion is required along the coordinate surfaces  
     923of any finite difference model. It causes spurious diapycnal mixing when coordinate  
     924surfaces do not coincide with isoneutral surfaces. This is the case for a $z$-model as  
     925well as for a $s$-model. However, density varies more strongly on $s-$surfaces than  
     926on horizontal surfaces in regions of large topographic slopes, implying larger diapycnal  
     927diffusion in a $s$-model than in a $z$-model. Whereas such a diapycnal diffusion in a  
     928$z$-model tends to weaken horizontal density (pressure) gradients and thus the horizontal  
     929circulation, it usually reinforces these gradients in a $s$-model, creating spurious circulation.  
     930For example, imagine an isolated bump of topography in an ocean at rest with a horizontally  
     931uniform stratification. Spurious diffusion along $s$-surfaces will induce a bump of isoneutral  
     932surfaces over the topography, and thus will generate there a baroclinic eddy. In contrast,  
     933the ocean will stay at rest in a $z$-model. As for the truncation error, the problem can be reduced by introducing the terrain-following coordinate below the strongly stratified portion of the water column  
     934($i.e.$ the main thermocline) \citep{Madec1996}. An alternate solution consists of rotating  
     935the lateral diffusive tensor to geopotential or to isoneutral surfaces (see \S\ref{PE_ldf}.  
     936Unfortunately, the slope of isoneutral surfaces relative to the $s$-surfaces can very large,  
     937strongly exceeding the stability limit of such a operator when it is discretized (see Chapter~\ref{LDF}).  
     938 
     939The $s-$coordinates introduced here \citep{Lott1990,Madec1996} differ mainly in two  
     940aspects from similar models:  it allows  a representation of bottom topography with mixed  
     941full or partial step-like/terrain following topography ; It also offers a completely general  
     942transformation, $s=s(i,j,z)$ for the vertical coordinate. 
    679943 
    680944% ------------------------------------------------------------------------------------------------------------- 
     
    683947\subsection{The \textit{s-}coordinate Formulation} 
    684948 
    685 Starting from the set of equations established in \S\ref{PE_zco} for the special case $k=z$ and thus $e_3=1$, we introduce an arbitrary vertical coordinate $s=s(i,j,k,t)$, which includes $z$-, \textit{z*}- and $\sigma-$coordinates as special cases ($s=z$, $s=\textit{z*}$, and $s=\sigma=z/H$ or $=z/\left(H+\eta \right)$, resp.). A formal derivation of the transformed equations is given in Appendix~\ref{Apdx_A}. Let us define the vertical scale factor by $e_3=\partial_s z$  ($e_3$ is now a function of $(i,j,k,t)$ ), and the slopes in the (\textbf{i},\textbf{j}) directions between $s-$ and $z-$surfaces by : 
     949Starting from the set of equations established in \S\ref{PE_zco} for the special case $k=z$  
     950and thus $e_3=1$, we introduce an arbitrary vertical coordinate $s=s(i,j,k,t)$, which includes  
     951$z$-, \textit{z*}- and $\sigma-$coordinates as special cases ($s=z$, $s=\textit{z*}$, and  
     952$s=\sigma=z/H$ or $=z/\left(H+\eta \right)$, resp.). A formal derivation of the transformed  
     953equations is given in Appendix~\ref{Apdx_A}. Let us define the vertical scale factor by  
     954$e_3=\partial_s z$  ($e_3$ is now a function of $(i,j,k,t)$ ), and the slopes in the  
     955(\textbf{i},\textbf{j}) directions between $s-$ and $z-$surfaces by : 
    686956\begin{equation} \label{Eq_PE_sco_slope} 
    687957\sigma _1 =\frac{1}{e_1 }\;\left. {\frac{\partial z}{\partial i}} \right|_s  
     
    689959\sigma _2 =\frac{1}{e_2 }\;\left. {\frac{\partial z}{\partial j}} \right|_s 
    690960\end{equation} 
    691 We also introduce  $\omega $, a dia-surface velocity component, defined as the velocity relative to the moving $s$-surfaces and normal to them: 
     961We also introduce  $\omega $, a dia-surface velocity component, defined as the velocity  
     962relative to the moving $s$-surfaces and normal to them: 
    692963\begin{equation} \label{Eq_PE_sco_w} 
    693964\omega  = w - e_3 \, \frac{\partial s}{\partial t} - \sigma _1 \,u - \sigma _2 \,v    \\ 
     
    716987   +  D_v^{\vect{U}}  +   F_v^{\vect{U}} \quad 
    717988\end{multline} 
    718 where the relative vorticity, \textit{$\zeta $}, the surface pressure gradient, and the hydrostatic pressure have the same expressions as in $z$-coordinates although they do not represent exactly the same quantities. $\omega$ is provided by the continuity equation (see Appendix~\ref{Apdx_A}): 
     989where the relative vorticity, \textit{$\zeta $}, the surface pressure gradient, and the hydrostatic  
     990pressure have the same expressions as in $z$-coordinates although they do not represent  
     991exactly the same quantities. $\omega$ is provided by the continuity equation  
     992(see Appendix~\ref{Apdx_A}): 
    719993 
    720994\begin{equation} \label{Eq_PE_sco_continuity} 
     
    7421016\end{multline} 
    7431017 
    744 The equation of state has the same expression as in $z$-coordinate, and similar expressions are used for mixing and forcing terms. 
     1018The equation of state has the same expression as in $z$-coordinate, and similar expressions  
     1019are used for mixing and forcing terms. 
    7451020 
    7461021\gmcomment{ 
     
    7681043It is usually called the subgrid scale physics. It must be emphasized that  
    7691044this is the weakest part of the primitive equations, but also one of the  
    770 most important for long-term simulations as small scale processes \textit{in fine} balance  
    771 the surface input of kinetic energy and heat. 
     1045most important for long-term simulations as small scale processes \textit{in fine}  
     1046balance the surface input of kinetic energy and heat. 
    7721047 
    7731048The control exerted by gravity on the flow induces a strong anisotropy  
    774 between the lateral and vertical motions. Therefore subgrid-scale physics  \textbf{D}$^{\vect{U}}$, $D^{S}$ and $D^{T}$  in \eqref{Eq_PE_dyn}, \eqref{Eq_PE_tra_T} and \eqref{Eq_PE_tra_S} are divided into a lateral part  \textbf{D}$^{l \vect{U}}$, $D^{lS}$ and $D^{lT}$ and a vertical part  \textbf{D}$^{vU}$, $D^{vS}$ and $D^{vT}$. The formulation of these terms and their underlying physics are briefly discussed in the next two subsections. 
     1049between the lateral and vertical motions. Therefore subgrid-scale physics   
     1050\textbf{D}$^{\vect{U}}$, $D^{S}$ and $D^{T}$  in \eqref{Eq_PE_dyn},  
     1051\eqref{Eq_PE_tra_T} and \eqref{Eq_PE_tra_S} are divided into a lateral part   
     1052\textbf{D}$^{l \vect{U}}$, $D^{lS}$ and $D^{lT}$ and a vertical part   
     1053\textbf{D}$^{vU}$, $D^{vS}$ and $D^{vT}$. The formulation of these terms  
     1054and their underlying physics are briefly discussed in the next two subsections. 
    7751055 
    7761056% ------------------------------------------------------------------------------------------------------------- 
     
    7851065partially, but always parameterized. The vertical turbulent fluxes are  
    7861066assumed to depend linearly on the gradients of large-scale quantities (for  
    787 example, the turbulent heat flux is given by $\overline{T'w'}=-A^{vT} \partial_z \overline T$, where $A^{vT}$ is an eddy coefficient). This formulation is  
     1067example, the turbulent heat flux is given by $\overline{T'w'}=-A^{vT} \partial_z \overline T$,  
     1068where $A^{vT}$ is an eddy coefficient). This formulation is  
    7881069analogous to that of molecular diffusion and dissipation. This is quite  
    7891070clearly a necessary compromise: considering only the molecular viscosity  
     
    7941075\begin{equation} \label{Eq_PE_zdf} 
    7951076   \begin{split} 
    796 {\vect{D}}^{v \vect{U}} 
    797 &=\frac{\partial }{\partial z}\left( {A^{vm}\frac{\partial {\vect{U}}_h }{\partial z}} \right) \ , \\         D^{vT} &= \frac{\partial }{\partial z}\left( {A^{vT}\frac{\partial T}{\partial z}} \right) \ , 
     1077{\vect{D}}^{v \vect{U}} &=\frac{\partial }{\partial z}\left( {A^{vm}\frac{\partial {\vect{U}}_h }{\partial z}} \right) \ , \\          
     1078D^{vT}                        &= \frac{\partial }{\partial z}\left( {A^{vT}\frac{\partial T}{\partial z}} \right) \ , 
    7981079\quad 
    7991080D^{vS}=\frac{\partial }{\partial z}\left( {A^{vT}\frac{\partial S}{\partial z}} \right) 
    8001081   \end{split} 
    8011082\end{equation} 
    802 where $A^{vm}$ and $A^{vT}$ are the vertical eddy viscosity and diffusivity coefficients, respectively. At the sea surface and at the bottom, turbulent fluxes of momentum, heat and salt must be specified (see Chap.~\ref{SBC} and \ref{ZDF} and \S\ref{TRA_bbl}). All the vertical physics is embedded in the specification of the eddy coefficients. They can be assumed to be either constant, or function of the local fluid properties ($e.g.$ Richardson number, Brunt-Vais\"{a}l\"{a} frequency...), or computed from a turbulent closure model. The choices available in \NEMO are discussed in \S\ref{ZDF}). 
     1083where $A^{vm}$ and $A^{vT}$ are the vertical eddy viscosity and diffusivity coefficients,  
     1084respectively. At the sea surface and at the bottom, turbulent fluxes of momentum, heat  
     1085and salt must be specified (see Chap.~\ref{SBC} and \ref{ZDF} and \S\ref{TRA_bbl}).  
     1086All the vertical physics is embedded in the specification of the eddy coefficients.  
     1087They can be assumed to be either constant, or function of the local fluid properties  
     1088($e.g.$ Richardson number, Brunt-Vais\"{a}l\"{a} frequency...), or computed from a  
     1089turbulent closure model. The choices available in \NEMO are discussed in \S\ref{ZDF}). 
    8031090 
    8041091% ------------------------------------------------------------------------------------------------------------- 
     
    8211108lateral diffusive and dissipative operators are of second order.  
    8221109Observations show that lateral mixing induced by mesoscale turbulence tends  
    823 to be along isopycnal surfaces (or more precisely neutral surfaces \cite{McDougall1987}) rather than across them.  
     1110to be along isopycnal surfaces (or more precisely neutral surfaces \cite{McDougall1987})  
     1111rather than across them.  
    8241112As the slope of neutral surfaces is small in the ocean, a common  
    8251113approximation is to assume that the `lateral' direction is the horizontal,  
     
    8341122energy whereas potential energy is a main source of turbulence (through  
    8351123baroclinic instabilities). \citet{Gent1990} have proposed a  
    836 parameterization of mesoscale eddy-induced turbulence which associates an  
     1124parameterisation of mesoscale eddy-induced turbulence which associates an  
    8371125eddy-induced velocity to the isoneutral diffusion. Its mean effect is to  
    8381126reduce the mean potential energy of the ocean. This leads to a formulation  
     
    8501138the model while not interfering with the solved mesoscale activity. Another approach  
    8511139is becoming more and more popular: instead of specifying explicitly a sub-grid scale  
    852 term in the momentum and tracer time evolution equations, one uses a advective scheme which is diffusive enough to maintain the model stability. It must be emphasised 
     1140term in the momentum and tracer time evolution equations, one uses a advective  
     1141scheme which is diffusive enough to maintain the model stability. It must be emphasised 
    8531142that then, all the sub-grid scale physics is in this case include in the formulation of the 
    8541143advection scheme.  
    8551144 
    856 All these parameterizations of subgrid scale physics present advantages and  
     1145All these parameterisations of subgrid scale physics present advantages and  
    8571146drawbacks. There are not all available in \NEMO. In the $z$-coordinate  
    8581147formulation, five options are offered for active tracers (temperature and  
    8591148salinity): second order geopotential operator, second order isoneutral  
    860 operator, \citet{Gent1990} parameterization, fourth order  
    861 geopotential operator, and various slightly diffusive advection schemes. The same options are available for momentum, except  
    862 \citet{Gent1990} parameterization which only involves tracers. In the 
     1149operator, \citet{Gent1990} parameterisation, fourth order  
     1150geopotential operator, and various slightly diffusive advection schemes.  
     1151The same options are available for momentum, except  
     1152\citet{Gent1990} parameterisation which only involves tracers. In the 
    8631153$s$-coordinate formulation, additional options are offered for tracers: second  
    8641154order operator acting along $s-$surfaces, and for momentum: fourth order  
     
    8811171rotation between geopotential and $s$-surfaces, while it is only an approximation  
    8821172for the rotation between isoneutral and $z$- or $s$-surfaces. Indeed, in the latter  
    883 case, two assumptions are made to simplify  \eqref{Eq_PE_iso_tensor} \citep{Cox1987}. First, the horizontal contribution of the dianeutral mixing is neglected since the ratio between iso and dia-neutral diffusive coefficients is known to be several orders of magnitude smaller than unity. Second, the two isoneutral directions of diffusion are assumed to be independent since the slopes are generally less than $10^{-2}$ in the ocean (see Appendix~\ref{Apdx_B}). 
     1173case, two assumptions are made to simplify  \eqref{Eq_PE_iso_tensor} \citep{Cox1987}.  
     1174First, the horizontal contribution of the dianeutral mixing is neglected since the ratio  
     1175between iso and dia-neutral diffusive coefficients is known to be several orders of  
     1176magnitude smaller than unity. Second, the two isoneutral directions of diffusion are  
     1177assumed to be independent since the slopes are generally less than $10^{-2}$ in the  
     1178ocean (see Appendix~\ref{Apdx_B}). 
    8841179 
    8851180For \textit{geopotential} diffusion, $r_1$ and $r_2 $ are the slopes between the  
    886 geopotential and computational surfaces: in $z$-coordinates they are zero ($r_1 = r_2 = 0$) while in $s$-coordinate (including $\textit{z*}$ case) they are equal to $\sigma _1$ and $\sigma _2$, respectively (see \eqref{Eq_PE_sco_slope} ). 
    887  
    888 For \textit{isoneutral} diffusion $r_1$ and $r_2$ are the slopes between the isoneutral and computational surfaces. Therefore, they have a same expression in $z$- and $s$-coordinates: 
     1181geopotential and computational surfaces: in $z$-coordinates they are zero  
     1182($r_1 = r_2 = 0$) while in $s$-coordinate (including $\textit{z*}$ case) they are  
     1183equal to $\sigma _1$ and $\sigma _2$, respectively (see \eqref{Eq_PE_sco_slope} ). 
     1184 
     1185For \textit{isoneutral} diffusion $r_1$ and $r_2$ are the slopes between the isoneutral  
     1186and computational surfaces. Therefore, they have a same expression in $z$- and $s$-coordinates: 
    8891187\begin{equation} \label{Eq_PE_iso_slopes} 
    8901188r_1 =\frac{e_3 }{e_1 }  \left( {\frac{\partial \rho }{\partial i}} \right) 
     
    8941192\end{equation} 
    8951193 
    896 When the \textit{Eddy Induced Velocity} parametrisation (eiv) \citep{Gent1990} is used, an additional tracer advection is introduced in combination with the isoneutral diffusion of tracers: 
     1194When the \textit{Eddy Induced Velocity} parametrisation (eiv) \citep{Gent1990} is used,  
     1195an additional tracer advection is introduced in combination with the isoneutral diffusion of tracers: 
    8971196\begin{equation} \label{Eq_PE_iso+eiv} 
    8981197D^{lT}=\nabla \cdot \left( {A^{lT}\;\Re \;\nabla T} \right) 
    8991198           +\nabla \cdot \left( {{\vect{U}}^\ast \,T} \right) 
    9001199\end{equation} 
    901 where ${\vect{U}}^\ast =\left( {u^\ast ,v^\ast ,w^\ast } \right)$ is a non-divergent, eddy-induced transport velocity. This velocity field is defined by: 
     1200where ${\vect{U}}^\ast =\left( {u^\ast ,v^\ast ,w^\ast } \right)$ is a non-divergent,  
     1201eddy-induced transport velocity. This velocity field is defined by: 
    9021202\begin{equation} \label{Eq_PE_eiv} 
    9031203   \begin{split} 
     
    9091209   \end{split} 
    9101210\end{equation} 
    911 where $A^{eiv}$ is the eddy induced velocity coefficient (or equivalently the isoneutral thickness diffusivity coefficient), and $\tilde{r}_1$ and $\tilde{r}_2$ are the slopes between isoneutral and \emph{geopotential} surfaces and thus depends on the coordinate considered:  
     1211where $A^{eiv}$ is the eddy induced velocity coefficient (or equivalently the isoneutral  
     1212thickness diffusivity coefficient), and $\tilde{r}_1$ and $\tilde{r}_2$ are the slopes  
     1213between isoneutral and \emph{geopotential} surfaces and thus depends on the coordinate  
     1214considered:  
    9121215\begin{align} \label{Eq_PE_slopes_eiv} 
    9131216\tilde{r}_n = \begin{cases} 
     
    9181221\end{align} 
    9191222 
    920 The normal component of the eddy induced velocity is zero at all the boundaries. this can be achieved in a model by tapering either the eddy coefficient or the slopes to zero in the vicinity of the boundaries. The latter strategy is used in \NEMO (cf. Chap.~\ref{LDF}). 
     1223The normal component of the eddy induced velocity is zero at all the boundaries.  
     1224This can be achieved in a model by tapering either the eddy coefficient or the slopes  
     1225to zero in the vicinity of the boundaries. The latter strategy is used in \NEMO (cf. Chap.~\ref{LDF}). 
    9211226 
    9221227\subsubsection{lateral fourth order tracer diffusive operator} 
     
    9281233 \end{equation} 
    9291234 
    930 It is the second order operator given by \eqref{Eq_PE_iso_tensor} applied twice with the eddy diffusion coefficient correctly placed.  
     1235It is the second order operator given by \eqref{Eq_PE_iso_tensor} applied twice with  
     1236the eddy diffusion coefficient correctly placed.  
    9311237 
    9321238 
     
    9521258horizontal divergence fields (see Appendix~\ref{Apdx_C}). Unfortunately, it is not  
    9531259available for geopotential diffusion in $s-$coordinates and for isoneutral  
    954 diffusion in both $z$- and $s$-coordinates ($i.e.$ when a rotation is required). In these two cases, the $u$ and $v-$fields are considered as independent scalar fields, so that the diffusive operator is given by: 
     1260diffusion in both $z$- and $s$-coordinates ($i.e.$ when a rotation is required).  
     1261In these two cases, the $u$ and $v-$fields are considered as independent scalar  
     1262fields, so that the diffusive operator is given by: 
    9551263\begin{equation} \label{Eq_PE_lapU_iso} 
    9561264\begin{split} 
     
    9591267 \end{split} 
    9601268 \end{equation} 
    961 where $\Re$ is given by  \eqref{Eq_PE_iso_tensor}. It is the same expression as those used for diffusive operator on tracers. It must be emphasised that such a formulation is only exact in a Cartesian coordinate system, $i.e.$ on a $f-$ or $\beta-$plane, not on the sphere. It is also a very good approximation in vicinity of the Equator in a geographical coordinate system \citep{Lengaigne_al_JGR03}. 
     1269where $\Re$ is given by  \eqref{Eq_PE_iso_tensor}. It is the same expression as  
     1270those used for diffusive operator on tracers. It must be emphasised that such a  
     1271formulation is only exact in a Cartesian coordinate system, $i.e.$ on a $f-$ or  
     1272$\beta-$plane, not on the sphere. It is also a very good approximation in vicinity  
     1273of the Equator in a geographical coordinate system \citep{Lengaigne_al_JGR03}. 
    9621274 
    9631275\subsubsection{lateral fourth order momentum diffusive operator} 
    9641276 
    965 As for tracers, the fourth order momentum diffusive operator along $z$ or $s$-surfaces is a re-entering second order operator \eqref{Eq_PE_lapU} or \eqref{Eq_PE_lapU} with the eddy viscosity coefficient correctly placed: 
     1277As for tracers, the fourth order momentum diffusive operator along $z$ or $s$-surfaces  
     1278is a re-entering second order operator \eqref{Eq_PE_lapU} or \eqref{Eq_PE_lapU}  
     1279with the eddy viscosity coefficient correctly placed: 
    9661280 
    9671281geopotential diffusion in $z$-coordinate: 
  • trunk/DOC/TexFiles/Chapters/Chap_SBC.tex

    r996 r1224  
    404404%        Handling of ice-covered area 
    405405% ------------------------------------------------------------------------------------------------------------- 
    406 \subsection{Handling of ice-covered area} 
     406\subsection{Handling of ice-covered area  (\textit{sbcice\_...})} 
    407407\label{SBC_ice-cover} 
    408408 
     
    411411depending on the value of the \np{nn{\_}ice} namelist parameter.   
    412412\begin{description} 
    413 \item[nn{\_}ice = 0]  there will never be sea-ice in the computational domain. This is a typical namelist value used for tropical ocean domain. The surface fluxes are simply specified for an ice-free ocean. No specific things are done for sea-ice. 
    414 \item[nn{\_}ice = 1]  sea-ice can exist in the computational domain, but no sea-ice model is used. An observed ice covered area is read in a file. Below this area, the SST is restored to the freezing point and the heat fluxes are set to $-4~W/m^2$ ($-2~W/m^2$) in the northern (southern) hemisphere. The associated modification of the freshwater fluxes are done in such a way that the change in buoyancy fluxes remains zero. This prevents deep convection to occur when trying to reach the freezing point (and so ice covered area condition) while the SSS is too large. This manner of managing sea-ice area, just by using si IF case, is usually referred as the \textit{ice-if} model. It can be found in the \mdl{sbcice{\_}if} module. 
    415 \item[nn{\_}ice = 2 or more]  A full sea ice model is used. This model computes the ice-ocean fluxes, that are combined with the air-sea fluxes using the ice fraction of each model cell to provide the surface ocean fluxes. Note that the activation of a sea-ice model is is done by defining a CPP key (\key{lim2} or \key{lim3}). The activation automatically ovewrite the read value of nn{\_}ice to its appropriate value ($i.e.$ $2$ for LIM-2 and $3$ for LIM-3). 
     413\item[nn{\_}ice = 0]  there will never be sea-ice in the computational domain.  
     414This is a typical namelist value used for tropical ocean domain. The surface fluxes  
     415are simply specified for an ice-free ocean. No specific things is done for sea-ice. 
     416\item[nn{\_}ice = 1]  sea-ice can exist in the computational domain, but no sea-ice model  
     417is used. An observed ice covered area is read in a file. Below this area, the SST is  
     418restored to the freezing point and the heat fluxes are set to $-4~W/m^2$ ($-2~W/m^2$)  
     419in the northern (southern) hemisphere. The associated modification of the freshwater  
     420fluxes are done in such a way that the change in buoyancy fluxes remains zero.  
     421This prevents deep convection to occur when trying to reach the freezing point  
     422(and so ice covered area condition) while the SSS is too large. This manner of  
     423managing sea-ice area, just by using si IF case, is usually referred as the \textit{ice-if}  
     424model. It can be found in the \mdl{sbcice{\_}if} module. 
     425\item[nn{\_}ice = 2 or more]  A full sea ice model is used. This model computes the  
     426ice-ocean fluxes, that are combined with the air-sea fluxes using the ice fraction of  
     427each model cell to provide the surface ocean fluxes. Note that the activation of a  
     428sea-ice model is is done by defining a CPP key (\key{lim2} or \key{lim3}).  
     429The activation automatically ovewrite the read value of nn{\_}ice to its appropriate  
     430value ($i.e.$ $2$ for LIM-2 and $3$ for LIM-3). 
    416431\end{description} 
    417432 
     
    428443%------------------------------------------------------------------------------------------------------------- 
    429444 
     445The river runoffs  
     446 
    430447It is convenient to introduce the river runoff in the model as a surface  
    431448fresh water flux.  
    432449 
     450 
     451%Griffies:  River runoff generally enters the ocean at a nonzero depth rather than through the surface. Many global models, however, have traditionally inserted river runoff to the top model cell. Such can become problematic numerically and physically when the top grid cells are reÞned to levels common in coastal modelling. Hence, more applications are now considering the input of runoff throughout a nonzero depth. Likewise, sea ice can melt at depth, thus necessitating a mass transport to occur within the ocean between the liquid and solid water masses. 
     452 
    433453\colorbox{yellow}{Nevertheless, Pb of vertical resolution and increase of Kz in vicinity of } 
    434454 
    435455\colorbox{yellow}{river mouths{\ldots}} 
    436456 
    437 Control of the mean sea level 
     457%IF( ln_rnf ) THEN                                     ! increase diffusivity at rivers mouths 
     458%        DO jk = 2, nkrnf   ;   avt(:,:,jk) = avt(:,:,jk) + rn_avt_rnf * rnfmsk(:,:)   ;   END DO 
     459%ENDIF 
     460 
     461 
    438462 
    439463% ------------------------------------------------------------------------------------------------------------- 
     
    444468\label{SBC_fwb} 
    445469 
    446 To be written later... 
    447  
    448 \gmcomment{The descrition of the technique used to control the freshwater budget has to be added here} 
    449  
    450  
    451  
    452  
     470For global ocean simulation it can be useful to introduce a control of the mean sea  
     471level in order to prevent unrealistic drift of the sea surface height due to inaccuracy  
     472in the freshwater fluxes. In \NEMO, two way of controlling the the freshwater budget.  
     473\begin{description} 
     474\item[\np{nn\_fwb}=0]  no control at all. The mean sea level is free to drift, and will  
     475certainly do so. 
     476\item[\np{nn\_fwb}=1]  global mean EMP set to zero at each model time step.  
     477%Note that with a sea-ice model, this technique only control the mean sea level with linear free surface (\key{vvl} not defined) and no mass flux between ocean and ice (as it is implemented in the current ice-ocean coupling).  
     478\item[\np{nn\_fwb}=2]  freshwater budget is adjusted from the previous year annual  
     479mean budget which is read in the \textit{EMPave\_old.dat} file. As the model uses the  
     480Boussinesq approximation, the annual mean fresh water budget is simply evaluated  
     481from the change in the mean sea level at January the first and saved in the  
     482\textit{EMPav.dat} file.  
     483\end{description} 
     484 
     485% Griffies doc: 
     486% When running ocean-ice simulations, we are not explicitly representing land processes, such as rivers, catchment areas, snow accumulation, etc. However, to reduce model drift, it is important to balance the hydrological cycle in ocean-ice models. We thus need to prescribe some form of global normalization to the precipitation minus evaporation plus river runoff. The result of the normalization should be a global integrated zero net water input to the ocean-ice system over a chosen time scale.  
     487%How often the normalization is done is a matter of choice. In mom4p1, we choose to do so at each model time step, so that there is always a zero net input of water to the ocean-ice system. Others choose to normalize over an annual cycle, in which case the net imbalance over an annual cycle is used to alter the subsequent yearÕs water budget in an attempt to damp the annual water imbalance. Note that the annual budget approach may be inappropriate with interannually varying precipitation forcing.  
     488%When running ocean-ice coupled models, it is incorrect to include the water transport between the ocean and ice models when aiming to balance the hydrological cycle. The reason is that it is the sum of the water in the ocean plus ice that should be balanced when running ocean-ice models, not the water in any one sub-component. As an extreme example to illustrate the issue, consider an ocean-ice model with zero initial sea ice. As the ocean-ice model spins up, there should be a net accumulation of water in the growing sea ice, and thus a net loss of water from the ocean. The total water contained in the ocean plus ice system is constant, but there is an exchange of water between the subcomponents. This exchange should not be part of the normalization used to balance the hydrological cycle in ocean-ice models.  
     489 
     490 
     491 
  • trunk/DOC/TexFiles/Chapters/Chap_TRA.tex

    r998 r1224  
    1414%STEVEN :  is the use of the word "positive" to describe a scheme enough, or should it be "positive definite"? I added a comment to this effect on some instances of this below 
    1515 
    16 \newpage 
    17 $\ $\newline    % force a new ligne 
     16%\newpage 
     17\vspace{2.cm} 
     18%$\ $\newline    % force a new ligne 
    1819 
    1920Using the representation described in Chap.~\ref{DOM}, several semi-discrete  
     
    3738Bottom Boundary Condition), the contribution from the bottom boundary Layer  
    3839(BBL) parametrisation, and an internal damping (DMP) term. The terms QSR,  
    39 BBC, BBL and DMP are optional. The external forcings and parameterizations  
     40BBC, BBL and DMP are optional. The external forcings and parameterisations  
    4041require complex inputs and complex calculations (e.g. bulk formulae, estimation  
    4142of mixing coefficients) that are carried out in the SBC, LDF and ZDF modules and  
     
    5455 
    5556The different options available to the user are managed by namelist logical or  
    56 CPP keys. For each equation term ttt, the namelist logicals are \textit{ln\_trattt\_xxx},  
     57CPP keys. For each equation term \textit{ttt}, the namelist logicals are \textit{ln\_trattt\_xxx},  
    5758where \textit{xxx} is a 3 or 4 letter acronym accounting for each optional scheme.  
    5859The CPP key (when it exists) is \textbf{key\_trattt}. The corresponding code can be  
     
    6263equation for output (\key{trdtra} is defined), as described in Chap.~\ref{MISC}. 
    6364 
     65$\ $\newline    % force a new ligne 
    6466% ================================================================ 
    6567% Tracer Advection 
     
    7577fluxes. Its discrete expression is given by : 
    7678\begin{equation} \label{Eq_tra_adv} 
    77 ADV_\tau =-\frac{1}{e_{1T} {\kern 1pt}e_{2T} {\kern 1pt}e_{3T} }\left(  
    78 {\;\delta _i \left[ {e_{2u} {\kern 1pt}e_{3u} {\kern 1pt}\;u\;\tau _u }  
    79 \right]+\delta _j \left[ {e_{1v} {\kern 1pt}e_{3v} {\kern 1pt}v\;\tau _v }  
    80 \right]\;} \right)-\frac{1}{\mathop e\nolimits_{3T} }\delta _k \left[  
    81 {w\;\tau _w } \right] 
    82 \end{equation} 
    83 where $\tau$ is either T or S. In pure $z$-coordinate (\key{zco} is defined),  
    84 it reduces to : 
     79ADV_\tau =-\frac{1}{b_T} \left(  
     80\;\delta _i \left[ e_{2u}\,e_{3u} \;  u\; \tau _u  \right] 
     81+\delta _j \left[ e_{1v}\,e_{3v}  \;  v\; \tau _v  \right] \; \right) 
     82-\frac{1}{e_{3T}} \;\delta _k \left[ w\; \tau _w \right] 
     83\end{equation} 
     84where $\tau$ is either T or S, and $b_T= e_{1T}\,e_{2T}\,e_{3T}$ is the volume of $T$-cells.  
     85In pure $z$-coordinate (\key{zco} is defined), it reduces to : 
    8586\begin{equation} \label{Eq_tra_adv_zco} 
    8687ADV_\tau =-\frac{1}{e_{1T} {\kern 1pt}e_{2T} {\kern 1pt}}\left( {\;\delta _i  
     
    8990e\nolimits_{3T} }\delta _k \left[ {w\;\tau _w } \right] 
    9091\end{equation} 
    91 since the vertical scale factors are functions of $k$ only, and thus $e_{3u}  
    92 =e_{3v} =e_{3T} $. 
    93  
    94 The flux form in \eqref{Eq_tra_adv} requires implicitly the use of the continuity equation:  
    95 $\nabla \cdot \left( \vect{U}\,T \right)=\vect{U} \cdot \nabla T$  
    96 (using $\nabla \cdot \vect{U}=0)$ or $\partial _t e_3 + e_3\;\nabla \cdot \vect{U}=0$ 
    97  in variable volume case ($i.e.$ \key{vvl} defined). Therefore it is of  
    98 paramount importance to design the discrete analogue of the advection  
    99 tendency so that it is consistent with the continuity equation in order to  
     92since the vertical scale factors are functions of $k$ only, and thus  
     93$e_{3u} =e_{3v} =e_{3T} $. The flux form in \eqref{Eq_tra_adv}  
     94requires implicitly the use of the continuity equation. Indeed, it is obtained 
     95by using the following equality : $\nabla \cdot \left( \vect{U}\,T \right)=\vect{U} \cdot \nabla T$  
     96which results from the use of the continuity equation, $\nabla \cdot \vect{U}=0$ or  
     97$\partial _t e_3 + e_3\;\nabla \cdot \vect{U}=0$ in constant (default option)  
     98or variable (\key{vvl} defined) volume case, respectively.  
     99Therefore it is of paramount importance to design the discrete analogue of the  
     100advection tendency so that it is consistent with the continuity equation in order to  
    100101enforce the conservation properties of the continuous equations. In other words,  
    101102by substituting $\tau$ by 1 in (\ref{Eq_tra_adv}) we recover the discrete form of  
     
    192193produce a sensible solution. The associated time-stepping is performed using  
    193194a leapfrog scheme in conjunction with an Asselin time-filter, so $T$ in  
    194 (\ref{Eq_tra_adv_cen2}) is the \textit{now} tracer value. 
     195(\ref{Eq_tra_adv_cen2}) is the \textit{now} tracer value. The centered second  
     196order advection is computed in the \mdl{traadv\_cen2} module. In this module, 
     197it is also proposed to combine the \textit{cen2} scheme with an upstream scheme 
     198in specific areas which requires a strong diffusion in order to avoid the generation  
     199of false extrema. These areas are the vicinity of large river mouths, some straits  
     200with coarse resolution, and the vicinity of ice cover area ($i.e.$ when the ocean  
     201temperature is close to the freezing point). 
    195202 
    196203Note that using the cen2 scheme, the overall tracer advection is of second  
    197204order accuracy since both (\ref{Eq_tra_adv}) and (\ref{Eq_tra_adv_cen2})  
    198 have this order of accuracy. 
     205have this order of accuracy. Note also that  
    199206 
    200207% ------------------------------------------------------------------------------------------------------------- 
     
    223230 
    224231A direct consequence of the pseudo-fourth order nature of the scheme is that  
    225 it is not non-diffusive, i.e. the global variance of a tracer is not  
    226 preserved using \textit{cen4}. Furthermore, it must be used in conjunction with an  
    227 explicit diffusion operator to produce a sensible solution. The  
    228 time-stepping is also performed using a leapfrog scheme in conjunction with  
    229 an Asselin time-filter, so $T$ in (\ref{Eq_tra_adv_cen4}) is the \textit{now} tracer. 
     232it is not non-diffusive, i.e. the global variance of a tracer is not preserved using  
     233\textit{cen4}. Furthermore, it must be used in conjunction with an explicit  
     234diffusion operator to produce a sensible solution. The time-stepping is also  
     235performed using a leapfrog scheme in conjunction with an Asselin time-filter,  
     236so $T$ in (\ref{Eq_tra_adv_cen4}) is the \textit{now} tracer. 
    230237 
    231238At a $T$-grid cell adjacent to a boundary (coastline, bottom and surface), an  
     
    244251 
    245252In the Total Variance Dissipation (TVD) formulation, the tracer at velocity  
    246 points is evaluated using a combination of an upstream and a centred scheme. For  
    247 example, in the $i$-direction : 
     253points is evaluated using a combination of an upstream and a centred scheme.  
     254For example, in the $i$-direction : 
    248255\begin{equation} \label{Eq_tra_adv_tvd} 
    249256\begin{split} 
     
    256263\end{split} 
    257264\end{equation} 
    258 where $c_u$ is a flux limiter function taking values between 0 and 1. There  
    259 exist many ways to define $c_u$, each correcponding to a different total  
    260 variance decreasing scheme. The one chosen in \NEMO is described in  
     265where $c_u$ is a flux limiter function taking values between 0 and 1.  
     266There exist many ways to define $c_u$, each correcponding to a different  
     267total variance decreasing scheme. The one chosen in \NEMO is described in  
    261268\citet{Zalesak1979}. $c_u$ only departs from $1$ when the advective term  
    262269produces a local extremum in the tracer field. The resulting scheme is quite  
     
    264271This scheme is tested and compared with MUSCL and the MPDATA scheme in  
    265272\citet{Levy2001}; note that in this paper it is referred to as "FCT" (Flux corrected  
    266 transport) rather than TVD. 
     273transport) rather than TVD. The TVD scheme is computed in the \mdl{traadv\_tvd} module. 
    267274 
    268275For stability reasons (see \S\ref{DOM_nxt}), in (\ref{Eq_tra_adv_tvd})  
     
    302309(\np{ln\_traadv\_muscl2}=.true.). Note that the latter choice does not ensure  
    303310the \textit{positive} character of the scheme. Only the former can be used  
    304 on both active and passive tracers. 
     311on both active and passive tracers. The two MUSCL schemes are computed  
     312in the \mdl{traadv\_tvd} and \mdl{traadv\_tvd2} modules. 
    305313 
    306314% ------------------------------------------------------------------------------------------------------------- 
     
    325333 
    326334This results in a dissipatively dominant (i.e. hyper-diffusive) truncation  
    327 error \citep{Sacha2005}. The overall performance of the  
    328 advection scheme is similar to that reported in \cite{Farrow1995}.  
    329 It is a relatively good compromise between accuracy and smoothness. It is  
    330 not a \emph{positive} scheme, meaning that false extrema are permitted, but the  
    331 amplitude of such are significantly reduced over the centred second order  
    332 method. Nevertheless it is not recommended that it should be applied to a passive  
    333 tracer that requires positivity.  
     335error \citep{Sacha2005}. The overall performance of the advection  
     336scheme is similar to that reported in \cite{Farrow1995}.  
     337It is a relatively good compromise between accuracy and smoothness.  
     338It is not a \emph{positive} scheme, meaning that false extrema are permitted,  
     339but the amplitude of such are significantly reduced over the centred second  
     340order method. Nevertheless it is not recommended that it should be applied  
     341to a passive tracer that requires positivity.  
    334342 
    335343The intrinsic diffusion of UBS makes its use risky in the vertical direction  
    336344where the control of artificial diapycnal fluxes is of paramount importance.  
    337 Therefore the vertical flux is evaluated using the TVD  
    338 scheme when \np{ln\_traadv\_ubs}=.true.. 
     345Therefore the vertical flux is evaluated using the TVD scheme when  
     346\np{ln\_traadv\_ubs}=.true.. 
    339347 
    340348For stability reasons  (see \S\ref{DOM_nxt}), in \eqref{Eq_tra_adv_ubs},  
     
    343351second term (which is the diffusive part of the scheme), is  
    344352evaluated using the \textit{before} tracer (forward in time).  
    345 This is discussed by \citet{Webb1998} in the context of the Quick  
    346 advection scheme. UBS and QUICK  
    347 schemes only differ by one coefficient. Replacing 1/6 with 1/8 in  
    348 \eqref{Eq_tra_adv_ubs} leads to the QUICK advection scheme  
    349 \citep{Webb1998}. This option is not available through a namelist  
    350 parameter, since the 1/6 coefficient is hard coded. Nevertheless  
    351 it is quite easy to make the substitution in the \mdl{traadv\_ubs} module  
    352 and obtain a QUICK scheme. 
     353This choice is discussed by \citet{Webb1998} in the context of the  
     354QUICK advection scheme. UBS and QUICK schemes only differ  
     355by one coefficient. Replacing 1/6 with 1/8 in \eqref{Eq_tra_adv_ubs}  
     356leads to the QUICK advection scheme \citep{Webb1998}.  
     357This option is not available through a namelist parameter, since the  
     3581/6 coefficient is hard coded. Nevertheless it is quite easy to make the  
     359substitution in the \mdl{traadv\_ubs} module and obtain a QUICK scheme. 
    353360 
    354361Note that : 
    355362 
    356 (1): When a high vertical resolution $O(1m)$ is used, the model stability can  
     363(1) When a high vertical resolution $O(1m)$ is used, the model stability can  
    357364be controlled by vertical advection (not vertical diffusion which is usually  
    358365solved using an implicit scheme). Computer time can be saved by using a  
    359 time-splitting technique on vertical advection. This case has been  
    360 implemented and validated in ORCA05 with 301 levels. It is not available in the  
    361 current reference version.  
    362  
    363 (2) : In a forthcoming release four options will be available for the vertical  
     366time-splitting technique on vertical advection. Such a technique has been  
     367implemented and validated in ORCA05 with 301 levels. It is not available  
     368in the current reference version.  
     369 
     370(2) In a forthcoming release four options will be available for the vertical  
    364371component used in the UBS scheme. $\tau _w^{ubs}$ will be evaluated  
    365 using either \textit{(a)} a centred $2^{nd}$ order scheme , or  \textit{(b)}  
     372using either \textit{(a)} a centred $2^{nd}$ order scheme, or  \textit{(b)}  
    366373a TVD scheme, or  \textit{(c)} an interpolation based on conservative  
    367374parabolic splines following the \citet{Sacha2005} implementation of UBS  
     
    369376similar to an eighth-order accurate conventional scheme. 
    370377 
    371 following \citet{Sacha2005} implementation of UBS in ROMS, or  \textit{(d)}  
    372 an UBS. The $3^{rd}$ case has dispersion properties similar to an  
    373 eight-order accurate conventional scheme. 
    374  
    375 (3) : It is straightforward to rewrite \eqref{Eq_tra_adv_ubs} as follows: 
    376 \begin{equation} \label{Eq_tra_adv_ubs2} 
    377 \tau _u^{ubs} = \left\{  \begin{aligned} 
    378    & \tau _u^{cen4} + \frac{1}{12} \tau"_i      & \quad \text{if }\ u_{i+1/2} \geqslant 0 \\ 
    379    & \tau _u^{cen4} - \frac{1}{12} \tau"_{i+1}  & \quad \text{if }\ u_{i+1/2}       <       0 
    380                    \end{aligned}    \right. 
     378(3) It is straightforward to rewrite \eqref{Eq_tra_adv_ubs} as follows: 
     379\begin{equation} \label{Eq_traadv_ubs2} 
     380\tau _u^{ubs} = \tau _u^{cen4} + \frac{1}{12} \left\{   
     381   \begin{aligned} 
     382   & + \tau"_i       & \quad \text{if }\ u_{i+1/2} \geqslant 0 \\ 
     383   &  - \tau"_{i+1}     & \quad \text{if }\ u_{i+1/2}       <       0 
     384   \end{aligned}    \right. 
    381385\end{equation} 
    382386or equivalently  
    383 \begin{equation} \label{Eq_tra_adv_ubs2b} 
     387\begin{equation} \label{Eq_traadv_ubs2b} 
    384388u_{i+1/2} \ \tau _u^{ubs}  
    385389=u_{i+1/2} \ \overline{ T - \frac{1}{6}\,\delta _i\left[ \delta_{i+1/2}[T] \,\right] }^{\,i+1/2} 
    386390- \frac{1}{2} |u|_{i+1/2} \;\frac{1}{6} \;\delta_{i+1/2}[\tau"_i] 
    387391\end{equation} 
    388 \eqref{Eq_tra_adv_ubs2} has several advantages. Firstly, it clearly reveals  
     392 
     393\eqref{Eq_traadv_ubs2} has several advantages. Firstly, it clearly reveals  
    389394that the UBS scheme is based on the fourth order scheme to which an  
    390395upstream-biased diffusion term is added. Secondly, this emphasises that the  
     
    394399coefficient which is simply proportional to the velocity: 
    395400 $A_u^{lm}= - \frac{1}{12}\,{e_{1u}}^3\,|u|$. Note that NEMO v2.3 still uses  
    396  \eqref{Eq_tra_adv_ubs}, not \eqref{Eq_tra_adv_ubs2}. This should be  
     401 \eqref{Eq_tra_adv_ubs}, not \eqref{Eq_traadv_ubs2}. This should be  
    397402 changed in forthcoming release. 
    398403 %%% 
     
    411416is the third order Godunov scheme. It is associated with the ULTIMATE QUICKEST  
    412417limiter \citep{Leonard1991}. It has been implemented in NEMO by G. Reffray  
    413 (MERCATOR-ocean).  
    414 The resulting scheme is quite expensive but \emph{positive}. It can be used on both active and passive tracers. Nevertheless, the intrinsic diffusion of QCK makes its use  
    415 risky in the vertical direction where the control of artificial diapycnal fluxes is of  
    416 paramount importance. Therefore the vertical flux is evaluated using the CEN2  
    417 scheme. This no more ensure the positivity of the scheme. The use of TVD in the  
    418 vertical direction as for the UBS case should be implemented to maintain the property. 
     418(MERCATOR-ocean) and can be found in the \mdl{traadv\_qck} module. 
     419The resulting scheme is quite expensive but \emph{positive}.  
     420It can be used on both active and passive tracers.  
     421Nevertheless, the intrinsic diffusion of QCK makes its use risky in the vertical  
     422direction where the control of artificial diapycnal fluxes is of paramount importance.  
     423Therefore the vertical flux is evaluated using the CEN2 scheme.  
     424This no more ensure the positivity of the scheme. The use of TVD in the vertical  
     425direction as for the UBS case should be implemented to maintain the property. 
    419426 
    420427 
     
    430437with the ULTIMATE QUICKEST limiter \citep{Leonard1991}. It has been implemented  
    431438in \NEMO by G. Reffray (MERCATOR-ocean) but is not yet offered in the reference  
    432 version 2.3. 
     439version 3.0. 
    433440 
    434441% ================================================================ 
     
    447454coefficients (either constant or variable in space and time) as well as the  
    448455computation of the slope along which the operators act, are performed in the  
    449 \mdl{ldftra} and \mdl{ldfslp} modules, respectively. This is described in Chap.~\ref{LDF}. The lateral diffusion of tracers is evaluated using a forward scheme,  
     456\mdl{ldftra} and \mdl{ldfslp} modules, respectively. This is described in Chap.~\ref{LDF}.  
     457The lateral diffusion of tracers is evaluated using a forward scheme,  
    450458$i.e.$ the tracers appearing in its expression are the \textit{before} tracers in time,  
    451459except for the pure vertical component that appears when a rotation tensor  
     
    456464%        Iso-level laplacian operator 
    457465% ------------------------------------------------------------------------------------------------------------- 
    458 \subsection   [Iso-level laplacian operator (\textit{traldf\_lap} - \np{ln\_traldf\_lap})] 
    459          {Iso-level laplacian operator (\mdl{traldf\_lap} - \np{ln\_traldf\_lap}=.true.) } 
     466\subsection   [Iso-level laplacian operator (lap) (\np{ln\_traldf\_lap})] 
     467         {Iso-level laplacian operator (lap) (\np{ln\_traldf\_lap}=.true.) } 
    460468\label{TRA_ldf_lap} 
    461469 
    462 A laplacian diffusion operator (i.e. a harmonic operator) acting along the model  
     470A laplacian diffusion operator ($i.e.$ a harmonic operator) acting along the model  
    463471surfaces is given by:  
    464472\begin{equation} \label{Eq_tra_ldf_lap} 
    465 \begin{split} 
    466 D_T^{lT} =\frac{1}{e_{1T} \; e_{2T}\;  e_{3T} } &\left[ {\quad \delta _i  
    467 \left[ {A_u^{lT} \left( {\frac{e_{2u} e_{3u} }{e_{1u} }\;\delta _{i+1/2}  
    468 \left[ T \right]} \right)} \right]} \right. 
    469 \\ 
    470 &\ \left. {+\; \delta _j \left[  
    471 {A_v^{lT} \left( {\frac{e_{1v} e_{3v} }{e_{2v} }\;\delta _{j+1/2} \left[ T  
    472 \right]} \right)} \right]\quad } \right] 
    473 \end{split} 
    474 \end{equation} 
    475  
    476 This lateral operator is a \emph{horizontal} one ($i.e.$ acting along  
    477 geopotential surfaces) in the $z$-coordinate with or without partial step,  
    478 but is simply an iso-level operator in the $s$-coordinate.  
     473D_T^{lT} =\frac{1}{b_T} \left( \; 
     474   \delta _{i}\left[ A_u^{lT} \; \frac{e_{2u}\,e_{3u}}{e_{1u}} \;\delta _{i+1/2} [T] \right]  
     475+ \delta _{j}\left[ A_v^{lT} \;  \frac{e_{1v}\,e_{3v}}{e_{2v}} \;\delta _{j+1/2} [T] \right]  \;\right) 
     476\end{equation} 
     477where  $b_T= e_{1T}\,e_{2T}\,e_{3T}$  is the volume of $T$-cells.  
     478It can be found in the \mdl{traadv\_lap} module. 
     479 
     480This lateral operator is computed in \mdl{traldf\_lap}. It is a \emph{horizontal}  
     481operator ($i.e.$ acting along geopotential surfaces) in the $z$-coordinate with  
     482or without partial step, but is simply an iso-level operator in the $s$-coordinate.  
    479483It is thus used when, in addition to \np{ln\_traldf\_lap}=.true., we have  
    480 \np{ln\_traldf\_level}=.true., or both \np{ln\_traldf\_hor}=.true. and  
    481 \np{ln\_zco}=.false.. In both cases, it significantly contributes to  
    482 diapycnal mixing. It is therefore not recommended. 
     484\np{ln\_traldf\_level}=.true., or \np{ln\_traldf\_hor}=\np{ln\_zco}=.true..  
     485In both cases, it significantly contributes to diapycnal mixing.  
     486It is therefore not recommended. 
    483487 
    484488Note that  
    485 (1) In pure $z$-coordinate (\key{zco} is defined), $e_{3u}=e_{3v}=e_{3T}$, so  
    486 that the vertical scale factors disappear from (\ref{Eq_tra_ldf_lap}).  
    487 (2) In partial step $z$-coordinate (\np{ln\_zps}=.true.), tracers in horizontally  
     489(a) In pure $z$-coordinate (\key{zco} is defined), $e_{3u}=e_{3v}=e_{3T}$,  
     490so that the vertical scale factors disappear from (\ref{Eq_tra_ldf_lap}) ;  
     491(b) In partial step $z$-coordinate (\np{ln\_zps}=.true.), tracers in horizontally  
    488492adjacent cells are located at different depths in the vicinity of the bottom.  
    489493In this case, horizontal derivatives in (\ref{Eq_tra_ldf_lap}) at the bottom level  
     
    494498%        Rotated laplacian operator 
    495499% ------------------------------------------------------------------------------------------------------------- 
    496 \subsection   [Rotated laplacian operator (\textit{traldf\_iso} - \np{ln\_traldf\_lap})] 
    497          {Rotated laplacian operator (\mdl{traldf\_iso} - \np{ln\_traldf\_lap}=.true.)} 
     500\subsection   [Rotated laplacian operator (iso) (\np{ln\_traldf\_lap})] 
     501         {Rotated laplacian operator (iso) (\np{ln\_traldf\_lap}=.true.)} 
    498502\label{TRA_ldf_iso} 
    499503 
     
    501505(\ref{Eq_PE_zdf}) takes the following semi-discrete space form in $z$- and  
    502506$s$-coordinates: 
    503  
    504507\begin{equation} \label{Eq_tra_ldf_iso} 
    505508\begin{split} 
    506  D_T^{lT} =& \frac{1}{e_{1T}\,e_{2T}\,e_{3T} } 
    507  \\ 
    508 & \left\{ {\delta _i \left[ {A_u^{lT}  \left(  
    509     {\frac{e_{2u} \; e_{3u} }{e_{1u} } \,\delta _{i+1/2}[T] 
    510    -e_{2u} \; r_{1u} \,\overline{\overline {\delta _{k+1/2}[T]}}^{\,i+1/2,k}} 
    511  \right)} \right]} \right.  
    512 \\  
    513 & +\delta  
    514 _j \left[ {A_v^{lT} \left( {\frac{e_{1v}\,e_{3v} }{e_{2v}  
    515 }\,\delta _{j+1/2} \left[ T \right]-e_{1v}\,r_{2v}  
    516 \,\overline{\overline {\delta _{k+1/2} \left[ T \right]}} ^{\,j+1/2,k}}  
    517 \right)} \right]  
    518 \\  
    519 & +\delta  
    520 _k \left[ {A_w^{lT} \left(  
    521 -e_{2w}\,r_{1w} \,\overline{\overline {\delta _{i+1/2} \left[ T \right]}} ^{\,i,k+1/2} 
    522 \right.} \right.  
    523 \\  
     509 D_T^{lT} = \frac{1}{b_T}   & \left\{   \,\;\delta_i \left[   A_u^{lT}  \left(  
     510     \frac{e_{2u}\;e_{3u}}{e_{1u}} \,\delta_{i+1/2}[T] 
     511   - e_{2u}\;r_{1u} \,\overline{\overline{ \delta_{k+1/2}[T] }}^{\,i+1/2,k} 
     512                                                     \right)   \right]   \right.    \\  
     513&             +\delta_j \left[ A_v^{lT} \left(  
     514          \frac{e_{1v}\,e_{3v}}{e_{2v}}  \,\delta_{j+1/2} [T]  
     515        - e_{1v}\,r_{2v} \,\overline{\overline{ \delta_{k+1/2} [T] }}^{\,j+1/2,k}  
     516                                                    \right)   \right]                 \\  
     517& +\delta_k \left[ A_w^{lT} \left(  
     518       -\;e_{2w}\,r_{1w} \,\overline{\overline{ \delta_{i+1/2} [T] }}^{\,i,k+1/2} 
     519                                                    \right.   \right.                 \\  
    524520& \qquad \qquad \quad  
    525 -e_{1w}\,r_{2w} \,\overline{\overline {\delta _{j+1/2} \left[ T \right]}} ^{\,j,k+1/2} 
    526 \\ 
    527 & \left. {\left. {  
    528  \quad \quad \quad \left. {{\kern  
    529 1pt}+\frac{e_{1w}\,e_{2w} }{e_{3w} }\,\left( {r_{1w} ^2+r_{2w} ^2}  
    530 \right)\,\delta _{k+1/2} \left[ T \right]} \right)} \right]\;\;\;} \right\}  
     521        - e_{1w}\,r_{2w} \,\overline{\overline{ \delta_{j+1/2} [T] }}^{\,j,k+1/2}     \\ 
     522& \left. {\left. {   \qquad \qquad \ \ \ \left. { 
     523        +\;\frac{e_{1w}\,e_{2w}}{e_{3w}} \,\left( r_{1w}^2 + r_{2w}^2 \right) 
     524           \,\delta_{k+1/2} [T] } \right) } \right] \quad } \right\}  
    531525 \end{split} 
    532526 \end{equation} 
    533 where $r_1$ and $r_2$ are the slopes between the surface of computation  
     527where $b_T= e_{1T}\,e_{2T}\,e_{3T}$  is the volume of $T$-cells,  
     528$r_1$ and $r_2$ are the slopes between the surface of computation  
    534529($z$- or $s$-surfaces) and the surface along which the diffusion operator  
    535530acts ($i.e.$ horizontal or iso-neutral surfaces).  It is thus used when,  
    536 in addition to \np{ln\_traldf\_lap}=.true., we have \np{ln\_traldf\_iso}=.true.,  
     531in addition to \np{ln\_traldf\_lap}= .true., we have \np{ln\_traldf\_iso}=.true.,  
    537532or both \np{ln\_traldf\_hor}=.true. and \np{ln\_zco}=.true.. The way these  
    538533slopes are evaluated is given in \S\ref{LDF_slp}. At the surface, bottom  
     
    544539be solved using the same implicit time scheme as that used in the vertical  
    545540physics (see \S\ref{TRA_zdf}). For computer efficiency reasons, this term  
    546 is not computed in the \mdl{traldf} module, but in the \mdl{trazdf} module  
     541is not computed in the \mdl{traldf\_iso} module, but in the \mdl{trazdf} module  
    547542where, if iso-neutral mixing is used, the vertical mixing coefficient is simply  
    548543increased by $\frac{e_{1w}\,e_{2w} }{e_{3w} }\ \left( {r_{1w} ^2+r_{2w} ^2} \right)$.  
     
    552547(see \S\ref{LDF}) allows the model to run safely without any additional  
    553548background horizontal diffusion \citep{Guily2001}. An alternative scheme  
    554 \citep{Griffies1998} which preserves both tracer and its variance is currently  
    555 been tested in \NEMO.  
     549developed by \cite{Griffies1998} which preserves both tracer and its variance  
     550is currently been tested in \NEMO. It should be available in a forthcoming 
     551release. 
    556552 
    557553Note that in the partial step $z$-coordinate (\np{ln\_zps}=.true.), the horizontal  
     
    562558%        Iso-level bilaplacian operator 
    563559% ------------------------------------------------------------------------------------------------------------- 
    564 \subsection   [Iso-level bilaplacian operator (\textit{traldf\_bilap} - \np{ln\_traldf\_bilap})] 
    565          {Iso-level bilaplacian operator (\mdl{traldf\_bilap} - \np{ln\_traldf\_bilap}=.true.)} 
     560\subsection   [Iso-level bilaplacian operator (bilap) (\np{ln\_traldf\_bilap})] 
     561         {Iso-level bilaplacian operator (bilap) (\np{ln\_traldf\_bilap}=.true.)} 
    566562\label{TRA_ldf_bilap} 
    567563 
     
    569565applying (\ref{Eq_tra_ldf_lap}) twice. It requires an additional assumption  
    570566on boundary conditions: the first and third derivative terms normal to the  
    571 coast are set to zero. 
    572  
    573 It is used when, in addition to \np{ln\_traldf\_bilap}=.true., we have  
    574 \np{ln\_traldf\_level}=.true., or both \np{ln\_traldf\_hor}=.true. and  
     567coast are set to zero. It is used when, in addition to \np{ln\_traldf\_bilap}=.true.,  
     568we have \np{ln\_traldf\_level}=.true., or both \np{ln\_traldf\_hor}=.true. and  
    575569\np{ln\_zco}=.false.. In both cases, it can contribute diapycnal mixing,  
    576570although less than in the laplacian case. It is therefore not recommended. 
    577571 
    578572Note that in the code, the bilaplacian routine does not call the laplacian  
    579 routine twice but is rather a separate routine. This is due to the fact that we  
    580 introduce the eddy diffusivity coefficient, A, in the operator as: $\nabla  
    581 \cdot \nabla \left( {A\nabla \cdot \nabla T} \right)$, instead of  
    582 $-\nabla \cdot a\nabla \left( {\nabla \cdot a\nabla T} \right)$ where  
    583 $a=\sqrt{|A|}$ and $A<0$. This was a mistake: both formulations  
    584 ensure the total variance decrease, but the former requires a larger number  
    585 of code-lines. It will be corrected in a forthcoming release. 
     573routine twice but is rather a separate routine that can be found in the 
     574\mdl{traldf\_bilap} module. This is due to the fact that we introduce the  
     575eddy diffusivity coefficient, A, in the operator as:  
     576$\nabla \cdot \nabla \left( {A\nabla \cdot \nabla T} \right)$,  
     577instead of  
     578$-\nabla \cdot a\nabla \left( {\nabla \cdot a\nabla T} \right)$  
     579where $a=\sqrt{|A|}$ and $A<0$. This was a mistake: both formulations  
     580ensure the total variance decrease, but the former requires a larger  
     581number of code-lines. It will be corrected in a forthcoming release. 
    586582 
    587583% ------------------------------------------------------------------------------------------------------------- 
    588584%        Rotated bilaplacian operator 
    589585% ------------------------------------------------------------------------------------------------------------- 
    590 \subsection   [Rotated bilaplacian operator (\textit{traldf\_bilapg} - \np{ln\_traldf\_bilap})] 
    591          {Rotated bilaplacian operator (\mdl{traldf\_bilapg} - \np{ln\_traldf\_bilap}=.true.)} 
     586\subsection   [Rotated bilaplacian operator (bilapg) (\np{ln\_traldf\_bilap})] 
     587         {Rotated bilaplacian operator (bilapg) (\np{ln\_traldf\_bilap}=.true.)} 
    592588\label{TRA_ldf_bilapg} 
    593589 
     
    595591applying (\ref{Eq_tra_ldf_iso}) twice. It requires an additional assumption  
    596592on boundary conditions: first and third derivative terms normal to the  
    597 coast, the bottom and the surface are set to zero. 
    598  
    599 It is used when, in addition to \np{ln\_traldf\_bilap}=T, we have  
    600 \np{ln\_traldf\_iso}=T, or both \np{ln\_traldf\_hor}=T and \np{ln\_zco}=T.  
     593coast, the bottom and the surface are set to zero. It can be found in the 
     594\mdl{traldf\_bilapg}. 
     595 
     596It is used when, in addition to \np{ln\_traldf\_bilap}=.true., we have  
     597\np{ln\_traldf\_iso}= .true, or both \np{ln\_traldf\_hor}=.true. and \np{ln\_zco}=.true..  
    601598Nevertheless, this rotated bilaplacian operator has never been seriously  
    602599tested. No warranties that it is neither free of bugs or correctly formulated.  
     
    619616The vertical diffusion operator given by (\ref{Eq_PE_zdf}) takes the  
    620617following semi-discrete space form: 
    621 (\ref{Eq_PE_zdf}) takes the following semi-discrete space form: 
    622618\begin{equation} \label{Eq_tra_zdf} 
    623619\begin{split} 
    624 D^{vT}_T &= \frac{1}{e_{3T}} \; \delta_k \left[  
    625 \frac{A^{vT}_w}{e_{3w}}  \delta_{k+1/2}[T]   \right]  
     620D^{vT}_T &= \frac{1}{e_{3T}} \; \delta_k \left[ \;\frac{A^{vT}_w}{e_{3w}}  \delta_{k+1/2}[T] \;\right]  
    626621\\ 
    627 D^{vS}_T &= \frac{1}{e_{3T}} \; \delta_k \left[  
    628 \frac{A^{vS}_w}{e_{3w}}  \delta_{k+1/2}[S]   \right]  
     622D^{vS}_T &= \frac{1}{e_{3T}} \; \delta_k \left[ \;\frac{A^{vS}_w}{e_{3w}}  \delta_{k+1/2}[S] \;\right]  
    629623\end{split} 
    630624\end{equation} 
    631  
    632625where $A_w^{vT}$ and $A_w^{vS}$ are the vertical eddy diffusivity  
    633 coefficients on Temperature and Salinity, respectively. Generally,  
     626coefficients on temperature and salinity, respectively. Generally,  
    634627$A_w^{vT}=A_w^{vS}$ except when double diffusive mixing is  
    635 parameterised (\key{zdfddm} is defined). The way these coefficients  
     628parameterised ($i.e.$ \key{zdfddm} is defined). The way these coefficients  
    636629are evaluated is given in \S\ref{ZDF} (ZDF). Furthermore, when  
    637630iso-neutral mixing is used, both mixing coefficients are increased  
     
    640633 
    641634At the surface and bottom boundaries, the turbulent fluxes of  
    642 momentum, heat and salt must be specified. At the surface they  
    643 are prescribed from the surface forcing (see \S\ref{TRA_sbc}),  
     635heat and salt must be specified. At the surface they are prescribed  
     636from the surface forcing and added in a dedicated routine (see \S\ref{TRA_sbc}),  
    644637whilst at the bottom they are set to zero for heat and salt unless  
    645638a geothermal flux forcing is prescribed as a bottom boundary  
    646 condition (\S\ref{TRA_bbc}).  
     639condition (see \S\ref{TRA_bbc}).  
    647640 
    648641The large eddy coefficient found in the mixed layer together with high  
     
    712705 \end{aligned} 
    713706\end{equation}  
    714  
    715707where EMP is the freshwater budget (evaporation minus precipitation  
    716708minus river runoff) which forces the ocean volume, $Q_{ns}$ is the  
     
    722714(except for the effect of the Asselin filter). 
    723715 
    724 %AMT note: the ice-ocean flux had been forgotten in the first release of the key_vvl option, has this been corrected in the code?  
     716%AMT note: the ice-ocean flux had been forgotten in the first release of the key_vvl option, has this been corrected in the code?     ===> gm :  NO to be added at NOCS  
    725717 
    726718In the second case (linear free surface), the vertical scale factors are  
     
    729721temperature of precipitation and runoffs, $F_{wf}^e +F_{wf}^i =0$  
    730722for temperature. The resulting forcing term for temperature is:  
    731  
    732723\begin{equation} \label{Eq_tra_forcing_q} 
    733724F^T=\frac{Q_{ns} }{\rho _o \;C_p \,e_{3T} } 
     
    779770\end{equation} 
    780771 
    781 where $I$ is the downward irradiance. The additional term in \eqref{Eq_PE_qsr} is discretized as follows: 
     772where $I$ is the downward irradiance. The additional term in \eqref{Eq_PE_qsr}  
     773is discretized as follows: 
    782774\begin{equation} \label{Eq_tra_qsr} 
    783775\frac{1}{\rho_o\, C_p \,e_3} \; \frac{\partial I}{\partial k} \equiv \frac{1}{\rho_o\, C_p\, e_{3T}} \delta_k \left[ I_w \right] 
     
    796788\gmcomment : Jerlov reference to be added 
    797789% 
    798 classification: $\xi_1 = 0.35m$, $\xi_2 = 0.23m$ and $R = 0.58$  
     790classification: $\xi_1 = 0.35~m$, $\xi_2 = 23~m$ and $R = 0.58$  
    799791(corresponding to \np{xsi1}, \np{xsi2} and \np{rabs} namelist parameters,  
    800792respectively). $I$ is masked (no flux through the ocean bottom),  
     
    837829\begin{figure}[!t] \label{Fig_geothermal}  \begin{center} 
    838830\includegraphics[width=1.0\textwidth]{./TexFiles/Figures/Fig_TRA_geoth.pdf} 
    839 \caption{Geothermal Heat flux (in $mW.m^{-2}$) as inferred from the age  
    840 of the sea floor and the formulae of \citet{Stein1992}.} 
     831\caption{Geothermal Heat flux (in $mW.m^{-2}$) used by \cite{Emile-Geay_Madec_OSD08}. 
     832It is inferred from the age of the sea floor and the formulae of \citet{Stein1992}.} 
    841833\end{center}   \end{figure} 
    842834%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    845837the ocean bottom, $i.e.$ a no flux boundary condition is applied on active  
    846838tracers at the bottom. This is the default option in \NEMO, and it is  
    847 implemented using the masking technique. Hoever, there is a  
     839implemented using the masking technique. However, there is a  
    848840non-zero heat flux across the seafloor that is associated with solid  
    849841earth cooling. This flux is weak compared to surface fluxes (a mean  
    850842global value of $\sim0.1\;W/m^2$ \citep{Stein1992}), but it is  
    851 systematically positive and acts on the densest water masses. Taking  
    852 this flux into account in a global ocean model increases 
    853 the deepest overturning cell (i.e. the one associated with the Antarctic  
    854 Bottom Water) by a few Sverdrups.  
     843systematically positive and acts on the densest water masses.  
     844Taking this flux into account in a global ocean model increases 
     845the deepest overturning cell ($i.e.$ the one associated with the Antarctic  
     846Bottom Water) by a few Sverdrups  \citep{Emile-Geay_Madec_OSD08}.  
    855847 
    856848The presence or not of geothermal heating is controlled by the namelist  
     
    886878a sill \citep{Willebrand2001}, and the thickness of the plume is not resolved.  
    887879 
    888 The idea of the bottom boundary layer (BBL) parameterization first introduced by  
     880The idea of the bottom boundary layer (BBL) parameterisation first introduced by  
    889881\citet{BeckDos1998} is to allow a direct communication between  
    890882two adjacent bottom cells at different levels, whenever the densest water is  
     
    933925%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    934926\begin{figure}[!t] \label{Fig_bbl}  \begin{center} 
    935 \includegraphics[width=1.0\textwidth]{./TexFiles/Figures/Fig_BBL_adv.pdf} 
     927\includegraphics[width=0.8\textwidth]{./TexFiles/Figures/Fig_BBL_adv.pdf} 
    936928\caption{Advective Bottom Boundary Layer.} 
    937929\end{center}   \end{figure} 
     
    10471039\end{split} 
    10481040\end{equation}  
    1049  
    10501041where $\text{RHS}_T$ is the right hand side of the temperature equation,  
    10511042the subscript $f$ denotes filtered values and $\gamma$ is the Asselin  
     
    10931084the practical salinity (another \NEMO variable) and the pressure (assuming no  
    10941085pressure variation along geopotential surfaces, i.e. the pressure in decibars is  
    1095 approximated by the depth in meters). Both the \citet{UNESCO1983} and \citet{JackMcD1995} equations of state have exactly the same except that  
     1086approximated by the depth in meters). Both the \citet{UNESCO1983} and  
     1087\citet{JackMcD1995} equations of state have exactly the same except that  
    10961088the values of the various coefficients have been adjusted by \citet{JackMcD1995}  
    10971089in order to directly use the \textit{potential} temperature instead of the  
     
    11941186\begin{equation} \label{Eq_tra_eos_fzp} 
    11951187   \begin{split} 
    1196 T_f (S,p) &= \left( -0.0575 + 1.710523 \;10^{-3} \, \sqrt{S}  
     1188T_f (S,p) = \left( -0.0575 + 1.710523 \;10^{-3} \, \sqrt{S}  
    11971189                       -  2.154996 \;10^{-4} \,S  \right) \ S    \\ 
    1198                & - 7.53\,10^{-3}\,p  
     1190               - 7.53\,10^{-3} \ \ p  
    11991191   \end{split} 
    12001192\end{equation} 
  • trunk/DOC/TexFiles/Chapters/Chap_ZDF.tex

    r998 r1224  
    77 
    88%gm% Add here a small introduction to ZDF and naming of the different physics (similar to what have been written for TRA and DYN. 
    9 \gmcomment{Steven remark : problem here with turbulent vs turbulence.  I've changed "turbulent closure" to "turbulence closure", "turbulent mixing length" to "turbulence mixing length", but I've left "turbulent kinetic energy" alone - though I think it is an historical abberation! 
    10 Gurvan :  I kept "turbulent closure"...} 
    11 \gmcomment{Steven bis : parameterization is the american spelling, parameterisation is the british} 
     9\gmcomment{Steven remark (not taken into account : problem here with turbulent vs turbulence.  I've changed "turbulent closure" to "turbulence closure", "turbulent mixing length" to "turbulence mixing length", but I've left "turbulent kinetic energy" alone - though I think it is an historical abberation! 
     10Gurvan :  I kept "turbulent closure etc "...} 
    1211 
    1312 
     
    2524flux forcing is prescribed as a bottom boundary condition ($i.e.$ \key{trabbl}  
    2625defined, see \S\ref{TRA_bbc}), and specified through a bottom friction  
    27 parameterization for momentum (see \S\ref{ZDF_bfr}). 
     26parameterisation for momentum (see \S\ref{ZDF_bfr}). 
    2827 
    2928In this section we briefly discuss the various choices offered to compute  
     
    8483large scale ocean structures. The hypothesis of a mixing mainly maintained by the  
    8584growth of Kelvin-Helmholtz like instabilities leads to a dependency between the  
    86 vertical turbulence eddy coefficients and the local Richardson number ($i.e.$ the  
     85vertical eddy coefficients and the local Richardson number ($i.e.$ the  
    8786ratio of stratification to vertical shear). Following \citet{PacPhil1981}, the following  
    8887formulation has been implemented: 
     
    114113The vertical eddy viscosity and diffusivity coefficients are computed from a TKE  
    115114turbulent closure model based on a prognostic equation for $\bar {e}$, the turbulent  
    116 kinetic energy, and a closure assumption for the turbulence length scales. This  
     115kinetic energy, and a closure assumption for the turbulent length scales. This  
    117116turbulent closure model has been developed by \citet{Bougeault1989} in the  
    118117atmospheric case, adapted by \citet{Gaspar1990} for the oceanic case, and  
     
    156155The choice of $P_{rt} $ is controlled by the \np{npdl} namelist parameter. 
    157156 
    158 For computational efficiency, the original formulation of the turbulence length  
     157For computational efficiency, the original formulation of the turbulent length  
    159158scales proposed by \citet{Gaspar1990} has been simplified. Four formulations  
    160159are proposed, the choice of which is controlled by the \np{nmxl} namelist  
     
    186185constraint, we introduce two additional length scales: $l_{up}$ and $l_{dwn}$,  
    187186the upward and downward length scales, and evaluate the dissipation and  
    188 mixing turbulence length scales as (and note that here we use numerical  
     187mixing turbulent length scales as (and note that here we use numerical  
    189188indexing): 
    190189%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    208207In the \np{nmxl}=2 case, the dissipation and mixing length scales take the same  
    209208value: $ l_k=  l_\epsilon = \min \left(\ l_{up} \;,\;  l_{dwn}\ \right)$, while in the  
    210 \np{nmxl}=2 case, the dissipation and mixing turbulence length scales are give  
     209\np{nmxl}=2 case, the dissipation and mixing length scales are give  
    211210as in \citet{Gaspar1990}: 
    212211\begin{equation} \label{Eq_tke_mxl_gaspar} 
     
    243242%-------------------------------------------------------------------------------------------------------------- 
    244243 
    245 The KKP scheme has been implemented by J. Chanut ... 
     244The K-Profile Parametrization (KKP) developed by \cite{Large_al_RG94} has been  
     245implemented in \NEMO by J. Chanut (PhD reference to be added here!). 
    246246 
    247247\colorbox{yellow}{Add a description of KPP here.} 
     
    262262quickly re-establish the static stability of the water column. These  
    263263processes have been removed from the model via the hydrostatic  
    264 assumption so they must be parameterized. Three parameterizations  
     264assumption so they must be parameterized. Three parameterisations  
    265265are available to deal with convective processes: a non-penetrative  
    266266convective adjustment or an enhanced vertical diffusion, or/and the  
     
    354354%-------------------------------------------------------------------------------------------------------------- 
    355355 
    356 The enhanced vertical diffusion parameterization is used when \np{ln\_zdfevd}=true.  
     356The enhanced vertical diffusion parameterisation is used when \np{ln\_zdfevd}=true.  
    357357In this case, the vertical eddy mixing coefficients are assigned very large values  
    358358(a typical value is $10\;m^2s^{-1})$ in regions where the stratification is unstable  
     
    364364if \np{n\_evdm}=1, the four neighbouring $A_u^{vm} \;\mbox{and}\;A_v^{vm}$  
    365365values also, are set equal to the namelist parameter \np{avevd}. A typical value  
    366 for $avevd$ is between 1 and $100~m^2.s^{-1}$. This parameterization of  
     366for $avevd$ is between 1 and $100~m^2.s^{-1}$. This parameterisation of  
    367367convective processes is less time consuming than the convective adjustment  
    368368algorithm presented above when mixing both tracers and momentum in the  
     
    384384$A_u^{vm} {and}\;A_v^{vm}$ (up to $1\;m^2s^{-1})$. These large values  
    385385restore the static stability of the water column in a way similar to that of the  
    386 enhanced vertical diffusion parameterization (\S\ref{ZDF_evd}). However,  
     386enhanced vertical diffusion parameterisation (\S\ref{ZDF_evd}). However,  
    387387in the vicinity of the sea surface (first ocean layer), the eddy coefficients  
    388 computed by the turbulence scheme do not usually exceed $10^{-2}m.s^{-1}$,  
     388computed by the turbulent closure scheme do not usually exceed $10^{-2}m.s^{-1}$,  
    389389because the mixing length scale is bounded by the distance to the sea surface  
    390390(see \S\ref{ZDF_tke}). It can thus be useful to combine the enhanced vertical  
     
    412412to diffusive convection. Double-diffusive phenomena contribute to diapycnal  
    413413mixing in extensive regions of the ocean.  \citet{Merryfield1999} include a  
    414 parameterization of such phenomena in a global ocean model and show that  
     414parameterisation of such phenomena in a global ocean model and show that  
    415415it leads to relatively minor changes in circulation but exerts significant regional  
    416416influences on temperature and salinity.  
     
    422422\end{align*} 
    423423where subscript $f$ represents mixing by salt fingering, $d$ by diffusive convection,  
    424 and $o$ by processes other than double diffusion. The rates of double-diffusive mixing depend on the buoyancy ratio $R_\rho = \alpha \partial_z T / \beta \partial_z S$,  
     424and $o$ by processes other than double diffusion. The rates of double-diffusive mixing  
     425depend on the buoyancy ratio $R_\rho = \alpha \partial_z T / \beta \partial_z S$,  
    425426where $\alpha$ and $\beta$ are coefficients of thermal expansion and saline  
    426427contraction (see \S\ref{TRA_eos}). To represent mixing of $S$ and $T$ by salt  
     
    443444$A^{\ast v} = 10^{-4}~m^2.s^{-1}$ ; (b) diapycnal diffusivities $A_d^{vT}$ and  
    444445$A_d^{vS}$ for temperature and salt in regions of diffusive convection. Heavy  
    445 curves denote the Federov parameterization and thin curves the Kelley  
    446 parameterization. The latter is not implemented in \NEMO. } 
     446curves denote the Federov parameterisation and thin curves the Kelley  
     447parameterisation. The latter is not implemented in \NEMO. } 
    447448\end{center}    \end{figure} 
    448449%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    453454we adopt $R_c = 1.6$, $n = 6$, and $A^{\ast v} = 10^{-4}~m^2.s^{-1}$. 
    454455 
    455 To represent mixing of S and T by diffusive layering,  the diapycnal diffusivities suggested by Federov (1988) is used:  
     456To represent mixing of S and T by diffusive layering,  the diapycnal diffusivities suggested  
     457by Federov (1988) is used:  
    456458\begin{align}  \label{Eq_zdfddm_d} 
    457459A_d^{vT} &=    \begin{cases} 
     
    525527\label{ZDF_bfr_linear} 
    526528 
    527 The linear bottom friction parameterization assumes that the bottom friction  
     529The linear bottom friction parameterisation assumes that the bottom friction  
    528530is proportional to the interior velocity (i.e. the velocity of the last model level): 
    529531\begin{equation} \label{Eq_zdfbfr_linear} 
     
    571573\label{ZDF_bfr_nonlinear} 
    572574 
    573 The non-linear bottom friction parameterization assumes that the bottom  
     575The non-linear bottom friction parameterisation assumes that the bottom  
    574576friction is quadratic:  
    575577\begin{equation} \label{Eq_zdfbfr_nonlinear} 
  • trunk/DOC/TexFiles/Chapters/Introduction.tex

    r996 r1224  
    1515its interactions with the other components of the earth climate system (atmosphere,  
    1616sea-ice, biogeochemical tracers, ...) over a wide range of space and time scales.  
    17 This documentation provides information about the physics represented by the ocean component of \NEMO and the rationale for the choice of numerical schemes and  
     17This documentation provides information about the physics represented by the ocean  
     18component of \NEMO and the rationale for the choice of numerical schemes and  
    1819the model design. More specific information about running the model on different  
    1920computers, or how to set up a configuration, are found on the \NEMO web site  
     
    9293around the code, the module names follow a three-letter rule. For example, \mdl{tradmp}  
    9394is a module related to the TRAcers equation, computing the DaMPing. The complete list  
    94 of module names is presented in \colorbox{yellow}{annex}. Furthermore, modules are   
     95of module names is presented in Appendix~\ref{Apdx_D}. Furthermore, modules are   
    9596organized in a few directories that correspond to their category, as indicated by the first  
    9697three letters of their name.  
     
    115116\end{table} 
    116117 
    117 In the current release (v2.3), LBC directory (see Chap.~\ref{LBC}) does not yet exist.  
    118 When created LBC will contain the OBC directory (Open Boundary Condition), and the 
    119 \mdl{lbclnk}, \mdl{mppini} and \mdl{lib\_mpp} modules.  
     118In the current release (v3.0), the LBC directory does not yet exist.  
     119When created LBC will contain the OBC directory (Open Boundary Condition),  
     120and the \mdl{lbclnk}, \mdl{mppini} and \mdl{lib\_mpp} modules.  
    120121 
    121122 \vspace{1cm}   Nota Bene : \vspace{0.25cm} 
     
    141142(9) online diagnostics : tracers trend in the mixed layer and vorticity balance; \\ 
    142143(10) rewriting of the I/O management; \\ 
    143 (11) OASIS 3 and 4 couplers interfacing with atmospheric global circulation models.  
     144(11) OASIS 3 and 4 couplers interfacing with atmospheric global circulation models. \\ 
    144145(12) surface module (SBC) that simplify the way the ocean is forced and include two 
    145 bulk formulea (CLIO and CORE) 
     146bulk formulea (CLIO and CORE)\\ 
    146147(13) introduction of LIM 3, the new Louvain-la-Neuve sea-ice model (C-grid rheology and 
    147 new thermodynamics including bulk ice salinity) 
     148new thermodynamics including bulk ice salinity) \citep{Vancoppenolle_al_OM08} 
    148149 
    149150In addition, several minor modifications in the coding have been introduced with the constant concern of improving performance on both scalar and vector computers.  
Note: See TracChangeset for help on using the changeset viewer.