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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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} 
Note: See TracChangeset for help on using the changeset viewer.