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 11512 for NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/doc/latex/NEMO/subfiles/annex_DOMAINcfg.tex – NEMO

Ignore:
Timestamp:
2019-09-09T12:05:20+02:00 (5 years ago)
Author:
smasson
Message:

dev_r10984_HPC-13 : merge with trunk@11511, see #2285

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/doc/latex/NEMO/subfiles/annex_DOMAINcfg.tex

    r11353 r11512  
    88\label{apdx:DOMAINcfg} 
    99 
    10 \minitoc 
     10\chaptertoc 
    1111\vfill 
    1212\begin{figure}[b] 
     
    2525 
    2626This tool will evolve into an independent utility with its own documentation but its 
    27 current manifestation is mostly a wrapper for \NEMO \forcode{DOM} modules more aligned to 
    28 those in the previous versions of NEMO. These versions allowed the user to define some 
     27current manifestation is mostly a wrapper for \NEMO\ \forcode{DOM} modules more aligned to 
     28those in the previous versions of \NEMO. These versions allowed the user to define some 
    2929horizontal and vertical grids through additional namelist parameters. Explanations of 
    3030these parameters are retained here for reference pending better documentation for 
     
    3232those read by \forcode{DOMAINcfg} via its own \forcode{namelist_ref} and 
    3333\forcode{namelist_cfg} files. Although, due to their origins, these namelists share names 
    34 with those used by NEMO, they are not interchangeable and should be considered independent 
     34with those used by \NEMO, they are not interchangeable and should be considered independent 
    3535of those described elsewhere in this manual. 
    3636 
     
    4343%--------------------------------------------namdom------------------------------------------------------- 
    4444 
    45 \nlst{namdom_domcfg}  
     45\nlst{namdom_domcfg} 
    4646%-------------------------------------------------------------------------------------------------------------- 
    4747 
    4848The user has three options available in defining a horizontal grid, which involve the 
    49 namelist variable \np{jphgr\_mesh} of the \ngn{namdom} (\forcode{DOMAINcfg} variant only) 
     49namelist variable \np{jphgr\_mesh} of the \nam{dom} (\texttt{DOMAINcfg} variant only) 
    5050namelist. 
    5151 
     
    5454  The coordinates and their first derivatives with respect to $i$ and $j$ are provided 
    5555  in a input file (\ifile{coordinates}), read in \rou{hgr\_read} subroutine of the domhgr module. 
    56   This is now the only option available within \NEMO itself from v4.0 onwards. 
    57 \item[\np{jphgr\_mesh}=1 to 5] A few simple analytical grids are provided (see below).  
    58   For other analytical grids, the \textit{domhgr.f90} module (\forcode{DOMAINcfg} variant) must be  
    59   modified by the user. In most cases, modifying the \mdl{usrdef\_hgr} module of \NEMO is 
    60   a better alternative since this is designed to allow simple analytical domains to be  
     56  This is now the only option available within \NEMO\ itself from v4.0 onwards. 
     57\item[\np{jphgr\_mesh}=1 to 5] A few simple analytical grids are provided (see below). 
     58  For other analytical grids, the \mdl{domhgr} module (\texttt{DOMAINcfg} variant) must be 
     59  modified by the user. In most cases, modifying the \mdl{usrdef\_hgr} module of \NEMO\ is 
     60  a better alternative since this is designed to allow simple analytical domains to be 
    6161  configured and used without the need for external data files. 
    6262\end{description} 
    6363 
    64 There are two simple cases of geographical grids on the sphere. With  
    65 \np{jphgr\_mesh}=1, the grid (expressed in degrees) is regular in space,  
    66 with grid sizes specified by parameters \np{ppe1\_deg} and \np{ppe2\_deg},  
    67 respectively. Such a geographical grid can be very anisotropic at high latitudes  
    68 because of the convergence of meridians (the zonal scale factors $e_1$  
    69 become much smaller than the meridional scale factors $e_2$). The Mercator  
    70 grid (\np{jphgr\_mesh}=4) avoids this anisotropy by refining the meridional scale  
    71 factors in the same way as the zonal ones. In this case, meridional scale factors  
    72 and latitudes are calculated analytically using the formulae appropriate for  
    73 a Mercator projection, based on \np{ppe1\_deg} which is a reference grid spacing  
    74 at the equator (this applies even when the geographical equator is situated outside  
    75 the model domain).  
    76  
    77 In these two cases (\np{jphgr\_mesh}=1 or 4), the grid position is defined by the  
    78 longitude and latitude of the south-westernmost point (\np{ppglamt0}  
    79 and \np{ppgphi0}). Note that for the Mercator grid the user need only provide  
    80 an approximate starting latitude: the real latitude will be recalculated analytically,  
    81 in order to ensure that the equator corresponds to line passing through $t$-  
    82 and $u$-points.   
    83  
    84 Rectangular grids ignoring the spherical geometry are defined with  
    85 \np{jphgr\_mesh} = 2, 3, 5. The domain is either an $f$-plane (\np{jphgr\_mesh} = 2,  
    86 Coriolis factor is constant) or a beta-plane (\np{jphgr\_mesh} = 3, the Coriolis factor  
    87 is linear in the $j$-direction). The grid size is uniform in meter in each direction,  
    88 and given by the parameters \np{ppe1\_m} and \np{ppe2\_m} respectively.  
    89 The zonal grid coordinate (\textit{glam} arrays) is in kilometers, starting at zero  
    90 with the first $t$-point. The meridional coordinate (gphi. arrays) is in kilometers,  
    91 and the second $t$-point corresponds to coordinate $gphit=0$. The input  
    92 variable \np{ppglam0} is ignored. \np{ppgphi0} is used to set the reference  
    93 latitude for computation of the Coriolis parameter. In the case of the beta plane,  
    94 \np{ppgphi0} corresponds to the center of the domain. Finally, the special case  
    95 \np{jphgr\_mesh}=5 corresponds to a beta plane in a rotated domain for the  
    96 GYRE configuration, representing a classical mid-latitude double gyre system.  
    97 The rotation allows us to maximize the jet length relative to the gyre areas  
    98 (and the number of grid points).  
     64There are two simple cases of geographical grids on the sphere. With 
     65\np{jphgr\_mesh}=1, the grid (expressed in degrees) is regular in space, 
     66with grid sizes specified by parameters \np{ppe1\_deg} and \np{ppe2\_deg}, 
     67respectively. Such a geographical grid can be very anisotropic at high latitudes 
     68because of the convergence of meridians (the zonal scale factors $e_1$ 
     69become much smaller than the meridional scale factors $e_2$). The Mercator 
     70grid (\np{jphgr\_mesh}=4) avoids this anisotropy by refining the meridional scale 
     71factors in the same way as the zonal ones. In this case, meridional scale factors 
     72and latitudes are calculated analytically using the formulae appropriate for 
     73a Mercator projection, based on \np{ppe1\_deg} which is a reference grid spacing 
     74at the equator (this applies even when the geographical equator is situated outside 
     75the model domain). 
     76 
     77In these two cases (\np{jphgr\_mesh}=1 or 4), the grid position is defined by the 
     78longitude and latitude of the south-westernmost point (\np{ppglamt0} 
     79and \np{ppgphi0}). Note that for the Mercator grid the user need only provide 
     80an approximate starting latitude: the real latitude will be recalculated analytically, 
     81in order to ensure that the equator corresponds to line passing through $t$- 
     82and $u$-points. 
     83 
     84Rectangular grids ignoring the spherical geometry are defined with 
     85\np{jphgr\_mesh} = 2, 3, 5. The domain is either an $f$-plane (\np{jphgr\_mesh} = 2, 
     86Coriolis factor is constant) or a beta-plane (\np{jphgr\_mesh} = 3, the Coriolis factor 
     87is linear in the $j$-direction). The grid size is uniform in meter in each direction, 
     88and given by the parameters \np{ppe1\_m} and \np{ppe2\_m} respectively. 
     89The zonal grid coordinate (\textit{glam} arrays) is in kilometers, starting at zero 
     90with the first $t$-point. The meridional coordinate (gphi. arrays) is in kilometers, 
     91and the second $t$-point corresponds to coordinate $gphit=0$. The input 
     92variable \np{ppglam0} is ignored. \np{ppgphi0} is used to set the reference 
     93latitude for computation of the Coriolis parameter. In the case of the beta plane, 
     94\np{ppgphi0} corresponds to the center of the domain. Finally, the special case 
     95\np{jphgr\_mesh}=5 corresponds to a beta plane in a rotated domain for the 
     96GYRE configuration, representing a classical mid-latitude double gyre system. 
     97The rotation allows us to maximize the jet length relative to the gyre areas 
     98(and the number of grid points). 
    9999 
    100100% ------------------------------------------------------------------------------------------------------------- 
     
    128128the vertical scale factors.  The user must provide the analytical expression of both $z_0$ 
    129129and its first derivative with respect to $k$.  This is done in routine \mdl{domzgr} 
    130 through statement functions, using parameters provided in the \ngn{namdom} namelist 
    131 (\forcode{DOMAINcfg} variant). 
     130through statement functions, using parameters provided in the \nam{dom} namelist 
     131(\texttt{DOMAINcfg} variant). 
    132132 
    133133It is possible to define a simple regular vertical grid by giving zero stretching 
     
    156156    \begin{split} 
    157157    z_0  (k) = h_{sur} - h_0 \; k &- \; h_1 \; \log  \big[ \cosh ((k - h_{th}) / h_{cr}) \big] \\ 
    158                              \;   &- \; h2_1 \; \log  \big[ \cosh ((k - h2_{th}) / h2_{cr}) \big]  
     158                             \;   &- \; h2_1 \; \log  \big[ \cosh ((k - h2_{th}) / h2_{cr}) \big] 
    159159    \end{split} 
    160160\end{gather} 
     
    177177\end{equation} 
    178178 
    179 This formulation decreases the self-generated circulation into the ice shelf cavity  
     179This formulation decreases the self-generated circulation into the ice shelf cavity 
    180180(which can, in extreme case, leads to numerical instability). This is now the recommended formulation for all configurations using v4.0 onwards. The analytical derivation of thicknesses is maintained for backwards compatibility. 
    181181 
     
    200200The resulting depths and scale factors as a function of the model levels are shown in 
    201201\autoref{fig:DOMCFG_zgr} and given in \autoref{tab:DOMCFG_orca_zgr}. 
    202 Those values correspond to the parameters \np{ppsur}, \np{ppa0}, \np{ppa1}, \np{ppkth} in \ngn{namcfg} namelist. 
     202Those values correspond to the parameters \np{ppsur}, \np{ppa0}, \np{ppa1}, \np{ppkth} in \nam{cfg} namelist. 
    203203 
    204204Rather than entering parameters $h_{sur}$, $h_0$, and $h_1$ directly, it is possible to 
    205205recalculate them.  In that case the user sets \np{ppsur}~$=$~\np{ppa0}~$=$~\np{ppa1}~$= 
    206 999999$., in \ngn{namcfg} namelist, and specifies instead the four following parameters: 
     206999999$., in \nam{cfg} namelist, and specifies instead the four following parameters: 
    207207\begin{itemize} 
    208208\item 
     
    309309 
    310310Three options are possible for defining the bathymetry, according to the namelist variable 
    311 \np{nn\_bathy} (found in \ngn{namdom} namelist (\forcode{DOMAINCFG} variant) ): 
     311\np{nn\_bathy} (found in \nam{dom} namelist (\texttt{DOMAINCFG} variant) ): 
    312312\begin{description} 
    313313\item[\np{nn\_bathy}\forcode{ = 0}]: 
     
    322322  The \ifile{bathy\_meter} file (Netcdf format) provides the ocean depth (positive, in meters) at 
    323323  each grid point of the model grid. 
    324   The bathymetry is usually built by interpolating a standard bathymetry product (\eg ETOPO2) onto 
     324  The bathymetry is usually built by interpolating a standard bathymetry product (\eg\ ETOPO2) onto 
    325325  the horizontal ocean mesh. 
    326326  Defining the bathymetry also defines the coastline: where the bathymetry is zero, 
     
    352352\end{description} 
    353353%%% 
    354   
     354 
    355355% ------------------------------------------------------------------------------------------------------------- 
    356356%        z-coordinate with constant thickness 
     
    386386thickness than $e_{3t}(jpk)$: the maximum thickness allowed is $2*e_{3t}(jpk - 1)$. 
    387387 
    388 This has to be kept in mind when specifying values in \ngn{namdom} namelist 
    389 (\forcode{DOMMAINCFG} variant), such as the maximum depth \np{pphmax} in partial steps. 
     388This has to be kept in mind when specifying values in \nam{dom} namelist 
     389(\texttt{DOMAINCFG} variant), such as the maximum depth \np{pphmax} in partial steps. 
    390390 
    391391For example, with \np{pphmax}~$= 5750~m$ for the DRAKKAR 45 layer grid, the maximum ocean 
     
    405405%------------------------------------------nam_zgr_sco--------------------------------------------------- 
    406406% 
    407 \nlst{namzgr_sco_domcfg}  
     407\nlst{namzgr_sco_domcfg} 
    408408%-------------------------------------------------------------------------------------------------------------- 
    409 Options are defined in \ngn{namzgr\_sco} (\forcode{DOMAINcfg} only). 
     409Options are defined in \nam{zgr\_sco} (\texttt{DOMAINcfg} only). 
    410410In $s$-coordinate (\np{ln\_sco}\forcode{ = .true.}), the depth and thickness of the model levels are defined from 
    411411the product of a depth field and either a stretching function or its derivative, respectively: 
     
    430430but care must be taken to ensure that the vertical stretch used is appropriate for the application. 
    431431 
    432 The original default NEMO s-coordinate stretching is available if neither of the other options are specified as true 
     432The original default \NEMO\ s-coordinate stretching is available if neither of the other options are specified as true 
    433433(\np{ln\_s\_SH94}\forcode{ = .false.} and \np{ln\_s\_SF12}\forcode{ = .false.}). 
    434434This uses a depth independent $\tanh$ function for the stretching \citep{madec.delecluse.ea_JPO96}: 
     
    555555\label{subsec:DOMCFG_zgr_star} 
    556556 
    557 This option is described in the Report by Levier \textit{et al.} (2007), available on the \NEMO web site. 
     557This option is described in the Report by Levier \textit{et al.} (2007), available on the \NEMO\ web site. 
    558558 
    559559\biblio 
Note: See TracChangeset for help on using the changeset viewer.