Changeset 1224 for trunk/DOC/TexFiles/Chapters/Chap_DOM.tex
- Timestamp:
- 2008-11-26T14:52:28+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DOC/TexFiles/Chapters/Chap_DOM.tex
r998 r1224 73 73 provided by \eqref{Eq_scale_factors}. As a result, the mesh on which partial 74 74 derivatives $\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. 76 Discrete partial derivatives are formulated by the traditional, centred second order 76 77 finite difference approximation while the scale factors are chosen equal to their 77 78 local analytical value. An important point here is that the partial derivative of the … … 262 263 same $k$ index, in opposition to what is done in the horizontal plane where 263 264 it 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. 265 axis that have the same $i$ or $j$ index (compare the dashed area in 266 Fig.\ref{Fig_index_hor} and \ref{Fig_index_vert}). Since the scale factors are 267 chosen to be strictly positive, a \emph{minus sign} appears in the \textsc{Fortran} 268 code \emph{before all the vertical derivatives} of the discrete equations given in 269 this documentation. 268 270 269 271 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> … … 601 603 through statement functions, using parameters provided in the \textit{par\_oce.h90} file. 602 604 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. 605 It is possible to define a simple regular vertical grid by giving zero stretching (\pp{ppacr=0}). 606 In that case, the parameters \jp{jpk} (number of $w$-levels) and \pp{pphmax} 607 (total ocean depth in meters) fully define the grid. 604 608 605 609 For 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): 610 near the ocean surface. The following function is proposed as a standard for a 611 $z$-coordinate (with either full or partial steps): 607 612 \begin{equation} \label{DOM_zgr_ana} 608 613 \begin{split} … … 715 720 one grid point to the next). The reference layer thicknesses $e_{3t}^0$ have been 716 721 defined 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) is718 allowed to have either a smaller or larger thickness than $e_{3t}(jpk)$: the722 \jp{jpk}-2 can have a thickness smaller than $e_{3t}(jk)$. The model deepest layer (\jp{jpk}-1) 723 is allowed to have either a smaller or larger thickness than $e_{3t}(jpk)$: the 719 724 maximum thickness allowed is $2*e_{3t}(jpk-1)$. This has to be kept in mind when 720 725 specifying 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 727 allowed is actually $6000~m$ (the default thickness $e_{3t}(jpk-1)$ being $250~m$). 728 Two variables in the namdom namelist are used to define the partial step 723 729 vertical grid. The mimimum water thickness (in meters) allowed for a cell 724 730 partially filled with bathymetry at level jk is the minimum of \np{e3zpsmin} … … 750 756 surface to $1$ at the ocean bottom. The depth field $h$ is not necessary the ocean 751 757 depth, 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. 758 topography 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 760 sharp bathymetric gradients. 753 761 754 762 A new flexible stretching function, modified from \citet{Song1994} is provided as an example: … … 763 771 where $h_c$ is the thermocline depth and $\theta$ and $b$ are the surface and 764 772 bottom 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 774 increase of the vertical resolution (Fig.~\ref{Fig_sco_function}). 766 775 767 776 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 768 777 \begin{figure}[!tb] \label{Fig_sco_function} \begin{center} 769 778 \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: 780 surface, surface and bottom, and bottom intensified resolutions} 771 781 \end{center} \end{figure} 772 782 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> … … 859 869 well as the implications in terms of starting or restarting a model 860 870 simulation. 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 %%% 871 operation. With such a complex and nonlinear system of equations it would be 872 dangerous to let a prognostic variable evolve in time for each term separately. 865 873 866 874 The three level scheme requires three arrays for each prognostic variables. … … 896 904 to diverge into a physical and a computational mode. Time splitting can 897 905 be controlled through the use of an Asselin time filter (first designed by 898 \citep{Robert1966} and more comprehensively studied by \citet{Asselin1972}), or by899 periodically reinitialising the leapfrog solution through a single906 \citep{Robert1966} and more comprehensively studied by \citet{Asselin1972}), 907 or by periodically reinitialising the leapfrog solution through a single 900 908 integration step with a two-level scheme. In \NEMO we follow the first 901 909 strategy: … … 996 1004 \right. 997 1005 \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. 1006 where $e$ is the smallest grid size in the two horizontal directions and $A^h$ is 1007 the mixing coefficient. The linear constraint \eqref{Eq_DOM_nxt_euler_stability} 1008 is a necessary condition, but not sufficient. If it is not satisfied, even mildly, 1009 then the model soon becomes wildly unstable. The instability can be removed 1010 by either reducing the length of the time steps or reducing the mixing coefficient. 999 1011 1000 1012 For the vertical diffusion terms, a forward time differencing scheme can be … … 1032 1044 \right] 1033 1045 \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: 1046 where RHS is the right hand side of the equation except for the vertical diffusion term. 1047 We rewrite \eqref{Eq_DOM_nxt_imp} as: 1035 1048 \begin{equation} \label{Eq_DOM_nxt_imp_mat} 1036 1049 -c(k+1)\;u^{t+1}(k+1)+d(k)\;u^{t+1}(k)-\;c(k)\;u^{t+1}(k-1) \equiv b(k) … … 1075 1088 gradient (see \S\ref{DYN_hpg_imp}), an extra three-dimensional field has to be 1076 1089 added 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). 1090 via the namelist parameter \np{nn\_dynhpg\_rst}, so that a reduction of the size of 1091 restart file can be obtained when the restartability is not a key issue (operational 1092 oceanography or ensemble simulation for seasonal forcast). 1078 1093 %%% 1079 1094 \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.