Changeset 11596
- Timestamp:
- 2019-09-25T19:06:37+02:00 (5 years ago)
- Location:
- NEMO/trunk/doc/latex/NEMO/subfiles
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/doc/latex/NEMO/subfiles/apdx_DOMAINcfg.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Appendix DOMAINcfg : A brief guide to the DOMAINcfg tool6 % ================================================================7 4 \chapter{A brief guide to the DOMAINcfg tool} 8 5 \label{apdx:DOMCFG} … … 19 16 \end{figure} 20 17 21 \newpage22 23 18 This appendix briefly describes some of the options available in the 24 19 \forcode{DOMAINcfg} tool mentioned in \autoref{chap:DOM}. … … 35 30 of those described elsewhere in this manual. 36 31 37 % -------------------------------------------------------------------------------------------------------------38 % Choice of horizontal grid39 % -------------------------------------------------------------------------------------------------------------40 32 \section{Choice of horizontal grid} 41 33 \label{sec:DOMCFG_hor} … … 55 47 56 48 \begin{description} 57 \item [{\np{jphgr_mesh}{jphgr\_mesh}=0}] The most general curvilinear orthogonal grids.49 \item [{\np{jphgr_mesh}{jphgr\_mesh}=0}] The most general curvilinear orthogonal grids. 58 50 The coordinates and their first derivatives with respect to $i$ and $j$ are provided 59 51 in a input file (\ifile{coordinates}), read in \rou{hgr\_read} subroutine of the domhgr module. 60 52 This is now the only option available within \NEMO\ itself from v4.0 onwards. 61 \item [{\np{jphgr_mesh}{jphgr\_mesh}=1 to 5}] A few simple analytical grids are provided (see below).53 \item [{\np{jphgr_mesh}{jphgr\_mesh}=1 to 5}] A few simple analytical grids are provided (see below). 62 54 For other analytical grids, the \mdl{domhgr} module (\texttt{DOMAINcfg} variant) must be 63 55 modified by the user. In most cases, modifying the \mdl{usrdef\_hgr} module of \NEMO\ is … … 102 94 (and the number of grid points). 103 95 104 % -------------------------------------------------------------------------------------------------------------105 % vertical reference coordinate transformation106 % -------------------------------------------------------------------------------------------------------------107 96 \section{Vertical grid} 108 97 \label{sec:DOMCFG_vert} … … 111 100 \label{sec:DOMCFG_zref} 112 101 113 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>114 102 \begin{figure}[!tb] 115 103 \centering … … 121 109 \label{fig:DOMCFG_zgr} 122 110 \end{figure} 123 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>124 111 125 112 The reference coordinate transformation $z_0(k)$ defines the arrays $gdept_0$ and … … 210 197 999999$., in \nam{cfg}{cfg} namelist, and specifies instead the four following parameters: 211 198 \begin{itemize} 212 \item 213 \np{ppacr}{ppacr}~$= h_{cr}$: stretching factor (nondimensional). 199 \item \np{ppacr}{ppacr}~$= h_{cr}$: stretching factor (nondimensional). 214 200 The larger \np{ppacr}{ppacr}, the smaller the stretching. 215 201 Values from $3$ to $10$ are usual. 216 \item 217 \np{ppkth}{ppkth}~$= h_{th}$: is approximately the model level at which maximum stretching occurs 202 \item \np{ppkth}{ppkth}~$= h_{th}$: is approximately the model level at which maximum stretching occurs 218 203 (nondimensional, usually of order 1/2 or 2/3 of \jp{jpk}) 219 \item 220 \np{ppdzmin}{ppdzmin}: minimum thickness for the top layer (in meters). 221 \item 222 \np{pphmax}{pphmax}: total depth of the ocean (meters). 204 \item \np{ppdzmin}{ppdzmin}: minimum thickness for the top layer (in meters). 205 \item \np{pphmax}{pphmax}: total depth of the ocean (meters). 223 206 \end{itemize} 224 207 … … 227 210 \np{pphmax}{pphmax}~$= 5750~m$. 228 211 229 %% %>>>>>>>>>>>>>>>>>>>>>>>>>>>>230 212 \begin{table} 231 213 \centering … … 304 286 \end{table} 305 287 %%%YY 306 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>307 288 %% % ------------------------------------------------------------------------------------------------------------- 308 289 %% % Meter Bathymetry … … 314 295 \np{nn_bathy}{nn\_bathy} (found in \nam{dom}{dom} namelist (\texttt{DOMAINCFG} variant) ): 315 296 \begin{description} 316 \item [{\np[=0]{nn_bathy}{nn\_bathy}}]:297 \item [{\np[=0]{nn_bathy}{nn\_bathy}}]: 317 298 a flat-bottom domain is defined. 318 299 The total depth $z_w (jpk)$ is given by the coordinate transformation. 319 300 The domain can either be a closed basin or a periodic channel depending on the parameter \np{jperio}{jperio}. 320 \item [{\np[=-1]{nn_bathy}{nn\_bathy}}]:301 \item [{\np[=-1]{nn_bathy}{nn\_bathy}}]: 321 302 a domain with a bump of topography one third of the domain width at the central latitude. 322 303 This is meant for the "EEL-R5" configuration, a periodic or open boundary channel with a seamount. 323 \item [{\np[=1]{nn_bathy}{nn\_bathy}}]:304 \item [{\np[=1]{nn_bathy}{nn\_bathy}}]: 324 305 read a bathymetry and ice shelf draft (if needed). 325 306 The \ifile{bathy\_meter} file (Netcdf format) provides the ocean depth (positive, in meters) at … … 341 322 After reading the bathymetry, the algorithm for vertical grid definition differs between the different options: 342 323 \begin{description} 343 \item [\forcode{ln_zco = .true.}]324 \item [\forcode{ln_zco = .true.}] 344 325 set a reference coordinate transformation $z_0(k)$, and set $z(i,j,k,t) = z_0(k)$ where $z_0(k)$ is the closest match to the depth at $(i,j)$. 345 \item [\forcode{ln_zps = .true.}]326 \item [\forcode{ln_zps = .true.}] 346 327 set a reference coordinate transformation $z_0(k)$, and calculate the thickness of the deepest level at 347 328 each $(i,j)$ point using the bathymetry, to obtain the final three-dimensional depth and scale factor arrays. 348 \item [\forcode{ln_sco = .true.}]329 \item [\forcode{ln_sco = .true.}] 349 330 smooth the bathymetry to fulfill the hydrostatic consistency criteria and 350 331 set the three-dimensional transformation. 351 \item [\forcode{s-z and s-zps}]332 \item [\forcode{s-z and s-zps}] 352 333 smooth the bathymetry to fulfill the hydrostatic consistency criteria and 353 334 set the three-dimensional transformation $z(i,j,k)$, … … 356 337 %%% 357 338 358 % -------------------------------------------------------------------------------------------------------------359 % z-coordinate with constant thickness360 % -------------------------------------------------------------------------------------------------------------361 339 \subsubsection[$Z$-coordinate with uniform thickness levels (\forcode{ln_zco})]{$Z$-coordinate with uniform thickness levels (\protect\np{ln_zco}{ln\_zco})} 362 340 \label{subsec:DOMCFG_zco} … … 368 346 rarely used in modern simulations but it can be useful for testing purposes. 369 347 370 % -------------------------------------------------------------------------------------------------------------371 % z-coordinate with partial step372 % -------------------------------------------------------------------------------------------------------------373 348 \subsubsection[$Z$-coordinate with partial step (\forcode{ln_zps})]{$Z$-coordinate with partial step (\protect\np{ln_zps}{ln\_zps})} 374 349 \label{subsec:DOMCFG_zps} … … 398 373 the default thickness $e_{3t}(jk)$). 399 374 400 % -------------------------------------------------------------------------------------------------------------401 % s-coordinate402 % -------------------------------------------------------------------------------------------------------------403 375 \subsubsection[$S$-coordinate (\forcode{ln_sco})]{$S$-coordinate (\protect\np{ln_sco}{ln\_sco})} 404 376 \label{sec:DOMCFG_sco} … … 465 437 \] 466 438 467 %% %>>>>>>>>>>>>>>>>>>>>>>>>>>>>468 439 \begin{figure}[!ht] 469 440 \centering … … 474 445 \label{fig:DOMCFG_sco_function} 475 446 \end{figure} 476 %% %>>>>>>>>>>>>>>>>>>>>>>>>>>>>477 447 478 448 where $H_c$ is the critical depth (\np{rn_hc}{rn\_hc}) at which the coordinate transitions from pure $\sigma$ to … … 516 486 where the namelist parameters \np{rn_zb_a}{rn\_zb\_a} and \np{rn_zb_b}{rn\_zb\_b} are $a$ and $b$ respectively. 517 487 518 %% %>>>>>>>>>>>>>>>>>>>>>>>>>>>>519 488 \begin{figure}[!ht] 520 489 \centering … … 550 519 and is output as part of the model mesh file at the start of the run. 551 520 552 % -------------------------------------------------------------------------------------------------------------553 % z*- or s*-coordinate554 % -------------------------------------------------------------------------------------------------------------555 521 \subsubsection[\zstar- or \sstar-coordinate (\forcode{ln_linssh})]{\zstar- or \sstar-coordinate (\protect\np{ln_linssh}{ln\_linssh})} 556 522 \label{subsec:DOMCFG_zgr_star} -
NEMO/trunk/doc/latex/NEMO/subfiles/apdx_algos.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Appendix E : Note on some algorithms6 % ================================================================7 4 \chapter{Note on some algorithms} 8 5 \label{apdx:ALGOS} … … 10 7 \chaptertoc 11 8 12 \newpage13 14 9 This appendix some on going consideration on algorithms used or planned to be used in \NEMO. 15 10 16 % -------------------------------------------------------------------------------------------------------------17 % UBS scheme18 % -------------------------------------------------------------------------------------------------------------19 11 \section{Upstream Biased Scheme (UBS) (\protect\np[=.true.]{ln_traadv_ubs}{ln\_traadv\_ubs})} 20 12 \label{sec:ALGOS_tra_adv_ubs} … … 188 180 which leads to ${A_u^{lT}} = \frac{1}{12} {e_{1u}}^3\ |u|$ 189 181 190 % -------------------------------------------------------------------------------------------------------------191 % Leap-Frog energetic192 % -------------------------------------------------------------------------------------------------------------193 182 \section{Leapfrog energetic} 194 183 \label{sec:ALGOS_LF} … … 244 233 In time this boundary condition is not physical and \textbf{add something here!!!} 245 234 246 % ================================================================247 % Iso-neutral diffusion :248 % ================================================================249 250 235 \section{Lateral diffusion operator} 251 236 252 % ================================================================253 % Griffies' iso-neutral diffusion operator :254 % ================================================================255 237 \subsection{Griffies iso-neutral diffusion operator} 256 238 … … 305 287 the presence of partial cell at the ocean bottom (see \autoref{subsec:ALGOS_Gf_operator}). 306 288 307 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>308 289 \begin{figure}[!ht] 309 290 \centering … … 315 296 \label{fig:ALGOS_ISO_triad} 316 297 \end{figure} 317 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>318 298 319 299 The four iso-neutral fluxes associated with the triads are defined at $T$-point. … … 372 352 This expression of the iso-neutral diffusion has been chosen in order to satisfy the following six properties: 373 353 \begin{description} 374 \item [$\bullet$ horizontal diffusion]354 \item [$\bullet$ horizontal diffusion] 375 355 The discretization of the diffusion operator recovers the traditional five-point Laplacian in 376 356 the limit of flat iso-neutral direction: … … 383 363 \] 384 364 385 \item [$\bullet$ implicit treatment in the vertical]365 \item [$\bullet$ implicit treatment in the vertical] 386 366 In the diagonal term associated with the vertical divergence of the iso-neutral fluxes 387 367 \ie\ the term associated with a second order vertical derivative) … … 397 377 can be quite large. 398 378 399 \item [$\bullet$ pure iso-neutral operator]379 \item [$\bullet$ pure iso-neutral operator] 400 380 The iso-neutral flux of locally referenced potential density is zero, \ie 401 381 \begin{align*} … … 413 393 the definition of the triads' slopes \autoref{eq:ALGOS_Gf_slopes}. 414 394 415 \item [$\bullet$ conservation of tracer]395 \item [$\bullet$ conservation of tracer] 416 396 The iso-neutral diffusion term conserve the total tracer content, \ie 417 397 \[ … … 421 401 This property is trivially satisfied since the iso-neutral diffusive operator is written in flux form. 422 402 423 \item [$\bullet$ decrease of tracer variance]403 \item [$\bullet$ decrease of tracer variance] 424 404 The iso-neutral diffusion term does not increase the total tracer variance, \ie 425 405 \[ … … 434 414 the field on which it is applied become free of grid-point noise. 435 415 436 \item [$\bullet$ self-adjoint operator]416 \item [$\bullet$ self-adjoint operator] 437 417 The iso-neutral diffusion operator is self-adjoint, \ie 438 418 \[ … … 446 426 \end{description} 447 427 448 % ================================================================449 % Skew flux formulation for Eddy Induced Velocity :450 % ================================================================451 428 \subsection{Eddy induced velocity and skew flux formulation} 452 429 … … 602 579 603 580 $\ $\newpage %force an empty line 604 % ================================================================605 % Discrete Invariants of the iso-neutral diffrusion606 % ================================================================607 581 \subsection{Discrete invariants of the iso-neutral diffrusion} 608 582 \label{subsec:ALGOS_Gf_operator} … … 767 741 There is no need to develop a specific to obtain it. 768 742 769 \newpage770 771 % ================================================================772 % Discrete Invariants of the skew flux formulation773 % ================================================================774 743 \subsection{Discrete invariants of the skew flux formulation} 775 744 \label{subsec:ALGOS_eiv_skew} -
NEMO/trunk/doc/latex/NEMO/subfiles/apdx_diff_opers.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter Appendix B : Diffusive Operators6 % ================================================================7 4 \chapter{Diffusive Operators} 8 5 \label{apdx:DIFFOPERS} … … 10 7 \chaptertoc 11 8 12 \newpage13 14 % ================================================================15 % Horizontal/Vertical 2nd Order Tracer Diffusive Operators16 % ================================================================17 9 \section{Horizontal/Vertical $2^{nd}$ order tracer diffusive operators} 18 10 \label{sec:DIFFOPERS_1} … … 156 148 %\addtocounter{equation}{-2} 157 149 158 % ================================================================159 % Isopycnal/Vertical 2nd Order Tracer Diffusive Operators160 % ================================================================161 150 \section{Iso/Diapycnal $2^{nd}$ order tracer diffusive operators} 162 151 \label{sec:DIFFOPERS_2} … … 320 309 \autoref{sec:DIFFOPERS_1} onto $s$-coordinates is exact, however steep the $s$-surfaces. 321 310 322 323 % ================================================================324 % Lateral/Vertical Momentum Diffusive Operators325 % ================================================================326 311 \section{Lateral/Vertical momentum diffusive operators} 327 312 \label{sec:DIFFOPERS_3} -
NEMO/trunk/doc/latex/NEMO/subfiles/apdx_invariants.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter Ñ Appendix C : Discrete Invariants of the Equations6 % ================================================================7 4 \chapter{Discrete Invariants of the Equations} 8 5 \label{apdx:INVARIANTS} … … 15 12 %\gmcomment{ 16 13 17 \newpage18 19 % ================================================================20 % Introduction / Notations21 % ================================================================22 14 \section{Introduction / Notations} 23 15 \label{sec:INVARIANTS_0} … … 93 85 \end{flalign} 94 86 95 % ================================================================96 % Continuous Total energy Conservation97 % ================================================================98 87 \section{Continuous conservation} 99 88 \label{sec:INVARIANTS_1} … … 322 311 % 323 312 324 % ================================================================325 % Discrete Total energy Conservation : vector invariant form326 % ================================================================327 313 \section{Discrete total energy conservation: vector invariant form} 328 314 \label{sec:INVARIANTS_2} 329 315 330 % -------------------------------------------------------------------------------------------------------------331 % Total energy conservation332 % -------------------------------------------------------------------------------------------------------------333 316 \subsection{Total energy conservation} 334 317 \label{subsec:INVARIANTS_KE+PE_vect} … … 354 337 leads to the discrete equivalent of the four equations \autoref{eq:INVARIANTS_E_tot_flux}. 355 338 356 % -------------------------------------------------------------------------------------------------------------357 % Vorticity term (coriolis + vorticity part of the advection)358 % -------------------------------------------------------------------------------------------------------------359 339 \subsection{Vorticity term (coriolis + vorticity part of the advection)} 360 340 \label{subsec:INVARIANTS_vor} … … 363 343 or the planetary ($q=f/e_{3f}$), or the total potential vorticity ($q=(\zeta +f) /e_{3f}$). 364 344 Two discretisation of the vorticity term (ENE and EEN) allows the conservation of the kinetic energy. 365 % -------------------------------------------------------------------------------------------------------------366 % Vorticity Term with ENE scheme367 % -------------------------------------------------------------------------------------------------------------368 345 \subsubsection{Vorticity term with ENE scheme (\protect\np[=.true.]{ln_dynvor_ene}{ln\_dynvor\_ene})} 369 346 \label{subsec:INVARIANTS_vorENE} … … 403 380 In other words, the domain averaged kinetic energy does not change due to the vorticity term. 404 381 405 % -------------------------------------------------------------------------------------------------------------406 % Vorticity Term with EEN scheme407 % -------------------------------------------------------------------------------------------------------------408 382 \subsubsection{Vorticity term with EEN scheme (\protect\np[=.true.]{ln_dynvor_een}{ln\_dynvor\_een})} 409 383 \label{subsec:INVARIANTS_vorEEN_vect} … … 475 449 \end{flalign*} 476 450 477 % -------------------------------------------------------------------------------------------------------------478 % Gradient of Kinetic Energy / Vertical Advection479 % -------------------------------------------------------------------------------------------------------------480 451 \subsubsection{Gradient of kinetic energy / Vertical advection} 481 452 \label{subsec:INVARIANTS_zad} … … 585 556 Blah blah required on the the step representation of bottom topography..... 586 557 587 588 % -------------------------------------------------------------------------------------------------------------589 % Pressure Gradient Term590 % -------------------------------------------------------------------------------------------------------------591 558 \subsection{Pressure gradient term} 592 559 \label{subsec:INVARIANTS_2.6} … … 731 698 Nevertheless, it is almost never satisfied since a linear equation of state is rarely used. 732 699 733 % ================================================================734 % Discrete Total energy Conservation : flux form735 % ================================================================736 700 \section{Discrete total energy conservation: flux form} 737 701 \label{sec:INVARIANTS_3} 738 702 739 % -------------------------------------------------------------------------------------------------------------740 % Total energy conservation741 % -------------------------------------------------------------------------------------------------------------742 703 \subsection{Total energy conservation} 743 704 \label{subsec:INVARIANTS_KE+PE_flux} … … 760 721 vector invariant or in flux form, leads to the discrete equivalent of the ???? 761 722 762 763 % -------------------------------------------------------------------------------------------------------------764 % Coriolis and advection terms: flux form765 % -------------------------------------------------------------------------------------------------------------766 723 \subsection{Coriolis and advection terms: flux form} 767 724 \label{subsec:INVARIANTS_3.2} 768 725 769 % -------------------------------------------------------------------------------------------------------------770 % Coriolis plus ``metric'' Term771 % -------------------------------------------------------------------------------------------------------------772 726 \subsubsection{Coriolis plus ``metric'' term} 773 727 \label{subsec:INVARIANTS_3.3} … … 788 742 The derivation is the same as for the vorticity term in the vector invariant form (\autoref{subsec:INVARIANTS_vor}). 789 743 790 % -------------------------------------------------------------------------------------------------------------791 % Flux form advection792 % -------------------------------------------------------------------------------------------------------------793 744 \subsubsection{Flux form advection} 794 745 \label{subsec:INVARIANTS_3.4} … … 869 820 The horizontal kinetic energy is not conserved, but forced to decay (\ie\ the scheme is diffusive). 870 821 871 % ================================================================872 % Discrete Enstrophy Conservation873 % ================================================================874 822 \section{Discrete enstrophy conservation} 875 823 \label{sec:INVARIANTS_4} 876 824 877 % -------------------------------------------------------------------------------------------------------------878 % Vorticity Term with ENS scheme879 % -------------------------------------------------------------------------------------------------------------880 825 \subsubsection{Vorticity term with ENS scheme (\protect\np[=.true.]{ln_dynvor_ens}{ln\_dynvor\_ens})} 881 826 \label{subsec:INVARIANTS_vorENS} … … 944 889 The later equality is obtain only when the flow is horizontally non-divergent, \ie\ $\chi$=$0$. 945 890 946 % -------------------------------------------------------------------------------------------------------------947 % Vorticity Term with EEN scheme948 % -------------------------------------------------------------------------------------------------------------949 891 \subsubsection{Vorticity Term with EEN scheme (\protect\np[=.true.]{ln_dynvor_een}{ln\_dynvor\_een})} 950 892 \label{subsec:INVARIANTS_vorEEN} … … 1017 959 \end{flalign*} 1018 960 1019 % ================================================================1020 % Conservation Properties on Tracers1021 % ================================================================1022 961 \section{Conservation properties on tracers} 1023 962 \label{sec:INVARIANTS_5} … … 1033 972 as the equation of state is non linear with respect to $T$ and $S$. 1034 973 In practice, the mass is conserved to a very high accuracy. 1035 % -------------------------------------------------------------------------------------------------------------1036 % Advection Term1037 % -------------------------------------------------------------------------------------------------------------1038 974 \subsection{Advection term} 1039 975 \label{subsec:INVARIANTS_5.1} … … 1099 1035 which is the discrete form of $ \frac{1}{2} \int_D { T^2 \frac{1}{e_3} \frac{\partial e_3 }{\partial t} \;dv }$. 1100 1036 1101 % ================================================================1102 % Conservation Properties on Lateral Momentum Physics1103 % ================================================================1104 1037 \section{Conservation properties on lateral momentum physics} 1105 1038 \label{sec:INVARIANTS_dynldf_properties} … … 1120 1053 the term associated with the horizontal gradient of the divergence is locally zero. 1121 1054 1122 % -------------------------------------------------------------------------------------------------------------1123 % Conservation of Potential Vorticity1124 % -------------------------------------------------------------------------------------------------------------1125 1055 \subsection{Conservation of potential vorticity} 1126 1056 \label{subsec:INVARIANTS_6.1} … … 1154 1084 \end{flalign*} 1155 1085 1156 % -------------------------------------------------------------------------------------------------------------1157 % Dissipation of Horizontal Kinetic Energy1158 % -------------------------------------------------------------------------------------------------------------1159 1086 \subsection{Dissipation of horizontal kinetic energy} 1160 1087 \label{subsec:INVARIANTS_6.2} … … 1206 1133 \] 1207 1134 1208 % -------------------------------------------------------------------------------------------------------------1209 % Dissipation of Enstrophy1210 % -------------------------------------------------------------------------------------------------------------1211 1135 \subsection{Dissipation of enstrophy} 1212 1136 \label{subsec:INVARIANTS_6.3} … … 1230 1154 \end{flalign*} 1231 1155 1232 % -------------------------------------------------------------------------------------------------------------1233 % Conservation of Horizontal Divergence1234 % -------------------------------------------------------------------------------------------------------------1235 1156 \subsection{Conservation of horizontal divergence} 1236 1157 \label{subsec:INVARIANTS_6.4} … … 1257 1178 \end{flalign*} 1258 1179 1259 % -------------------------------------------------------------------------------------------------------------1260 % Dissipation of Horizontal Divergence Variance1261 % -------------------------------------------------------------------------------------------------------------1262 1180 \subsection{Dissipation of horizontal divergence variance} 1263 1181 \label{subsec:INVARIANTS_6.5} … … 1283 1201 \end{flalign*} 1284 1202 1285 % ================================================================1286 % Conservation Properties on Vertical Momentum Physics1287 % ================================================================1288 1203 \section{Conservation properties on vertical momentum physics} 1289 1204 \label{sec:INVARIANTS_7} … … 1454 1369 \end{flalign*} 1455 1370 1456 % ================================================================1457 % Conservation Properties on Tracer Physics1458 % ================================================================1459 1371 \section{Conservation properties on tracer physics} 1460 1372 \label{sec:INVARIANTS_8} … … 1466 1378 As for the advection term, there is conservation of mass only if the Equation Of Seawater is linear. 1467 1379 1468 % -------------------------------------------------------------------------------------------------------------1469 % Conservation of Tracers1470 % -------------------------------------------------------------------------------------------------------------1471 1380 \subsection{Conservation of tracers} 1472 1381 \label{subsec:INVARIANTS_8.1} … … 1499 1408 In fact, this property simply results from the flux form of the operator. 1500 1409 1501 % -------------------------------------------------------------------------------------------------------------1502 % Dissipation of Tracer Variance1503 % -------------------------------------------------------------------------------------------------------------1504 1410 \subsection{Dissipation of tracer variance} 1505 1411 \label{subsec:INVARIANTS_8.2} -
NEMO/trunk/doc/latex/NEMO/subfiles/apdx_s_coord.tex
r11584 r11596 3 3 \begin{document} 4 4 5 % ================================================================6 % Chapter Appendix A : Curvilinear s-Coordinate Equations7 % ================================================================8 5 \chapter{Curvilinear $s-$Coordinate Equations} 9 6 \label{apdx:SCOORD} … … 21 18 \end{figure} 22 19 23 24 \newpage25 26 % ================================================================27 % Chain rule28 % ================================================================29 20 \section{Chain rule for $s-$coordinates} 30 21 \label{sec:SCOORD_chain} … … 121 112 \end{equation} 122 113 123 124 % ================================================================125 % continuity equation126 % ================================================================127 114 \section{Continuity equation in $s-$coordinates} 128 115 \label{sec:SCOORD_continuity} … … 240 227 the contribution of the time variation of the vertical coordinate to the volume budget. 241 228 242 243 % ================================================================244 % momentum equation245 % ================================================================246 229 \section{Momentum equation in $s-$coordinate} 247 230 \label{sec:SCOORD_momentum} … … 571 554 \ie\ the volume flux across the moving $s$-surfaces per unit horizontal area. 572 555 573 574 % ================================================================575 % Tracer equation576 % ================================================================577 556 \section{Tracer equation} 578 557 \label{sec:SCOORD_tracer} -
NEMO/trunk/doc/latex/NEMO/subfiles/apdx_triads.tex
r11584 r11596 12 12 13 13 \begin{document} 14 % ================================================================15 % Iso-neutral diffusion :16 % ================================================================17 14 \chapter{Iso-Neutral Diffusion and Eddy Advection using Triads} 18 15 \label{apdx:TRIADS} 19 16 20 17 \chaptertoc 21 22 \newpage23 18 24 19 \section[Choice of \forcode{namtra\_ldf} namelist parameters]{Choice of \protect\nam{tra_ldf}{tra\_ldf} namelist parameters} … … 42 37 The options specific to the Griffies scheme include: 43 38 \begin{description} 44 \item [{\np{ln_triad_iso}{ln\_triad\_iso}}]39 \item [{\np{ln_triad_iso}{ln\_triad\_iso}}] 45 40 See \autoref{sec:TRIADS_taper}. 46 41 If this is set false (the default), … … 53 48 giving an almost pure horizontal diffusive tracer flux within the mixed layer. 54 49 This is similar to the tapering suggested by \citet{gerdes.koberle.ea_CD91}. See \autoref{subsec:TRIADS_Gerdes-taper} 55 \item [{\np{ln_botmix_triad}{ln\_botmix\_triad}}]50 \item [{\np{ln_botmix_triad}{ln\_botmix\_triad}}] 56 51 See \autoref{sec:TRIADS_iso_bdry}. 57 52 If this is set false (the default) then the lateral diffusive fluxes … … 59 54 If it is set true, however, then these lateral diffusive fluxes are applied, 60 55 giving smoother bottom tracer fields at the cost of introducing diapycnal mixing. 61 \item [{\np{rn_sw_triad}{rn\_sw\_triad}}]56 \item [{\np{rn_sw_triad}{rn\_sw\_triad}}] 62 57 blah blah to be added.... 63 58 \end{description} 64 59 The options shared with the Standard scheme include: 65 60 \begin{description} 66 \item [{\np{ln_traldf_msc}{ln\_traldf\_msc}}] blah blah to be added67 \item [{\np{rn_slpmax}{rn\_slpmax}}] blah blah to be added61 \item [{\np{ln_traldf_msc}{ln\_traldf\_msc}}] blah blah to be added 62 \item [{\np{rn_slpmax}{rn\_slpmax}}] blah blah to be added 68 63 \end{description} 69 64 … … 548 543 The diffusion scheme satisfies the following six properties: 549 544 \begin{description} 550 \item [$\bullet$ horizontal diffusion]545 \item [$\bullet$ horizontal diffusion] 551 546 The discretization of the diffusion operator recovers the traditional five-point Laplacian 552 547 \autoref{eq:TRIADS_lat-normal} in the limit of flat iso-neutral direction: … … 559 554 \] 560 555 561 \item [$\bullet$ implicit treatment in the vertical]556 \item [$\bullet$ implicit treatment in the vertical] 562 557 Only tracer values associated with a single water column appear in the expression \autoref{eq:TRIADS_i33} for 563 558 the $_{33}$ fluxes, vertical fluxes driven by vertical gradients. … … 575 570 (where $b_w= e_{1w}\,e_{2w}\,e_{3w}$ is the volume of $w$-cells) can be quite large. 576 571 577 \item [$\bullet$ pure iso-neutral operator]572 \item [$\bullet$ pure iso-neutral operator] 578 573 The iso-neutral flux of locally referenced potential density is zero. 579 574 See \autoref{eq:TRIADS_latflux-rho} and \autoref{eq:TRIADS_vertflux-triad2}. 580 575 581 \item [$\bullet$ conservation of tracer]576 \item [$\bullet$ conservation of tracer] 582 577 The iso-neutral diffusion conserves tracer content, \ie 583 578 \[ … … 587 582 This property is trivially satisfied since the iso-neutral diffusive operator is written in flux form. 588 583 589 \item [$\bullet$ no increase of tracer variance]584 \item [$\bullet$ no increase of tracer variance] 590 585 The iso-neutral diffusion does not increase the tracer variance, \ie 591 586 \[ … … 600 595 the field on which it is applied becomes free of grid-point noise. 601 596 602 \item [$\bullet$ self-adjoint operator]597 \item [$\bullet$ self-adjoint operator] 603 598 The iso-neutral diffusion operator is self-adjoint, \ie 604 599 \begin{equation} … … 753 748 described above by \autoref{eq:TRIADS_Rtilde}. 754 749 \begin{enumerate} 755 \item 756 Mixed-layer depth is defined so as to avoid including regions of weak vertical stratification in 750 \item Mixed-layer depth is defined so as to avoid including regions of weak vertical stratification in 757 751 the slope definition. 758 752 At each $i,j$ (simplified to $i$ in \autoref{fig:TRIADS_MLB_triad}), … … 766 760 output the diagnosed mixed-layer depth $h_{\mathrm{ML}}=|z_{W}|_{k_{\mathrm{ML}}+1/2}$, 767 761 the depth of the $w$-point above the $i,k_{\mathrm{ML}}$ tracer point. 768 \item 769 We define `basal' triad slopes ${\:}_i{\mathbb{R}_{\mathrm{base}}}_{\,i_p}^{k_p}$ as 762 \item We define `basal' triad slopes ${\:}_i{\mathbb{R}_{\mathrm{base}}}_{\,i_p}^{k_p}$ as 770 763 the slopes of those triads whose vertical `arms' go down from the $i,k_{\mathrm{ML}}$ tracer point to 771 764 the $i,k_{\mathrm{ML}}-1$ tracer point below. … … 790 783 one gridbox deeper than the diagnosed ML depth $z_{\mathrm{ML}})$ that sets the $h$ used to taper the slopes in 791 784 \autoref{eq:TRIADS_rmtilde}. 792 \item 793 Finally, we calculate the adjusted triads ${\:}_i^k{\mathbb{R}_{\mathrm{ML}}}_{\,i_p}^{k_p}$ within 785 \item Finally, we calculate the adjusted triads ${\:}_i^k{\mathbb{R}_{\mathrm{ML}}}_{\,i_p}^{k_p}$ within 794 786 the mixed layer, by multiplying the appropriate ${\:}_i{\mathbb{R}_{\mathrm{base}}}_{\,i_p}^{k_p}$ by 795 787 the ratio of the depth of the $w$-point ${z_w}_{k+k_p}$ to ${z_{\mathrm{base}}}_{\,i}$. … … 872 864 % This may give strange looking results, 873 865 % particularly where the mixed-layer depth varies strongly laterally. 874 % ================================================================875 % Skew flux formulation for Eddy Induced Velocity :876 % ================================================================877 866 \section{Eddy induced advection formulated as a skew flux} 878 867 \label{sec:TRIADS_skew-flux} -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_ASM.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter Assimilation increments (ASM)6 % ================================================================7 4 \chapter{Apply Assimilation Increments (ASM)} 8 5 \label{chap:ASM} … … 19 16 \end{tabular} 20 17 \end{figure} 21 22 \newpage23 18 24 19 The ASM code adds the functionality to apply increments to the model variables: temperature, salinity, … … 138 133 This specifies the number of iterations of the divergence damping. Setting a value of the order of 100 will result in a significant reduction in the vertical velocity induced by the increments. 139 134 140 141 135 %========================================================================== 142 136 -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_DIA.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter I/O & Diagnostics6 % ================================================================7 4 \chapter{Output and Diagnostics (IOM, DIA, TRD, FLO)} 8 5 \label{chap:DIA} … … 23 20 \end{figure} 24 21 25 \newpage26 27 % ================================================================28 % Old Model Output29 % ================================================================30 22 \section{Model output} 31 23 \label{sec:DIA_io_old} … … 53 45 %\gmcomment{ % start of gmcomment 54 46 55 % ================================================================56 % Diagnostics57 % ================================================================58 47 \section{Standard model output (IOM)} 59 48 \label{sec:DIA_iom} … … 64 53 65 54 \begin{enumerate} 66 \item 67 The complete and flexible control of the output files through external XML files adapted by 55 \item The complete and flexible control of the output files through external XML files adapted by 68 56 the user from standard templates. 69 \item 70 To achieve high performance and scalable output through the optional distribution of 57 \item To achieve high performance and scalable output through the optional distribution of 71 58 all diagnostic output related tasks to dedicated processes. 72 59 \end{enumerate} … … 76 63 77 64 \begin{itemize} 78 \item 79 The choice of output frequencies that can be different for each file (including real months and years). 80 \item 81 The choice of file contents; includes complete flexibility over which data are written in which files 65 \item The choice of output frequencies that can be different for each file (including real months and years). 66 \item The choice of file contents; includes complete flexibility over which data are written in which files 82 67 (the same data can be written in different files). 83 \item 84 The possibility to split output files at a chosen frequency. 85 \item 86 The possibility to extract a vertical or an horizontal subdomain. 87 \item 88 The choice of the temporal operation to perform, \eg: average, accumulate, instantaneous, min, max and once. 89 \item 90 Control over metadata via a large XML "database" of possible output fields. 68 \item The possibility to split output files at a chosen frequency. 69 \item The possibility to extract a vertical or an horizontal subdomain. 70 \item The choice of the temporal operation to perform, \eg: average, accumulate, instantaneous, min, max and once. 71 \item Control over metadata via a large XML "database" of possible output fields. 91 72 \end{itemize} 92 73 … … 150 131 If an additional variable must be written to a restart file, the following steps are needed: 151 132 \begin{description} 152 \item [step 1:] add variable name to a list of restart variables (in subroutine \rou{iom\_set\_rst\_vars,} \mdl{iom}) and133 \item [step 1:] add variable name to a list of restart variables (in subroutine \rou{iom\_set\_rst\_vars,} \mdl{iom}) and 153 134 define correct grid for the variable (\forcode{grid_N_3D} - 3D variable, \forcode{grid_N} - 2D variable, \forcode{grid_vector} - 154 135 1D variable, \forcode{grid_scalar} - scalar), 155 \item [step 2:] add variable to the list of fields written by restart. This can be done either in subroutine136 \item [step 2:] add variable to the list of fields written by restart. This can be done either in subroutine 156 137 \rou{iom\_set\_rstw\_core} (\mdl{iom}) or by calling \rou{iom\_set\_rstw\_active} (\mdl{iom}) with the name of a variable 157 138 as an argument. This convention follows approach for writing restart using iom, where variables are … … 159 140 \end{description} 160 141 161 162 142 An older versions of XIOS do not support reading functionality. It's recommended to use at least XIOS2@1451. 163 164 143 165 144 \subsection{XIOS: XML Inputs-Outputs Server} … … 276 255 277 256 \begin{enumerate} 278 \item [1.]257 \item [1.] 279 258 in \NEMO\ code, add a \forcode{CALL iom_put( 'identifier', array )} where you want to output a 2D or 3D array. 280 \item [2.]259 \item [2.] 281 260 If necessary, add \forcode{USE iom ! I/O manager library} to the list of used modules in 282 261 the upper part of your module. 283 \item [3.]262 \item [3.] 284 263 in the field\_def.xml file, add the definition of your variable using the same identifier you used in the f90 code 285 264 (see subsequent sections for a details of the XML syntax and rules). … … 310 289 \xmlcode{<field_group id="SBC" ...>} which has been defined with the correct frequency of operations 311 290 (iom\_set\_field\_attr in \mdl{iom}) 312 \item [4.]291 \item [4.] 313 292 add your field in one of the output files defined in iodef.xml 314 293 (again see subsequent sections for syntax and rules) … … 737 716 738 717 \begin{enumerate} 739 \item 740 Simple computation: directly define the computation when refering to the variable in the file definition. 718 \item Simple computation: directly define the computation when refering to the variable in the file definition. 741 719 742 720 \begin{xmllines} … … 746 724 \end{xmllines} 747 725 748 \item 749 Simple computation: define a new variable and use it in the file definition. 726 \item Simple computation: define a new variable and use it in the file definition. 750 727 751 728 in field\_definition: … … 764 741 sst2 won't be evaluated. 765 742 766 \item 767 Change of variable precision: 743 \item Change of variable precision: 768 744 769 745 \begin{xmllines} … … 778 754 Forcing double precision outputs with prec="8" (for example in the field\_definition) will avoid this problem. 779 755 780 \item 781 add user defined attributes: 756 \item add user defined attributes: 782 757 783 758 \begin{xmllines} … … 794 769 \end{xmllines} 795 770 796 \item 797 use of the ``@'' function: example 1, weighted temporal average 771 \item use of the ``@'' function: example 1, weighted temporal average 798 772 799 773 - define a new variable in field\_definition … … 823 797 Note that in this case, freq\_op must be equal to the file output\_freq. 824 798 825 \item 826 use of the ``@'' function: example 2, monthly SSH standard deviation 799 \item use of the ``@'' function: example 2, monthly SSH standard deviation 827 800 828 801 - define a new variable in field\_definition … … 854 827 Note that in this case, freq\_op must be equal to the file output\_freq. 855 828 856 \item 857 use of the ``@'' function: example 3, monthly average of SST diurnal cycle 829 \item use of the ``@'' function: example 3, monthly average of SST diurnal cycle 858 830 859 831 - define 2 new variables in field\_definition … … 1326 1298 This must be set to true if these metadata are to be included in the output files. 1327 1299 1328 1329 % ================================================================1330 % NetCDF4 support1331 % ================================================================1332 1300 \section[NetCDF4 support (\texttt{\textbf{key\_netcdf4}})]{NetCDF4 support (\protect\key{netcdf4})} 1333 1301 \label{sec:DIA_nc4} … … 1446 1414 the invidual processing regions and different chunking choices may be desired. 1447 1415 1448 % -------------------------------------------------------------------------------------------------------------1449 % Tracer/Dynamics Trends1450 % -------------------------------------------------------------------------------------------------------------1451 1416 \section[Tracer/Dynamics trends (\forcode{&namtrd})]{Tracer/Dynamics trends (\protect\nam{trd}{trd})} 1452 1417 \label{sec:DIA_trd} … … 1470 1435 1471 1436 \begin{description} 1472 \item [{\np{ln_glo_trd}{ln\_glo\_trd}}]:1437 \item [{\np{ln_glo_trd}{ln\_glo\_trd}}]: 1473 1438 at each \np{nn_trd}{nn\_trd} time-step a check of the basin averaged properties of 1474 1439 the momentum and tracer equations is performed. 1475 1440 This also includes a check of $T^2$, $S^2$, $\tfrac{1}{2} (u^2+v2)$, 1476 1441 and potential energy time evolution equations properties; 1477 \item [{\np{ln_dyn_trd}{ln\_dyn\_trd}}]:1442 \item [{\np{ln_dyn_trd}{ln\_dyn\_trd}}]: 1478 1443 each 3D trend of the evolution of the two momentum components is output; 1479 \item [{\np{ln_dyn_mxl}{ln\_dyn\_mxl}}]:1444 \item [{\np{ln_dyn_mxl}{ln\_dyn\_mxl}}]: 1480 1445 each 3D trend of the evolution of the two momentum components averaged over the mixed layer is output; 1481 \item [{\np{ln_vor_trd}{ln\_vor\_trd}}]:1446 \item [{\np{ln_vor_trd}{ln\_vor\_trd}}]: 1482 1447 a vertical summation of the moment tendencies is performed, 1483 1448 then the curl is computed to obtain the barotropic vorticity tendencies which are output; 1484 \item [{\np{ln_KE_trd}{ln\_KE\_trd}}] :1449 \item [{\np{ln_KE_trd}{ln\_KE\_trd}}] : 1485 1450 each 3D trend of the Kinetic Energy equation is output; 1486 \item [{\np{ln_tra_trd}{ln\_tra\_trd}}]:1451 \item [{\np{ln_tra_trd}{ln\_tra\_trd}}]: 1487 1452 each 3D trend of the evolution of temperature and salinity is output; 1488 \item [{\np{ln_tra_mxl}{ln\_tra\_mxl}}]:1453 \item [{\np{ln_tra_mxl}{ln\_tra\_mxl}}]: 1489 1454 each 2D trend of the evolution of temperature and salinity averaged over the mixed layer is output; 1490 1455 \end{description} … … 1497 1462 and none of the options have been tested with variable volume (\ie\ \np[=.true.]{ln_linssh}{ln\_linssh}). 1498 1463 1499 % -------------------------------------------------------------------------------------------------------------1500 % On-line Floats trajectories1501 % -------------------------------------------------------------------------------------------------------------1502 1464 \section[FLO: On-Line Floats trajectories (\texttt{\textbf{key\_floats}})]{FLO: On-Line Floats trajectories (\protect\key{floats})} 1503 1465 \label{sec:DIA_FLO} … … 1602 1564 \end{xmllines} 1603 1565 1604 1605 % -------------------------------------------------------------------------------------------------------------1606 % Harmonic analysis of tidal constituents1607 % -------------------------------------------------------------------------------------------------------------1608 1566 \section[Harmonic analysis of tidal constituents (\texttt{\textbf{key\_diaharm}})]{Harmonic analysis of tidal constituents (\protect\key{diaharm})} 1609 1567 \label{sec:DIA_diag_harm} … … 1654 1612 We obtain in output $C_{j}$ and $S_{j}$ for each tidal wave. 1655 1613 1656 % -------------------------------------------------------------------------------------------------------------1657 % Sections transports1658 % -------------------------------------------------------------------------------------------------------------1659 1614 \section[Transports across sections (\texttt{\textbf{key\_diadct}})]{Transports across sections (\protect\key{diadct})} 1660 1615 \label{sec:DIA_diag_dct} … … 1800 1755 \end{table} 1801 1756 1802 % ================================================================1803 % Steric effect in sea surface height1804 % ================================================================1805 1757 \section{Diagnosing the steric effect in sea surface height} 1806 1758 \label{sec:DIA_steric} 1807 1808 1759 1809 1760 Changes in steric sea level are caused when changes in the density of the water column imply an expansion or … … 1980 1931 Both steric and thermosteric sea level are computed in \mdl{diaar5}. 1981 1932 1982 % -------------------------------------------------------------------------------------------------------------1983 % Other Diagnostics1984 % -------------------------------------------------------------------------------------------------------------1985 1933 \section{Other diagnostics} 1986 1934 \label{sec:DIA_diag_others} … … 2001 1949 - the depth of the thermocline (maximum of the vertical temperature gradient) (\mdl{diahth}) 2002 1950 2003 2004 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>2005 1951 \begin{figure}[!t] 2006 1952 \centering … … 2019 1965 \label{fig:DIA_mask_subasins} 2020 1966 \end{figure} 2021 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>2022 1967 2023 1968 % ----------------------------------------------------------- -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_DIU.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Diurnal SST models (DIU)6 % Edited by James While7 % ================================================================8 4 \chapter{Diurnal SST Models (DIU)} 9 5 \label{chap:DIU} … … 11 7 \chaptertoc 12 8 13 14 \newpage15 9 $\ $\newline % force a new line 16 10 … … 19 13 The skin temperature can be split into three parts: 20 14 \begin{itemize} 21 \item 22 A foundation SST which is free from diurnal warming. 23 \item 24 A warm layer, typically ~3\,m thick, 15 \item A foundation SST which is free from diurnal warming. 16 \item A warm layer, typically ~3\,m thick, 25 17 where heating from solar radiation can cause a warm stably stratified layer during the daytime 26 \item 27 A cool skin, a thin layer, approximately ~1\, mm thick, 18 \item A cool skin, a thin layer, approximately ~1\, mm thick, 28 19 where long wave cooling is dominant and cools the immediate ocean surface. 29 20 \end{itemize} … … 46 37 This namelist contains only two variables: 47 38 \begin{description} 48 \item [{\np{ln_diurnal}{ln\_diurnal}}]39 \item [{\np{ln_diurnal}{ln\_diurnal}}] 49 40 A logical switch for turning on/off both the cool skin and warm layer. 50 \item [{\np{ln_diurnal_only}{ln\_diurnal\_only}}]41 \item [{\np{ln_diurnal_only}{ln\_diurnal\_only}}] 51 42 A logical switch which if \forcode{.true.} will run the diurnal model without the other dynamical parts of \NEMO. 52 43 \np{ln_diurnal_only}{ln\_diurnal\_only} must be \forcode{.false.} if \np{ln_diurnal}{ln\_diurnal} is \forcode{.false.}. -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_DOM.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter 2 ——— Space and Time Domain (DOM)6 % ================================================================7 4 \chapter{Space Domain (DOM)} 8 5 \label{chap:DOM} … … 36 33 \end{table} 37 34 38 \newpage39 40 35 Having defined the continuous equations in \autoref{chap:MB} and chosen a time discretisation \autoref{chap:TD}, 41 36 we need to choose a grid for spatial discretisation and related numerical algorithms. … … 43 38 and other relevant information about the DOM (DOMain) source code modules. 44 39 45 % ================================================================46 % Fundamentals of the Discretisation47 % ================================================================48 40 \section{Fundamentals of the discretisation} 49 41 \label{sec:DOM_basics} 50 42 51 % -------------------------------------------------------------------------------------------------------------52 % Arrangement of Variables53 % -------------------------------------------------------------------------------------------------------------54 43 \subsection{Arrangement of variables} 55 44 \label{subsec:DOM_cell} 56 45 57 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>58 46 \begin{figure}[!tb] 59 47 \centering … … 68 56 \label{fig:DOM_cell} 69 57 \end{figure} 70 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>71 58 72 59 The numerical techniques used to solve the Primitive Equations in this model are based on the traditional, … … 99 86 (see \autoref{eq:DOM_bar} in the next section). 100 87 101 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>102 88 \begin{table}[!tb] 103 89 \centering … … 130 116 \label{tab:DOM_cell} 131 117 \end{table} 132 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>133 118 134 119 Note that the definition of the scale factors … … 145 130 (rather than allowing the user to set arbitrary jumps in thickness between adjacent layers) \citep{treguier.dukowicz.ea_JGR96}. 146 131 An example of the effect of such a choice is shown in \autoref{fig:DOM_zgr_e3}. 147 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>148 132 \begin{figure}[!t] 149 133 \centering … … 160 144 \label{fig:DOM_zgr_e3} 161 145 \end{figure} 162 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 163 164 % ------------------------------------------------------------------------------------------------------------- 165 % Vector Invariant Formulation 166 % ------------------------------------------------------------------------------------------------------------- 146 167 147 \subsection{Discrete operators} 168 148 \label{subsec:DOM_operators} … … 255 235 demonstrate integral conservative properties of the discrete formulation chosen. 256 236 257 % -------------------------------------------------------------------------------------------------------------258 % Numerical Indexing259 % -------------------------------------------------------------------------------------------------------------260 237 \subsection{Numerical indexing} 261 238 \label{subsec:DOM_Num_Index} 262 239 263 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>264 240 \begin{figure}[!tb] 265 241 \centering … … 271 247 \label{fig:DOM_index_hor} 272 248 \end{figure} 273 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>274 249 275 250 The array representation used in the \fortran\ code requires an integer indexing. … … 315 290 accommodate the opposing vertical index directions in implementation and documentation. 316 291 317 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>318 292 \begin{figure}[!pt] 319 293 \centering … … 326 300 \label{fig:DOM_index_vert} 327 301 \end{figure} 328 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 329 330 % ------------------------------------------------------------------------------------------------------------- 331 % Domain configuration 332 % ------------------------------------------------------------------------------------------------------------- 302 333 303 \section{Spatial domain configuration} 334 304 \label{subsec:DOM_config} … … 385 355 See \autoref{sec:LBC_jperio} for details on the available options and the corresponding values for \jp{jperio}. 386 356 387 % ================================================================388 % Domain: Horizontal Grid (mesh)389 % ================================================================390 357 \subsection[Horizontal grid mesh (\textit{domhgr.F90}]{Horizontal grid mesh (\protect\mdl{domhgr})} 391 358 \label{subsec:DOM_hgr} 392 359 393 % ================================================================394 % Domain: List of hgr-related fields needed395 % ================================================================396 360 \subsubsection{Required fields} 397 361 \label{sec:DOM_hgr_fields} … … 453 417 thus no specific arrays are defined at $w$ points. 454 418 455 456 % ================================================================457 % Domain: Vertical Grid (domzgr)458 % ================================================================459 419 \subsection[Vertical grid (\textit{domzgr.F90})]{Vertical grid (\protect\mdl{domzgr})} 460 420 \label{subsec:DOM_zgr} … … 476 436 \end{enumerate} 477 437 478 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>479 438 \begin{figure}[!tb] 480 439 \centering … … 491 450 \label{fig:DOM_z_zps_s_sps} 492 451 \end{figure} 493 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>494 452 495 453 The choice of a vertical coordinate is made when setting up the configuration; … … 583 541 With ice cavities, \jp{top\_level} determines the first wet point below the overlying ice shelf. 584 542 585 586 % -------------------------------------------------------------------------------------------------------------587 % level bathymetry and mask588 % -------------------------------------------------------------------------------------------------------------589 543 \subsubsection{Level bathymetry and mask} 590 544 \label{subsec:DOM_msk} 591 592 545 593 546 From \jp{top\_level} and \jp{bottom\_level} fields, the mask fields are defined as follows: … … 619 572 %% (see \autoref{fig:LBC_jperio}). 620 573 621 622 574 %------------------------------------------------------------------------------------------------- 623 575 % Closed seas … … 643 595 \end{clines} 644 596 645 % -------------------------------------------------------------------------------------------------------------646 % Grid files647 % -------------------------------------------------------------------------------------------------------------648 597 \subsection{Output grid files} 649 598 \label{subsec:DOM_meshmask} … … 664 613 This file contains additional fields that can be useful for post-processing applications. 665 614 666 % ================================================================667 % Domain: Initial State (dtatsd & istate)668 % ================================================================669 615 \section[Initial state (\textit{istate.F90} and \textit{dtatsd.F90})]{Initial state (\protect\mdl{istate} and \protect\mdl{dtatsd})} 670 616 \label{sec:DOM_DTA_tsd} … … 682 628 683 629 \begin{description} 684 \item [{\np[=.true.]{ln_tsd_init}{ln\_tsd\_init}}]630 \item [{\np[=.true.]{ln_tsd_init}{ln\_tsd\_init}}] 685 631 Use T and S input files that can be given on the model grid itself or on their native input data grids. 686 632 In the latter case, the data will be interpolated on-the-fly both in the horizontal and the vertical to the model grid … … 688 634 The information relating to the input files are specified in the \np{sn_tem}{sn\_tem} and \np{sn_sal}{sn\_sal} structures. 689 635 The computation is done in the \mdl{dtatsd} module. 690 \item [{\np[=.false.]{ln_tsd_init}{ln\_tsd\_init}}]636 \item [{\np[=.false.]{ln_tsd_init}{ln\_tsd\_init}}] 691 637 Initial values for T and S are set via a user supplied \rou{usr\_def\_istate} routine contained in \mdl{userdef\_istate}. 692 638 The default version sets horizontally uniform T and profiles as used in the GYRE configuration -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_DYN.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter ——— Ocean Dynamics (DYN)6 % ================================================================7 4 \chapter{Ocean Dynamics (DYN)} 8 5 \label{chap:DYN} … … 56 53 MISC correspond to "extracting tendency terms" or "vorticity balance"?} 57 54 58 % ================================================================59 % Sea Surface Height evolution & Diagnostics variables60 % ================================================================61 55 \section{Sea surface height and diagnostic variables ($\eta$, $\zeta$, $\chi$, $w$)} 62 56 \label{sec:DYN_divcur_wzv} … … 158 152 (see \autoref{subsec:DOM_Num_Index_vertical}). 159 153 160 161 % ================================================================162 % Coriolis and Advection terms: vector invariant form163 % ================================================================164 154 \section{Coriolis and advection: vector invariant form} 165 155 \label{sec:DYN_adv_cor_vect} … … 182 172 \autoref{chap:LBC}. 183 173 184 % -------------------------------------------------------------------------------------------------------------185 % Vorticity term186 % -------------------------------------------------------------------------------------------------------------187 174 \subsection[Vorticity term (\textit{dynvor.F90})]{Vorticity term (\protect\mdl{dynvor})} 188 175 \label{subsec:DYN_vor} … … 314 301 \end{equation} 315 302 316 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>317 303 \begin{figure}[!ht] 318 304 \centering … … 414 400 an option which is only available with a TVD scheme (see \np{ln_traadv_tvd_zts}{ln\_traadv\_tvd\_zts} in \autoref{subsec:TRA_adv_tvd}). 415 401 416 417 % ================================================================418 % Coriolis and Advection : flux form419 % ================================================================420 402 \section{Coriolis and advection: flux form} 421 403 \label{sec:DYN_adv_cor_flux} … … 430 412 At the lateral boundaries either free slip, 431 413 no slip or partial slip boundary conditions are applied following \autoref{chap:LBC}. 432 433 414 434 415 %-------------------------------------------------------------------------------------------------------------- … … 562 543 %%% 563 544 564 % ================================================================565 % Hydrostatic pressure gradient term566 % ================================================================567 545 \section[Hydrostatic pressure gradient (\textit{dynhpg.F90})]{Hydrostatic pressure gradient (\protect\mdl{dynhpg})} 568 546 \label{sec:DYN_hpg} … … 780 758 This option is controlled by \np{nn_dynhpg_rst}{nn\_dynhpg\_rst}, a namelist parameter. 781 759 782 % ================================================================783 % Surface Pressure Gradient784 % ================================================================785 760 \section[Surface pressure gradient (\textit{dynspg.F90})]{Surface pressure gradient (\protect\mdl{dynspg})} 786 761 \label{sec:DYN_spg} … … 809 784 so that the update of the next velocities is done in module \mdl{dynspg\_flt} and not in \mdl{dynnxt}. 810 785 811 812 786 The form of the surface pressure gradient term depends on how the user wants to 813 787 handle the fast external gravity waves that are a solution of the analytical equation (\autoref{sec:MB_hor_pg}). … … 820 794 The extra term introduced in the filtered method is calculated implicitly, so that a solver is used to compute it. 821 795 As a consequence the update of the $next$ velocities is done in module \mdl{dynspg\_flt} and not in \mdl{dynnxt}. 822 823 796 824 797 %-------------------------------------------------------------------------------------------------------------- … … 1092 1065 %>>>>>=============== 1093 1066 1094 1095 1067 %-------------------------------------------------------------------------------------------------------------- 1096 1068 % Filtered free surface formulation … … 1121 1093 It is computed once and for all and applies to all ocean time steps. 1122 1094 1123 % ================================================================1124 % Lateral diffusion term1125 % ================================================================1126 1095 \section[Lateral diffusion term and operators (\textit{dynldf.F90})]{Lateral diffusion term and operators (\protect\mdl{dynldf})} 1127 1096 \label{sec:DYN_ldf} … … 1161 1130 } 1162 1131 1163 % ================================================================1164 \subsection[Iso-level laplacian (\forcode{ln_dynldf_lap})]{Iso-level laplacian operator (\protect\np{ln_dynldf_lap}{ln\_dynldf\_lap})}1165 \label{subsec:DYN_ldf_lap}1166 1167 For lateral iso-level diffusion, the discrete operator is:1168 \begin{equation}1169 \label{eq:DYN_ldf_lap}1170 \left\{1171 \begin{aligned}1172 D_u^{l{\mathrm {\mathbf U}}} =\frac{1}{e_{1u} }\delta_{i+1/2} \left[ {A_T^{lm}1173 \;\chi } \right]-\frac{1}{e_{2u} {\kern 1pt}e_{3u} }\delta_j \left[1174 {A_f^{lm} \;e_{3f} \zeta } \right] \\ \\1175 D_v^{l{\mathrm {\mathbf U}}} =\frac{1}{e_{2v} }\delta_{j+1/2} \left[ {A_T^{lm}1176 \;\chi } \right]+\frac{1}{e_{1v} {\kern 1pt}e_{3v} }\delta_i \left[1177 {A_f^{lm} \;e_{3f} \zeta } \right]1178 \end{aligned}1179 \right.1180 \end{equation}1181 1182 As explained in \autoref{subsec:MB_ldf},1183 this formulation (as the gradient of a divergence and curl of the vorticity) preserves symmetry and1184 ensures a complete separation between the vorticity and divergence parts of the momentum diffusion.1185 1186 %--------------------------------------------------------------------------------------------------------------1187 % Rotated laplacian operator1188 %--------------------------------------------------------------------------------------------------------------1189 \subsection[Rotated laplacian (\forcode{ln_dynldf_iso})]{Rotated laplacian operator (\protect\np{ln_dynldf_iso}{ln\_dynldf\_iso})}1190 \label{subsec:DYN_ldf_iso}1191 1192 A rotation of the lateral momentum diffusion operator is needed in several cases:1193 for iso-neutral diffusion in the $z$-coordinate (\np[=.true.]{ln_dynldf_iso}{ln\_dynldf\_iso}) and1194 for either iso-neutral (\np[=.true.]{ln_dynldf_iso}{ln\_dynldf\_iso}) or1195 geopotential (\np[=.true.]{ln_dynldf_hor}{ln\_dynldf\_hor}) diffusion in the $s$-coordinate.1196 In the partial step case, coordinates are horizontal except at the deepest level and1197 no rotation is performed when \np[=.true.]{ln_dynldf_hor}{ln\_dynldf\_hor}.1198 The diffusion operator is defined simply as the divergence of down gradient momentum fluxes on1199 each momentum component.1200 It must be emphasized that this formulation ignores constraints on the stress tensor such as symmetry.1201 The resulting discrete representation is:1202 \begin{equation}1203 \label{eq:DYN_ldf_iso}1204 \begin{split}1205 D_u^{l\textbf{U}} &= \frac{1}{e_{1u} \, e_{2u} \, e_{3u} } \\1206 & \left\{\quad {\delta_{i+1/2} \left[ {A_T^{lm} \left(1207 {\frac{e_{2t} \; e_{3t} }{e_{1t} } \,\delta_{i}[u]1208 -e_{2t} \; r_{1t} \,\overline{\overline {\delta_{k+1/2}[u]}}^{\,i,\,k}}1209 \right)} \right]} \right. \\1210 & \qquad +\ \delta_j \left[ {A_f^{lm} \left( {\frac{e_{1f}\,e_{3f} }{e_{2f}1211 }\,\delta_{j+1/2} [u] - e_{1f}\, r_{2f}1212 \,\overline{\overline {\delta_{k+1/2} [u]}} ^{\,j+1/2,\,k}}1213 \right)} \right] \\1214 &\qquad +\ \delta_k \left[ {A_{uw}^{lm} \left( {-e_{2u} \, r_{1uw} \,\overline{\overline1215 {\delta_{i+1/2} [u]}}^{\,i+1/2,\,k+1/2} }1216 \right.} \right. \\1217 & \ \qquad \qquad \qquad \quad\1218 - e_{1u} \, r_{2uw} \,\overline{\overline {\delta_{j+1/2} [u]}} ^{\,j,\,k+1/2} \\1219 & \left. {\left. { \ \qquad \qquad \qquad \ \ \ \left. {\1220 +\frac{e_{1u}\, e_{2u} }{e_{3uw} }\,\left( {r_{1uw}^2+r_{2uw}^2}1221 \right)\,\delta_{k+1/2} [u]} \right)} \right]\;\;\;} \right\} \\ \\1222 D_v^{l\textbf{V}} &= \frac{1}{e_{1v} \, e_{2v} \, e_{3v} } \\1223 & \left\{\quad {\delta_{i+1/2} \left[ {A_f^{lm} \left(1224 {\frac{e_{2f} \; e_{3f} }{e_{1f} } \,\delta_{i+1/2}[v]1225 -e_{2f} \; r_{1f} \,\overline{\overline {\delta_{k+1/2}[v]}}^{\,i+1/2,\,k}}1226 \right)} \right]} \right. \\1227 & \qquad +\ \delta_j \left[ {A_T^{lm} \left( {\frac{e_{1t}\,e_{3t} }{e_{2t}1228 }\,\delta_{j} [v] - e_{1t}\, r_{2t}1229 \,\overline{\overline {\delta_{k+1/2} [v]}} ^{\,j,\,k}}1230 \right)} \right] \\1231 & \qquad +\ \delta_k \left[ {A_{vw}^{lm} \left( {-e_{2v} \, r_{1vw} \,\overline{\overline1232 {\delta_{i+1/2} [v]}}^{\,i+1/2,\,k+1/2} }\right.} \right. \\1233 & \ \qquad \qquad \qquad \quad\1234 - e_{1v} \, r_{2vw} \,\overline{\overline {\delta_{j+1/2} [v]}} ^{\,j+1/2,\,k+1/2} \\1235 & \left. {\left. { \ \qquad \qquad \qquad \ \ \ \left. {\1236 +\frac{e_{1v}\, e_{2v} }{e_{3vw} }\,\left( {r_{1vw}^2+r_{2vw}^2}1237 \right)\,\delta_{k+1/2} [v]} \right)} \right]\;\;\;} \right\}1238 \end{split}1239 \end{equation}1240 where $r_1$ and $r_2$ are the slopes between the surface along which the diffusion operator acts and1241 the surface of computation ($z$- or $s$-surfaces).1242 The way these slopes are evaluated is given in the lateral physics chapter (\autoref{chap:LDF}).1243 1244 %--------------------------------------------------------------------------------------------------------------1245 % Iso-level bilaplacian operator1246 %--------------------------------------------------------------------------------------------------------------1247 \subsection[Iso-level bilaplacian (\forcode{ln_dynldf_bilap})]{Iso-level bilaplacian operator (\protect\np{ln_dynldf_bilap}{ln\_dynldf\_bilap})}1248 \label{subsec:DYN_ldf_bilap}1249 1250 The lateral fourth order operator formulation on momentum is obtained by applying \autoref{eq:DYN_ldf_lap} twice.1251 It requires an additional assumption on boundary conditions:1252 the first derivative term normal to the coast depends on the free or no-slip lateral boundary conditions chosen,1253 while the third derivative terms normal to the coast are set to zero (see \autoref{chap:LBC}).1254 %%%1255 \gmcomment{add a remark on the the change in the position of the coefficient}1256 %%%1257 1258 % ================================================================1259 1132 % Vertical diffusion term 1260 % ================================================================1261 \section[Vertical diffusion term (\textit{dynzdf.F90})]{Vertical diffusion term (\protect\mdl{dynzdf})}1262 \label{sec:DYN_zdf}1263 %----------------------------------------------namzdf------------------------------------------------------1264 1265 %-------------------------------------------------------------------------------------------------------------1266 1267 Options are defined through the \nam{zdf}{zdf} namelist variables.1268 The large vertical diffusion coefficient found in the surface mixed layer together with high vertical resolution implies that in the case of explicit time stepping there would be too restrictive a constraint on the time step.1269 Two time stepping schemes can be used for the vertical diffusion term:1270 $(a)$ a forward time differencing scheme1271 (\np[=.true.]{ln_zdfexp}{ln\_zdfexp}) using a time splitting technique (\np{nn_zdfexp}{nn\_zdfexp} $>$ 1) or1272 $(b)$ a backward (or implicit) time differencing scheme (\np[=.false.]{ln_zdfexp}{ln\_zdfexp})1273 (see \autoref{chap:TD}).1274 Note that namelist variables \np{ln_zdfexp}{ln\_zdfexp} and \np{nn_zdfexp}{nn\_zdfexp} apply to both tracers and dynamics.1275 1276 The formulation of the vertical subgrid scale physics is the same whatever the vertical coordinate is.1277 The vertical diffusion operators given by \autoref{eq:MB_zdf} take the following semi-discrete space form:1278 \[1279 % \label{eq:DYN_zdf}1280 \left\{1281 \begin{aligned}1282 D_u^{vm} &\equiv \frac{1}{e_{3u}} \ \delta_k \left[ \frac{A_{uw}^{vm} }{e_{3uw} }1283 \ \delta_{k+1/2} [\,u\,] \right] \\1284 \\1285 D_v^{vm} &\equiv \frac{1}{e_{3v}} \ \delta_k \left[ \frac{A_{vw}^{vm} }{e_{3vw} }1286 \ \delta_{k+1/2} [\,v\,] \right]1287 \end{aligned}1288 \right.1289 \]1290 where $A_{uw}^{vm} $ and $A_{vw}^{vm} $ are the vertical eddy viscosity and diffusivity coefficients.1291 The way these coefficients are evaluated depends on the vertical physics used (see \autoref{chap:ZDF}).1292 1293 The surface boundary condition on momentum is the stress exerted by the wind.1294 At the surface, the momentum fluxes are prescribed as the boundary condition on1295 the vertical turbulent momentum fluxes,1296 \begin{equation}1297 \label{eq:DYN_zdf_sbc}1298 \left.{\left( {\frac{A^{vm} }{e_3 }\ \frac{\partial \textbf{U}_h}{\partial k}} \right)} \right|_{z=1}1299 = \frac{1}{\rho_o} \binom{\tau_u}{\tau_v }1300 \end{equation}1301 where $\left( \tau_u ,\tau_v \right)$ are the two components of the wind stress vector in1302 the (\textbf{i},\textbf{j}) coordinate system.1303 The high mixing coefficients in the surface mixed layer ensure that the surface wind stress is distributed in1304 the vertical over the mixed layer depth.1305 If the vertical mixing coefficient is small (when no mixed layer scheme is used)1306 the surface stress enters only the top model level, as a body force.1307 The surface wind stress is calculated in the surface module routines (SBC, see \autoref{chap:SBC}).1308 1309 The turbulent flux of momentum at the bottom of the ocean is specified through a bottom friction parameterisation1310 (see \autoref{sec:ZDF_drg})1311 1312 % ================================================================1313 1133 % External Forcing 1314 % ================================================================1315 \section{External forcings}1316 \label{sec:DYN_forcing}1317 1318 Besides the surface and bottom stresses (see the above section)1319 which are introduced as boundary conditions on the vertical mixing,1320 three other forcings may enter the dynamical equations by affecting the surface pressure gradient.1321 1322 (1) When \np[=.true.]{ln_apr_dyn}{ln\_apr\_dyn} (see \autoref{sec:SBC_apr}),1323 the atmospheric pressure is taken into account when computing the surface pressure gradient.1324 1325 (2) When \np[=.true.]{ln_tide_pot}{ln\_tide\_pot} and \np[=.true.]{ln_tide}{ln\_tide} (see \autoref{sec:SBC_tide}),1326 the tidal potential is taken into account when computing the surface pressure gradient.1327 1328 (3) When \np[=2]{nn_ice_embd}{nn\_ice\_embd} and LIM or CICE is used1329 (\ie\ when the sea-ice is embedded in the ocean),1330 the snow-ice mass is taken into account when computing the surface pressure gradient.1331 1332 1333 \gmcomment{ missing : the lateral boundary condition !!! another external forcing1334 }1335 1336 % ================================================================1337 1134 % Wetting and drying 1338 % ================================================================1339 \section{Wetting and drying }1340 \label{sec:DYN_wetdry}1341 1342 There are two main options for wetting and drying code (wd):1343 (a) an iterative limiter (il) and (b) a directional limiter (dl).1344 The directional limiter is based on the scheme developed by \cite{warner.defne.ea_CG13} for RO1345 MS1346 which was in turn based on ideas developed for POM by \cite{oey_OM06}. The iterative1347 limiter is a new scheme. The iterative limiter is activated by setting $\mathrm{ln\_wd\_il} = \mathrm{.true.}$1348 and $\mathrm{ln\_wd\_dl} = \mathrm{.false.}$. The directional limiter is activated1349 by setting $\mathrm{ln\_wd\_dl} = \mathrm{.true.}$ and $\mathrm{ln\_wd\_il} = \mathrm{.false.}$.1350 1351 \begin{listing}1352 \nlst{namwad}1353 \caption{\forcode{&namwad}}1354 \label{lst:namwad}1355 \end{listing}1356 1357 The following terminology is used. The depth of the topography (positive downwards)1358 at each $(i,j)$ point is the quantity stored in array $\mathrm{ht\_wd}$ in the \NEMO\ code.1359 The height of the free surface (positive upwards) is denoted by $ \mathrm{ssh}$. Given the sign1360 conventions used, the water depth, $h$, is the height of the free surface plus the depth of the1361 topography (i.e. $\mathrm{ssh} + \mathrm{ht\_wd}$).1362 1363 Both wd schemes take all points in the domain below a land elevation of $\mathrm{rn\_wdld}$ to be1364 covered by water. They require the topography specified with a model1365 configuration to have negative depths at points where the land is higher than the1366 topography's reference sea-level. The vertical grid in \NEMO\ is normally computed relative to an1367 initial state with zero sea surface height elevation.1368 The user can choose to compute the vertical grid and heights in the model relative to1369 a non-zero reference height for the free surface. This choice affects the calculation of the metrics and depths1370 (i.e. the $\mathrm{e3t\_0, ht\_0}$ etc. arrays).1371 1372 Points where the water depth is less than $\mathrm{rn\_wdmin1}$ are interpreted as ``dry''.1373 $\mathrm{rn\_wdmin1}$ is usually chosen to be of order $0.05$m but extreme topographies1374 with very steep slopes require larger values for normal choices of time-step. Surface fluxes1375 are also switched off for dry cells to prevent freezing, boiling etc. of very thin water layers.1376 The fluxes are tappered down using a $\mathrm{tanh}$ weighting function1377 to no flux as the dry limit $\mathrm{rn\_wdmin1}$ is approached. Even wet cells can be very shallow.1378 The depth at which to start tapering is controlled by the user by setting $\mathrm{rn\_wd\_sbcdep}$.1379 The fraction $(<1)$ of sufrace fluxes to use at this depth is set by $\mathrm{rn\_wd\_sbcfra}$.1380 1381 Both versions of the code have been tested in six test cases provided in the WAD\_TEST\_CASES configuration1382 and in ``realistic'' configurations covering parts of the north-west European shelf.1383 All these configurations have used pure sigma coordinates. It is expected that1384 the wetting and drying code will work in domains with more general s-coordinates provided1385 the coordinates are pure sigma in the region where wetting and drying actually occurs.1386 1387 The next sub-section descrbies the directional limiter and the following sub-section the iterative limiter.1388 The final sub-section covers some additional considerations that are relevant to both schemes.1389 1390 1391 %-----------------------------------------------------------------------------------------1392 % Iterative limiters1393 %-----------------------------------------------------------------------------------------1394 \subsection[Directional limiter (\textit{wet\_dry.F90})]{Directional limiter (\mdl{wet\_dry})}1395 \label{subsec:DYN_wd_directional_limiter}1396 1397 The principal idea of the directional limiter is that1398 water should not be allowed to flow out of a dry tracer cell (i.e. one whose water depth is less than \np{rn_wdmin1}{rn\_wdmin1}).1399 1400 All the changes associated with this option are made to the barotropic solver for the non-linear1401 free surface code within dynspg\_ts.1402 On each barotropic sub-step the scheme determines the direction of the flow across each face of all the tracer cells1403 and sets the flux across the face to zero when the flux is from a dry tracer cell. This prevents cells1404 whose depth is rn\_wdmin1 or less from drying out further. The scheme does not force $h$ (the water depth) at tracer cells1405 to be at least the minimum depth and hence is able to conserve mass / volume.1406 1407 The flux across each $u$-face of a tracer cell is multiplied by a factor zuwdmask (an array which depends on ji and jj).1408 If the user sets \np[=.false.]{ln_wd_dl_ramp}{ln\_wd\_dl\_ramp} then zuwdmask is 1 when the1409 flux is from a cell with water depth greater than \np{rn_wdmin1}{rn\_wdmin1} and 0 otherwise. If the user sets1410 \np[=.true.]{ln_wd_dl_ramp}{ln\_wd\_dl\_ramp} the flux across the face is ramped down as the water depth decreases1411 from 2 * \np{rn_wdmin1}{rn\_wdmin1} to \np{rn_wdmin1}{rn\_wdmin1}. The use of this ramp reduced grid-scale noise in idealised test cases.1412 1413 At the point where the flux across a $u$-face is multiplied by zuwdmask , we have chosen1414 also to multiply the corresponding velocity on the ``now'' step at that face by zuwdmask. We could have1415 chosen not to do that and to allow fairly large velocities to occur in these ``dry'' cells.1416 The rationale for setting the velocity to zero is that it is the momentum equations that are being solved1417 and the total momentum of the upstream cell (treating it as a finite volume) should be considered1418 to be its depth times its velocity. This depth is considered to be zero at ``dry'' $u$-points consistent with its1419 treatment in the calculation of the flux of mass across the cell face.1420 1421 1422 \cite{warner.defne.ea_CG13} state that in their scheme the velocity masks at the cell faces for the baroclinic1423 timesteps are set to 0 or 1 depending on whether the average of the masks over the barotropic sub-steps is respectively less than1424 or greater than 0.5. That scheme does not conserve tracers in integrations started from constant tracer1425 fields (tracers independent of $x$, $y$ and $z$). Our scheme conserves constant tracers because1426 the velocities used at the tracer cell faces on the baroclinic timesteps are carefully calculated by dynspg\_ts1427 to equal their mean value during the barotropic steps. If the user sets \np[=.true.]{ln_wd_dl_bc}{ln\_wd\_dl\_bc}, the1428 baroclinic velocities are also multiplied by a suitably weighted average of zuwdmask.1429 1430 %-----------------------------------------------------------------------------------------1431 % Iterative limiters1432 %-----------------------------------------------------------------------------------------1433 1434 \subsection[Iterative limiter (\textit{wet\_dry.F90})]{Iterative limiter (\mdl{wet\_dry})}1435 \label{subsec:DYN_wd_iterative_limiter}1436 1437 \subsubsection[Iterative flux limiter (\textit{wet\_dry.F90})]{Iterative flux limiter (\mdl{wet\_dry})}1438 \label{subsec:DYN_wd_il_spg_limiter}1439 1440 The iterative limiter modifies the fluxes across the faces of cells that are either already ``dry''1441 or may become dry within the next time-step using an iterative method.1442 1443 The flux limiter for the barotropic flow (devised by Hedong Liu) can be understood as follows:1444 1445 The continuity equation for the total water depth in a column1446 \begin{equation}1447 \label{eq:DYN_wd_continuity}1448 \frac{\partial h}{\partial t} + \mathbf{\nabla.}(h\mathbf{u}) = 0 .1449 \end{equation}1450 can be written in discrete form as1451 1452 \begin{align}1453 \label{eq:DYN_wd_continuity_2}1454 \frac{e_1 e_2}{\Delta t} ( h_{i,j}(t_{n+1}) - h_{i,j}(t_e) )1455 &= - ( \mathrm{flxu}_{i+1,j} - \mathrm{flxu}_{i,j} + \mathrm{flxv}_{i,j+1} - \mathrm{flxv}_{i,j} ) \\1456 &= \mathrm{zzflx}_{i,j} .1457 \end{align}1458 1459 In the above $h$ is the depth of the water in the column at point $(i,j)$,1460 $\mathrm{flxu}_{i+1,j}$ is the flux out of the ``eastern'' face of the cell and1461 $\mathrm{flxv}_{i,j+1}$ the flux out of the ``northern'' face of the cell; $t_{n+1}$ is1462 the new timestep, $t_e$ is the old timestep (either $t_b$ or $t_n$) and $ \Delta t =1463 t_{n+1} - t_e$; $e_1 e_2$ is the area of the tracer cells centred at $(i,j)$ and1464 $\mathrm{zzflx}$ is the sum of the fluxes through all the faces.1465 1466 The flux limiter splits the flux $\mathrm{zzflx}$ into fluxes that are out of the cell1467 (zzflxp) and fluxes that are into the cell (zzflxn). Clearly1468 1469 \begin{equation}1470 \label{eq:DYN_wd_zzflx_p_n_1}1471 \mathrm{zzflx}_{i,j} = \mathrm{zzflxp}_{i,j} + \mathrm{zzflxn}_{i,j} .1472 \end{equation}1473 1474 The flux limiter iteratively adjusts the fluxes $\mathrm{flxu}$ and $\mathrm{flxv}$ until1475 none of the cells will ``dry out''. To be precise the fluxes are limited until none of the1476 cells has water depth less than $\mathrm{rn\_wdmin1}$ on step $n+1$.1477 1478 Let the fluxes on the $m$th iteration step be denoted by $\mathrm{flxu}^{(m)}$ and1479 $\mathrm{flxv}^{(m)}$. Then the adjustment is achieved by seeking a set of coefficients,1480 $\mathrm{zcoef}_{i,j}^{(m)}$ such that:1481 1482 \begin{equation}1483 \label{eq:DYN_wd_continuity_coef}1484 \begin{split}1485 \mathrm{zzflxp}^{(m)}_{i,j} =& \mathrm{zcoef}_{i,j}^{(m)} \mathrm{zzflxp}^{(0)}_{i,j} \\1486 \mathrm{zzflxn}^{(m)}_{i,j} =& \mathrm{zcoef}_{i,j}^{(m)} \mathrm{zzflxn}^{(0)}_{i,j}1487 \end{split}1488 \end{equation}1489 1490 where the coefficients are $1.0$ generally but can vary between $0.0$ and $1.0$ around1491 cells that would otherwise dry.1492 1493 The iteration is initialised by setting1494 1495 \begin{equation}1496 \label{eq:DYN_wd_zzflx_initial}1497 \mathrm{zzflxp^{(0)}}_{i,j} = \mathrm{zzflxp}_{i,j} , \quad \mathrm{zzflxn^{(0)}}_{i,j} = \mathrm{zzflxn}_{i,j} .1498 \end{equation}1499 1500 The fluxes out of cell $(i,j)$ are updated at the $m+1$th iteration if the depth of the1501 cell on timestep $t_e$, namely $h_{i,j}(t_e)$, is less than the total flux out of the cell1502 times the timestep divided by the cell area. Using (\autoref{eq:DYN_wd_continuity_2}) this1503 condition is1504 1505 \begin{equation}1506 \label{eq:DYN_wd_continuity_if}1507 h_{i,j}(t_e) - \mathrm{rn\_wdmin1} < \frac{\Delta t}{e_1 e_2} ( \mathrm{zzflxp}^{(m)}_{i,j} + \mathrm{zzflxn}^{(m)}_{i,j} ) .1508 \end{equation}1509 1510 Rearranging (\autoref{eq:DYN_wd_continuity_if}) we can obtain an expression for the maximum1511 outward flux that can be allowed and still maintain the minimum wet depth:1512 1513 \begin{equation}1514 \label{eq:DYN_wd_max_flux}1515 \begin{split}1516 \mathrm{zzflxp}^{(m+1)}_{i,j} = \Big[ (h_{i,j}(t_e) & - \mathrm{rn\_wdmin1} - \mathrm{rn\_wdmin2}) \frac{e_1 e_2}{\Delta t} \phantom{]} \\1517 \phantom{[} & - \mathrm{zzflxn}^{(m)}_{i,j} \Big]1518 \end{split}1519 \end{equation}1520 1521 Note a small tolerance ($\mathrm{rn\_wdmin2}$) has been introduced here {\itshape [Q: Why is1522 this necessary/desirable?]}. Substituting from (\autoref{eq:DYN_wd_continuity_coef}) gives an1523 expression for the coefficient needed to multiply the outward flux at this cell in order1524 to avoid drying.1525 1526 \begin{equation}1527 \label{eq:DYN_wd_continuity_nxtcoef}1528 \begin{split}1529 \mathrm{zcoef}^{(m+1)}_{i,j} = \Big[ (h_{i,j}(t_e) & - \mathrm{rn\_wdmin1} - \mathrm{rn\_wdmin2}) \frac{e_1 e_2}{\Delta t} \phantom{]} \\1530 \phantom{[} & - \mathrm{zzflxn}^{(m)}_{i,j} \Big] \frac{1}{ \mathrm{zzflxp}^{(0)}_{i,j} }1531 \end{split}1532 \end{equation}1533 1534 Only the outward flux components are altered but, of course, outward fluxes from one cell1535 are inward fluxes to adjacent cells and the balance in these cells may need subsequent1536 adjustment; hence the iterative nature of this scheme. Note, for example, that the flux1537 across the ``eastern'' face of the $(i,j)$th cell is only updated at the $m+1$th iteration1538 if that flux at the $m$th iteration is out of the $(i,j)$th cell. If that is the case then1539 the flux across that face is into the $(i+1,j)$ cell and that flux will not be updated by1540 the calculation for the $(i+1,j)$th cell. In this sense the updates to the fluxes across1541 the faces of the cells do not ``compete'' (they do not over-write each other) and one1542 would expect the scheme to converge relatively quickly. The scheme is flux based so1543 conserves mass. It also conserves constant tracers for the same reason that the1544 directional limiter does.1545 1546 1547 %----------------------------------------------------------------------------------------1548 % Surface pressure gradients1549 %----------------------------------------------------------------------------------------1550 \subsubsection[Modification of surface pressure gradients (\textit{dynhpg.F90})]{Modification of surface pressure gradients (\mdl{dynhpg})}1551 \label{subsec:DYN_wd_il_spg}1552 1553 At ``dry'' points the water depth is usually close to $\mathrm{rn\_wdmin1}$. If the1554 topography is sloping at these points the sea-surface will have a similar slope and there1555 will hence be very large horizontal pressure gradients at these points. The WAD modifies1556 the magnitude but not the sign of the surface pressure gradients (zhpi and zhpj) at such1557 points by mulitplying them by positive factors (zcpx and zcpy respectively) that lie1558 between $0$ and $1$.1559 1560 We describe how the scheme works for the ``eastward'' pressure gradient, zhpi, calculated1561 at the $(i,j)$th $u$-point. The scheme uses the ht\_wd depths and surface heights at the1562 neighbouring $(i+1,j)$ and $(i,j)$ tracer points. zcpx is calculated using two logicals1563 variables, $\mathrm{ll\_tmp1}$ and $\mathrm{ll\_tmp2}$ which are evaluated for each grid1564 column. The three possible combinations are illustrated in \autoref{fig:DYN_WAD_dynhpg}.1565 1566 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>1567 \begin{figure}[!ht]1568 \centering1569 \includegraphics[width=0.66\textwidth]{Fig_WAD_dynhpg}1570 \caption[Combinations controlling the limiting of the horizontal pressure gradient in1571 wetting and drying regimes]{1572 Three possible combinations of the logical variables controlling the1573 limiting of the horizontal pressure gradient in wetting and drying regimes}1574 \label{fig:DYN_WAD_dynhpg}1575 \end{figure}1576 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>1577 1578 The first logical, $\mathrm{ll\_tmp1}$, is set to true if and only if the water depth at1579 both neighbouring points is greater than $\mathrm{rn\_wdmin1} + \mathrm{rn\_wdmin2}$ and1580 the minimum height of the sea surface at the two points is greater than the maximum height1581 of the topography at the two points:1582 1583 \begin{equation}1584 \label{eq:DYN_ll_tmp1}1585 \begin{split}1586 \mathrm{ll\_tmp1} = & \mathrm{MIN(sshn(ji,jj), sshn(ji+1,jj))} > \\1587 & \quad \mathrm{MAX(-ht\_wd(ji,jj), -ht\_wd(ji+1,jj))\ .and.} \\1588 & \mathrm{MAX(sshn(ji,jj) + ht\_wd(ji,jj),} \\1589 & \mathrm{\phantom{MAX(}sshn(ji+1,jj) + ht\_wd(ji+1,jj))} >\\1590 & \quad\quad\mathrm{rn\_wdmin1 + rn\_wdmin2 }1591 \end{split}1592 \end{equation}1593 1594 The second logical, $\mathrm{ll\_tmp2}$, is set to true if and only if the maximum height1595 of the sea surface at the two points is greater than the maximum height of the topography1596 at the two points plus $\mathrm{rn\_wdmin1} + \mathrm{rn\_wdmin2}$1597 1598 \begin{equation}1599 \label{eq:DYN_ll_tmp2}1600 \begin{split}1601 \mathrm{ ll\_tmp2 } = & \mathrm{( ABS( sshn(ji,jj) - sshn(ji+1,jj) ) > 1.E-12 )\ .AND.}\\1602 & \mathrm{( MAX(sshn(ji,jj), sshn(ji+1,jj)) > } \\1603 & \mathrm{\phantom{(} MAX(-ht\_wd(ji,jj), -ht\_wd(ji+1,jj)) + rn\_wdmin1 + rn\_wdmin2}) .1604 \end{split}1605 \end{equation}1606 1607 If $\mathrm{ll\_tmp1}$ is true then the surface pressure gradient, zhpi at the $(i,j)$1608 point is unmodified. If both logicals are false zhpi is set to zero.1609 1610 If $\mathrm{ll\_tmp1}$ is true and $\mathrm{ll\_tmp2}$ is false then the surface pressure1611 gradient is multiplied through by zcpx which is the absolute value of the difference in1612 the water depths at the two points divided by the difference in the surface heights at the1613 two points. Thus the sign of the sea surface height gradient is retained but the magnitude1614 of the pressure force is determined by the difference in water depths rather than the1615 difference in surface height between the two points. Note that dividing by the difference1616 between the sea surface heights can be problematic if the heights approach parity. An1617 additional condition is applied to $\mathrm{ ll\_tmp2 }$ to ensure it is .false. in such1618 conditions.1619 1620 \subsubsection[Additional considerations (\textit{usrdef\_zgr.F90})]{Additional considerations (\mdl{usrdef\_zgr})}1621 \label{subsec:DYN_WAD_additional}1622 1623 In the very shallow water where wetting and drying occurs the parametrisation of1624 bottom drag is clearly very important. In order to promote stability1625 it is sometimes useful to calculate the bottom drag using an implicit time-stepping approach.1626 1627 Suitable specifcation of the surface heat flux in wetting and drying domains in forced and1628 coupled simulations needs further consideration. In order to prevent freezing or boiling1629 in uncoupled integrations the net surface heat fluxes need to be appropriately limited.1630 1631 %----------------------------------------------------------------------------------------1632 % The WAD test cases1633 %----------------------------------------------------------------------------------------1634 \subsection[The WAD test cases (\textit{usrdef\_zgr.F90})]{The WAD test cases (\mdl{usrdef\_zgr})}1635 \label{subsec:DYN_WAD_test_cases}1636 1637 See the WAD tests MY\_DOC documention for details of the WAD test cases.1638 1639 1640 1641 % ================================================================1642 1135 % Time evolution term 1643 % ================================================================1644 \section[Time evolution term (\textit{dynnxt.F90})]{Time evolution term (\protect\mdl{dynnxt})}1645 \label{sec:DYN_nxt}1646 1647 %----------------------------------------------namdom----------------------------------------------------1648 1649 %-------------------------------------------------------------------------------------------------------------1650 1651 Options are defined through the \nam{dom}{dom} namelist variables.1652 The general framework for dynamics time stepping is a leap-frog scheme,1653 \ie\ a three level centred time scheme associated with an Asselin time filter (cf. \autoref{chap:TD}).1654 The scheme is applied to the velocity, except when1655 using the flux form of momentum advection (cf. \autoref{sec:DYN_adv_cor_flux})1656 in the variable volume case (\texttt{vvl?} defined),1657 where it has to be applied to the thickness weighted velocity (see \autoref{sec:SCOORD_momentum})1658 1659 $\bullet$ vector invariant form or linear free surface1660 (\np[=.true.]{ln_dynhpg_vec}{ln\_dynhpg\_vec} ; \texttt{vvl?} not defined):1661 \[1662 % \label{eq:DYN_nxt_vec}1663 \left\{1664 \begin{aligned}1665 &u^{t+\rdt} = u_f^{t-\rdt} + 2\rdt \ \text{RHS}_u^t \\1666 &u_f^t \;\quad = u^t+\gamma \,\left[ {u_f^{t-\rdt} -2u^t+u^{t+\rdt}} \right]1667 \end{aligned}1668 \right.1669 \]1670 1671 $\bullet$ flux form and nonlinear free surface1672 (\np[=.false.]{ln_dynhpg_vec}{ln\_dynhpg\_vec} ; \texttt{vvl?} defined):1673 \[1674 % \label{eq:DYN_nxt_flux}1675 \left\{1676 \begin{aligned}1677 &\left(e_{3u}\,u\right)^{t+\rdt} = \left(e_{3u}\,u\right)_f^{t-\rdt} + 2\rdt \; e_{3u} \;\text{RHS}_u^t \\1678 &\left(e_{3u}\,u\right)_f^t \;\quad = \left(e_{3u}\,u\right)^t1679 +\gamma \,\left[ {\left(e_{3u}\,u\right)_f^{t-\rdt} -2\left(e_{3u}\,u\right)^t+\left(e_{3u}\,u\right)^{t+\rdt}} \right]1680 \end{aligned}1681 \right.1682 \]1683 where RHS is the right hand side of the momentum equation,1684 the subscript $f$ denotes filtered values and $\gamma$ is the Asselin coefficient.1685 $\gamma$ is initialized as \np{nn_atfp}{nn\_atfp} (namelist parameter).1686 Its default value is \np[=10.e-3]{nn_atfp}{nn\_atfp}.1687 In both cases, the modified Asselin filter is not applied since perfect conservation is not an issue for1688 the momentum equations.1689 1690 Note that with the filtered free surface,1691 the update of the \textit{after} velocities is done in the \mdl{dynsp\_flt} module,1692 and only array swapping and Asselin filtering is done in \mdl{dynnxt}.1693 1694 \onlyinsubfile{\input{../../global/epilogue}}1695 1696 \end{document} -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_LBC.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter — Lateral Boundary Condition (LBC)6 % ================================================================7 4 \chapter{Lateral Boundary Condition (LBC)} 8 5 \label{chap:LBC} … … 10 7 \chaptertoc 11 8 12 \newpage13 14 9 %gm% add here introduction to this chapter 15 10 16 % ================================================================17 % Boundary Condition at the Coast18 % ================================================================19 11 \section[Boundary condition at the coast (\forcode{rn_shlat})]{Boundary condition at the coast (\protect\np{rn_shlat}{rn\_shlat})} 20 12 \label{sec:LBC_coast} … … 68 60 (normal velocity $u$ remains zero at the coast) (\autoref{fig:LBC_uv}). 69 61 70 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>71 62 \begin{figure}[!t] 72 63 \centering … … 77 68 \label{fig:LBC_uv} 78 69 \end{figure} 79 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>80 70 81 71 For momentum the situation is a bit more complex as two boundary conditions must be provided along the coast … … 95 85 These are: 96 86 97 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>98 87 \begin{figure}[!p] 99 88 \centering … … 108 97 \label{fig:LBC_shlat} 109 98 \end{figure} 110 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>111 99 112 100 \begin{description} 113 101 114 \item [free-slip boundary condition ({\np[=0]{rn_shlat}{rn\_shlat}})] the tangential velocity at102 \item [free-slip boundary condition ({\np[=0]{rn_shlat}{rn\_shlat}})] the tangential velocity at 115 103 the coastline is equal to the offshore velocity, 116 104 \ie\ the normal derivative of the tangential velocity is zero at the coast, … … 118 106 (\autoref{fig:LBC_shlat}-a). 119 107 120 \item [no-slip boundary condition ({\np[=2]{rn_shlat}{rn\_shlat}})] the tangential velocity vanishes at the coastline.108 \item [no-slip boundary condition ({\np[=2]{rn_shlat}{rn\_shlat}})] the tangential velocity vanishes at the coastline. 121 109 Assuming that the tangential velocity decreases linearly from 122 110 the closest ocean velocity grid point to the coastline, … … 139 127 \] 140 128 141 \item ["partial" free-slip boundary condition (0$<$\np{rn_shlat}{rn\_shlat}$<$2)] the tangential velocity at129 \item ["partial" free-slip boundary condition (0$<$\np{rn_shlat}{rn\_shlat}$<$2)] the tangential velocity at 142 130 the coastline is smaller than the offshore velocity, \ie\ there is a lateral friction but 143 131 not strong enough to make the tangential velocity at the coast vanish (\autoref{fig:LBC_shlat}-c). 144 132 This can be selected by providing a value of mask$_{f}$ strictly inbetween $0$ and $2$. 145 133 146 \item ["strong" no-slip boundary condition (2$<$\np{rn_shlat}{rn\_shlat})] the viscous boundary layer is assumed to134 \item ["strong" no-slip boundary condition (2$<$\np{rn_shlat}{rn\_shlat})] the viscous boundary layer is assumed to 147 135 be smaller than half the grid size (\autoref{fig:LBC_shlat}-d). 148 136 The friction is thus larger than in the no-slip case. … … 154 142 it is only applied next to the coast where the minimum water depth can be quite shallow. 155 143 156 157 % ================================================================158 % Boundary Condition around the Model Domain159 % ================================================================160 144 \section[Model domain boundary condition (\forcode{jperio})]{Model domain boundary condition (\protect\jp{jperio})} 161 145 \label{sec:LBC_jperio} … … 166 150 The north-fold boundary condition is associated with the 3-pole ORCA mesh. 167 151 168 % -------------------------------------------------------------------------------------------------------------169 % Closed, cyclic (\jp{jperio}\forcode{ = 0..2})170 % -------------------------------------------------------------------------------------------------------------171 152 \subsection[Closed, cyclic (\forcode{=0,1,2,7})]{Closed, cyclic (\protect\jp{jperio}\forcode{=0,1,2,7})} 172 153 \label{subsec:LBC_jperio012} … … 182 163 \begin{description} 183 164 184 \item [For closed boundary (\jp{jperio}\forcode{=0})],165 \item [For closed boundary (\jp{jperio}\forcode{=0})], 185 166 solid walls are imposed at all model boundaries: 186 167 first and last rows and columns are set to zero. 187 168 188 \item [For cyclic east-west boundary (\jp{jperio}\forcode{=1})],169 \item [For cyclic east-west boundary (\jp{jperio}\forcode{=1})], 189 170 first and last rows are set to zero (closed) whilst the first column is set to 190 171 the value of the last-but-one column and the last column to the value of the second one … … 192 173 Whatever flows out of the eastern (western) end of the basin enters the western (eastern) end. 193 174 194 \item [For cyclic north-south boundary (\jp{jperio}\forcode{=2})],175 \item [For cyclic north-south boundary (\jp{jperio}\forcode{=2})], 195 176 first and last columns are set to zero (closed) whilst the first row is set to 196 177 the value of the last-but-one row and the last row to the value of the second one … … 198 179 Whatever flows out of the northern (southern) end of the basin enters the southern (northern) end. 199 180 200 \item [Bi-cyclic east-west and north-south boundary (\jp{jperio}\forcode{=7})] combines cases 1 and 2.181 \item [Bi-cyclic east-west and north-south boundary (\jp{jperio}\forcode{=7})] combines cases 1 and 2. 201 182 202 183 \end{description} 203 184 204 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>205 185 \begin{figure}[!t] 206 186 \centering … … 210 190 \label{fig:LBC_jperio} 211 191 \end{figure} 212 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 213 214 % ------------------------------------------------------------------------------------------------------------- 215 % North fold (\textit{jperio = 3 }to $6)$ 216 % ------------------------------------------------------------------------------------------------------------- 192 217 193 \subsection[North-fold (\forcode{=3,6})]{North-fold (\protect\jp{jperio}\forcode{=3,6})} 218 194 \label{subsec:LBC_north_fold} … … 224 200 Further information can be found in \mdl{lbcnfd} module which applies the north fold boundary condition. 225 201 226 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>227 202 \begin{figure}[!t] 228 203 \centering … … 234 209 \label{fig:LBC_North_Fold_T} 235 210 \end{figure} 236 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 237 238 % ==================================================================== 239 % Exchange with neighbouring processors 240 % ==================================================================== 211 241 212 \section[Exchange with neighbouring processors (\textit{lbclnk.F90}, \textit{lib\_mpp.F90})]{Exchange with neighbouring processors (\protect\mdl{lbclnk}, \protect\mdl{lib\_mpp})} 242 213 \label{sec:LBC_mpp} … … 284 255 many communications during 1 time step of the model.\\ 285 256 286 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>287 257 \begin{figure}[!t] 288 258 \centering … … 291 261 \label{fig:LBC_mpp} 292 262 \end{figure} 293 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>294 263 295 264 In \NEMO, the splitting is regular and arithmetic. … … 339 308 When land processors are eliminated, the value corresponding to these locations in the model output files is undefined. \np{ln_mskland}{ln\_mskland} must be activated in order avoid Not a Number values in output files. Note that it is better to not eliminate land processors when creating a meshmask file (\ie\ when setting a non-zero value to \np{nn_msh}{nn\_msh}). 340 309 341 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>342 310 \begin{figure}[!ht] 343 311 \centering … … 352 320 \label{fig:LBC_mppini2} 353 321 \end{figure} 354 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 355 356 357 % ==================================================================== 358 % Unstructured open boundaries BDY 359 % ==================================================================== 322 360 323 \section{Unstructured open boundary conditions (BDY)} 361 324 \label{sec:LBC_bdy} … … 411 374 412 375 \begin{description} 413 \item [\forcode{'none'}:] No boundary condition applied.376 \item [\forcode{'none'}:] No boundary condition applied. 414 377 So the solution will ``see'' the land points around the edge of the edge of the domain. 415 \item [\forcode{'specified'}:] Specified boundary condition applied (only available for baroclinic velocity and tracer variables).416 \item [\forcode{'neumann'}:] Value at the boundary are duplicated (No gradient). Only available for baroclinic velocity and tracer variables.417 \item [\forcode{'frs'}:] Flow Relaxation Scheme (FRS) available for all variables.418 \item [\forcode{'Orlanski'}:] Orlanski radiation scheme (fully oblique) for barotropic, baroclinic and tracer variables.419 \item [\forcode{'Orlanski_npo'}:] Orlanski radiation scheme for barotropic, baroclinic and tracer variables.420 \item [\forcode{'flather'}:] Flather radiation scheme for the barotropic variables only.378 \item [\forcode{'specified'}:] Specified boundary condition applied (only available for baroclinic velocity and tracer variables). 379 \item [\forcode{'neumann'}:] Value at the boundary are duplicated (No gradient). Only available for baroclinic velocity and tracer variables. 380 \item [\forcode{'frs'}:] Flow Relaxation Scheme (FRS) available for all variables. 381 \item [\forcode{'Orlanski'}:] Orlanski radiation scheme (fully oblique) for barotropic, baroclinic and tracer variables. 382 \item [\forcode{'Orlanski_npo'}:] Orlanski radiation scheme for barotropic, baroclinic and tracer variables. 383 \item [\forcode{'flather'}:] Flather radiation scheme for the barotropic variables only. 421 384 \end{description} 422 385 … … 620 583 Only one mask file is used even if multiple boundary sets are defined. 621 584 622 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>623 585 \begin{figure}[!t] 624 586 \centering … … 627 589 \label{fig:LBC_bdy_geom} 628 590 \end{figure} 629 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>630 591 631 592 %---------------------------------------------- … … 657 618 will re-order the data in old BDY data files. 658 619 659 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>660 620 \begin{figure}[!t] 661 621 \centering … … 665 625 \label{fig:LBC_nc_header} 666 626 \end{figure} 667 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>668 627 669 628 %---------------------------------------------- -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_LDF.tex
r11584 r11596 3 3 \begin{document} 4 4 5 % ================================================================6 % Chapter Lateral Ocean Physics (LDF)7 % ================================================================8 5 \chapter{Lateral Ocean Physics (LDF)} 9 6 \label{chap:LDF} 10 7 11 8 \chaptertoc 12 13 \newpage14 9 15 10 The lateral physics terms in the momentum and tracer equations have been described in \autoref{eq:MB_zdf} and … … 31 26 %-------------------------------------------------------------------------------------------------------------- 32 27 33 % ================================================================34 % Lateral Mixing Operator35 % ================================================================36 28 \section[Lateral mixing operators]{Lateral mixing operators} 37 29 \label{sec:LDF_op} … … 55 47 We stress again that from \NEMO\ 4, the simultaneous use Laplacian and Bilaplacian operators is not allowed. 56 48 57 % ================================================================58 % Direction of lateral Mixing59 % ================================================================60 49 \section[Direction of lateral mixing (\textit{ldfslp.F90})]{Direction of lateral mixing (\protect\mdl{ldfslp})} 61 50 \label{sec:LDF_slp} … … 151 140 \begin{description} 152 141 153 \item [$z$-coordinate with full step: ]142 \item [$z$-coordinate with full step: ] 154 143 in \autoref{eq:LDF_slp_iso} the densities appearing in the $i$ and $j$ derivatives are taken at the same depth, 155 144 thus the $in situ$ density can be used. … … 158 147 (see \autoref{subsec:TRA_bn2}). 159 148 160 \item [$z$-coordinate with partial step: ]149 \item [$z$-coordinate with partial step: ] 161 150 this case is identical to the full step case except that at partial step level, 162 151 the \emph{horizontal} density gradient is evaluated as described in \autoref{sec:TRA_zpshde}. 163 152 164 \item [$s$- or hybrid $s$-$z$- coordinate: ]153 \item [$s$- or hybrid $s$-$z$- coordinate: ] 165 154 in the current release of \NEMO, iso-neutral mixing is only employed for $s$-coordinates if 166 155 the Griffies scheme is used (\np[=.true.]{ln_traldf_triad}{ln\_traldf\_triad}; … … 234 223 contrary to the \citet{griffies.gnanadesikan.ea_JPO98} operator which has that property. 235 224 236 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>237 225 \begin{figure}[!ht] 238 226 \centering … … 241 229 \label{fig:LDF_ZDF1} 242 230 \end{figure} 243 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>244 231 245 232 %There are three additional questions about the slope calculation. … … 249 236 250 237 %from griffies: chapter 13.1.... 251 252 253 238 254 239 % In addition and also for numerical stability reasons \citep{cox_OM87, griffies_bk04}, … … 264 249 \colorbox{yellow}{The way slopes are tapered has be checked. Not sure that this is still what is actually done.} 265 250 266 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>267 251 \begin{figure}[!ht] 268 252 \centering … … 286 270 \label{fig:LDF_eiv_slp} 287 271 \end{figure} 288 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>289 272 290 273 \colorbox{yellow}{add here a discussion about the flattening of the slopes, vs tapering the coefficient.} … … 316 299 (see \autoref{sec:LBC_coast}). 317 300 318 319 % ================================================================320 % Lateral Mixing Coefficients321 % ================================================================322 301 \section[Lateral mixing coefficient (\forcode{nn_aht_ijk_t} \& \forcode{nn_ahm_ijk_t})]{Lateral mixing coefficient (\protect\np{nn_aht_ijk_t}{nn\_aht\_ijk\_t} \& \protect\np{nn_ahm_ijk_t}{nn\_ahm\_ijk\_t})} 323 302 \label{sec:LDF_coef} … … 467 446 (\autoref{sec:INVARIANTS_dynldf_properties}). 468 447 469 % ================================================================470 % Eddy Induced Mixing471 % ================================================================472 448 \section[Eddy induced velocity (\forcode{ln_ldfeiv})]{Eddy induced velocity (\protect\np{ln_ldfeiv}{ln\_ldfeiv})} 473 449 … … 483 459 484 460 %-------------------------------------------------------------------------------------------------------------- 485 486 461 487 462 %%gm from Triad appendix : to be incorporated.... … … 538 513 In case of setting \np[=.true.]{ln_traldf_triad}{ln\_traldf\_triad}, a skew form of the eddy induced advective fluxes is used, which is described in \autoref{apdx:TRIADS}. 539 514 540 % ================================================================541 % Mixed layer eddies542 % ================================================================543 515 \section[Mixed layer eddies (\forcode{ln_mle})]{Mixed layer eddies (\protect\np{ln_mle}{ln\_mle})} 544 516 \label{sec:LDF_mle} -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_OBS.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter observation operator (OBS)6 % ================================================================7 4 \chapter{Observation and Model Comparison (OBS)} 8 5 \label{chap:OBS} … … 22 19 \end{figure} 23 20 24 \newpage25 26 21 The observation and model comparison code, the observation operator (OBS), reads in observation files 27 22 (profile temperature and salinity, sea surface temperature, sea level anomaly, sea ice concentration, and velocity) and calculates an interpolated model equivalent value at the observation location and nearest model time step. … … 60 55 In \autoref{sec:OBS_obsutils} we describe some utilities to help work with the files produced by the OBS code. 61 56 62 % ================================================================63 % Example64 % ================================================================65 57 \section{Running the observation operator code example} 66 58 \label{sec:OBS_example} … … 610 602 \begin{enumerate} 611 603 612 \item [1.] {\bfseries Great-Circle distance-weighted interpolation.}604 \item [1.] {\bfseries Great-Circle distance-weighted interpolation.} 613 605 The weights are computed as a function of the great-circle distance $s(P, \cdot)$ between $P$ and 614 606 the model grid points $A$, $B$ etc. … … 655 647 \end{alignat*} 656 648 657 \item [2.] {\bfseries Great-Circle distance-weighted interpolation with small angle approximation.}649 \item [2.] {\bfseries Great-Circle distance-weighted interpolation with small angle approximation.} 658 650 Similar to the previous interpolation but with the distance $s$ computed as 659 651 \begin{alignat*}{2} … … 665 657 where $M$ corresponds to $A$, $B$, $C$ or $D$. 666 658 667 \item [3.] {\bfseries Bilinear interpolation for a regular spaced grid.}659 \item [3.] {\bfseries Bilinear interpolation for a regular spaced grid.} 668 660 The interpolation is split into two 1D interpolations in the longitude and latitude directions, respectively. 669 661 670 \item [4.] {\bfseries Bilinear remapping interpolation for a general grid.}662 \item [4.] {\bfseries Bilinear remapping interpolation for a general grid.} 671 663 An iterative scheme that involves first mapping a quadrilateral cell into 672 664 a cell with coordinates (0,0), (1,0), (0,1) and (1,1). … … 697 689 \autoref{fig:OBS_avgrec} and~\autoref{fig:OBS_avgrad}. 698 690 699 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>700 691 \begin{figure} 701 692 \centering … … 708 699 % >>>>>>>>>>>>>>>>>>>>>>>>>>>> 709 700 710 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>711 701 \begin{figure} 712 702 \centering … … 717 707 \label{fig:OBS_avgrad} 718 708 \end{figure} 719 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>720 721 709 722 710 \subsection{Grid search} … … 786 774 \subsubsection{Geographical distribution of observations among processors} 787 775 788 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>789 776 \begin{figure} 790 777 \centering … … 795 782 \label{fig:OBS_local} 796 783 \end{figure} 797 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>798 784 799 785 This is the simplest option in which the observations are distributed according to … … 814 800 \subsubsection{Round-robin distribution of observations among processors} 815 801 816 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>817 802 \begin{figure} 818 803 \centering … … 823 808 \label{fig:OBS_global} 824 809 \end{figure} 825 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>826 810 827 811 An alternative approach is to distribute the observations equally among processors and … … 843 827 844 828 For profile observation types we do both vertical and horizontal interpolation. \NEMO\ has a generalised vertical coordinate system this means the vertical level depths can vary with location. Therefore, it is necessary first to perform vertical interpolation of the model value to the observation depths for each of the four surrounding grid points. After this the model values, at these points, at the observation depth, are horizontally interpolated to the observation location. 845 846 \newpage847 848 % ================================================================849 % Standalone observation operator documentation850 % ================================================================851 829 852 830 %\usepackage{framed} … … 957 935 climatologies with the same set of observations. 958 936 This approach is referred to as \emph{Class 4} since it is the fourth metric defined by the GODAE intercomparison project. This requires multiple runs of the SAO and running an additional utility (not currently in the \NEMO\ repository) to combine the feedback files into one class 4 file. 959 960 \newpage961 937 962 938 \section{Observation utilities} … … 1146 1122 The rightmost group of buttons will print the plot window as a postscript, save it as png, or exit from dataplot. 1147 1123 1148 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1149 1124 \begin{figure} 1150 1125 \centering … … 1153 1128 \label{fig:OBS_dataplotmain} 1154 1129 \end{figure} 1155 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1156 1130 1157 1131 If a profile point is clicked with the mouse button a plot of the observation and background values as 1158 1132 a function of depth (\autoref{fig:OBS_dataplotprofile}). 1159 1133 1160 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1161 1134 \begin{figure} 1162 1135 \centering … … 1166 1139 \label{fig:OBS_dataplotprofile} 1167 1140 \end{figure} 1168 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1169 1141 1170 1142 \onlyinsubfile{\input{../../global/epilogue}} -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_SBC.tex
r11584 r11596 3 3 \begin{document} 4 4 5 % ================================================================6 % Chapter —— Surface Boundary Condition (SBC, SAS, ISF, ICB)7 % ================================================================8 5 \chapter{Surface Boundary Condition (SBC, SAS, ISF, ICB)} 9 6 \label{chap:SBC} 10 7 11 8 \chaptertoc 12 13 \newpage14 9 15 10 %---------------------------------------namsbc-------------------------------------------------- … … 25 20 26 21 \begin{itemize} 27 \item 28 the two components of the surface ocean stress $\left( {\tau_u \;,\;\tau_v} \right)$ 29 \item 30 the incoming solar and non solar heat fluxes $\left( {Q_{ns} \;,\;Q_{sr} } \right)$ 31 \item 32 the surface freshwater budget $\left( {\textit{emp}} \right)$ 33 \item 34 the surface salt flux associated with freezing/melting of seawater $\left( {\textit{sfx}} \right)$ 35 \item 36 the atmospheric pressure at the ocean surface $\left( p_a \right)$ 22 \item the two components of the surface ocean stress $\left( {\tau_u \;,\;\tau_v} \right)$ 23 \item the incoming solar and non solar heat fluxes $\left( {Q_{ns} \;,\;Q_{sr} } \right)$ 24 \item the surface freshwater budget $\left( {\textit{emp}} \right)$ 25 \item the surface salt flux associated with freezing/melting of seawater $\left( {\textit{sfx}} \right)$ 26 \item the atmospheric pressure at the ocean surface $\left( p_a \right)$ 37 27 \end{itemize} 38 28 … … 41 31 42 32 \begin{itemize} 43 \item 44 a bulk formulation (\np[=.true.]{ln_blk}{ln\_blk} with four possible bulk algorithms), 45 \item 46 a flux formulation (\np[=.true.]{ln_flx}{ln\_flx}), 47 \item 48 a coupled or mixed forced/coupled formulation (exchanges with a atmospheric model via the OASIS coupler), 33 \item a bulk formulation (\np[=.true.]{ln_blk}{ln\_blk} with four possible bulk algorithms), 34 \item a flux formulation (\np[=.true.]{ln_flx}{ln\_flx}), 35 \item a coupled or mixed forced/coupled formulation (exchanges with a atmospheric model via the OASIS coupler), 49 36 (\np{ln_cpl}{ln\_cpl} or \np[=.true.]{ln_mixcpl}{ln\_mixcpl}), 50 \item 51 a user defined formulation (\np[=.true.]{ln_usr}{ln\_usr}). 37 \item a user defined formulation (\np[=.true.]{ln_usr}{ln\_usr}). 52 38 \end{itemize} 53 39 … … 66 52 67 53 \begin{itemize} 68 \item 69 the rotation of vector components supplied relative to an east-north coordinate system onto 54 \item the rotation of vector components supplied relative to an east-north coordinate system onto 70 55 the local grid directions in the model, 71 \item 72 the use of a land/sea mask for input fields (\np[=.true.]{nn_lsm}{nn\_lsm}), 73 \item 74 the addition of a surface restoring term to observed SST and/or SSS (\np[=.true.]{ln_ssr}{ln\_ssr}), 75 \item 76 the modification of fluxes below ice-covered areas (using climatological ice-cover or a sea-ice model) 56 \item the use of a land/sea mask for input fields (\np[=.true.]{nn_lsm}{nn\_lsm}), 57 \item the addition of a surface restoring term to observed SST and/or SSS (\np[=.true.]{ln_ssr}{ln\_ssr}), 58 \item the modification of fluxes below ice-covered areas (using climatological ice-cover or a sea-ice model) 77 59 (\np[=0..3]{nn_ice}{nn\_ice}), 78 \item 79 the addition of river runoffs as surface freshwater fluxes or lateral inflow (\np[=.true.]{ln_rnf}{ln\_rnf}), 80 \item 81 the addition of ice-shelf melting as lateral inflow (parameterisation) or 60 \item the addition of river runoffs as surface freshwater fluxes or lateral inflow (\np[=.true.]{ln_rnf}{ln\_rnf}), 61 \item the addition of ice-shelf melting as lateral inflow (parameterisation) or 82 62 as fluxes applied at the land-ice ocean interface (\np[=.true.]{ln_isf}{ln\_isf}), 83 \item 84 the addition of a freshwater flux adjustment in order to avoid a mean sea-level drift 63 \item the addition of a freshwater flux adjustment in order to avoid a mean sea-level drift 85 64 (\np[=0..2]{nn_fwb}{nn\_fwb}), 86 \item 87 the transformation of the solar radiation (if provided as daily mean) into an analytical diurnal cycle 65 \item the transformation of the solar radiation (if provided as daily mean) into an analytical diurnal cycle 88 66 (\np[=.true.]{ln_dm2dc}{ln\_dm2dc}), 89 \item 90 the activation of wave effects from an external wave model (\np[=.true.]{ln_wave}{ln\_wave}), 91 \item 92 a neutral drag coefficient is read from an external wave model (\np[=.true.]{ln_cdgw}{ln\_cdgw}), 93 \item 94 the Stokes drift from an external wave model is accounted for (\np[=.true.]{ln_sdw}{ln\_sdw}), 95 \item 96 the choice of the Stokes drift profile parameterization (\np[=0..2]{nn_sdrift}{nn\_sdrift}), 97 \item 98 the surface stress given to the ocean is modified by surface waves (\np[=.true.]{ln_tauwoc}{ln\_tauwoc}), 99 \item 100 the surface stress given to the ocean is read from an external wave model (\np[=.true.]{ln_tauw}{ln\_tauw}), 101 \item 102 the Stokes-Coriolis term is included (\np[=.true.]{ln_stcor}{ln\_stcor}), 103 \item 104 the light penetration in the ocean (\np[=.true.]{ln_traqsr}{ln\_traqsr} with namelist \nam{tra_qsr}{tra\_qsr}), 105 \item 106 the atmospheric surface pressure gradient effect on ocean and ice dynamics (\np[=.true.]{ln_apr_dyn}{ln\_apr\_dyn} with namelist \nam{sbc_apr}{sbc\_apr}), 107 \item 108 the effect of sea-ice pressure on the ocean (\np[=.true.]{ln_ice_embd}{ln\_ice\_embd}). 67 \item the activation of wave effects from an external wave model (\np[=.true.]{ln_wave}{ln\_wave}), 68 \item a neutral drag coefficient is read from an external wave model (\np[=.true.]{ln_cdgw}{ln\_cdgw}), 69 \item the Stokes drift from an external wave model is accounted for (\np[=.true.]{ln_sdw}{ln\_sdw}), 70 \item the choice of the Stokes drift profile parameterization (\np[=0..2]{nn_sdrift}{nn\_sdrift}), 71 \item the surface stress given to the ocean is modified by surface waves (\np[=.true.]{ln_tauwoc}{ln\_tauwoc}), 72 \item the surface stress given to the ocean is read from an external wave model (\np[=.true.]{ln_tauw}{ln\_tauw}), 73 \item the Stokes-Coriolis term is included (\np[=.true.]{ln_stcor}{ln\_stcor}), 74 \item the light penetration in the ocean (\np[=.true.]{ln_traqsr}{ln\_traqsr} with namelist \nam{tra_qsr}{tra\_qsr}), 75 \item the atmospheric surface pressure gradient effect on ocean and ice dynamics (\np[=.true.]{ln_apr_dyn}{ln\_apr\_dyn} with namelist \nam{sbc_apr}{sbc\_apr}), 76 \item the effect of sea-ice pressure on the ocean (\np[=.true.]{ln_ice_embd}{ln\_ice\_embd}). 109 77 \end{itemize} 110 78 … … 119 87 which provides additional sources of fresh water. 120 88 121 122 123 % ================================================================124 % Surface boundary condition for the ocean125 % ================================================================126 89 \section{Surface boundary condition for the ocean} 127 90 \label{sec:SBC_ocean} … … 155 118 $(ii)$ it changes the surface temperature and salinity through the heat and salt contents of 156 119 the mass exchanged with atmosphere, sea-ice and ice shelves. 157 158 120 159 121 %\colorbox{yellow}{Miss: } … … 185 147 these averaged fields are used to compute the surface fluxes at the frequency of \np{nn_fsbc}{nn\_fsbc} time-steps. 186 148 187 188 149 %-------------------------------------------------TABLE--------------------------------------------------- 189 150 \begin{table}[tb] … … 210 171 %\colorbox{yellow}{Penser a} mettre dans le restant l'info nn\_fsbc ET nn\_fsbc*rdt de sorte de reinitialiser la moyenne si on change la frequence ou le pdt 211 172 212 213 214 % ================================================================215 % Input Data216 % ================================================================217 173 \section{Input data generic interface} 218 174 \label{sec:SBC_input} … … 223 179 The module is designed with four main objectives in mind: 224 180 \begin{enumerate} 225 \item 226 optionally provide a time interpolation of the input data every specified model time-step, whatever their input frequency is, 181 \item optionally provide a time interpolation of the input data every specified model time-step, whatever their input frequency is, 227 182 and according to the different calendars available in the model. 228 \item 229 optionally provide an on-the-fly space interpolation from the native input data grid to the model grid. 230 \item 231 make the run duration independent from the period cover by the input files. 232 \item 233 provide a simple user interface and a rather simple developer interface by 183 \item optionally provide an on-the-fly space interpolation from the native input data grid to the model grid. 184 \item make the run duration independent from the period cover by the input files. 185 \item provide a simple user interface and a rather simple developer interface by 234 186 limiting the number of prerequisite informations. 235 187 \end{enumerate} … … 251 203 By default, the data are assumed to be in the same directory as the executable, so that cn\_dir='./'. 252 204 253 254 % -------------------------------------------------------------------------------------------------------------255 % Input Data specification (\mdl{fldread})256 % -------------------------------------------------------------------------------------------------------------257 205 \subsection[Input data specification (\textit{fldread.F90})]{Input data specification (\protect\mdl{fldread})} 258 206 \label{subsec:SBC_fldread} … … 265 213 where 266 214 \begin{description} 267 \item [File name]:215 \item [File name]: 268 216 the stem name of the NetCDF file to be opened. 269 217 This stem will be completed automatically by the model, with the addition of a '.nc' at its end and … … 301 249 %-------------------------------------------------------------------------------------------------------------- 302 250 303 304 \item[Record frequency]: 251 \item [Record frequency]: 305 252 the frequency of the records contained in the input file. 306 253 Its unit is in hours if it is positive (for example 24 for daily forcing) or in months if negative … … 309 256 On some computers, setting it to '24.' can be interpreted as 240! 310 257 311 \item [Variable name]:258 \item [Variable name]: 312 259 the name of the variable to be read in the input NetCDF file. 313 260 314 \item [Time interpolation]:261 \item [Time interpolation]: 315 262 a logical to activate, or not, the time interpolation. 316 263 If set to 'false', the forcing will have a steplike shape remaining constant during each forcing period. … … 322 269 linear interpolation will be performed between mid-day of two consecutive days. 323 270 324 \item [Climatological forcing]:271 \item [Climatological forcing]: 325 272 a logical to specify if a input file contains climatological forcing which can be cycle in time, 326 273 or an interannual forcing which will requires additional files if … … 328 275 See the above file naming strategy which impacts the expected name of the file to be opened. 329 276 330 \item [Open/close frequency]:277 \item [Open/close frequency]: 331 278 the frequency at which forcing files must be opened/closed. 332 279 Four cases are coded: … … 337 284 the experiment is not starting at the beginning of the year. 338 285 339 \item [Others]:286 \item [Others]: 340 287 'weights filename', 'pairing rotation' and 'land/sea mask' are associated with 341 288 on-the-fly interpolation which is described in \autoref{subsec:SBC_iof}. … … 378 325 a useful feature for user considering that it is too heavy to manipulate the complete file for year Y-1. 379 326 380 381 % -------------------------------------------------------------------------------------------------------------382 % Interpolation on the Fly383 % -------------------------------------------------------------------------------------------------------------384 327 \subsection{Interpolation on-the-fly} 385 328 \label{subsec:SBC_iof} … … 404 347 Note that nn\_lsm=0 forces the code to not apply the procedure, even if a land/sea mask file is supplied. 405 348 406 407 % -------------------------------------------------------------------------------------------------------------408 % Bilinear interpolation409 % -------------------------------------------------------------------------------------------------------------410 349 \subsubsection{Bilinear interpolation} 411 350 \label{subsec:SBC_iof_bilinear} … … 429 368 and wgt(1) corresponds to variable "wgt01" for example. 430 369 431 432 % -------------------------------------------------------------------------------------------------------------433 % Bicubic interpolation434 % -------------------------------------------------------------------------------------------------------------435 370 \subsubsection{Bicubic interpolation} 436 371 \label{subsec:SBC_iof_bicubic} … … 451 386 the spatial dependency has been included into the weights. 452 387 453 454 % -------------------------------------------------------------------------------------------------------------455 % Implementation456 % -------------------------------------------------------------------------------------------------------------457 388 \subsubsection{Implementation} 458 389 \label{subsec:SBC_iof_imp} … … 490 421 or is a copy of one from the first few columns on the opposite side of the grid (cyclical case). 491 422 492 493 % -------------------------------------------------------------------------------------------------------------494 % Limitations495 % -------------------------------------------------------------------------------------------------------------496 423 \subsubsection{Limitations} 497 424 \label{subsec:SBC_iof_lim} 498 425 499 426 \begin{enumerate} 500 \item 501 The case where input data grids are not logically rectangular (irregular grid case) has not been tested. 502 \item 503 This code is not guaranteed to produce positive definite answers from positive definite inputs when 427 \item The case where input data grids are not logically rectangular (irregular grid case) has not been tested. 428 \item This code is not guaranteed to produce positive definite answers from positive definite inputs when 504 429 a bicubic interpolation method is used. 505 \item 506 The cyclic condition is only applied on left and right columns, and not to top and bottom rows. 507 \item 508 The gradients across the ends of a cyclical grid assume that the grid spacing between 430 \item The cyclic condition is only applied on left and right columns, and not to top and bottom rows. 431 \item The gradients across the ends of a cyclical grid assume that the grid spacing between 509 432 the two columns involved are consistent with the weights used. 510 \item 511 Neither interpolation scheme is conservative. (There is a conservative scheme available in SCRIP, 433 \item Neither interpolation scheme is conservative. (There is a conservative scheme available in SCRIP, 512 434 but this has not been implemented.) 513 435 \end{enumerate} … … 520 442 (see the directory NEMOGCM/TOOLS/WEIGHTS). 521 443 522 523 % -------------------------------------------------------------------------------------------------------------524 % Standalone Surface Boundary Condition Scheme525 % -------------------------------------------------------------------------------------------------------------526 444 \subsection{Standalone surface boundary condition scheme (SAS)} 527 445 \label{subsec:SBC_SAS} … … 541 459 542 460 \begin{itemize} 543 \item 544 Multiple runs of the model are required in code development to 461 \item Multiple runs of the model are required in code development to 545 462 see the effect of different algorithms in the bulk formulae. 546 \item 547 The effect of different parameter sets in the ice model is to be examined. 548 \item 549 Development of sea-ice algorithms or parameterizations. 550 \item 551 Spinup of the iceberg floats 552 \item 553 Ocean/sea-ice simulation with both models running in parallel (\np[=.true.]{ln_mixcpl}{ln\_mixcpl}) 463 \item The effect of different parameter sets in the ice model is to be examined. 464 \item Development of sea-ice algorithms or parameterizations. 465 \item Spinup of the iceberg floats 466 \item Ocean/sea-ice simulation with both models running in parallel (\np[=.true.]{ln_mixcpl}{ln\_mixcpl}) 554 467 \end{itemize} 555 468 … … 562 475 563 476 \begin{itemize} 564 \item 565 \mdl{nemogcm}: 477 \item \mdl{nemogcm}: 566 478 This routine initialises the rest of the model and repeatedly calls the stp time stepping routine (\mdl{step}). 567 479 Since the ocean state is not calculated all associated initialisations have been removed. 568 \item 569 \mdl{step}: 480 \item \mdl{step}: 570 481 The main time stepping routine now only needs to call the sbc routine (and a few utility functions). 571 \item 572 \mdl{sbcmod}: 482 \item \mdl{sbcmod}: 573 483 This has been cut down and now only calculates surface forcing and the ice model required. 574 484 New surface modules that can function when only the surface level of the ocean state is defined can also be added 575 485 (\eg\ icebergs). 576 \item 577 \mdl{daymod}: 486 \item \mdl{daymod}: 578 487 No ocean restarts are read or written (though the ice model restarts are retained), 579 488 so calls to restart functions have been removed. 580 489 This also means that the calendar cannot be controlled by time in a restart file, 581 490 so the user must check that nn\_date0 in the model namelist is correct for his or her purposes. 582 \item 583 \mdl{stpctl}: 491 \item \mdl{stpctl}: 584 492 Since there is no free surface solver, references to it have been removed from \rou{stp\_ctl} module. 585 \item 586 \mdl{diawri}: 493 \item \mdl{diawri}: 587 494 All 3D data have been removed from the output. 588 495 The surface temperature, salinity and velocity components (which have been read in) are written along with … … 593 500 594 501 \begin{itemize} 595 \item 596 \mdl{sbcsas}: 502 \item \mdl{sbcsas}: 597 503 This module initialises the input files needed for reading temperature, salinity and 598 504 velocity arrays at the surface. … … 604 510 \end{itemize} 605 511 606 607 512 The user can also choose in the \nam{sbc_sas}{sbc\_sas} namelist to read the mean (nn\_fsbc time-step) fraction of solar net radiation absorbed in the 1st T level using 608 513 (\np[=.true.]{ln_flx}{ln\_flx}) and to provide 3D oceanic velocities instead of 2D ones (\np{ln_flx}{ln\_flx}\forcode{=.true.}). In that last case, only the 1st level will be read in. 609 514 610 611 612 % ================================================================613 % Flux formulation614 % ================================================================615 515 \section[Flux formulation (\textit{sbcflx.F90})]{Flux formulation (\protect\mdl{sbcflx})} 616 516 \label{sec:SBC_flx} … … 634 534 See \autoref{subsec:SBC_ssr} for its specification. 635 535 636 637 638 % ================================================================639 % Bulk formulation640 % ================================================================641 536 \section[Bulk formulation (\textit{sbcblk.F90})]{Bulk formulation (\protect\mdl{sbcblk})} 642 537 \label{sec:SBC_blk} … … 720 615 the namsbc\_blk namelist (see \autoref{subsec:SBC_fldread}). 721 616 722 723 % -------------------------------------------------------------------------------------------------------------724 % Ocean-Atmosphere Bulk formulae725 % -------------------------------------------------------------------------------------------------------------726 617 \subsection[Ocean-Atmosphere Bulk formulae (\textit{sbcblk\_algo\_coare.F90, sbcblk\_algo\_coare3p5.F90, sbcblk\_algo\_ecmwf.F90, sbcblk\_algo\_ncar.F90})]{Ocean-Atmosphere Bulk formulae (\mdl{sbcblk\_algo\_coare}, \mdl{sbcblk\_algo\_coare3p5}, \mdl{sbcblk\_algo\_ecmwf}, \mdl{sbcblk\_algo\_ncar})} 727 618 \label{subsec:SBC_blk_ocean} … … 731 622 their neutral transfer coefficients relationships with neutral wind. 732 623 \begin{itemize} 733 \item 734 NCAR (\np[=.true.]{ln_NCAR}{ln\_NCAR}): 624 \item NCAR (\np[=.true.]{ln_NCAR}{ln\_NCAR}): 735 625 The NCAR bulk formulae have been developed by \citet{large.yeager_rpt04}. 736 626 They have been designed to handle the NCAR forcing, a mixture of NCEP reanalysis and satellite data. … … 741 631 Note that substituting ERA40 to NCEP reanalysis fields does not require changes in the bulk formulea themself. 742 632 This is the so-called DRAKKAR Forcing Set (DFS) \citep{brodeau.barnier.ea_OM10}. 743 \item 744 COARE 3.0 (\np[=.true.]{ln_COARE_3p0}{ln\_COARE\_3p0}): 633 \item COARE 3.0 (\np[=.true.]{ln_COARE_3p0}{ln\_COARE\_3p0}): 745 634 See \citet{fairall.bradley.ea_JC03} for more details 746 \item 747 COARE 3.5 (\np[=.true.]{ln_COARE_3p5}{ln\_COARE\_3p5}): 635 \item COARE 3.5 (\np[=.true.]{ln_COARE_3p5}{ln\_COARE\_3p5}): 748 636 See \citet{edson.jampana.ea_JPO13} for more details 749 \item 750 ECMWF (\np[=.true.]{ln_ECMWF}{ln\_ECMWF}): 637 \item ECMWF (\np[=.true.]{ln_ECMWF}{ln\_ECMWF}): 751 638 Based on \href{https://www.ecmwf.int/node/9221}{IFS (Cy31)} implementation and documentation. 752 639 Surface roughness lengths needed for the Obukhov length are computed following \citet{beljaars_QJRMS95}. 753 640 \end{itemize} 754 641 755 % -------------------------------------------------------------------------------------------------------------756 % Ice-Atmosphere Bulk formulae757 % -------------------------------------------------------------------------------------------------------------758 642 \subsection{Ice-Atmosphere Bulk formulae} 759 643 \label{subsec:SBC_blk_ice} … … 762 646 763 647 \begin{itemize} 764 \item 765 Constant value (\np[ Cd_ice=1.4e-3 ]{constant value}{constant\ value}): 648 \item Constant value (\np[ Cd_ice=1.4e-3 ]{constant value}{constant\ value}): 766 649 default constant value used for momentum and heat neutral transfer coefficients 767 \item 768 \citet{lupkes.gryanik.ea_JGR12} (\np[=.true.]{ln_Cd_L12}{ln\_Cd\_L12}): 650 \item \citet{lupkes.gryanik.ea_JGR12} (\np[=.true.]{ln_Cd_L12}{ln\_Cd\_L12}): 769 651 This scheme adds a dependency on edges at leads, melt ponds and flows 770 652 of the constant neutral air-ice drag. After some approximations, … … 773 655 starting at 1.5e-3 for A=0, reaching 1.97e-3 for A=0.5 and going down 1.4e-3 for A=1. 774 656 It is theoretically applicable to all ice conditions (not only MIZ). 775 \item 776 \citet{lupkes.gryanik_JGR15} (\np[=.true.]{ln_Cd_L15}{ln\_Cd\_L15}): 657 \item \citet{lupkes.gryanik_JGR15} (\np[=.true.]{ln_Cd_L15}{ln\_Cd\_L15}): 777 658 Alternative turbulent transfer coefficients formulation between sea-ice 778 659 and atmosphere with distinct momentum and heat coefficients depending … … 784 665 \end{itemize} 785 666 786 787 788 % ================================================================789 % Coupled formulation790 % ================================================================791 667 \section[Coupled formulation (\textit{sbccpl.F90})]{Coupled formulation (\protect\mdl{sbccpl})} 792 668 \label{sec:SBC_cpl} … … 826 702 In cases where this is definitely not possible, the model should abort with an error message. 827 703 828 829 830 % ================================================================831 % Atmospheric pressure832 % ================================================================833 704 \section[Atmospheric pressure (\textit{sbcapr.F90})]{Atmospheric pressure (\protect\mdl{sbcapr})} 834 705 \label{sec:SBC_apr} … … 868 739 \np{ln_apr_obc}{ln\_apr\_obc} might be set to true. 869 740 870 871 872 % ================================================================873 % Surface Tides Forcing874 % ================================================================875 741 \section[Surface tides (\textit{sbctide.F90})]{Surface tides (\protect\mdl{sbctide})} 876 742 \label{sec:SBC_tide} … … 925 791 \forcode{.false.} removes the SAL contribution. 926 792 927 928 929 % ================================================================930 % River runoffs931 % ================================================================932 793 \section[River runoffs (\textit{sbcrnf.F90})]{River runoffs (\protect\mdl{sbcrnf})} 933 794 \label{sec:SBC_rnf} … … 950 811 %required to properly represent the diurnal cycle \citep{bernie.woolnough.ea_JC05}. see also \autoref{fig:SBC_dcy}.}. 951 812 952 953 813 %To do this we need to treat evaporation/precipitation fluxes and river runoff differently in the 954 814 %\mdl{tra\_sbc} module. We decided to separate them throughout the code, so that the variable … … 957 817 %emp). This meant many uses of emp and emps needed to be changed, a list of all modules which use 958 818 %emp or emps and the changes made are below: 959 960 819 961 820 %Rachel: … … 1035 894 as the ocean water leaving the domain removes heat and salt (at the same concentration) with it. 1036 895 1037 1038 896 %\colorbox{yellow}{Nevertheless, Pb of vertical resolution and 3D input : increase vertical mixing near river mouths to mimic a 3D river 1039 897 … … 1055 913 %To do this we need to treat evaporation/precipitation fluxes and river runoff differently in the tra_sbc module. We decided to separate them throughout the code, so that the variable emp represented solely evaporation minus precipitation fluxes, and a new 2d variable rnf was added which represents the volume flux of river runoff (in kg/m2s to remain consistent with emp). This meant many uses of emp and emps needed to be changed, a list of all modules which use emp or emps and the changes made are below: 1056 914 1057 1058 1059 % ================================================================1060 % Ice shelf melting1061 % ================================================================1062 915 \section[Ice shelf melting (\textit{sbcisf.F90})]{Ice shelf melting (\protect\mdl{sbcisf})} 1063 916 \label{sec:SBC_isf} … … 1077 930 \begin{description} 1078 931 1079 \item [{\np[=1]{nn_isf}{nn\_isf}}]:932 \item [{\np[=1]{nn_isf}{nn\_isf}}]: 1080 933 The ice shelf cavity is represented (\np[=.true.]{ln_isfcav}{ln\_isfcav} needed). 1081 934 The fwf and heat flux are depending of the local water properties. … … 1084 937 1085 938 \begin{description} 1086 \item [{\np[=1]{nn_isfblk}{nn\_isfblk}}]:939 \item [{\np[=1]{nn_isfblk}{nn\_isfblk}}]: 1087 940 The melt rate is based on a balance between the upward ocean heat flux and 1088 941 the latent heat flux at the ice shelf base. A complete description is available in \citet{hunter_rpt06}. 1089 \item [{\np[=2]{nn_isfblk}{nn\_isfblk}}]:942 \item [{\np[=2]{nn_isfblk}{nn\_isfblk}}]: 1090 943 The melt rate and the heat flux are based on a 3 equations formulation 1091 944 (a heat flux budget at the ice base, a salt flux budget at the ice base and a linearised freezing point temperature equation). … … 1104 957 There are 3 different ways to compute the exchange coeficient: 1105 958 \begin{description} 1106 \item [{\np[=0]{nn_gammablk}{nn\_gammablk}}]:959 \item [{\np[=0]{nn_gammablk}{nn\_gammablk}}]: 1107 960 The salt and heat exchange coefficients are constant and defined by \np{rn_gammas0}{rn\_gammas0} and \np{rn_gammat0}{rn\_gammat0}. 1108 961 \begin{gather*} … … 1112 965 \end{gather*} 1113 966 This is the recommended formulation for ISOMIP. 1114 \item [{\np[=1]{nn_gammablk}{nn\_gammablk}}]:967 \item [{\np[=1]{nn_gammablk}{nn\_gammablk}}]: 1115 968 The salt and heat exchange coefficients are velocity dependent and defined as 1116 969 \begin{gather*} … … 1120 973 where $u_{*}$ is the friction velocity in the top boundary layer (ie first \np{rn_hisf_tbl}{rn\_hisf\_tbl} meters). 1121 974 See \citet{jenkins.nicholls.ea_JPO10} for all the details on this formulation. It is the recommended formulation for realistic application. 1122 \item [{\np[=2]{nn_gammablk}{nn\_gammablk}}]:975 \item [{\np[=2]{nn_gammablk}{nn\_gammablk}}]: 1123 976 The salt and heat exchange coefficients are velocity and stability dependent and defined as: 1124 977 \[ … … 1131 984 This formulation has not been extensively tested in \NEMO\ (not recommended). 1132 985 \end{description} 1133 \item [{\np[=2]{nn_isf}{nn\_isf}}]:986 \item [{\np[=2]{nn_isf}{nn\_isf}}]: 1134 987 The ice shelf cavity is not represented. 1135 988 The fwf and heat flux are computed using the \citet{beckmann.goosse_OM03} parameterisation of isf melting. … … 1138 991 (\np{sn_depmin_isf}{sn\_depmin\_isf}) as in (\np[=3]{nn_isf}{nn\_isf}). 1139 992 The effective melting length (\np{sn_Leff_isf}{sn\_Leff\_isf}) is read from a file. 1140 \item [{\np[=3]{nn_isf}{nn\_isf}}]:993 \item [{\np[=3]{nn_isf}{nn\_isf}}]: 1141 994 The ice shelf cavity is not represented. 1142 995 The fwf (\np{sn_rnfisf}{sn\_rnfisf}) is prescribed and distributed along the ice shelf edge between … … 1144 997 the base of the ice shelf along the calving front (\np{sn_depmin_isf}{sn\_depmin\_isf}). 1145 998 The heat flux ($Q_h$) is computed as $Q_h = fwf \times L_f$. 1146 \item [{\np[=4]{nn_isf}{nn\_isf}}]:999 \item [{\np[=4]{nn_isf}{nn\_isf}}]: 1147 1000 The ice shelf cavity is opened (\np[=.true.]{ln_isfcav}{ln\_isfcav} needed). 1148 1001 However, the fwf is not computed but specified from file \np{sn_fwfisf}{sn\_fwfisf}). … … 1167 1020 See the runoff section \autoref{sec:SBC_rnf} for all the details about the divergence correction.\\ 1168 1021 1169 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1170 1022 \begin{figure}[!t] 1171 1023 \centering … … 1176 1028 \label{fig:SBC_isf} 1177 1029 \end{figure} 1178 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 1179 1180 1181 1182 % ================================================================ 1183 % Ice sheet coupling 1184 % ================================================================ 1030 1185 1031 \section{Ice sheet coupling} 1186 1032 \label{sec:SBC_iscpl} … … 1198 1044 1199 1045 \begin{description} 1200 \item [Step 1]: the ice sheet model send a new bathymetry and ice shelf draft netcdf file.1201 \item [Step 2]: a new domcfg.nc file is built using the DOMAINcfg tools.1202 \item [Step 3]: \NEMO\ run for a specific period and output the average melt rate over the period.1203 \item [Step 4]: the ice sheet model run using the melt rate outputed in step 4.1204 \item [Step 5]: go back to 1.1046 \item [Step 1]: the ice sheet model send a new bathymetry and ice shelf draft netcdf file. 1047 \item [Step 2]: a new domcfg.nc file is built using the DOMAINcfg tools. 1048 \item [Step 3]: \NEMO\ run for a specific period and output the average melt rate over the period. 1049 \item [Step 4]: the ice sheet model run using the melt rate outputed in step 4. 1050 \item [Step 5]: go back to 1. 1205 1051 \end{description} 1206 1052 … … 1210 1056 1211 1057 \begin{description} 1212 \item [Thin a cell down]:1058 \item [Thin a cell down]: 1213 1059 T/S/ssh are unchanged and U/V in the top cell are corrected to keep the barotropic transport (bt) constant 1214 1060 ($bt_b=bt_n$). 1215 \item [Enlarge a cell]:1061 \item [Enlarge a cell]: 1216 1062 See case "Thin a cell down" 1217 \item [Dry a cell]:1063 \item [Dry a cell]: 1218 1064 mask, T/S, U/V and ssh are set to 0. 1219 1065 Furthermore, U/V into the water column are modified to satisfy ($bt_b=bt_n$). 1220 \item [Wet a cell]:1066 \item [Wet a cell]: 1221 1067 mask is set to 1, T/S is extrapolated from neighbours, $ssh_n = ssh_b$ and U/V set to 0. 1222 1068 If no neighbours, T/S is extrapolated from old top cell value. 1223 1069 If no neighbours along i,j and k (both previous test failed), T/S/U/V/ssh and mask are set to 0. 1224 \item [Dry a column]:1070 \item [Dry a column]: 1225 1071 mask, T/S, U/V are set to 0 everywhere in the column and ssh set to 0. 1226 \item [Wet a column]:1072 \item [Wet a column]: 1227 1073 set mask to 1, T/S is extrapolated from neighbours, ssh is extrapolated from neighbours and U/V set to 0. 1228 1074 If no neighbour, T/S/U/V and mask set to 0. … … 1247 1093 The corrective increment is apply into the cell itself (if it is a wet cell), the neigbouring cells or the closest wet cell (if the cell is now dry). 1248 1094 1249 1250 1251 % ================================================================1252 % Handling of icebergs1253 % ================================================================1254 1095 \section{Handling of icebergs (ICB)} 1255 1096 \label{sec:SBC_ICB_icebergs} … … 1275 1116 Two initialisation schemes are possible. 1276 1117 \begin{description} 1277 \item [{\np{nn_test_icebergs}{nn\_test\_icebergs}~$>$~0}]1118 \item [{\np{nn_test_icebergs}{nn\_test\_icebergs}~$>$~0}] 1278 1119 In this scheme, the value of \np{nn_test_icebergs}{nn\_test\_icebergs} represents the class of iceberg to generate 1279 1120 (so between 1 and 10), and \np{nn_test_icebergs}{nn\_test\_icebergs} provides a lon/lat box in the domain at each grid point of … … 1282 1123 \np{nn_test_icebergs}{nn\_test\_icebergs} is defined by four numbers in \np{nn_test_box}{nn\_test\_box} representing the corners of 1283 1124 the geographical box: lonmin,lonmax,latmin,latmax 1284 \item [{\np[=-1]{nn_test_icebergs}{nn\_test\_icebergs}}]1125 \item [{\np[=-1]{nn_test_icebergs}{nn\_test\_icebergs}}] 1285 1126 In this scheme, the model reads a calving file supplied in the \np{sn_icb}{sn\_icb} parameter. 1286 1127 This should be a file with a field on the configuration grid (typically ORCA) … … 1307 1148 The amount of information is controlled by two integer parameters: 1308 1149 \begin{description} 1309 \item [{\np{nn_verbose_level}{nn\_verbose\_level}}] takes a value between one and four and1150 \item [{\np{nn_verbose_level}{nn\_verbose\_level}}] takes a value between one and four and 1310 1151 represents an increasing number of points in the code at which variables are written, 1311 1152 and an increasing level of obscurity. 1312 \item [{\np{nn_verbose_write}{nn\_verbose\_write}}] is the number of timesteps between writes1153 \item [{\np{nn_verbose_write}{nn\_verbose\_write}}] is the number of timesteps between writes 1313 1154 \end{description} 1314 1155 … … 1321 1162 since its trajectory data may be spread across multiple files. 1322 1163 1323 1324 1325 % =============================================================================================================1326 % Interactions with waves (sbcwave.F90, ln_wave)1327 % =============================================================================================================1328 1164 \section[Interactions with waves (\textit{sbcwave.F90}, \forcode{ln_wave})]{Interactions with waves (\protect\mdl{sbcwave}, \protect\np{ln_wave}{ln\_wave})} 1329 1165 \label{sec:SBC_wave} … … 1349 1185 Wave fields can be provided either in forced or coupled mode: 1350 1186 \begin{description} 1351 \item [forced mode]: wave fields should be defined through the \nam{sbc_wave}{sbc\_wave} namelist1187 \item [forced mode]: wave fields should be defined through the \nam{sbc_wave}{sbc\_wave} namelist 1352 1188 for external data names, locations, frequency, interpolation and all the miscellanous options allowed by 1353 1189 Input Data generic Interface (see \autoref{sec:SBC_input}). 1354 \item [coupled mode]: \NEMO\ and an external wave model can be coupled by setting \np[=.true.]{ln_cpl}{ln\_cpl}1190 \item [coupled mode]: \NEMO\ and an external wave model can be coupled by setting \np[=.true.]{ln_cpl}{ln\_cpl} 1355 1191 in \nam{sbc}{sbc} namelist and filling the \nam{sbc_cpl}{sbc\_cpl} namelist. 1356 1192 \end{description} 1357 1358 1193 1359 1194 % ---------------------------------------------------------------- … … 1369 1204 the drag coefficient is computed according to the stable/unstable conditions of the 1370 1205 air-sea interface following \citet{large.yeager_rpt04}. 1371 1372 1206 1373 1207 % ---------------------------------------------------------------- … … 1409 1243 1410 1244 \begin{description} 1411 \item [{\np{nn_sdrift}{nn\_sdrift} = 0}]: exponential integral profile parameterization proposed by1245 \item [{\np{nn_sdrift}{nn\_sdrift} = 0}]: exponential integral profile parameterization proposed by 1412 1246 \citet{breivik.janssen.ea_JPO14}: 1413 1247 … … 1428 1262 where $H_s$ is the significant wave height and $\omega$ is the wave frequency. 1429 1263 1430 \item [{\np{nn_sdrift}{nn\_sdrift} = 1}]: velocity profile based on the Phillips spectrum which is considered to be a1264 \item [{\np{nn_sdrift}{nn\_sdrift} = 1}]: velocity profile based on the Phillips spectrum which is considered to be a 1431 1265 reasonable estimate of the part of the spectrum mostly contributing to the Stokes drift velocity near the surface 1432 1266 \citep{breivik.bidlot.ea_OM16}: … … 1440 1274 where $erf$ is the complementary error function and $k_p$ is the peak wavenumber. 1441 1275 1442 \item [{\np{nn_sdrift}{nn\_sdrift} = 2}]: velocity profile based on the Phillips spectrum as for \np{nn_sdrift}{nn\_sdrift} = 11276 \item [{\np{nn_sdrift}{nn\_sdrift} = 2}]: velocity profile based on the Phillips spectrum as for \np{nn_sdrift}{nn\_sdrift} = 1 1443 1277 but using the wave frequency from a wave model. 1444 1278 … … 1465 1299 - (\mathbf{U} + \mathbf{U}_{st}) \cdot \nabla{c} 1466 1300 \] 1467 1468 1301 1469 1302 % ---------------------------------------------------------------- … … 1479 1312 approximations described in \autoref{subsec:SBC_wave_sdw}), 1480 1313 \np[=.true.]{ln_stcor}{ln\_stcor} has to be set. 1481 1482 1314 1483 1315 % ---------------------------------------------------------------- … … 1521 1353 meridional stress components by setting \np[=.true.]{ln_tauw}{ln\_tauw}. 1522 1354 1523 1524 1525 % ================================================================1526 % Miscellanea options1527 % ================================================================1528 1355 \section{Miscellaneous options} 1529 1356 \label{sec:SBC_misc} 1530 1357 1531 1532 % -------------------------------------------------------------------------------------------------------------1533 % Diurnal cycle1534 % -------------------------------------------------------------------------------------------------------------1535 1358 \subsection[Diurnal cycle (\textit{sbcdcy.F90})]{Diurnal cycle (\protect\mdl{sbcdcy})} 1536 1359 \label{subsec:SBC_dcy} … … 1540 1363 %------------------------------------------------------------------------------------------------------------- 1541 1364 1542 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1543 1365 \begin{figure}[!t] 1544 1366 \centering … … 1553 1375 \label{fig:SBC_diurnal} 1554 1376 \end{figure} 1555 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1556 1377 1557 1378 \cite{bernie.woolnough.ea_JC05} have shown that to capture 90$\%$ of the diurnal variability of SST requires a vertical resolution in upper ocean of 1~m or better and a temporal resolution of the surface fluxes of 3~h or less. … … 1576 1397 one every 2~hours (from 1am to 11pm). 1577 1398 1578 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1579 1399 \begin{figure}[!t] 1580 1400 \centering … … 1586 1406 \label{fig:SBC_dcy} 1587 1407 \end{figure} 1588 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1589 1408 1590 1409 Note also that the setting a diurnal cycle in SWF is highly recommended when … … 1592 1411 an inconsistency between the scale of the vertical resolution and the forcing acting on that scale. 1593 1412 1594 1595 % -------------------------------------------------------------------------------------------------------------1596 % Rotation of vector pairs onto the model grid directions1597 % -------------------------------------------------------------------------------------------------------------1598 1413 \subsection{Rotation of vector pairs onto the model grid directions} 1599 1414 \label{subsec:SBC_rotation} … … 1612 1427 The rot\_rep routine from the \mdl{geo2ocean} module is used to perform the rotation. 1613 1428 1614 1615 % -------------------------------------------------------------------------------------------------------------1616 % Surface restoring to observed SST and/or SSS1617 % -------------------------------------------------------------------------------------------------------------1618 1429 \subsection[Surface restoring to observed SST and/or SSS (\textit{sbcssr.F90})]{Surface restoring to observed SST and/or SSS (\protect\mdl{sbcssr})} 1619 1430 \label{subsec:SBC_ssr} … … 1660 1471 reduce the uncertainties we have on the observed freshwater budget. 1661 1472 1662 1663 % -------------------------------------------------------------------------------------------------------------1664 % Handling of ice-covered area1665 % -------------------------------------------------------------------------------------------------------------1666 1473 \subsection{Handling of ice-covered area (\textit{sbcice\_...})} 1667 1474 \label{subsec:SBC_ice-cover} … … 1671 1478 the value of the \np{nn_ice}{nn\_ice} namelist parameter found in \nam{sbc}{sbc} namelist. 1672 1479 \begin{description} 1673 \item [nn\_ice = 0]1480 \item [nn\_ice = 0] 1674 1481 there will never be sea-ice in the computational domain. 1675 1482 This is a typical namelist value used for tropical ocean domain. 1676 1483 The surface fluxes are simply specified for an ice-free ocean. 1677 1484 No specific things is done for sea-ice. 1678 \item [nn\_ice = 1]1485 \item [nn\_ice = 1] 1679 1486 sea-ice can exist in the computational domain, but no sea-ice model is used. 1680 1487 An observed ice covered area is read in a file. … … 1688 1495 is usually referred as the \textit{ice-if} model. 1689 1496 It can be found in the \mdl{sbcice\_if} module. 1690 \item [nn\_ice = 2 or more]1497 \item [nn\_ice = 2 or more] 1691 1498 A full sea ice model is used. 1692 1499 This model computes the ice-ocean fluxes, … … 1701 1508 %GS: ocean-ice (SI3) interface is not located in SBC directory anymore, so it should be included in SI3 doc 1702 1509 1703 1704 % -------------------------------------------------------------------------------------------------------------1705 % CICE-ocean Interface1706 % -------------------------------------------------------------------------------------------------------------1707 1510 \subsection[Interface to CICE (\textit{sbcice\_cice.F90})]{Interface to CICE (\protect\mdl{sbcice\_cice})} 1708 1511 \label{subsec:SBC_cice} … … 1735 1538 there is no sea ice. 1736 1539 1737 1738 % -------------------------------------------------------------------------------------------------------------1739 % Freshwater budget control1740 % -------------------------------------------------------------------------------------------------------------1741 1540 \subsection[Freshwater budget control (\textit{sbcfwb.F90})]{Freshwater budget control (\protect\mdl{sbcfwb})} 1742 1541 \label{subsec:SBC_fwb} … … 1747 1546 1748 1547 \begin{description} 1749 \item [{\np[=0]{nn_fwb}{nn\_fwb}}]1548 \item [{\np[=0]{nn_fwb}{nn\_fwb}}] 1750 1549 no control at all. 1751 1550 The mean sea level is free to drift, and will certainly do so. 1752 \item [{\np[=1]{nn_fwb}{nn\_fwb}}]1551 \item [{\np[=1]{nn_fwb}{nn\_fwb}}] 1753 1552 global mean \textit{emp} set to zero at each model time step. 1754 1553 %GS: comment below still relevant ? 1755 1554 %Note that with a sea-ice model, this technique only controls the mean sea level with linear free surface and no mass flux between ocean and ice (as it is implemented in the current ice-ocean coupling). 1756 \item [{\np[=2]{nn_fwb}{nn\_fwb}}]1555 \item [{\np[=2]{nn_fwb}{nn\_fwb}}] 1757 1556 freshwater budget is adjusted from the previous year annual mean budget which 1758 1557 is read in the \textit{EMPave\_old.dat} file. -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_STO.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter stochastic parametrization of EOS (STO)6 % ================================================================7 4 \chapter{Stochastic Parametrization of EOS (STO)} 8 5 \label{chap:STO} … … 24 21 P.-A. Bouttier release 3.6 inital version 25 22 26 \newpage27 28 23 As a result of the nonlinearity of the seawater equation of state, unresolved scales represent a major source of uncertainties in the computation of the large-scale horizontal density gradient from the large-scale temperature and salinity fields. Following \cite{brankart_OM13}, the impact of these uncertainties can be simulated by random processes representing unresolved T/S fluctuations. The Stochastic Parametrization of EOS (STO) module implements this parametrization. 29 24 … … 43 38 a parametrized decorrelation time scale, and horizontal and vertical standard deviations $\sigma_s$. 44 39 $\mathbf{\xi}$ are uncorrelated over the horizontal and fully correlated along the vertical. 45 46 40 47 41 \section{Stochastic processes} … … 69 63 70 64 \begin{itemize} 71 \item 72 for order~1 processes, $w^{(i)}$ is a Gaussian white noise, with zero mean and standard deviation equal to~1, 65 \item for order~1 processes, $w^{(i)}$ is a Gaussian white noise, with zero mean and standard deviation equal to~1, 73 66 and the parameters $a^{(i)}$, $b^{(i)}$, $c^{(i)}$ are given by: 74 67 … … 84 77 \] 85 78 86 \item 87 for order~$n>1$ processes, $w^{(i)}$ is an order~$n-1$ autoregressive process, with zero mean, 79 \item for order~$n>1$ processes, $w^{(i)}$ is an order~$n-1$ autoregressive process, with zero mean, 88 80 standard deviation equal to~$\sigma^{(i)}$; 89 81 correlation timescale equal to~$\tau^{(i)}$; … … 124 116 \section{Implementation details} 125 117 \label{sec:STO_thech_details} 126 127 118 128 119 The code implementing stochastic parametrisation is located in the src/OCE/STO directory. … … 186 177 187 178 \begin{description} 188 \item [{\np{nn_sto_eos}{nn\_sto\_eos}:}] number of independent random walks189 \item [{\np{rn_eos_stdxy}{rn\_eos\_stdxy}:}] random walk horizontal standard deviation (in grid points)190 \item [{\np{rn_eos_stdz}{rn\_eos\_stdz}:}] random walk vertical standard deviation (in grid points)191 \item [{\np{rn_eos_tcor}{rn\_eos\_tcor}:}] random walk time correlation (in timesteps)192 \item [{\np{nn_eos_ord}{nn\_eos\_ord}:}] order of autoregressive processes193 \item [{\np{nn_eos_flt}{nn\_eos\_flt}:}] passes of Laplacian filter194 \item [{\np{rn_eos_lim}{rn\_eos\_lim}:}] limitation factor (default = 3.0)179 \item [{\np{nn_sto_eos}{nn\_sto\_eos}:}] number of independent random walks 180 \item [{\np{rn_eos_stdxy}{rn\_eos\_stdxy}:}] random walk horizontal standard deviation (in grid points) 181 \item [{\np{rn_eos_stdz}{rn\_eos\_stdz}:}] random walk vertical standard deviation (in grid points) 182 \item [{\np{rn_eos_tcor}{rn\_eos\_tcor}:}] random walk time correlation (in timesteps) 183 \item [{\np{nn_eos_ord}{nn\_eos\_ord}:}] order of autoregressive processes 184 \item [{\np{nn_eos_flt}{nn\_eos\_flt}:}] passes of Laplacian filter 185 \item [{\np{rn_eos_lim}{rn\_eos\_lim}:}] limitation factor (default = 3.0) 195 186 \end{description} 196 187 -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_TRA.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter 1 ——— Ocean Tracers (TRA)6 % ================================================================7 4 \chapter{Ocean Tracers (TRA)} 8 5 \label{chap:TRA} … … 57 54 (\np{ln_tra_trd}{ln\_tra\_trd} or \np[=.true.]{ln_tra_mxl}{ln\_tra\_mxl}), as described in \autoref{chap:DIA}. 58 55 59 % ================================================================60 % Tracer Advection61 % ================================================================62 56 \section[Tracer advection (\textit{traadv.F90})]{Tracer advection (\protect\mdl{traadv})} 63 57 \label{sec:TRA_adv} … … 91 85 In other words, by setting $\tau = 1$ in (\autoref{eq:TRA_adv}) we recover the discrete form of 92 86 the continuity equation which is used to calculate the vertical velocity. 93 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>94 87 \begin{figure}[!t] 95 88 \centering … … 109 102 \label{fig:TRA_adv_scheme} 110 103 \end{figure} 111 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>112 104 113 105 The key difference between the advection schemes available in \NEMO\ is the choice made in space and … … 120 112 121 113 \begin{description} 122 \item [linear free surface:]114 \item [linear free surface:] 123 115 (\np[=.true.]{ln_linssh}{ln\_linssh}) 124 116 the first level thickness is constant in time: … … 128 120 $\tau_w|_{k = 1/2} = T_{k = 1}$, \ie\ the product of surface velocity (at $z = 0$) by 129 121 the first level tracer value. 130 \item [non-linear free surface:]122 \item [non-linear free surface:] 131 123 (\np[=.false.]{ln_linssh}{ln\_linssh}) 132 124 convergence/divergence in the first ocean level moves the free surface up/down. … … 163 155 164 156 \begin{enumerate} 165 \item 166 CEN and FCT schemes require an explicit diffusion operator while the other schemes are diffusive enough so that 157 \item CEN and FCT schemes require an explicit diffusion operator while the other schemes are diffusive enough so that 167 158 they do not necessarily need additional diffusion; 168 \item 169 CEN and UBS are not \textit{positive} schemes 159 \item CEN and UBS are not \textit{positive} schemes 170 160 \footnote{negative values can appear in an initially strictly positive tracer field which is advected}, 171 161 implying that false extrema are permitted. 172 162 Their use is not recommended on passive tracers; 173 \item 174 It is recommended that the same advection-diffusion scheme is used on both active and passive tracers. 163 \item It is recommended that the same advection-diffusion scheme is used on both active and passive tracers. 175 164 \end{enumerate} 176 165 … … 182 171 their results. 183 172 184 % -------------------------------------------------------------------------------------------------------------185 % 2nd and 4th order centred schemes186 % -------------------------------------------------------------------------------------------------------------187 173 \subsection[CEN: Centred scheme (\forcode{ln_traadv_cen})]{CEN: Centred scheme (\protect\np{ln_traadv_cen}{ln\_traadv\_cen})} 188 174 \label{subsec:TRA_adv_cen} … … 249 235 these near boundary grid points. 250 236 251 % -------------------------------------------------------------------------------------------------------------252 % FCT scheme253 % -------------------------------------------------------------------------------------------------------------254 237 \subsection[FCT: Flux Corrected Transport scheme (\forcode{ln_traadv_fct})]{FCT: Flux Corrected Transport scheme (\protect\np{ln_traadv_fct}{ln\_traadv\_fct})} 255 238 \label{subsec:TRA_adv_tvd} … … 285 268 A comparison of FCT-2 with MUSCL and a MPDATA scheme can be found in \citet{levy.estublier.ea_GRL01}. 286 269 287 288 270 For stability reasons (see \autoref{chap:TD}), 289 271 $\tau_u^{cen}$ is evaluated in (\autoref{eq:TRA_adv_fct}) using the \textit{now} tracer while … … 292 274 while a forward scheme is used for the diffusive part. 293 275 294 % -------------------------------------------------------------------------------------------------------------295 % MUSCL scheme296 % -------------------------------------------------------------------------------------------------------------297 276 \subsection[MUSCL: Monotone Upstream Scheme for Conservative Laws (\forcode{ln_traadv_mus})]{MUSCL: Monotone Upstream Scheme for Conservative Laws (\protect\np{ln_traadv_mus}{ln\_traadv\_mus})} 298 277 \label{subsec:TRA_adv_mus} … … 328 307 (\np[=.true.]{ln_mus_ups}{ln\_mus\_ups}). 329 308 330 % -------------------------------------------------------------------------------------------------------------331 % UBS scheme332 % -------------------------------------------------------------------------------------------------------------333 309 \subsection[UBS a.k.a. UP3: Upstream-Biased Scheme (\forcode{ln_traadv_ubs})]{UBS a.k.a. UP3: Upstream-Biased Scheme (\protect\np{ln_traadv_ubs}{ln\_traadv\_ubs})} 334 310 \label{subsec:TRA_adv_ubs} … … 400 376 Note the current version of \NEMO\ uses the computationally more efficient formulation \autoref{eq:TRA_adv_ubs}. 401 377 402 % -------------------------------------------------------------------------------------------------------------403 % QCK scheme404 % -------------------------------------------------------------------------------------------------------------405 378 \subsection[QCK: QuiCKest scheme (\forcode{ln_traadv_qck})]{QCK: QuiCKest scheme (\protect\np{ln_traadv_qck}{ln\_traadv\_qck})} 406 379 \label{subsec:TRA_adv_qck} … … 423 396 %%%gmcomment : Cross term are missing in the current implementation.... 424 397 425 % ================================================================426 % Tracer Lateral Diffusion427 % ================================================================428 398 \section[Tracer lateral diffusion (\textit{traldf.F90})]{Tracer lateral diffusion (\protect\mdl{traldf})} 429 399 \label{sec:TRA_ldf} … … 455 425 the pure vertical component is split into an explicit and an implicit part \citep{lemarie.debreu.ea_OM12}. 456 426 457 % -------------------------------------------------------------------------------------------------------------458 % Type of operator459 % -------------------------------------------------------------------------------------------------------------460 427 \subsection[Type of operator (\forcode{ln_traldf_}\{\forcode{OFF,lap,blp}\})]{Type of operator (\protect\np{ln_traldf_OFF}{ln\_traldf\_OFF}, \protect\np{ln_traldf_lap}{ln\_traldf\_lap}, or \protect\np{ln_traldf_blp}{ln\_traldf\_blp})} 461 428 \label{subsec:TRA_ldf_op} … … 464 431 465 432 \begin{description} 466 \item [{\np[=.true.]{ln_traldf_OFF}{ln\_traldf\_OFF}}]433 \item [{\np[=.true.]{ln_traldf_OFF}{ln\_traldf\_OFF}}] 467 434 no operator selected, the lateral diffusive tendency will not be applied to the tracer equation. 468 435 This option can be used when the selected advection scheme is diffusive enough (MUSCL scheme for example). 469 \item [{\np[=.true.]{ln_traldf_lap}{ln\_traldf\_lap}}]436 \item [{\np[=.true.]{ln_traldf_lap}{ln\_traldf\_lap}}] 470 437 a laplacian operator is selected. 471 438 This harmonic operator takes the following expression: $\mathcal{L}(T) = \nabla \cdot A_{ht} \; \nabla T $, 472 439 where the gradient operates along the selected direction (see \autoref{subsec:TRA_ldf_dir}), 473 440 and $A_{ht}$ is the eddy diffusivity coefficient expressed in $m^2/s$ (see \autoref{chap:LDF}). 474 \item [{\np[=.true.]{ln_traldf_blp}{ln\_traldf\_blp}}]:441 \item [{\np[=.true.]{ln_traldf_blp}{ln\_traldf\_blp}}]: 475 442 a bilaplacian operator is selected. 476 443 This biharmonic operator takes the following expression: … … 489 456 whereas the laplacian damping time scales only like $\lambda^{-2}$. 490 457 491 % -------------------------------------------------------------------------------------------------------------492 % Direction of action493 % -------------------------------------------------------------------------------------------------------------494 458 \subsection[Action direction (\forcode{ln_traldf_}\{\forcode{lev,hor,iso,triad}\})]{Direction of action (\protect\np{ln_traldf_lev}{ln\_traldf\_lev}, \protect\np{ln_traldf_hor}{ln\_traldf\_hor}, \protect\np{ln_traldf_iso}{ln\_traldf\_iso}, or \protect\np{ln_traldf_triad}{ln\_traldf\_triad})} 495 459 \label{subsec:TRA_ldf_dir} … … 515 479 the next two sub-sections. 516 480 517 % -------------------------------------------------------------------------------------------------------------518 % iso-level operator519 % -------------------------------------------------------------------------------------------------------------520 481 \subsection[Iso-level (bi-)laplacian operator (\forcode{ln_traldf_iso})]{Iso-level (bi-)laplacian operator ( \protect\np{ln_traldf_iso}{ln\_traldf\_iso})} 521 482 \label{subsec:TRA_ldf_lev} … … 546 507 They are calculated in the \mdl{zpshde} module, described in \autoref{sec:TRA_zpshde}. 547 508 548 % -------------------------------------------------------------------------------------------------------------549 % Rotated laplacian operator550 % -------------------------------------------------------------------------------------------------------------551 509 \subsection{Standard and triad (bi-)laplacian operator} 552 510 \label{subsec:TRA_ldf_iso_triad} … … 626 584 \end{itemize} 627 585 628 % ================================================================629 % Tracer Vertical Diffusion630 % ================================================================631 586 \section[Tracer vertical diffusion (\textit{trazdf.F90})]{Tracer vertical diffusion (\protect\mdl{trazdf})} 632 587 \label{sec:TRA_zdf} … … 663 618 it overcomes the stability constraint. 664 619 665 % ================================================================666 % External Forcing667 % ================================================================668 620 \section{External forcing} 669 621 \label{sec:TRA_sbc_qsr_bbc} 670 622 671 % -------------------------------------------------------------------------------------------------------------672 % surface boundary condition673 % -------------------------------------------------------------------------------------------------------------674 623 \subsection[Surface boundary condition (\textit{trasbc.F90})]{Surface boundary condition (\protect\mdl{trasbc})} 675 624 \label{subsec:TRA_sbc} … … 692 641 693 642 \begin{itemize} 694 \item 695 $Q_{ns}$, the non-solar part of the net surface heat flux that crosses the sea surface 643 \item $Q_{ns}$, the non-solar part of the net surface heat flux that crosses the sea surface 696 644 (\ie\ the difference between the total surface heat flux and the fraction of the short wave flux that 697 645 penetrates into the water column, see \autoref{subsec:TRA_qsr}) 698 646 plus the heat content associated with of the mass exchange with the atmosphere and lands. 699 \item 700 $\textit{sfx}$, the salt flux resulting from ice-ocean mass exchange (freezing, melting, ridging...) 701 \item 702 \textit{emp}, the mass flux exchanged with the atmosphere (evaporation minus precipitation) and 647 \item $\textit{sfx}$, the salt flux resulting from ice-ocean mass exchange (freezing, melting, ridging...) 648 \item \textit{emp}, the mass flux exchanged with the atmosphere (evaporation minus precipitation) and 703 649 possibly with the sea-ice and ice-shelves. 704 \item 705 \textit{rnf}, the mass flux associated with runoff 650 \item \textit{rnf}, the mass flux associated with runoff 706 651 (see \autoref{sec:SBC_rnf} for further detail of how it acts on temperature and salinity tendencies) 707 \item 708 \textit{fwfisf}, the mass flux associated with ice shelf melt, 652 \item \textit{fwfisf}, the mass flux associated with ice shelf melt, 709 653 (see \autoref{sec:SBC_isf} for further details on how the ice shelf melt is computed and applied). 710 654 \end{itemize} … … 742 686 This is the reason why the modified filter is not applied in the linear free surface case (see \autoref{chap:TD}). 743 687 744 % -------------------------------------------------------------------------------------------------------------745 % Solar Radiation Penetration746 % -------------------------------------------------------------------------------------------------------------747 688 \subsection[Solar radiation penetration (\textit{traqsr.F90})]{Solar radiation penetration (\protect\mdl{traqsr})} 748 689 \label{subsec:TRA_qsr} … … 823 764 824 765 \begin{description} 825 \item [{\np[=0]{nn_chldta}{nn\_chldta}}]766 \item [{\np[=0]{nn_chldta}{nn\_chldta}}] 826 767 a constant 0.05 g.Chl/L value everywhere ; 827 \item [{\np[=1]{nn_chldta}{nn\_chldta}}]768 \item [{\np[=1]{nn_chldta}{nn\_chldta}}] 828 769 an observed time varying chlorophyll deduced from satellite surface ocean color measurement spread uniformly in 829 770 the vertical direction; 830 \item [{\np[=2]{nn_chldta}{nn\_chldta}}]771 \item [{\np[=2]{nn_chldta}{nn\_chldta}}] 831 772 same as previous case except that a vertical profile of chlorophyl is used. 832 773 Following \cite{morel.berthon_LO89}, the profile is computed from the local surface chlorophyll value; 833 \item [{\np[=.true.]{ln_qsr_bio}{ln\_qsr\_bio}}]774 \item [{\np[=.true.]{ln_qsr_bio}{ln\_qsr\_bio}}] 834 775 simulated time varying chlorophyll by TOP biogeochemical model. 835 776 In this case, the RGB formulation is used to calculate both the phytoplankton light limitation in … … 849 790 (\ie\ $I$ is masked). 850 791 851 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>852 792 \begin{figure}[!t] 853 793 \centering … … 863 803 \label{fig:TRA_qsr_irradiance} 864 804 \end{figure} 865 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 866 867 % ------------------------------------------------------------------------------------------------------------- 868 % Bottom Boundary Condition 869 % ------------------------------------------------------------------------------------------------------------- 805 870 806 \subsection[Bottom boundary condition (\textit{trabbc.F90}) - \forcode{ln_trabbc})]{Bottom boundary condition (\protect\mdl{trabbc} - \protect\np{ln_trabbc}{ln\_trabbc})} 871 807 \label{subsec:TRA_bbc} … … 878 814 \end{listing} 879 815 %-------------------------------------------------------------------------------------------------------------- 880 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>881 816 \begin{figure}[!t] 882 817 \centering … … 887 822 \label{fig:TRA_geothermal} 888 823 \end{figure} 889 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>890 824 891 825 Usually it is assumed that there is no exchange of heat or salt through the ocean bottom, … … 905 839 the \ifile{geothermal\_heating} NetCDF file (\autoref{fig:TRA_geothermal}) \citep{emile-geay.madec_OS09}. 906 840 907 % ================================================================908 % Bottom Boundary Layer909 % ================================================================910 841 \section[Bottom boundary layer (\textit{trabbl.F90} - \forcode{ln_trabbl})]{Bottom boundary layer (\protect\mdl{trabbl} - \protect\np{ln_trabbl}{ln\_trabbl})} 911 842 \label{sec:TRA_bbl} … … 941 872 \citet{campin.goosse_T99}. 942 873 943 % -------------------------------------------------------------------------------------------------------------944 % Diffusive BBL945 % -------------------------------------------------------------------------------------------------------------946 874 \subsection[Diffusive bottom boundary layer (\forcode{nn_bbl_ldf=1})]{Diffusive bottom boundary layer (\protect\np[=1]{nn_bbl_ldf}{nn\_bbl\_ldf})} 947 875 \label{subsec:TRA_bbl_diff} … … 980 908 $\overline H^\sigma$, the along bottom mean temperature, salinity and depth, respectively. 981 909 982 % -------------------------------------------------------------------------------------------------------------983 % Advective BBL984 % -------------------------------------------------------------------------------------------------------------985 910 \subsection[Advective bottom boundary layer (\forcode{nn_bbl_adv=1,2})]{Advective bottom boundary layer (\protect\np[=1,2]{nn_bbl_adv}{nn\_bbl\_adv})} 986 911 \label{subsec:TRA_bbl_adv} … … 991 916 %} 992 917 993 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>994 918 \begin{figure}[!t] 995 919 \centering … … 1006 930 \label{fig:TRA_bbl} 1007 931 \end{figure} 1008 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1009 932 1010 933 %!! nn_bbl_adv = 1 use of the ocean velocity as bbl velocity … … 1071 994 It has to be used to compute the effective velocity as well as the effective overturning circulation. 1072 995 1073 % ================================================================1074 % Tracer damping1075 % ================================================================1076 996 \section[Tracer damping (\textit{tradmp.F90})]{Tracer damping (\protect\mdl{tradmp})} 1077 997 \label{sec:TRA_dmp} … … 1130 1050 \path{./tools/DMP_TOOLS}. 1131 1051 1132 % ================================================================1133 % Tracer time evolution1134 % ================================================================1135 1052 \section[Tracer time evolution (\textit{tranxt.F90})]{Tracer time evolution (\protect\mdl{tranxt})} 1136 1053 \label{sec:TRA_nxt} … … 1165 1082 $T^{t - \rdt} = T^t$ and $T^t = T_f$. 1166 1083 1167 % ================================================================1168 % Equation of State (eosbn2)1169 % ================================================================1170 1084 \section[Equation of state (\textit{eosbn2.F90})]{Equation of state (\protect\mdl{eosbn2})} 1171 1085 \label{sec:TRA_eosbn2} … … 1179 1093 %-------------------------------------------------------------------------------------------------------------- 1180 1094 1181 % -------------------------------------------------------------------------------------------------------------1182 % Equation of State1183 % -------------------------------------------------------------------------------------------------------------1184 1095 \subsection[Equation of seawater (\forcode{ln_}\{\forcode{teos10,eos80,seos}\})]{Equation of seawater (\protect\np{ln_teos10}{ln\_teos10}, \protect\np{ln_teos80}{ln\_teos80}, or \protect\np{ln_seos}{ln\_seos})} 1185 1096 \label{subsec:TRA_eos} 1186 1187 1097 1188 1098 The Equation Of Seawater (EOS) is an empirical nonlinear thermodynamic relationship linking seawater density, … … 1216 1126 1217 1127 \begin{description} 1218 \item [{\np[=.true.]{ln_teos10}{ln\_teos10}}]1128 \item [{\np[=.true.]{ln_teos10}{ln\_teos10}}] 1219 1129 the polyTEOS10-bsq equation of seawater \citep{roquet.madec.ea_OM15} is used. 1220 1130 The accuracy of this approximation is comparable to the TEOS-10 rational function approximation, … … 1235 1145 either computing the air-sea and ice-sea fluxes (forced mode) or 1236 1146 sending the SST field to the atmosphere (coupled mode). 1237 \item [{\np[=.true.]{ln_eos80}{ln\_eos80}}]1147 \item [{\np[=.true.]{ln_eos80}{ln\_eos80}}] 1238 1148 the polyEOS80-bsq equation of seawater is used. 1239 1149 It takes the same polynomial form as the polyTEOS10, but the coefficients have been optimized to … … 1247 1157 Nevertheless, a severe assumption is made in order to have a heat content ($C_p T_p$) which 1248 1158 is conserved by the model: $C_p$ is set to a constant value, the TEOS10 value. 1249 \item [{\np[=.true.]{ln_seos}{ln\_seos}}]1159 \item [{\np[=.true.]{ln_seos}{ln\_seos}}] 1250 1160 a simplified EOS (S-EOS) inspired by \citet{vallis_bk06} is chosen, 1251 1161 the coefficients of which has been optimized to fit the behavior of TEOS10 … … 1277 1187 \end{description} 1278 1188 1279 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1280 1189 \begin{table}[!tb] 1281 1190 \centering … … 1302 1211 \label{tab:TRA_SEOS} 1303 1212 \end{table} 1304 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 1305 1306 % ------------------------------------------------------------------------------------------------------------- 1307 % Brunt-V\"{a}is\"{a}l\"{a} Frequency 1308 % ------------------------------------------------------------------------------------------------------------- 1213 1309 1214 \subsection[Brunt-V\"{a}is\"{a}l\"{a} frequency]{Brunt-V\"{a}is\"{a}l\"{a} frequency} 1310 1215 \label{subsec:TRA_bn2} … … 1327 1232 They are computed through \textit{eos\_rab}, a \fortran\ function that can be found in \mdl{eosbn2}. 1328 1233 1329 % -------------------------------------------------------------------------------------------------------------1330 % Freezing Point of Seawater1331 % -------------------------------------------------------------------------------------------------------------1332 1234 \subsection{Freezing point of seawater} 1333 1235 \label{subsec:TRA_fzp} … … 1349 1251 a \fortran\ function that can be found in \mdl{eosbn2}. 1350 1252 1351 % -------------------------------------------------------------------------------------------------------------1352 % Potential Energy1353 % -------------------------------------------------------------------------------------------------------------1354 1253 %\subsection{Potential Energy anomalies} 1355 1254 %\label{subsec:TRA_bn2} … … 1358 1257 % 1359 1258 1360 % ================================================================1361 % Horizontal Derivative in zps-coordinate1362 % ================================================================1363 1259 \section[Horizontal derivative in \textit{zps}-coordinate (\textit{zpshde.F90})]{Horizontal derivative in \textit{zps}-coordinate (\protect\mdl{zpshde})} 1364 1260 \label{sec:TRA_zpshde} … … 1380 1276 For example, for temperature in the $i$-direction the needed interpolated temperature, $\widetilde T$, is: 1381 1277 1382 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1383 1278 \begin{figure}[!p] 1384 1279 \centering … … 1398 1293 \label{fig:TRA_Partial_step_scheme} 1399 1294 \end{figure} 1400 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>1401 1295 \[ 1402 1296 \widetilde T = \lt\{ -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_ZDF.tex
r11584 r11596 5 5 6 6 \begin{document} 7 % ================================================================8 % Chapter Vertical Ocean Physics (ZDF)9 % ================================================================10 7 \chapter{Vertical Ocean Physics (ZDF)} 11 8 \label{chap:ZDF} … … 15 12 %gm% Add here a small introduction to ZDF and naming of the different physics (similar to what have been written for TRA and DYN. 16 13 17 \newpage18 19 % ================================================================20 % Vertical Mixing21 % ================================================================22 14 \section{Vertical mixing} 23 15 \label{sec:ZDF} … … 55 47 %-------------------------------------------------------------------------------------------------------------- 56 48 57 % -------------------------------------------------------------------------------------------------------------58 % Constant59 % -------------------------------------------------------------------------------------------------------------60 49 \subsection[Constant (\forcode{ln_zdfcst})]{Constant (\protect\np{ln_zdfcst}{ln\_zdfcst})} 61 50 \label{subsec:ZDF_cst} … … 77 66 $\sim10^{-9}~m^2.s^{-1}$ for salinity. 78 67 79 % -------------------------------------------------------------------------------------------------------------80 % Richardson Number Dependent81 % -------------------------------------------------------------------------------------------------------------82 68 \subsection[Richardson number dependent (\forcode{ln_zdfric})]{Richardson number dependent (\protect\np{ln_zdfric}{ln\_zdfric})} 83 69 \label{subsec:ZDF_ric} … … 138 124 the empirical values \np{rn_wtmix}{rn\_wtmix} and \np{rn_wvmix}{rn\_wvmix} \citep{lermusiaux_JMS01}. 139 125 140 % -------------------------------------------------------------------------------------------------------------141 % TKE Turbulent Closure Scheme142 % -------------------------------------------------------------------------------------------------------------143 126 \subsection[TKE turbulent closure scheme (\forcode{ln_zdftke})]{TKE turbulent closure scheme (\protect\np{ln_zdftke}{ln\_zdftke})} 144 127 \label{subsec:ZDF_tke} … … 248 231 evaluate the dissipation and mixing length scales as 249 232 (and note that here we use numerical indexing): 250 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>251 233 \begin{figure}[!t] 252 234 \centering … … 255 237 \label{fig:ZDF_mixing_length} 256 238 \end{figure} 257 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>258 239 \[ 259 240 % \label{eq:ZDF_tke_mxl2} … … 421 402 % (\eg\ Mellor, 1989; Large et al., 1994; Meier, 2001; Axell, 2002; St. Laurent and Garrett, 2002). 422 403 423 % -------------------------------------------------------------------------------------------------------------424 % GLS Generic Length Scale Scheme425 % -------------------------------------------------------------------------------------------------------------426 404 \subsection[GLS: Generic Length Scale (\forcode{ln_zdfgls})]{GLS: Generic Length Scale (\protect\np{ln_zdfgls}{ln\_zdfgls})} 427 405 \label{subsec:ZDF_gls} … … 544 522 in \citet{reffray.guillaume.ea_GMD15} for the \NEMO\ model. 545 523 546 547 % -------------------------------------------------------------------------------------------------------------548 % OSM OSMOSIS BL Scheme549 % -------------------------------------------------------------------------------------------------------------550 524 \subsection[OSM: OSMosis boundary layer scheme (\forcode{ln_zdfosm})]{OSM: OSMosis boundary layer scheme (\protect\np{ln_zdfosm}{ln\_zdfosm})} 551 525 \label{subsec:ZDF_osm} … … 561 535 The OSMOSIS turbulent closure scheme is based on...... TBC 562 536 563 % -------------------------------------------------------------------------------------------------------------564 % TKE and GLS discretization considerations565 % -------------------------------------------------------------------------------------------------------------566 537 \subsection[ Discrete energy conservation for TKE and GLS schemes]{Discrete energy conservation for TKE and GLS schemes} 567 538 \label{subsec:ZDF_tke_ene} 568 539 569 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>570 540 \begin{figure}[!t] 571 541 \centering … … 576 546 \label{fig:ZDF_TKE_time_scheme} 577 547 \end{figure} 578 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>579 548 580 549 The production of turbulence by vertical shear (the first term of the right hand side of … … 666 635 %For the latter, it is in fact the ratio $\sqrt{\bar{e}}/l_\epsilon$ which is stored. 667 636 668 % ================================================================669 % Convection670 % ================================================================671 637 \section{Convection} 672 638 \label{sec:ZDF_conv} … … 679 645 or/and the use of a turbulent closure scheme. 680 646 681 % -------------------------------------------------------------------------------------------------------------682 % Non-Penetrative Convective Adjustment683 % -------------------------------------------------------------------------------------------------------------684 647 \subsection[Non-penetrative convective adjustment (\forcode{ln_tranpc})]{Non-penetrative convective adjustment (\protect\np{ln_tranpc}{ln\_tranpc})} 685 648 \label{subsec:ZDF_npc} 686 649 687 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>688 650 \begin{figure}[!htb] 689 651 \centering … … 704 666 \label{fig:ZDF_npc} 705 667 \end{figure} 706 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>707 668 708 669 Options are defined through the \nam{zdf}{zdf} namelist variables. … … 744 705 having to recompute the expansion coefficients at each mixing iteration. 745 706 746 % -------------------------------------------------------------------------------------------------------------747 % Enhanced Vertical Diffusion748 % -------------------------------------------------------------------------------------------------------------749 707 \subsection[Enhanced vertical diffusion (\forcode{ln_zdfevd})]{Enhanced vertical diffusion (\protect\np{ln_zdfevd}{ln\_zdfevd})} 750 708 \label{subsec:ZDF_evd} … … 770 728 a leapfrog environment \citep{leclair_phd10} (see \autoref{sec:TD_mLF}). 771 729 772 % -------------------------------------------------------------------------------------------------------------773 % Turbulent Closure Scheme774 % -------------------------------------------------------------------------------------------------------------775 730 \subsection[Handling convection with turbulent closure schemes (\forcode{ln_zdf_}\{\forcode{tke,gls,osm}\})]{Handling convection with turbulent closure schemes (\forcode{ln_zdf{tke,gls,osm}})} 776 731 \label{subsec:ZDF_tcs} 777 778 732 779 733 The turbulent closure schemes presented in \autoref{subsec:ZDF_tke}, \autoref{subsec:ZDF_gls} and … … 798 752 % gm% + one word on non local flux with KPP scheme trakpp.F90 module... 799 753 800 % ================================================================801 % Double Diffusion Mixing802 % ================================================================803 754 \section[Double diffusion mixing (\forcode{ln_zdfddm})]{Double diffusion mixing (\protect\np{ln_zdfddm}{ln\_zdfddm})} 804 755 \label{subsec:ZDF_ddm} 805 806 756 807 757 %-------------------------------------------namzdf_ddm------------------------------------------------- … … 818 768 it leads to relatively minor changes in circulation but exerts significant regional influences on 819 769 temperature and salinity. 820 821 770 822 771 Diapycnal mixing of S and T are described by diapycnal diffusion coefficients … … 844 793 \end{align} 845 794 846 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>847 795 \begin{figure}[!t] 848 796 \centering … … 861 809 \label{fig:ZDF_ddm} 862 810 \end{figure} 863 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>864 811 865 812 The factor 0.7 in \autoref{eq:ZDF_ddm_f_T} reflects the measured ratio $\alpha F_T /\beta F_S \approx 0.7$ of … … 893 840 This avoids duplication in the computation of $\alpha$ and $\beta$ (which is usually quite expensive). 894 841 895 % ================================================================896 % Bottom Friction897 % ================================================================898 842 \section[Bottom and top friction (\textit{zdfdrg.F90})]{Bottom and top friction (\protect\mdl{zdfdrg})} 899 843 \label{sec:ZDF_drg} … … 924 868 As the friction processes at the top and the bottom are treated in and identical way, 925 869 the description below considers mostly the bottom friction case, if not stated otherwise. 926 927 870 928 871 Both the surface momentum flux (wind stress) and the bottom momentum flux (bottom friction) enter the equations as … … 973 916 Note than from \NEMO\ 4.0, drag coefficients are only computed at cell centers (\ie\ at T-points) and refer to as $c_b^T$ in the following. These are then linearly interpolated in space to get $c_b^\textbf{U}$ at velocity points. 974 917 975 % -------------------------------------------------------------------------------------------------------------976 % Linear Bottom Friction977 % -------------------------------------------------------------------------------------------------------------978 918 \subsection[Linear top/bottom friction (\forcode{ln_lin})]{Linear top/bottom friction (\protect\np{ln_lin}{ln\_lin})} 979 919 \label{subsec:ZDF_drg_linear} … … 1012 952 $mask\_value$ * \np{rn_boost}{rn\_boost} * \np{rn_Cd0}{rn\_Cd0}. 1013 953 1014 % -------------------------------------------------------------------------------------------------------------1015 % Non-Linear Bottom Friction1016 % -------------------------------------------------------------------------------------------------------------1017 954 \subsection[Non-linear top/bottom friction (\forcode{ln_non_lin})]{Non-linear top/bottom friction (\protect\np{ln_non_lin}{ln\_non\_lin})} 1018 955 \label{subsec:ZDF_drg_nonlinear} … … 1047 984 $mask\_value$ * \np{rn_boost}{rn\_boost} * \np{rn_Cd0}{rn\_Cd0}. 1048 985 1049 % -------------------------------------------------------------------------------------------------------------1050 % Bottom Friction Log-layer1051 % -------------------------------------------------------------------------------------------------------------1052 986 \subsection[Log-layer top/bottom friction (\forcode{ln_loglayer})]{Log-layer top/bottom friction (\protect\np{ln_loglayer}{ln\_loglayer})} 1053 987 \label{subsec:ZDF_drg_loglayer} … … 1073 1007 %In this case, the relevant namelist parameters are \np{rn_tfrz0}{rn\_tfrz0}, \np{rn_tfri2}{rn\_tfri2} and \np{rn_tfri2_max}{rn\_tfri2\_max}. 1074 1008 1075 % -------------------------------------------------------------------------------------------------------------1076 % Explicit bottom Friction1077 % -------------------------------------------------------------------------------------------------------------1078 1009 \subsection[Explicit top/bottom friction (\forcode{ln_drgimp=.false.})]{Explicit top/bottom friction (\protect\np[=.false.]{ln_drgimp}{ln\_drgimp})} 1079 1010 \label{subsec:ZDF_drg_stability} … … 1134 1065 The number of potential breaches of the explicit stability criterion are still reported for information purposes. 1135 1066 1136 % -------------------------------------------------------------------------------------------------------------1137 % Implicit Bottom Friction1138 % -------------------------------------------------------------------------------------------------------------1139 1067 \subsection[Implicit top/bottom friction (\forcode{ln_drgimp=.true.})]{Implicit top/bottom friction (\protect\np[=.true.]{ln_drgimp}{ln\_drgimp})} 1140 1068 \label{subsec:ZDF_drg_imp} … … 1164 1092 Superscript $n+1$ means the velocity used in the friction formula is to be calculated, so it is implicit. 1165 1093 1166 % -------------------------------------------------------------------------------------------------------------1167 % Bottom Friction with split-explicit free surface1168 % -------------------------------------------------------------------------------------------------------------1169 1094 \subsection[Bottom friction with split-explicit free surface]{Bottom friction with split-explicit free surface} 1170 1095 \label{subsec:ZDF_drg_ts} … … 1180 1105 Note that other strategies are possible, like considering vertical diffusion step in advance, \ie\ prior barotropic integration. 1181 1106 1182 1183 % ================================================================1184 % Internal wave-driven mixing1185 % ================================================================1186 1107 \section[Internal wave-driven mixing (\forcode{ln_zdfiwm})]{Internal wave-driven mixing (\protect\np{ln_zdfiwm}{ln\_zdfiwm})} 1187 1108 \label{subsec:ZDF_tmx_new} … … 1245 1166 % Jc: input files names ? 1246 1167 1247 % ================================================================1248 % surface wave-induced mixing1249 % ================================================================1250 1168 \section[Surface wave-induced mixing (\forcode{ln_zdfswm})]{Surface wave-induced mixing (\protect\np{ln_zdfswm}{ln\_zdfswm})} 1251 1169 \label{subsec:ZDF_swm} … … 1278 1196 (for more information on wave parameters and settings see \autoref{sec:SBC_wave}) 1279 1197 1280 % ================================================================1281 % Adaptive-implicit vertical advection1282 % ================================================================1283 1198 \section[Adaptive-implicit vertical advection (\forcode{ln_zad_Aimp})]{Adaptive-implicit vertical advection(\protect\np{ln_zad_Aimp}{ln\_zad\_Aimp})} 1284 1199 \label{subsec:ZDF_aimp} -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_cfgs.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter Configurations6 % ================================================================7 4 \chapter{Configurations} 8 5 \label{chap:CFGS} … … 10 7 \chaptertoc 11 8 12 \newpage13 14 % ================================================================15 % Introduction16 % ================================================================17 9 \section{Introduction} 18 10 \label{sec:CFGS_intro} … … 35 27 %------------------------------------------------------------------------------------------------------------- 36 28 37 % ================================================================38 % 1D model configuration39 % ================================================================40 29 \section[C1D: 1D Water column model (\texttt{\textbf{key\_c1d}})]{C1D: 1D Water column model (\protect\key{c1d})} 41 30 \label{sec:CFGS_c1d} … … 60 49 Therefore, defining \key{c1d} changes some things in the code behaviour: 61 50 \begin{description} 62 \item [(1)]51 \item [(1)] 63 52 a simplified \rou{stp} routine is used (\rou{stp\_c1d}, see \mdl{step\_c1d} module) in which 64 53 both lateral tendancy terms and lateral physics are not called; 65 \item [(2)]54 \item [(2)] 66 55 the vertical velocity is zero 67 56 (so far, no attempt at introducing a Ekman pumping velocity has been made); 68 \item [(3)]57 \item [(3)] 69 58 a simplified treatment of the Coriolis term is performed as $U$- and $V$-points are the same 70 59 (see \mdl{dyncor\_c1d}). … … 75 64 % to be added: a test case on the yearlong Ocean Weather Station (OWS) Papa dataset of Martin (1985) 76 65 77 % ================================================================78 % ORCA family configurations79 % ================================================================80 66 \section{ORCA family: global ocean with tripolar grid} 81 67 \label{sec:CFGS_orca} … … 90 76 In this namelist\_cfg the name of domain input file is set in \nam{cfg}{cfg} block of namelist. 91 77 92 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>93 78 \begin{figure}[!t] 94 79 \centering … … 104 89 \label{fig:CFGS_ORCA_msh} 105 90 \end{figure} 106 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 107 108 % ------------------------------------------------------------------------------------------------------------- 109 % ORCA tripolar grid 110 % ------------------------------------------------------------------------------------------------------------- 91 111 92 \subsection{ORCA tripolar grid} 112 93 \label{subsec:CFGS_orca_grid} … … 121 102 The resulting mesh presents no loss of continuity in either the mesh lines or the scale factors, 122 103 or even the scale factor derivatives over the whole ocean domain, as the mesh is not a composite mesh. 123 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>124 104 \begin{figure}[!tbp] 125 105 \centering … … 136 116 \label{fig:CFGS_ORCA_e1e2} 137 117 \end{figure} 138 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>139 118 140 119 The method is applied to Mercator grid (\ie\ same zonal and meridional grid spacing) poleward of 20\deg{N}, … … 149 128 while the ratio of anisotropy remains close to one except near the Victoria Island in the Canadian Archipelago. 150 129 151 % -------------------------------------------------------------------------------------------------------------152 % ORCA-ICE(-PISCES) configurations153 % -------------------------------------------------------------------------------------------------------------154 130 \subsection{ORCA pre-defined resolution} 155 131 \label{subsec:CFGS_orca_resolution} … … 182 158 %-------------------------------------------------------------------------------------------------------------- 183 159 184 185 160 The ORCA\_R2 configuration has the following specificity: starting from a 2\deg\ ORCA mesh, 186 161 local mesh refinements were applied to the Mediterranean, Red, Black and Caspian Seas, … … 221 196 sponge layers at open boundaries. 222 197 223 % -------------------------------------------------------------------------------------------------------------224 % GYRE family: double gyre basin225 % -------------------------------------------------------------------------------------------------------------226 198 \section{GYRE family: double gyre basin} 227 199 \label{sec:CFGS_gyre} … … 274 246 namelist \path{./cfgs/GYRE_PISCES/EXPREF/namelist_cfg}. 275 247 276 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>277 248 \begin{figure}[!t] 278 249 \centering … … 283 254 \label{fig:CFGS_GYRE} 284 255 \end{figure} 285 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 286 287 % ------------------------------------------------------------------------------------------------------------- 288 % AMM configuration 289 % ------------------------------------------------------------------------------------------------------------- 256 290 257 \section{AMM: atlantic margin configuration} 291 258 \label{sec:CFGS_config_AMM} -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_conservation.tex
r11584 r11596 3 3 \begin{document} 4 4 5 % ================================================================6 % Invariant of the Equations7 % ================================================================8 5 \chapter{Invariants of the Primitive Equations} 9 6 \label{chap:CONS} … … 42 39 \citep{Marti1992?, Levy1996?, Levy1998?}. 43 40 44 % -------------------------------------------------------------------------------------------------------------45 % Conservation Properties on Ocean Dynamics46 % -------------------------------------------------------------------------------------------------------------47 41 \section{Conservation properties on ocean dynamics} 48 42 \label{sec:CONS_Invariant_dyn} … … 158 152 otherwise there is no guarantee that the surface pressure force work vanishes. 159 153 160 % -------------------------------------------------------------------------------------------------------------161 % Conservation Properties on Ocean Thermodynamics162 % -------------------------------------------------------------------------------------------------------------163 154 \section{Conservation properties on ocean thermodynamics} 164 155 \label{sec:CONS_Invariant_tra} … … 179 170 In practice, the mass is conserved with a very good accuracy. 180 171 181 % -------------------------------------------------------------------------------------------------------------182 % Conservation Properties on Momentum Physics183 % -------------------------------------------------------------------------------------------------------------184 172 \subsection{Conservation properties on momentum physics} 185 173 \label{subsec:CONS_Invariant_dyn_physics} … … 223 211 {A^{lm}\;\zeta \;{\mathrm {\mathbf k}}} \right)} \right]\;dv} \leqslant 0 224 212 \] 225 226 213 227 214 (II.4.6a) and (II.4.6b) means that the horizontal diffusion of momentum conserve both the potential vorticity and … … 286 273 \ie\ the vertical momentum physics conserve momentum, potential vorticity, and horizontal divergence. 287 274 288 % -------------------------------------------------------------------------------------------------------------289 % Conservation Properties on Tracer Physics290 % -------------------------------------------------------------------------------------------------------------291 275 \subsection{Conservation properties on tracer physics} 292 276 \label{subsec:CONS_Invariant_tra_physics} -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_misc.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter --- Miscellaneous Topics6 % ================================================================7 4 \chapter{Miscellaneous Topics} 8 5 \label{chap:MISC} … … 10 7 \chaptertoc 11 8 12 \newpage13 14 % ================================================================15 % Representation of Unresolved Straits16 % ================================================================17 9 \section{Representation of unresolved straits} 18 10 \label{sec:MISC_strait} … … 36 28 lateral friction. 37 29 38 % -------------------------------------------------------------------------------------------------------------39 % Hand made geometry changes40 % -------------------------------------------------------------------------------------------------------------41 30 \subsection{Hand made geometry changes} 42 31 \label{subsec:MISC_strait_hand} … … 83 72 \texttt{fmask} for any other configuration. 84 73 85 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>86 74 \begin{figure}[!tbp] 87 75 \centering … … 100 88 \label{fig:MISC_strait_hand} 101 89 \end{figure} 102 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 103 104 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 90 105 91 \begin{figure}[!tbp] 106 92 \centering … … 116 102 \label{fig:MISC_closea_mask_example} 117 103 \end{figure} 118 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 119 120 % ================================================================ 121 % Closed seas 122 % ================================================================ 104 123 105 \section[Closed seas (\textit{closea.F90})]{Closed seas (\protect\mdl{closea})} 124 106 \label{sec:MISC_closea} … … 141 123 142 124 \begin{enumerate} 143 \item {{\bfseries No ``closea\_mask'' field is included in domain configuration125 \item {{\bfseries No ``closea\_mask'' field is included in domain configuration 144 126 file.} In this case the closea module does nothing.} 145 127 146 \item {{\bfseries A field called closea\_mask is included in the domain128 \item {{\bfseries A field called closea\_mask is included in the domain 147 129 configuration file and ln\_closea=.false. in namelist namcfg.} In this 148 130 case the inland seas defined by the closea\_mask field are filled in … … 150 132 closea\_mask that is nonzero is set to be a land point.} 151 133 152 \item {{\bfseries A field called closea\_mask is included in the domain134 \item {{\bfseries A field called closea\_mask is included in the domain 153 135 configuration file and ln\_closea=.true. in namelist namcfg.} Each 154 136 inland sea or group of inland seas is set to a positive integer value … … 159 141 closea\_mask is zero).} 160 142 161 \item {{\bfseries Fields called closea\_mask and closea\_mask\_rnf are143 \item {{\bfseries Fields called closea\_mask and closea\_mask\_rnf are 162 144 included in the domain configuration file and ln\_closea=.true. in 163 145 namelist namcfg.} This option works as for option 3, except that if … … 173 155 ocean.} 174 156 175 \item {{\bfseries Fields called closea\_mask and closea\_mask\_emp are157 \item {{\bfseries Fields called closea\_mask and closea\_mask\_emp are 176 158 included in the domain configuration file and ln\_closea=.true. in 177 159 namelist namcfg.} This option works the same as option 4 except that … … 185 167 them to the domain configuration file in the utils/tools/DOMAINcfg directory. 186 168 187 % ================================================================188 % Sub-Domain Functionality189 % ================================================================190 169 \section{Sub-domain functionality} 191 170 \label{sec:MISC_zoom} … … 213 192 214 193 \begin{itemize} 215 \item 194 \item Add the new attribute to any input files requiring a j-row offset, i.e: 216 195 \begin{cmds} 217 196 ncatted -a open_ocean_jstart,global,a,d,41 eORCA1_domcfg.nc … … 251 230 conditions. Experimenting with this remains an exercise for the user. 252 231 253 % ================================================================254 % Accuracy and Reproducibility255 % ================================================================256 232 \section[Accuracy and reproducibility (\textit{lib\_fortran.F90})]{Accuracy and reproducibility (\protect\mdl{lib\_fortran})} 257 233 \label{sec:MISC_fortran} … … 281 257 We use a CPP key as the overwritting of a intrinsic function can present performance issues with 282 258 some computers/compilers. 283 284 259 285 260 \subsection{MPP reproducibility} … … 336 311 non-reference configuration. 337 312 338 % ================================================================339 % Model optimisation, Control Print and Benchmark340 % ================================================================341 313 \section{Model optimisation, control print and benchmark} 342 314 \label{sec:MISC_opt} … … 367 339 368 340 \begin{enumerate} 369 \item {\np{ln_ctl}{ln\_ctl}: compute and print the trends averaged over the interior domain in all TRA, DYN, LDF and341 \item {\np{ln_ctl}{ln\_ctl}: compute and print the trends averaged over the interior domain in all TRA, DYN, LDF and 370 342 ZDF modules. 371 343 This option is very helpful when diagnosing the origin of an undesired change in model results. } 372 344 373 \item {also \np{ln_ctl}{ln\_ctl} but using the nictl and njctl namelist parameters to check the source of differences between345 \item {also \np{ln_ctl}{ln\_ctl} but using the nictl and njctl namelist parameters to check the source of differences between 374 346 mono and multi processor runs.} 375 347 \end{enumerate} … … 415 387 increment also applies to the time.step file which is otherwise updated every timestep. 416 388 417 % ================================================================418 419 \onlyinsubfile{\input{../../global/epilogue}}420 421 \end{document} -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_model_basics.tex
r11584 r11596 4 4 \begin{document} 5 5 6 % ================================================================7 % Chapter 1 Model Basics8 % ================================================================9 6 \chapter{Model Basics} 10 7 \label{chap:MB} … … 12 9 \chaptertoc 13 10 14 \newpage 15 16 % ================================================================ 17 % Primitive Equations 18 % ================================================================ 11 %% ================================================================================================= 19 12 \section{Primitive equations} 20 13 \label{sec:MB_PE} 21 14 22 % ------------------------------------------------------------------------------------------------------------- 23 % Vector Invariant Formulation 24 % ------------------------------------------------------------------------------------------------------------- 25 15 %% ================================================================================================= 26 16 \subsection{Vector invariant formulation} 27 17 \label{subsec:MB_PE_vector} … … 33 23 34 24 \begin{enumerate} 35 \item 36 \textit{spherical Earth approximation}: the geopotential surfaces are assumed to be oblate spheriods 25 \item \textit{spherical Earth approximation}: the geopotential surfaces are assumed to be oblate spheriods 37 26 that follow the Earth's bulge; these spheroids are approximated by spheres with 38 27 gravity locally vertical (parallel to the Earth's radius) and independent of latitude 39 28 \citep[][section 2]{white.hoskins.ea_QJRMS05}. 40 \item 41 \textit{thin-shell approximation}: the ocean depth is neglected compared to the earth's radius 42 \item 43 \textit{turbulent closure hypothesis}: the turbulent fluxes 29 \item \textit{thin-shell approximation}: the ocean depth is neglected compared to the earth's radius 30 \item \textit{turbulent closure hypothesis}: the turbulent fluxes 44 31 (which represent the effect of small scale processes on the large-scale) 45 32 are expressed in terms of large-scale features 46 \item 47 \textit{Boussinesq hypothesis}: density variations are neglected except in their contribution to 33 \item \textit{Boussinesq hypothesis}: density variations are neglected except in their contribution to 48 34 the buoyancy force 49 35 \begin{equation} … … 51 37 \rho = \rho \ (T,S,p) 52 38 \end{equation} 53 \item 54 \textit{Hydrostatic hypothesis}: the vertical momentum equation is reduced to a balance between 39 \item \textit{Hydrostatic hypothesis}: the vertical momentum equation is reduced to a balance between 55 40 the vertical pressure gradient and the buoyancy force 56 41 (this removes convective processes from the initial Navier-Stokes equations and so … … 60 45 \pd[p]{z} = - \rho \ g 61 46 \end{equation} 62 \item 63 \textit{Incompressibility hypothesis}: the three dimensional divergence of the velocity vector $\vect U$ 47 \item \textit{Incompressibility hypothesis}: the three dimensional divergence of the velocity vector $\vect U$ 64 48 is assumed to be zero. 65 49 \begin{equation} … … 67 51 \nabla \cdot \vect U = 0 68 52 \end{equation} 69 \item 70 \textit{Neglect of additional Coriolis terms}: the Coriolis terms that vary with the cosine of latitude are neglected. 53 \item \textit{Neglect of additional Coriolis terms}: the Coriolis terms that vary with the cosine of latitude are neglected. 71 54 These terms may be non-negligible where the Brunt-Vaisala frequency $N$ is small, either in the deep ocean or 72 55 in the sub-mesoscale motions of the mixed layer, or near the equator \citep[][section 1]{white.hoskins.ea_QJRMS05}. … … 108 91 Their nature and formulation are discussed in \autoref{sec:MB_zdf_ldf} and \autoref{subsec:MB_boundary_condition}. 109 92 110 % ------------------------------------------------------------------------------------------------------------- 111 % Boundary condition 112 % ------------------------------------------------------------------------------------------------------------- 93 %% ================================================================================================= 113 94 \subsection{Boundary conditions} 114 95 \label{subsec:MB_boundary_condition} … … 128 109 the other components of the earth system. 129 110 130 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>131 111 \begin{figure}[!ht] 132 112 \centering … … 138 118 \label{fig:MB_ocean_bc} 139 119 \end{figure} 140 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>141 120 142 121 \begin{description} 143 \item[Land - ocean interface:] 144 the major flux between continental margins and the ocean is a mass exchange of fresh water through river runoff. 122 \item [Land - ocean interface:] the major flux between continental margins and the ocean is a mass exchange of fresh water through river runoff. 145 123 Such an exchange modifies the sea surface salinity especially in the vicinity of major river mouths. 146 124 It can be neglected for short range integrations but has to be taken into account for long term integrations as … … 148 126 It is required in order to close the water cycle of the climate system. 149 127 It is usually specified as a fresh water flux at the air-sea interface in the vicinity of river mouths. 150 \item[Solid earth - ocean interface:] 151 heat and salt fluxes through the sea floor are small, except in special areas of little extent. 128 \item [Solid earth - ocean interface:] heat and salt fluxes through the sea floor are small, except in special areas of little extent. 152 129 They are usually neglected in the model 153 130 \footnote{ … … 171 148 $\vect D^{\vect U}$ in \autoref{eq:MB_PE_dyn}. 172 149 It is discussed in \autoref{eq:MB_zdf}.% and Chap. III.6 to 9. 173 \item[Atmosphere - ocean interface:] 174 the kinematic surface condition plus the mass flux of fresh water PE (the precipitation minus evaporation budget) 150 \item [Atmosphere - ocean interface:] the kinematic surface condition plus the mass flux of fresh water PE (the precipitation minus evaporation budget) 175 151 leads to: 176 152 \[ … … 181 157 leads to the continuity of pressure across the interface $z = \eta$. 182 158 The atmosphere and ocean also exchange horizontal momentum (wind stress), and heat. 183 \item[Sea ice - ocean interface:] 184 the ocean and sea ice exchange heat, salt, fresh water and momentum. 159 \item [Sea ice - ocean interface:] the ocean and sea ice exchange heat, salt, fresh water and momentum. 185 160 The sea surface temperature is constrained to be at the freezing point at the interface. 186 161 Sea ice salinity is very low ($\sim4-6 \, psu$) compared to those of the ocean ($\sim34 \, psu$). … … 188 163 \end{description} 189 164 190 % ================================================================ 191 % The Horizontal Pressure Gradient 192 % ================================================================ 165 %% ================================================================================================= 193 166 \section{Horizontal pressure gradient} 194 167 \label{sec:MB_hor_pg} 195 168 196 % ------------------------------------------------------------------------------------------------------------- 197 % Pressure Formulation 198 % ------------------------------------------------------------------------------------------------------------- 169 %% ================================================================================================= 199 170 \subsection{Pressure formulation} 200 171 \label{subsec:MB_p_formulation} … … 228 199 Only the free surface formulation is now described in this document (see the next sub-section). 229 200 230 % ------------------------------------------------------------------------------------------------------------- 231 % Free Surface Formulation 232 % ------------------------------------------------------------------------------------------------------------- 201 %% ================================================================================================= 233 202 \subsection{Free surface formulation} 234 203 \label{subsec:MB_free_surface} … … 280 249 (see \autoref{subsec:DYN_spg_ts}). 281 250 282 % ================================================================ 283 % Curvilinear z-coordinate System 284 % ================================================================ 251 %% ================================================================================================= 285 252 \section{Curvilinear \textit{z-}coordinate system} 286 253 \label{sec:MB_zco} 287 254 288 % ------------------------------------------------------------------------------------------------------------- 289 % Tensorial Formalism 290 % ------------------------------------------------------------------------------------------------------------- 255 %% ================================================================================================= 291 256 \subsection{Tensorial formalism} 292 257 \label{subsec:MB_tensorial} … … 338 303 \label{fig:MB_referential} 339 304 \end{figure} 340 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>341 305 342 306 Since the ocean depth is far smaller than the earth's radius, $a + z$, can be replaced by $a$ in … … 373 337 where $q$ is a scalar quantity and $\vect A = (a_1,a_2,a_3)$ a vector in the $(i,j,k)$ coordinates system. 374 338 375 % ------------------------------------------------------------------------------------------------------------- 376 % Continuous Model Equations 377 % ------------------------------------------------------------------------------------------------------------- 339 %% ================================================================================================= 378 340 \subsection{Continuous model equations} 379 341 \label{subsec:MB_zco_Eq} … … 496 458 497 459 \begin{itemize} 498 \item 499 \textbf{Vector invariant form of the momentum equations}: 460 \item \textbf{Vector invariant form of the momentum equations}: 500 461 \begin{equation} 501 462 \label{eq:MB_dyn_vect} … … 510 471 \end{split} 511 472 \end{equation} 512 \item 513 \textbf{flux form of the momentum equations}: 473 \item \textbf{flux form of the momentum equations}: 514 474 % \label{eq:MB_dyn_flux} 515 475 \begin{multline*} … … 544 504 where the divergence of the horizontal velocity, $\chi$ is given by \autoref{eq:MB_div_Uh}. 545 505 546 \item 547 \textbf{tracer equations}: 506 \item \textbf{tracer equations}: 548 507 \begin{equation} 549 508 \begin{split} … … 562 521 are discussed in \autoref{chap:SBC}. 563 522 564 \newpage 565 566 % ================================================================ 567 % Curvilinear generalised vertical coordinate System 568 % ================================================================ 523 %% ================================================================================================= 569 524 \section{Curvilinear generalised vertical coordinate system} 570 525 \label{sec:MB_gco} … … 647 602 %} 648 603 649 % ------------------------------------------------------------------------------------------------------------- 650 % The s-coordinate Formulation 651 % ------------------------------------------------------------------------------------------------------------- 604 %% ================================================================================================= 652 605 \subsection{\textit{S}-coordinate formulation} 653 606 … … 737 690 } 738 691 739 % ------------------------------------------------------------------------------------------------------------- 740 % Curvilinear \zstar-coordinate System 741 % ------------------------------------------------------------------------------------------------------------- 692 %% ================================================================================================= 742 693 \subsection{Curvilinear \zstar-coordinate system} 743 694 \label{subsec:MB_zco_star} 744 695 745 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>746 696 \begin{figure}[!b] 747 697 \centering … … 754 704 \label{fig:MB_z_zstar} 755 705 \end{figure} 756 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>757 706 758 707 In this case, the free surface equation is nonlinear, and the variations of volume are fully taken into account. … … 827 776 %end MOM doc %%% 828 777 829 \newpage 830 831 % ------------------------------------------------------------------------------------------------------------- 832 % Terrain following coordinate System 833 % ------------------------------------------------------------------------------------------------------------- 778 %% ================================================================================================= 834 779 \subsection{Curvilinear terrain-following \textit{s}--coordinate} 835 780 \label{subsec:MB_sco} 836 781 837 % ------------------------------------------------------------------------------------------------------------- 838 % Introduction 839 % ------------------------------------------------------------------------------------------------------------- 782 %% ================================================================================================= 840 783 \subsubsection{Introduction} 841 784 … … 918 861 It also offers a completely general transformation, $s=s(i,j,z)$ for the vertical coordinate. 919 862 920 % ------------------------------------------------------------------------------------------------------------- 921 % Curvilinear z-tilde coordinate System 922 % ------------------------------------------------------------------------------------------------------------- 863 %% ================================================================================================= 923 864 \subsection{\texorpdfstring{Curvilinear \ztilde-coordinate}{}} 924 865 \label{subsec:MB_zco_tilde} … … 929 870 Its use is therefore not recommended. 930 871 931 \newpage 932 933 % ================================================================ 934 % Subgrid Scale Physics 935 % ================================================================ 872 %% ================================================================================================= 936 873 \section{Subgrid scale physics} 937 874 \label{sec:MB_zdf_ldf} … … 957 894 The formulation of these terms and their underlying physics are briefly discussed in the next two subsections. 958 895 959 % ------------------------------------------------------------------------------------------------------------- 960 % Vertical Subgrid Scale Physics 961 % ------------------------------------------------------------------------------------------------------------- 896 %% ================================================================================================= 962 897 \subsection{Vertical subgrid scale physics} 963 898 \label{subsec:MB_zdf} … … 991 926 The choices available in \NEMO\ are discussed in \autoref{chap:ZDF}). 992 927 993 % ------------------------------------------------------------------------------------------------------------- 994 % Lateral Diffusive and Viscous Operators Formulation 995 % ------------------------------------------------------------------------------------------------------------- 928 %% ================================================================================================= 996 929 \subsection{Formulation of the lateral diffusive and viscous operators} 997 930 \label{subsec:MB_ldf} … … 1047 980 and UBS advection schemes when flux form is chosen for the momentum advection. 1048 981 982 %% ================================================================================================= 1049 983 \subsubsection{Lateral laplacian tracer diffusive operator} 1050 984 … … 1088 1022 while in $s$-coordinates $\pd[]{k}$ is replaced by $\pd[]{s}$. 1089 1023 1024 %% ================================================================================================= 1090 1025 \subsubsection{Eddy induced velocity} 1091 1026 … … 1124 1059 The latter strategy is used in \NEMO\ (cf. \autoref{chap:LDF}). 1125 1060 1061 %% ================================================================================================= 1126 1062 \subsubsection{Lateral bilaplacian tracer diffusive operator} 1127 1063 … … 1135 1071 the harmonic eddy diffusion coefficient set to the square root of the biharmonic one. 1136 1072 1073 %% ================================================================================================= 1137 1074 \subsubsection{Lateral Laplacian momentum diffusive operator} 1138 1075 … … 1167 1104 a geographical coordinate system \citep{lengaigne.madec.ea_JGR03}. 1168 1105 1106 %% ================================================================================================= 1169 1107 \subsubsection{Lateral bilaplacian momentum diffusive operator} 1170 1108 -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_model_basics_zstar.tex
r11584 r11596 2 2 3 3 \begin{document} 4 % ================================================================5 % Chapter 1 Model Basics6 % ================================================================7 % ================================================================8 % Curvilinear \zstar- \sstar-coordinate System9 % ================================================================10 4 \chapter{ essai \zstar \sstar} 11 5 \section{Curvilinear \zstar- or \sstar coordinate system} 12 13 % -------------------------------------------------------------------------------------------------------------14 % ????15 % -------------------------------------------------------------------------------------------------------------16 6 17 7 \colorbox{yellow}{ to be updated } … … 70 60 %%% 71 61 72 % ================================================================73 % Surface Pressure Gradient and Sea Surface Height74 % ================================================================75 62 \section[Surface pressure gradient and sea surface heigth (\textit{dynspg.F90})]{Surface pressure gradient and sea surface heigth (\protect\mdl{dynspg})} 76 63 \label{sec:MBZ_dyn_hpg_spg} -
NEMO/trunk/doc/latex/NEMO/subfiles/chap_time_domain.tex
r11584 r11596 3 3 \begin{document} 4 4 5 % ================================================================6 % Chapter 2 ——— Time Domain (step.F90)7 % ================================================================8 5 \chapter{Time Domain} 9 6 \label{chap:TD} … … 16 13 would help ==> to be added} 17 14 %%%% 18 19 \newpage20 15 21 16 Having defined the continuous equations in \autoref{chap:MB}, we need now to choose a time discretization, … … 25 20 the consequences for the order in which the equations are solved. 26 21 27 % ================================================================28 % Time Discretisation29 % ================================================================30 22 \section{Time stepping environment} 31 23 \label{sec:TD_environment} … … 55 47 The time stepping itself is performed once at each time step where implicit vertical diffusion is computed, \ie\ in the \mdl{trazdf} and \mdl{dynzdf} modules. 56 48 57 % -------------------------------------------------------------------------------------------------------------58 % Non-Diffusive Part---Leapfrog Scheme59 % -------------------------------------------------------------------------------------------------------------60 49 \section{Non-diffusive part --- Leapfrog scheme} 61 50 \label{sec:TD_leap_frog} … … 98 87 filter parameter and the viscosity and diffusion coefficients. 99 88 100 % -------------------------------------------------------------------------------------------------------------101 % Diffusive Part---Forward or Backward Scheme102 % -------------------------------------------------------------------------------------------------------------103 89 \section{Diffusive part --- Forward or backward scheme} 104 90 \label{sec:TD_forward_imp} … … 165 151 (see for example \citet{richtmyer.morton_bk67}). 166 152 167 % -------------------------------------------------------------------------------------------------------------168 % Surface Pressure gradient169 % -------------------------------------------------------------------------------------------------------------170 153 \section{Surface pressure gradient} 171 154 \label{sec:TD_spg_ts} … … 184 167 185 168 %\gmcomment{ 186 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>187 169 \begin{figure}[!t] 188 170 \centering … … 197 179 \label{fig:TD_TimeStep_flowchart} 198 180 \end{figure} 199 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>200 181 %} 201 182 202 % -------------------------------------------------------------------------------------------------------------203 % The Modified Leapfrog -- Asselin Filter scheme204 % -------------------------------------------------------------------------------------------------------------205 183 \section{Modified Leapfrog -- Asselin filter scheme} 206 184 \label{sec:TD_mLF} … … 245 223 even if separated by only $\rdt$ since the time filter is no longer applied to the forcing term. 246 224 247 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>248 225 \begin{figure}[!t] 249 226 \centering … … 261 238 \label{fig:TD_MLF_forcing} 262 239 \end{figure} 263 %>>>>>>>>>>>>>>>>>>>>>>>>>>>> 264 265 % ------------------------------------------------------------------------------------------------------------- 266 % Start/Restart strategy 267 % ------------------------------------------------------------------------------------------------------------- 240 268 241 \section{Start/Restart strategy} 269 242 \label{sec:TD_rst} … … 315 288 %------------------------------------------------------------------------------------------------------------- 316 289 % Time Domain 317 % -------------------------------------------------------------------------------------------------------------318 \subsection{Time domain}319 \label{subsec:TD_time}320 %--------------------------------------------namrun-------------------------------------------321 322 %--------------------------------------------------------------------------------------------------------------323 324 Options are defined through the \nam{dom}{dom} namelist variables.325 \colorbox{yellow}{add here a few word on nit000 and nitend}326 327 \colorbox{yellow}{Write documentation on the calendar and the key variable adatrj}328 329 add a description of daymod, and the model calandar (leap-year and co)330 331 } %% end add332 333 334 335 %%336 \gmcomment{ % add implicit in vvl case and Crant-Nicholson scheme337 338 Implicit time stepping in case of variable volume thickness.339 340 Tracer case (NB for momentum in vector invariant form take care!)341 342 \begin{flalign*}343 &\frac{\lt( e_{3t}\,T \rt)_k^{t+1}-\lt( e_{3t}\,T \rt)_k^{t-1}}{2\rdt}344 \equiv \text{RHS}+ \delta_k \lt[ {\frac{A_w^{vt} }{e_{3w}^{t+1} }\delta_{k + 1/2} \lt[ {T^{t+1}} \rt]}345 \rt] \\346 &\lt( e_{3t}\,T \rt)_k^{t+1}-\lt( e_{3t}\,T \rt)_k^{t-1}347 \equiv {2\rdt} \ \text{RHS}+ {2\rdt} \ \delta_k \lt[ {\frac{A_w^{vt} }{e_{3w}^{t+1} }\delta_{k + 1/2} \lt[ {T^{t+1}} \rt]}348 \rt] \\349 &\lt( e_{3t}\,T \rt)_k^{t+1}-\lt( e_{3t}\,T \rt)_k^{t-1}350 \equiv 2\rdt \ \text{RHS}351 + 2\rdt \ \lt\{ \lt[ \frac{A_w^{vt}}{e_{3w}^{t+1}} \rt]_{k + 1/2} [ T_{k +1}^{t+1} - T_k ^{t+1} ]352 - \lt[ \frac{A_w^{vt}}{e_{3w}^{t+1}} \rt]_{k - 1/2} [ T_k ^{t+1} - T_{k -1}^{t+1} ] \rt\} \\353 &\\354 &\lt( e_{3t}\,T \rt)_k^{t+1}355 - {2\rdt} \ \lt[ \frac{A_w^{vt}}{e_{3w}^{t+1}} \rt]_{k + 1/2} T_{k +1}^{t+1}356 + {2\rdt} \ \lt\{ \lt[ \frac{A_w^{vt}}{e_{3w}^{t+1}} \rt]_{k + 1/2}357 + \lt[ \frac{A_w^{vt}}{e_{3w}^{t+1}} \rt]_{k - 1/2} \rt\} T_{k }^{t+1}358 - {2\rdt} \ \lt[ \frac{A_w^{vt}}{e_{3w}^{t+1}} \rt]_{k - 1/2} T_{k -1}^{t+1} \\359 &\equiv \lt( e_{3t}\,T \rt)_k^{t-1} + {2\rdt} \ \text{RHS} \\360 %361 \end{flalign*}362 \begin{flalign*}363 \allowdisplaybreaks364 \intertext{ Tracer case }365 %366 & \qquad \qquad \quad - {2\rdt} \ \lt[ \frac{A_w^{vt}}{e_{3w}^{t+1}} \rt]_{k + 1/2}367 \qquad \qquad \qquad \qquad T_{k +1}^{t+1} \\368 &+ {2\rdt} \ \biggl\{ (e_{3t})_{k }^{t+1} \bigg. + \lt[ \frac{A_w^{vt}}{e_{3w}^{t+1}} \rt]_{k + 1/2}369 + \lt[ \frac{A_w^{vt}}{e_{3w}^{t+1}} \rt]_{k - 1/2} \bigg. \biggr\} \ \ \ T_{k }^{t+1} &&\\370 & \qquad \qquad \qquad \qquad \qquad \quad \ \ - {2\rdt} \ \lt[ \frac{A_w^{vt}}{e_{3w}^{t+1}} \rt]_{k - 1/2} \quad \ \ T_{k -1}^{t+1}371 \ \equiv \ \lt( e_{3t}\,T \rt)_k^{t-1} + {2\rdt} \ \text{RHS} \\372 %373 \end{flalign*}374 \begin{flalign*}375 \allowdisplaybreaks376 \intertext{ Tracer content case }377 %378 & - {2\rdt} \ & \frac{(A_w^{vt})_{k + 1/2}} {(e_{3w})_{k + 1/2}^{t+1}\;(e_{3t})_{k +1}^{t+1}} && \ \lt( e_{3t}\,T \rt)_{k +1}^{t+1} &\\379 & + {2\rdt} \ \lt[ 1 \rt.+ & \frac{(A_w^{vt})_{k + 1/2}} {(e_{3w})_{k + 1/2}^{t+1}\;(e_{3t})_k^{t+1}}380 + & \frac{(A_w^{vt})_{k - 1/2}} {(e_{3w})_{k - 1/2}^{t+1}\;(e_{3t})_k^{t+1}} \lt. \rt] & \lt( e_{3t}\,T \rt)_{k }^{t+1} &\\381 & - {2\rdt} \ & \frac{(A_w^{vt})_{k - 1/2}} {(e_{3w})_{k - 1/2}^{t+1}\;(e_{3t})_{k -1}^{t+1}} &\ \lt( e_{3t}\,T \rt)_{k -1}^{t+1}382 \equiv \lt( e_{3t}\,T \rt)_k^{t-1} + {2\rdt} \ \text{RHS} &383 \end{flalign*}384 385 %%386 }387 388 \onlyinsubfile{\input{../../global/epilogue}}389 390 \end{document}
Note: See TracChangeset
for help on using the changeset viewer.