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_DOM.tex – NEMO

Ignore:
Timestamp:
2008-11-26T14:52:28+01:00 (16 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_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} 
Note: See TracChangeset for help on using the changeset viewer.