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 6289 for trunk/DOC/TexFiles/Chapters/Chap_TRA.tex – NEMO

Ignore:
Timestamp:
2016-02-05T00:47:05+01:00 (8 years ago)
Author:
gm
Message:

#1673 DOC of the trunk - Update, see associated wiki page for description

File:
1 edited

Legend:

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

    r6140 r6289  
    3636(BBL) parametrisation, and an internal damping (DMP) term. The terms QSR,  
    3737BBC, BBL and DMP are optional. The external forcings and parameterisations  
    38 require complex inputs and complex calculations (e.g. bulk formulae, estimation  
     38require complex inputs and complex calculations ($e.g.$ bulk formulae, estimation  
    3939of mixing coefficients) that are carried out in the SBC, LDF and ZDF modules and  
    4040described in chapters \S\ref{SBC}, \S\ref{LDF} and  \S\ref{ZDF}, respectively.  
    41 Note that \mdl{tranpc}, the non-penetrative convection module,  although  
     41Note that \mdl{tranpc}, the non-penetrative convection module, although  
    4242located in the NEMO/OPA/TRA directory as it directly modifies the tracer fields,  
    4343is described with the model vertical physics (ZDF) together with other available  
     
    4545 
    4646In the present chapter we also describe the diagnostic equations used to compute  
    47 the sea-water properties (density, Brunt-Vais\"{a}l\"{a} frequency, specific heat and  
     47the sea-water properties (density, Brunt-V\"{a}is\"{a}l\"{a} frequency, specific heat and  
    4848freezing point with associated modules \mdl{eosbn2} and \mdl{phycst}). 
    4949 
     
    5454found in the \textit{traTTT} or \textit{traTTT\_xxx} module, in the NEMO/OPA/TRA directory. 
    5555 
    56 The user has the option of extracting each tendency term on the rhs of the tracer  
    57 equation for output (\np{ln\_tra\_trd} or \np{ln\_tra\_mxl}~=~true), as described in Chap.~\ref{MISC}. 
     56The user has the option of extracting each tendency term on the RHS of the tracer  
     57equation for output (\np{ln\_tra\_trd} or \np{ln\_tra\_mxl}~=~true), as described in Chap.~\ref{DIA}. 
    5858 
    5959$\ $\newline    % force a new ligne 
     
    6868%------------------------------------------------------------------------------------------------------------- 
    6969 
    70 The advection tendency of a tracer in flux form is the divergence of the advective  
    71 fluxes. Its discrete expression is given by : 
     70When considered ($i.e.$ when \np{ln\_traadv\_NONE} is not set to \textit{true}),  
     71the advection tendency of a tracer is expressed in flux form,  
     72$i.e.$ as the divergence of the advective fluxes. Its discrete expression is given by : 
    7273\begin{equation} \label{Eq_tra_adv} 
    7374ADV_\tau =-\frac{1}{b_t} \left(  
     
    171172%        2nd and 4th order centred schemes 
    172173% ------------------------------------------------------------------------------------------------------------- 
    173 \subsection [centred schemes (CEN) (\np{ln\_traadv\_cen})] 
    174             {centred schemes (CEN) (\np{ln\_traadv\_cen}=true)} 
     174\subsection [Centred schemes (CEN) (\np{ln\_traadv\_cen})] 
     175            {Centred schemes (CEN) (\np{ln\_traadv\_cen}=true)} 
    175176\label{TRA_adv_cen} 
    176177 
     
    278279but on the latter, a split-explicit time stepping is used, with a number of sub-timestep equals 
    279280to \np{nn\_fct\_zts}. This option can be useful when the size of the timestep is limited  
    280 by vertical advection \citep{Lemarie_OM2015)}. Note that in this case, a similar split-explicit  
     281by vertical advection \citep{Lemarie_OM2015}. Note that in this case, a similar split-explicit  
    281282time stepping should be used on vertical advection of momentum to insure a better stability 
    282283(see \S\ref{DYN_zad}). 
     
    405406Estimated Streaming Terms (QUICKEST) scheme proposed by \citet{Leonard1979}  
    406407is used when \np{ln\_traadv\_qck}~=~\textit{true}.  
    407 QUICKEST implementation can be found in the \mdl{traadv\_mus} module. 
     408QUICKEST implementation can be found in the \mdl{traadv\_qck} module. 
    408409 
    409410QUICKEST is the third order Godunov scheme which is associated with the ULTIMATE QUICKEST  
     
    415416direction where the control of artificial diapycnal fluxes is of paramount importance.  
    416417Therefore the vertical flux is evaluated using the CEN2 scheme.  
    417 This no longer guarantees the positivity of the scheme. The use of TVD in the vertical  
    418 direction (as for the UBS case) should be implemented to restore this property. 
     418This no longer guarantees the positivity of the scheme.  
     419The use of FCT in the vertical direction (as for the UBS case) should be implemented  
     420to restore this property. 
    419421 
    420422%%%gmcomment   :  Cross term are missing in the current implementation.... 
     
    431433%------------------------------------------------------------------------------------------------------------- 
    432434  
    433 Options are defined through the  \ngn{namtra\_ldf} namelist variables. 
    434 The options available for lateral diffusion are a laplacian (rotated or not)  
    435 or a biharmonic operator, the latter being more scale-selective (more  
    436 diffusive at small scales). The specification of eddy diffusivity  
    437 coefficients (either constant or variable in space and time) as well as the  
    438 computation of the slope along which the operators act, are performed in the  
    439 \mdl{ldftra} and \mdl{ldfslp} modules, respectively. This is described in Chap.~\ref{LDF}.  
     435Options are defined through the \ngn{namtra\_ldf} namelist variables. 
     436They are regrouped in four items, allowing to specify  
     437$(i)$   the type of operator used (none, laplacian, bilaplacian),  
     438$(ii)$  the direction along which the operator acts (iso-level, horizontal, iso-neutral),  
     439$(iii)$ some specific options related to the rotated operators ($i.e.$ non-iso-level operator), and  
     440$(iv)$  the specification of eddy diffusivity coefficient (either constant or variable in space and time). 
     441Item $(iv)$ will be described in Chap.\ref{LDF} . 
     442The direction along which the operators act is defined through the slope between this direction and the iso-level surfaces. 
     443The slope is computed in the \mdl{ldfslp} module and will also be described in Chap.~\ref{LDF}.  
     444 
    440445The lateral diffusion of tracers is evaluated using a forward scheme,  
    441446$i.e.$ the tracers appearing in its expression are the \textit{before} tracers in time,  
    442 except for the pure vertical component that appears when a rotation tensor  
    443 is used. This latter term is solved implicitly together with the  
    444 vertical diffusion term (see \S\ref{STP}). 
    445  
    446 % ------------------------------------------------------------------------------------------------------------- 
    447 %        Iso-level laplacian operator 
    448 % ------------------------------------------------------------------------------------------------------------- 
    449 \subsection   [Iso-level laplacian operator (lap) (\np{ln\_traldf\_lap})] 
    450          {Iso-level laplacian operator (lap) (\np{ln\_traldf\_lap}=true) } 
    451 \label{TRA_ldf_lap} 
    452  
    453 A laplacian diffusion operator ($i.e.$ a harmonic operator) acting along the model  
    454 surfaces is given by:  
     447except for the pure vertical component that appears when a rotation tensor is used.  
     448This latter component is solved implicitly together with the vertical diffusion term (see \S\ref{STP}).  
     449When \np{ln\_traldf\_msc}~=~\textit{true}, a Method of Stabilizing Correction is used in which  
     450the pure vertical component is split into an explicit and an implicit part \citep{Lemarie_OM2012}. 
     451 
     452% ------------------------------------------------------------------------------------------------------------- 
     453%        Type of operator 
     454% ------------------------------------------------------------------------------------------------------------- 
     455\subsection   [Type of operator (\np{ln\_traldf\_NONE}, \np{ln\_traldf\_lap}, \np{ln\_traldf\_blp})] 
     456              {Type of operator (\np{ln\_traldf\_NONE}, \np{ln\_traldf\_lap}, or \np{ln\_traldf\_blp} = true) }  
     457\label{TRA_ldf_op} 
     458 
     459Three operator options are proposed and, one and only one of them must be selected: 
     460\begin{description} 
     461\item [\np{ln\_traldf\_NONE}] = true : no operator selected, the lateral diffusive tendency will not be  
     462applied to the tracer equation. This option can be used when the selected advection scheme  
     463is diffusive enough (MUSCL scheme for example). 
     464\item [ \np{ln\_traldf\_lap}] = true : a laplacian operator is selected. This harmonic operator  
     465takes the following expression:  $\mathpzc{L}(T)=\nabla \cdot A_{ht}\;\nabla T $,  
     466where the gradient operates along the selected direction (see \S\ref{TRA_ldf_dir}), 
     467and $A_{ht}$ is the eddy diffusivity coefficient expressed in $m^2/s$ (see Chap.~\ref{LDF}). 
     468\item [\np{ln\_traldf\_blp}] = true : a bilaplacian operator is selected. This biharmonic operator  
     469takes the following expression:   
     470$\mathpzc{B}=- \mathpzc{L}\left(\mathpzc{L}(T) \right) = -\nabla \cdot b\nabla \left( {\nabla \cdot b\nabla T} \right)$  
     471where the gradient operats along the selected direction, 
     472and $b^2=B_{ht}$ is the eddy diffusivity coefficient expressed in $m^4/s$  (see Chap.~\ref{LDF}). 
     473In the code, the bilaplacian operator is obtained by calling the laplacian twice. 
     474\end{description} 
     475 
     476Both laplacian and bilaplacian operators ensure the total tracer variance decrease.  
     477Their primary role is to provide strong dissipation at the smallest scale supported  
     478by the grid while minimizing the impact on the larger scale features.  
     479The main difference between the two operators is the scale selectiveness.  
     480The bilaplacian damping time ($i.e.$ its spin down time) scales like $\lambda^{-4}$  
     481for disturbances of wavelength $\lambda$ (so that short waves damped more rapidelly than long ones),  
     482whereas the laplacian damping time scales only like $\lambda^{-2}$. 
     483 
     484 
     485% ------------------------------------------------------------------------------------------------------------- 
     486%        Direction of action 
     487% ------------------------------------------------------------------------------------------------------------- 
     488\subsection   [Direction of action (\np{ln\_traldf\_lev}, \np{ln\_traldf\_hor}, \np{ln\_traldf\_iso}, \np{ln\_traldf\_triad})] 
     489              {Direction of action (\np{ln\_traldf\_lev}, \textit{...\_hor}, \textit{...\_iso}, or \textit{...\_triad} = true) }  
     490\label{TRA_ldf_dir} 
     491 
     492The choice of a direction of action determines the form of operator used.  
     493The operator is a simple (re-entrant) laplacian acting in the (\textbf{i},\textbf{j}) plane  
     494when iso-level option is used (\np{ln\_traldf\_lev}~=~\textit{true}) 
     495or when a horizontal ($i.e.$ geopotential) operator is demanded in \textit{z}-coordinate  
     496(\np{ln\_traldf\_hor} and \np{ln\_zco} equal \textit{true}).  
     497The associated code can be found in the \mdl{traldf\_lap\_blp} module. 
     498The operator is a rotated (re-entrant) laplacian when the direction along which it acts  
     499does not coincide with the iso-level surfaces,  
     500that is when standard or triad iso-neutral option is used (\np{ln\_traldf\_iso} or  
     501 \np{ln\_traldf\_triad} equals \textit{true}, see \mdl{traldf\_iso} or \mdl{traldf\_triad} module, resp.),  
     502or when a horizontal ($i.e.$ geopotential) operator is demanded in \textit{s}-coordinate  
     503(\np{ln\_traldf\_hor} and \np{ln\_sco} equal \textit{true}) 
     504\footnote{In this case, the standard iso-neutral operator will be automatically selected}.  
     505In that case, a rotation is applied to the gradient(s) that appears in the operator  
     506so that diffusive fluxes acts on the three spatial direction. 
     507 
     508The resulting discret form of the three operators (one iso-level and two rotated one)  
     509is given in the next two sub-sections.  
     510 
     511 
     512% ------------------------------------------------------------------------------------------------------------- 
     513%       iso-level operator 
     514% ------------------------------------------------------------------------------------------------------------- 
     515\subsection   [Iso-level (bi-)laplacian operator ( \np{ln\_traldf\_iso})] 
     516         {Iso-level (bi-)laplacian operator ( \np{ln\_traldf\_iso}) } 
     517\label{TRA_ldf_lev} 
     518 
     519The laplacian diffusion operator acting along the model (\textit{i,j})-surfaces is given by:  
    455520\begin{equation} \label{Eq_tra_ldf_lap} 
    456 D_T^{lT} =\frac{1}{b_tT} \left( \; 
     521D_t^{lT} =\frac{1}{b_t} \left( \; 
    457522   \delta _{i}\left[ A_u^{lT} \; \frac{e_{2u}\,e_{3u}}{e_{1u}} \;\delta _{i+1/2} [T] \right]  
    458523+ \delta _{j}\left[ A_v^{lT} \;  \frac{e_{1v}\,e_{3v}}{e_{2v}} \;\delta _{j+1/2} [T] \right]  \;\right) 
    459524\end{equation} 
    460 where  $b_t$=$e_{1t}\,e_{2t}\,e_{3t}$  is the volume of $T$-cells.  
    461 It is implemented in the \mdl{traadv\_lap} module. 
    462  
    463 This lateral operator is computed in \mdl{traldf\_lap}. It is a \emph{horizontal}  
    464 operator ($i.e.$ acting along geopotential surfaces) in the $z$-coordinate with  
    465 or without partial steps, but is simply an iso-level operator in the $s$-coordinate.  
    466 It is thus used when, in addition to \np{ln\_traldf\_lap}=true, we have  
    467 \np{ln\_traldf\_level}=true or \np{ln\_traldf\_hor}=\np{ln\_zco}=true.  
     525where  $b_t$=$e_{1t}\,e_{2t}\,e_{3t}$  is the volume of $T$-cells  
     526and where zero diffusive fluxes is assumed across solid boundaries,  
     527first (and third in bilaplacian case) horizontal tracer derivative are masked.  
     528It is implemented in the \rou{traldf\_lap} subroutine found in the \mdl{traldf\_lap} module.  
     529The module also contains \rou{traldf\_blp}, the subroutine calling twice \rou{traldf\_lap}  
     530in order to compute the iso-level bilaplacian operator.  
     531 
     532It is a \emph{horizontal} operator ($i.e.$ acting along geopotential surfaces) in the $z$-coordinate  
     533with or without partial steps, but is simply an iso-level operator in the $s$-coordinate.  
     534It is thus used when, in addition to \np{ln\_traldf\_lap} or \np{ln\_traldf\_blp}~=~\textit{true},  
     535we have \np{ln\_traldf\_lev}~=~\textit{true} or \np{ln\_traldf\_hor}~=~\np{ln\_zco}~=~\textit{true}.  
    468536In both cases, it significantly contributes to diapycnal mixing.  
    469 It is therefore not recommended. 
     537It is therefore never recommended, even when using it in the bilaplacian case. 
    470538 
    471539Note that in the partial step $z$-coordinate (\np{ln\_zps}=true), tracers in horizontally  
     
    475543described in \S\ref{TRA_zpshde}. 
    476544 
    477 % ------------------------------------------------------------------------------------------------------------- 
    478 %        Rotated laplacian operator 
    479 % ------------------------------------------------------------------------------------------------------------- 
    480 \subsection   [Rotated laplacian operator (iso) (\np{ln\_traldf\_lap})] 
    481          {Rotated laplacian operator (iso) (\np{ln\_traldf\_lap}=true)} 
     545 
     546% ------------------------------------------------------------------------------------------------------------- 
     547%         Rotated laplacian operator 
     548% ------------------------------------------------------------------------------------------------------------- 
     549\subsection   [Standard and triad rotated (bi-)laplacian operator (\mdl{traldf\_iso}, \mdl{traldf\_triad})] 
     550               {Standard and triad (bi-)laplacian operator (\mdl{traldf\_iso}, \mdl{traldf\_triad}))} 
     551\label{TRA_ldf_iso_triad} 
     552 
     553%&&    Standard rotated (bi-)laplacian operator 
     554%&& ---------------------------------------------- 
     555\subsubsection   [Standard rotated (bi-)laplacian operator (\mdl{traldf\_iso})] 
     556                 {Standard rotated (bi-)laplacian operator (\mdl{traldf\_iso})} 
    482557\label{TRA_ldf_iso} 
    483  
    484 If the Griffies trad scheme is not employed 
    485 (\np{ln\_traldf\_grif}=true; see App.\ref{sec:triad}) the general form of the second order lateral tracer subgrid scale physics  
    486 (\ref{Eq_PE_zdf}) takes the following semi-discrete space form in $z$- and  
    487 $s$-coordinates: 
     558The general form of the second order lateral tracer subgrid scale physics  
     559(\ref{Eq_PE_zdf}) takes the following semi-discrete space form in $z$- and $s$-coordinates: 
    488560\begin{equation} \label{Eq_tra_ldf_iso} 
    489561\begin{split} 
     
    527599of the tracer variance. Nevertheless the treatment performed on the slopes  
    528600(see \S\ref{LDF}) allows the model to run safely without any additional  
    529 background horizontal diffusion \citep{Guilyardi_al_CD01}. An alternative scheme  
    530 developed by \cite{Griffies_al_JPO98} which ensures tracer variance decreases  
     601background horizontal diffusion \citep{Guilyardi_al_CD01}.  
     602 
     603Note that in the partial step $z$-coordinate (\np{ln\_zps}=true), the horizontal derivatives  
     604at the bottom level in \eqref{Eq_tra_ldf_iso} require a specific treatment.  
     605They are calculated in module zpshde, described in \S\ref{TRA_zpshde}. 
     606 
     607%&&     Triad rotated (bi-)laplacian operator 
     608%&&  ------------------------------------------- 
     609\subsubsection   [Triad rotated (bi-)laplacian operator (\np{ln\_traldf\_triad})] 
     610                 {Triad rotated (bi-)laplacian operator (\np{ln\_traldf\_triad})} 
     611\label{TRA_ldf_triad} 
     612 
     613If the Griffies triad scheme is employed (\np{ln\_traldf\_triad}=true ; see App.\ref{sec:triad})  
     614 
     615An alternative scheme developed by \cite{Griffies_al_JPO98} which ensures tracer variance decreases  
    531616is also available in \NEMO (\np{ln\_traldf\_grif}=true). A complete description of  
    532617the algorithm is given in App.\ref{sec:triad}. 
    533  
    534 Note that in the partial step $z$-coordinate (\np{ln\_zps}=true), the horizontal  
    535 derivatives at the bottom level in \eqref{Eq_tra_ldf_iso} require a specific  
    536 treatment. They are calculated in module zpshde, described in \S\ref{TRA_zpshde}. 
    537  
    538 % ------------------------------------------------------------------------------------------------------------- 
    539 %        Iso-level bilaplacian operator 
    540 % ------------------------------------------------------------------------------------------------------------- 
    541 \subsection   [Iso-level bilaplacian operator (bilap) (\np{ln\_traldf\_bilap})] 
    542          {Iso-level bilaplacian operator (bilap) (\np{ln\_traldf\_bilap}=true)} 
    543 \label{TRA_ldf_bilap} 
    544618 
    545619The lateral fourth order bilaplacian operator on tracers is obtained by  
    546620applying (\ref{Eq_tra_ldf_lap}) twice. The operator requires an additional assumption  
    547621on boundary conditions: both first and third derivative terms normal to the  
    548 coast are set to zero. It is used when, in addition to \np{ln\_traldf\_bilap}=true,  
    549 we have \np{ln\_traldf\_level}=true, or both \np{ln\_traldf\_hor}=true and  
    550 \np{ln\_zco}=false. In both cases, it can contribute diapycnal mixing,  
    551 although less than in the laplacian case. It is therefore not recommended. 
    552  
    553 Note that in the code, the bilaplacian routine does not call the laplacian  
    554 routine twice but is rather a separate routine that can be found in the 
    555 \mdl{traldf\_bilap} module. This is due to the fact that we introduce the  
    556 eddy diffusivity coefficient, A, in the operator as:  
    557 $\nabla \cdot \nabla \left( {A\nabla \cdot \nabla T} \right)$,  
    558 instead of  
    559 $-\nabla \cdot a\nabla \left( {\nabla \cdot a\nabla T} \right)$  
    560 where $a=\sqrt{|A|}$ and $A<0$. This was a mistake: both formulations  
    561 ensure the total variance decrease, but the former requires a larger  
    562 number of code-lines. 
    563  
    564 % ------------------------------------------------------------------------------------------------------------- 
    565 %        Rotated bilaplacian operator 
    566 % ------------------------------------------------------------------------------------------------------------- 
    567 \subsection   [Rotated bilaplacian operator (bilapg) (\np{ln\_traldf\_bilap})] 
    568          {Rotated bilaplacian operator (bilapg) (\np{ln\_traldf\_bilap}=true)} 
    569 \label{TRA_ldf_bilapg} 
     622coast are set to zero. 
    570623 
    571624The lateral fourth order operator formulation on tracers is obtained by  
    572625applying (\ref{Eq_tra_ldf_iso}) twice. It requires an additional assumption  
    573626on boundary conditions: first and third derivative terms normal to the  
    574 coast, normal to the bottom and normal to the surface are set to zero. It can be found in the 
    575 \mdl{traldf\_bilapg}. 
    576  
    577 It is used when, in addition to \np{ln\_traldf\_bilap}=true, we have  
    578 \np{ln\_traldf\_iso}= .true, or both \np{ln\_traldf\_hor}=true and \np{ln\_zco}=true.  
    579 This rotated bilaplacian operator has never been seriously  
    580 tested. There are no guarantees that it is either free of bugs or correctly formulated.  
    581 Moreover, the stability range of such an operator will be probably quite  
    582 narrow, requiring a significantly smaller time-step than the one used with an 
    583 unrotated operator. 
     627coast, normal to the bottom and normal to the surface are set to zero.  
     628 
     629%&&    Option for the rotated operators 
     630%&& ---------------------------------------------- 
     631\subsubsection   [Option for the rotated operators] 
     632                 {Option for the rotated operators} 
     633\label{TRA_ldf_options} 
     634 
     635\np{ln\_traldf\_msc} = Method of Stabilizing Correction (both operators) 
     636 
     637\np{rn\_slpmax} = slope limit (both operators) 
     638 
     639\np{ln\_triad\_iso} = pure horizontal mixing in ML (triad only) 
     640 
     641\np{rn\_sw\_triad} =1 switching triad ; =0 all 4 triads used (triad only)  
     642 
     643\np{ln\_botmix\_triad} = lateral mixing on bottom (triad only) 
    584644 
    585645% ================================================================ 
     
    593653%-------------------------------------------------------------------------------------------------------------- 
    594654 
    595 Options are defined through the  \ngn{namzdf} namelist variables. 
     655Options are defined through the \ngn{namzdf} namelist variables. 
    596656The formulation of the vertical subgrid scale tracer physics is the same  
    597657for all the vertical coordinates, and is based on a laplacian operator.  
     
    651711the thickness of the top model layer.  
    652712 
    653 Due to interactions and mass exchange of water ($F_{mass}$) with other Earth system components ($i.e.$ atmosphere, sea-ice, land), 
    654 the change in the heat and salt content of the surface layer of the ocean is due both  
    655 to the heat and salt fluxes crossing the sea surface (not linked with $F_{mass}$) 
    656  and to the heat and salt content of the mass exchange. 
    657 \sgacomment{ the following does not apply to the release to which this documentation is  
    658 attached and so should not be included .... 
    659 In a forthcoming release, these two parts, computed in the surface module (SBC), will be included directly 
    660 in $Q_{ns}$, the surface heat flux and $F_{salt}$, the surface salt flux. 
    661 The specification of these fluxes is further detailed in the SBC chapter (see \S\ref{SBC}).  
    662 This change will provide a forcing formulation which is the same for any tracer (including temperature and salinity). 
    663   
    664 In the current version, the situation is a little bit more complicated. } 
     713Due to interactions and mass exchange of water ($F_{mass}$) with other Earth system components  
     714($i.e.$ atmosphere, sea-ice, land), the change in the heat and salt content of the surface layer  
     715of the ocean is due both to the heat and salt fluxes crossing the sea surface (not linked with $F_{mass}$)  
     716and to the heat and salt content of the mass exchange. They are both included directly in $Q_{ns}$,  
     717the surface heat flux, and $F_{salt}$, the surface salt flux (see \S\ref{SBC} for further details). 
     718By doing this, the forcing formulation is the same for any tracer (including temperature and salinity). 
    665719 
    666720The surface module (\mdl{sbcmod}, see \S\ref{SBC}) provides the following  
     
    669723$\bullet$ $Q_{ns}$, the non-solar part of the net surface heat flux that crosses the sea surface  
    670724(i.e. the difference between the total surface heat flux and the fraction of the short wave flux that  
    671 penetrates into the water column, see \S\ref{TRA_qsr}) 
    672  
    673 $\bullet$ \textit{emp}, the mass flux exchanged with the atmosphere (evaporation minus precipitation) 
    674  
    675 $\bullet$ $\textit{emp}_S$, an equivalent mass flux taking into account the effect of ice-ocean mass exchange 
    676  
    677 $\bullet$ \textit{rnf}, the mass flux associated with runoff (see \S\ref{SBC_rnf} for further detail of how it acts on temperature and salinity tendencies) 
    678  
    679 The $\textit{emp}_S$ field is not simply the budget of evaporation-precipitation+freezing-melting because  
    680 the sea-ice is not currently embedded in the ocean but levitates above it. There is no mass 
    681 exchanged between the sea-ice and the ocean. Instead we only take into account the salt 
    682 flux associated with the non-zero salinity of sea-ice, and the concentration/dilution effect 
    683 due to the freezing/melting (F/M) process. These two parts of the forcing are then converted into  
    684 an equivalent mass flux given by $\textit{emp}_S - \textit{emp}$. As a result of this mess,  
    685 the surface boundary condition on temperature and salinity is applied as follows: 
    686  
    687 In the nonlinear free surface case (\key{vvl} is defined): 
     725penetrates into the water column, see \S\ref{TRA_qsr}) plus the heat content associated with  
     726of the mass exchange with the atmosphere and lands. 
     727 
     728$\bullet$ $\textit{sfx}$, the salt flux resulting from ice-ocean mass exchange (freezing, melting, ridging...) 
     729 
     730$\bullet$ \textit{emp}, the mass flux exchanged with the atmosphere (evaporation minus precipitation)  
     731 and possibly with the sea-ice and ice-shelves. 
     732 
     733$\bullet$ \textit{rnf}, the mass flux associated with runoff  
     734(see \S\ref{SBC_rnf} for further detail of how it acts on temperature and salinity tendencies) 
     735 
     736The surface boundary condition on temperature and salinity is applied as follows: 
    688737\begin{equation} \label{Eq_tra_sbc} 
     738\begin{aligned} 
     739 &F^T = \frac{ 1 }{\rho _o \;C_p \,\left. e_{3t} \right|_{k=1} }  &\overline{ Q_{ns}       }^t  & \\  
     740& F^S =\frac{ 1 }{\rho _o  \,      \left. e_{3t} \right|_{k=1} }  &\overline{ \textit{sfx} }^t   & \\    
     741 \end{aligned} 
     742\end{equation}  
     743where $\overline{x }^t$ means that $x$ is averaged over two consecutive time steps  
     744($t-\rdt/2$ and $t+\rdt/2$). Such time averaging prevents the  
     745divergence of odd and even time step (see \S\ref{STP}). 
     746 
     747In the linear free surface case (\np{ln\_linssh}~=~\textit{true}),  
     748an additional term has to be added on both temperature and salinity.  
     749On temperature, this term remove the heat content associated with mass exchange 
     750that has been added to $Q_{ns}$. On salinity, this term mimics the concentration/dilution effect that 
     751would have resulted from a change in the volume of the first level. 
     752The resulting surface boundary condition is applied as follows: 
     753\begin{equation} \label{Eq_tra_sbc_lin} 
    689754\begin{aligned} 
    690755 &F^T = \frac{ 1 }{\rho _o \;C_p \,\left. e_{3t} \right|_{k=1} }    
     
    692757% 
    693758& F^S =\frac{ 1 }{\rho _o \,\left. e_{3t} \right|_{k=1} }  
    694            &\overline{ \left( (\textit{emp}_S - \textit{emp})\;\left. S \right|_{k=1}  \right) }^t   & \\    
     759           &\overline{ \left( \;\textit{sfx} - \textit{emp} \;\left. S \right|_{k=1}  \right) }^t   & \\    
    695760 \end{aligned} 
    696761\end{equation}  
    697  
    698 In the linear free surface case (\key{vvl} not defined): 
    699 \begin{equation} \label{Eq_tra_sbc_lin} 
    700 \begin{aligned} 
    701  &F^T = \frac{ 1 }{\rho _o \;C_p \,\left. e_{3t} \right|_{k=1} }  &\overline{ Q_{ns} }^t  & \\  
    702 % 
    703 & F^S =\frac{ 1 }{\rho _o \,\left. e_{3t} \right|_{k=1} }  
    704            &\overline{ \left( \textit{emp}_S\;\left. S \right|_{k=1}  \right) }^t   & \\    
    705  \end{aligned} 
    706 \end{equation}  
    707 where $\overline{x }^t$ means that $x$ is averaged over two consecutive time steps  
    708 ($t-\rdt/2$ and $t+\rdt/2$). Such time averaging prevents the  
    709 divergence of odd and even time step (see \S\ref{STP}). 
    710  
    711 The two set of equations, \eqref{Eq_tra_sbc} and \eqref{Eq_tra_sbc_lin}, are obtained  
    712 by assuming that the temperature of precipitation and evaporation are equal to 
    713 the ocean surface temperature and that their salinity is zero. Therefore, the heat content 
    714 of the \textit{emp} budget must be added to the temperature equation in the variable volume case,  
    715 while it does not appear in the constant volume case. Similarly, the \textit{emp} budget affects  
    716 the ocean surface salinity in the constant volume case (through the concentration dilution effect) 
    717 while it does not appears explicitly in the variable volume case since salinity change will be 
    718 induced by volume change. In both constant and variable volume cases, surface salinity  
    719 will change with ice-ocean salt flux and F/M flux (both contained in $\textit{emp}_S - \textit{emp}$) without mass exchanges. 
    720  
    721 Note that the concentration/dilution effect due to F/M is computed using 
    722 a constant ice salinity as well as a constant ocean salinity.  
    723 This approximation suppresses the correlation between \textit{SSS}  
    724 and F/M flux, allowing the ice-ocean salt exchanges to be conservative. 
    725 Indeed, if this approximation is not made, even if the F/M budget is zero  
    726 on average over the whole ocean domain and over the seasonal cycle,  
    727 the associated salt flux is not zero, since sea-surface salinity and F/M flux are  
    728 intrinsically correlated (high \textit{SSS} are found where freezing is  
    729 strong whilst low \textit{SSS} is usually associated with high melting areas). 
    730  
    731 Even using this approximation, an exact conservation of heat and salt content  
    732 is only achieved in the variable volume case. In the constant volume case,  
    733 there is a small imbalance associated with the product $(\partial_t\eta - \textit{emp}) * \textit{SSS}$. 
    734 Nevertheless, the salt content variation is quite small and will not induce 
    735 a long term drift as there is no physical reason for $(\partial_t\eta - \textit{emp})$  
    736 and \textit{SSS} to be correlated \citep{Roullet_Madec_JGR00}.  
    737 Note that, while quite small, the imbalance in the constant volume case is larger  
     762Note that an exact conservation of heat and salt content is only achieved with non-linear free surface.  
     763In the linear free surface case, there is a small imbalance. The imbalance is larger  
    738764than the imbalance associated with the Asselin time filter \citep{Leclair_Madec_OM09}.  
    739 This is the reason why the modified filter is not applied in the constant volume case. 
     765This is the reason why the modified filter is not applied in the linear free surface case (see \S\ref{STP}). 
    740766 
    741767% ------------------------------------------------------------------------------------------------------------- 
     
    849875\label{TRA_bbc} 
    850876%--------------------------------------------nambbc-------------------------------------------------------- 
    851 \namdisplay{namtra_bbc} 
     877\namdisplay{nambbc} 
    852878%-------------------------------------------------------------------------------------------------------------- 
    853879%>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    10931119\subsection[DMP\_TOOLS]{Generating resto.nc using DMP\_TOOLS} 
    10941120 
    1095 DMP\_TOOLS can be used to generate a netcdf file containing the restoration coefficient $\gamma$. Note that in order to maintain bit comparison with previous NEMO versions DMP\_TOOLS must be compiled and run on the same machine as the NEMO model. A mesh\_mask.nc file for the model configuration is required as an input. This can be generated by carrying out a short model run with the namelist parameter \np{nn\_msh} set to 1. The namelist parameter \np{ln\_tradmp} will also need to be set to .false. for this to work. The \nl{nam\_dmp\_create} namelist in the DMP\_TOOLS directory is used to specify options for the restoration coefficient. 
     1121DMP\_TOOLS can be used to generate a netcdf file containing the restoration coefficient $\gamma$.  
     1122Note that in order to maintain bit comparison with previous NEMO versions DMP\_TOOLS must be compiled  
     1123and run on the same machine as the NEMO model. A mesh\_mask.nc file for the model configuration is required as an input.  
     1124This can be generated by carrying out a short model run with the namelist parameter \np{nn\_msh} set to 1.  
     1125The namelist parameter \np{ln\_tradmp} will also need to be set to .false. for this to work.  
     1126The \nl{nam\_dmp\_create} namelist in the DMP\_TOOLS directory is used to specify options for the restoration coefficient. 
    10961127 
    10971128%--------------------------------------------nam_dmp_create------------------------------------------------- 
    1098 \namdisplay{nam_dmp_create} 
     1129\namtools{namelist_dmp} 
    10991130%------------------------------------------------------------------------------------------------------- 
    11001131 
    11011132\np{cp\_cfg}, \np{cp\_cpz}, \np{jp\_cfg} and \np{jperio} specify the model configuration being used and should be the same as specified in \nl{namcfg}. The variable \nl{lzoom} is used to specify that the damping is being used as in case \textit{a} above to provide boundary conditions to a zoom configuration. In the case of the arctic or antarctic zoom configurations this includes some specific treatment. Otherwise damping is applied to the 6 grid points along the ocean boundaries. The open boundaries are specified by the variables \np{lzoom\_n}, \np{lzoom\_e}, \np{lzoom\_s}, \np{lzoom\_w} in the \nl{nam\_zoom\_dmp} name list. 
    11021133 
    1103 The remaining switch namelist variables determine the spatial variation of the restoration coefficient in non-zoom configurations. \np{ln\_full\_field} specifies that newtonian damping should be applied to the whole model domain. \np{ln\_med\_red\_seas} specifies grid specific restoration coefficients in the Mediterranean Sea for the ORCA4, ORCA2 and ORCA05 configurations. If \np{ln\_old\_31\_lev\_code} is set then the depth variation of the coeffients will be specified as a function of the model number. This option is included to allow backwards compatability of the ORCA2 reference configurations with previous model versions. \np{ln\_coast} specifies that the restoration coefficient should be reduced near to coastlines. This option only has an effect if \np{ln\_full\_field} is true. \np{ln\_zero\_top\_layer} specifies that the restoration coefficient should be zero in the surface layer. Finally \np{ln\_custom} specifies that the custom module will be called. This module is contained in the file custom.F90 and can be edited by users. For example damping could be applied in a specific region. 
    1104  
    1105 The restoration coefficient can be set to zero in equatorial regions by specifying a positive value of \np{nn\_hdmp}. Equatorward of this latitude the restoration coefficient will be zero with a smooth transition to the full values of a 10$^{\circ}$ latitud band. This is often used because of the short adjustment time scale in the equatorial region \citep{Reverdin1991, Fujio1991, Marti_PhD92}. The time scale associated with the damping depends on the depth as a hyperbolic tangent, with \np{rn\_surf} as surface value, \np{rn\_bot} as bottom value and a transition depth of \np{rn\_dep}.   
     1134The remaining switch namelist variables determine the spatial variation of the restoration coefficient in non-zoom configurations.  
     1135\np{ln\_full\_field} specifies that newtonian damping should be applied to the whole model domain.  
     1136\np{ln\_med\_red\_seas} specifies grid specific restoration coefficients in the Mediterranean Sea  
     1137for the ORCA4, ORCA2 and ORCA05 configurations.  
     1138If \np{ln\_old\_31\_lev\_code} is set then the depth variation of the coeffients will be specified as  
     1139a function of the model number. This option is included to allow backwards compatability of the ORCA2 reference  
     1140configurations with previous model versions.  
     1141\np{ln\_coast} specifies that the restoration coefficient should be reduced near to coastlines.  
     1142This option only has an effect if \np{ln\_full\_field} is true.  
     1143\np{ln\_zero\_top\_layer} specifies that the restoration coefficient should be zero in the surface layer.  
     1144Finally \np{ln\_custom} specifies that the custom module will be called.  
     1145This module is contained in the file custom.F90 and can be edited by users. For example damping could be applied in a specific region. 
     1146 
     1147The restoration coefficient can be set to zero in equatorial regions by specifying a positive value of \np{nn\_hdmp}.  
     1148Equatorward of this latitude the restoration coefficient will be zero with a smooth transition to  
     1149the full values of a 10$^{\circ}$ latitud band.  
     1150This is often used because of the short adjustment time scale in the equatorial region  
     1151\citep{Reverdin1991, Fujio1991, Marti_PhD92}. The time scale associated with the damping depends on the depth as a  
     1152hyperbolic tangent, with \np{rn\_surf} as surface value, \np{rn\_bot} as bottom value and a transition depth of \np{rn\_dep}.   
    11061153 
    11071154% ================================================================ 
     
    12711318 
    12721319% ------------------------------------------------------------------------------------------------------------- 
    1273 %        Brunt-Vais\"{a}l\"{a} Frequency 
    1274 % ------------------------------------------------------------------------------------------------------------- 
    1275 \subsection{Brunt-Vais\"{a}l\"{a} Frequency (\np{nn\_eos} = 0, 1 or 2)} 
     1320%        Brunt-V\"{a}is\"{a}l\"{a} Frequency 
     1321% ------------------------------------------------------------------------------------------------------------- 
     1322\subsection{Brunt-V\"{a}is\"{a}l\"{a} Frequency (\np{nn\_eos} = 0, 1 or 2)} 
    12761323\label{TRA_bn2} 
    12771324 
    1278 An accurate computation of the ocean stability (i.e. of $N$, the brunt-Vais\"{a}l\"{a} 
     1325An accurate computation of the ocean stability (i.e. of $N$, the brunt-V\"{a}is\"{a}l\"{a} 
    12791326 frequency) is of paramount importance as determine the ocean stratification and  
    12801327 is used in several ocean parameterisations (namely TKE, GLS, Richardson number dependent  
     
    13321379\label{TRA_zpshde} 
    13331380 
    1334 \gmcomment{STEVEN: to be consistent with earlier discussion of differencing and averaging operators, I've changed "derivative" to "difference" and "mean" to "average"} 
     1381\gmcomment{STEVEN: to be consistent with earlier discussion of differencing and averaging operators,  
     1382                   I've changed "derivative" to "difference" and "mean" to "average"} 
    13351383 
    13361384With partial bottom cells (\np{ln\_zps}=true), in general, tracers in horizontally  
Note: See TracChangeset for help on using the changeset viewer.