/[MITgcm]/manual/s_examples/baroclinic_gyre/fourlayer.tex
ViewVC logotype

Diff of /manual/s_examples/baroclinic_gyre/fourlayer.tex

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.13 by adcroft, Thu May 16 15:54:37 2002 UTC revision 1.21 by molod, Tue Jun 27 19:08:22 2006 UTC
# Line 1  Line 1 
1  % $Header$  % $Header$
2  % $Name$  % $Name$
3    
4  \section{Four Layer Baroclinic Ocean Gyre In Spherical Coordinates}  \section[Baroclinic Gyre MITgcm Example]{Four Layer Baroclinic Ocean Gyre In Spherical Coordinates}
5  \label{www:tutorials}  \label{www:tutorials}
6  \label{sect:eg-fourlayer}  \label{sect:eg-fourlayer}
7    \begin{rawhtml}
8    <!-- CMIREDIR:eg-fourlayer: -->
9    \end{rawhtml}
10    
11  \bodytext{bgcolor="#FFFFFFFF"}  \bodytext{bgcolor="#FFFFFFFF"}
12    
# Line 18  Line 21 
21  %\end{center}  %\end{center}
22    
23  This document describes an example experiment using MITgcm  This document describes an example experiment using MITgcm
24  to simulate a baroclinic ocean gyre in spherical  to simulate a baroclinic ocean gyre for four layers in spherical
25  polar coordinates. The barotropic  polar coordinates.  The files for this experiment can be found
26  example experiment in section \ref{sect:eg-baro}  in the verification directory under tutorial\_baroclinic\_gyre.
 illustrated how to configure the code for a single layer  
 simulation in a Cartesian grid. In this example a similar physical problem  
 is simulated, but the code is now configured  
 for four layers and in a spherical polar coordinate system.  
27    
28  \subsection{Overview}  \subsection{Overview}
29  \label{www:tutorials}  \label{www:tutorials}
# Line 104  non-linear, we use $\theta$ to represent Line 103  non-linear, we use $\theta$ to represent
103  the quantity that is carried in the model core equations.  the quantity that is carried in the model core equations.
104    
105  \begin{figure}  \begin{figure}
106  \begin{center}  %% \begin{center}
107   \resizebox{7.5in}{5.5in}{  %%  \resizebox{7.5in}{5.5in}{
108     \includegraphics*[0.2in,0.7in][10.5in,10.5in]  %%    \includegraphics*[0.2in,0.7in][10.5in,10.5in]
109     {part3/case_studies/fourlayer_gyre/simulation_config.eps} }  %%    {part3/case_studies/fourlayer_gyre/simulation_config.eps} }
110  \end{center}  %% \end{center}
111    \centerline{
112      \scalefig{.95}
113      \epsfbox{part3/case_studies/fourlayer_gyre/simulation_config.eps}
114    }
115  \caption{Schematic of simulation domain and wind-stress forcing function  \caption{Schematic of simulation domain and wind-stress forcing function
116  for the four-layer gyre numerical experiment. The domain is enclosed by solid  for the four-layer gyre numerical experiment. The domain is enclosed by solid
117  walls at $0^{\circ}$~E, $60^{\circ}$~E, $0^{\circ}$~N and $60^{\circ}$~N.  walls at $0^{\circ}$~E, $60^{\circ}$~E, $0^{\circ}$~N and $60^{\circ}$~N.
# Line 360  directory {\it verification/exp2/}.  The Line 363  directory {\it verification/exp2/}.  The
363  \item {\it code/CPP\_OPTIONS.h},  \item {\it code/CPP\_OPTIONS.h},
364  \item {\it code/SIZE.h}.  \item {\it code/SIZE.h}.
365  \end{itemize}  \end{itemize}
366  contain the code customisations and parameter settings for this  contain the code customisations and parameter settings for this
367  experiments. Below we describe the customisations  experiment. Below we describe the customisations to these files
368  to these files associated with this experiment.  associated with this experiment.
369    
370  \subsubsection{File {\it input/data}}  \subsubsection{File {\it input/data}}
371  \label{www:tutorials}  \label{www:tutorials}
# Line 375  are Line 378  are
378    
379  \item Line 4,  \item Line 4,
380  \begin{verbatim} tRef=20.,10.,8.,6., \end{verbatim}  \begin{verbatim} tRef=20.,10.,8.,6., \end{verbatim}
381  this line sets  this line sets the initial and reference values of potential
382  the initial and reference values of potential temperature at each model  temperature at each model level in units of $^{\circ}\mathrm{C}$.  The entries
383  level in units of $^{\circ}$C.  are ordered from surface to depth. For each depth level the initial
384  The entries are ordered from surface to depth. For each  and reference profiles will be uniform in $x$ and $y$. The values
385  depth level the initial and reference profiles will be uniform in  specified here are read into the variable \varlink{tRef}{tRef} in the
386  $x$ and $y$. The values specified here are read into the  model code, by procedure \filelink{INI\_PARMS}{model-src-ini_parms.F}
 variable  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/names/OK.htm> \end{rawhtml}  
 tRef  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
 in the model code, by procedure  
 {\it  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}  
 INI\_PARMS  
 \begin{rawhtml} </A>\end{rawhtml}  
 }.  
   
 %% \codelink{var:tref} tRef \endlink  
 %% \codelink{file:ini_parms} {\it INI\_PARMS } \endlink  
 %% \codelink{proc:ini_parms} {\it INI\_PARMS } \endlink  
 %% \var{tref}  
 %% \proc{ini_parms}  
 %% \file{ini_parms}  
 \newcommand{\VARtref}{  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/names/OK.htm> \end{rawhtml}  
 tRef  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
 }  
   
   
387    
388  \fbox{  \fbox{
389  \begin{minipage}{5.0in}    \begin{minipage}{5.0in}
390  {\it S/R INI\_THETA}      {\it S/R INI\_THETA}({\it ini\_theta.F})
391  ({\it ini\_theta.F})    \end{minipage}
 \end{minipage}  
392  }  }
393  {\bf  \filelink{ini\_theta.F}{model-src-ini_theta.F}
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/98.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
   
394    
395  \item Line 6,  \item Line 6,
396  \begin{verbatim} viscAz=1.E-2, \end{verbatim}  \begin{verbatim} viscAz=1.E-2, \end{verbatim}
397  this line sets the vertical Laplacian dissipation coefficient to  this line sets the vertical Laplacian dissipation coefficient to $1
398  $1 \times 10^{-2} {\rm m^{2}s^{-1}}$. Boundary conditions  \times 10^{-2} {\rm m^{2}s^{-1}}$. Boundary conditions for this
399  for this operator are specified later.  operator are specified later.  The variable \varlink{viscAz}{viscAz}
400  The variable  is read in the routine \filelink{ini\_parms.F}{model-src-ini_parms.F}
401  {\bf  and is copied into model general vertical coordinate variable
402  \begin{rawhtml} <A href=../../../code_reference/vdb/names/ZQ.htm> \end{rawhtml}  \varlink{viscAr}{viscAr} At each time step, the viscous term
403  viscAz  contribution to the momentum equations is calculated in routine
404  \begin{rawhtml} </A>\end{rawhtml}  \varlink{CALC\_DIFFUSIVITY}{CALC_DIFFUSIVITY}
 }  
 is read in the routine  
 {\it  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}  
 INI\_PARMS  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
 and is copied into model general vertical coordinate variable  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/names/PF.htm> \end{rawhtml}  
 viscAr  
 \begin{rawhtml} </A>\end{rawhtml}  
 }. At each time step, the viscous term contribution to the momentum equations  
 is calculated in routine  
 {\it S/R CALC\_DIFFUSIVITY}.  
405    
406  \fbox{  \fbox{
407  \begin{minipage}{5.0in}  \begin{minipage}{5.0in}
408  {\it S/R CALC\_DIFFUSIVITY}({\it calc\_diffusivity.F})  {\it S/R CALC\_DIFFUSIVITY}({\it calc\_diffusivity.F})
409  \end{minipage}  \end{minipage}
410  }  }
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/53.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
411    
412  \item Line 7,  \item Line 7,
413  \begin{verbatim}  \begin{verbatim}
414  viscAh=4.E2,  viscAh=4.E2,
415  \end{verbatim}  \end{verbatim}
416  this line sets the horizontal laplacian frictional dissipation coefficient to    this line sets the horizontal laplacian frictional dissipation
417  $1 \times 10^{-2} {\rm m^{2}s^{-1}}$. Boundary conditions    coefficient to $1 \times 10^{-2} {\rm m^{2}s^{-1}}$. Boundary
418  for this operator are specified later.    conditions for this operator are specified later.  The variable
419  The variable    \varlink{viscAh}{viscAh} is read in the routine
420  {\bf    \varlink{INI\_PARMS}{INI_PARMS} and applied in routines
421  \begin{rawhtml} <A href=../../../code_reference/vdb/names/SI.htm> \end{rawhtml}    \varlink{CALC\_MOM\_RHS}{CALC_MOM_RHS} and
422  viscAh    \varlink{CALC\_GW}{CALC_GW}.
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
 is read in the routine  
 {\it  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}  
 INI\_PARMS  
 \begin{rawhtml} </A>\end{rawhtml}  
 } and applied in routines {\it CALC\_MOM\_RHS} and {\it CALC\_GW}.  
423    
424  \fbox{  \fbox{
425  \begin{minipage}{5.0in}    \begin{minipage}{5.0in}
426  {\it S/R CALC\_MOM\_RHS}({\it calc\_mom\_rhs.F})      {\it S/R CALC\_MOM\_RHS}({\it calc\_mom\_rhs.F})
427  \end{minipage}    \end{minipage}
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/60.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
428  }  }
   
429  \fbox{  \fbox{
430  \begin{minipage}{5.0in}    \begin{minipage}{5.0in}
431  {\it S/R CALC\_GW}({\it calc\_gw.F})      {\it S/R CALC\_GW}({\it calc\_gw.F})
432  \end{minipage}    \end{minipage}
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/58.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
433  }  }
434    
435  \item Lines 8,  \item Line 8,
436  \begin{verbatim}  \begin{verbatim}
437  no_slip_sides=.FALSE.  no_slip_sides=.FALSE.
438  \end{verbatim}  \end{verbatim}
439  this line selects a free-slip lateral boundary condition for    this line selects a free-slip lateral boundary condition for the
440  the horizontal laplacian friction operator    horizontal laplacian friction operator e.g. $\frac{\partial
441  e.g. $\frac{\partial u}{\partial y}$=0 along boundaries in $y$ and      u}{\partial y}$=0 along boundaries in $y$ and $\frac{\partial
442  $\frac{\partial v}{\partial x}$=0 along boundaries in $x$.      v}{\partial x}$=0 along boundaries in $x$.  The variable
443  The variable    \varlink{no\_slip\_sides}{no_slip_sides} is read in the routine
444  {\bf    \varlink{INI\_PARMS}{INI_PARMS} and the boundary condition is
445  \begin{rawhtml} <A href=../../../code_reference/vdb/names/UT.htm> \end{rawhtml}    evaluated in routine
446  no\_slip\_sides  
447  \begin{rawhtml} </A>\end{rawhtml}    \fbox{
448  }      \begin{minipage}{5.0in}
449  is read in the routine        {\it S/R CALC\_MOM\_RHS}({\it calc\_mom\_rhs.F})
450  {\it      \end{minipage}
451  \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}    }
452  INI\_PARMS    \filelink{calc\_mom\_rhs.F}{calc_mom_rhs.F}
453  \begin{rawhtml} </A>\end{rawhtml}    
 } and the boundary condition is evaluated in routine  
 {\it S/R CALC\_MOM\_RHS}.  
   
   
 \fbox{  
 \begin{minipage}{5.0in}  
 {\it S/R CALC\_MOM\_RHS}({\it calc\_mom\_rhs.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/60.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
   
454  \item Lines 9,  \item Lines 9,
455  \begin{verbatim}  \begin{verbatim}
456  no_slip_bottom=.TRUE.  no_slip_bottom=.TRUE.
457  \end{verbatim}  \end{verbatim}
458  this line selects a no-slip boundary condition for bottom    this line selects a no-slip boundary condition for bottom boundary
459  boundary condition in the vertical laplacian friction operator    condition in the vertical laplacian friction operator e.g. $u=v=0$
460  e.g. $u=v=0$ at $z=-H$, where $H$ is the local depth of the domain.    at $z=-H$, where $H$ is the local depth of the domain.  The variable
461  The variable    \varlink{no\_slip\_bottom}{no\_slip\_bottom} is read in the routine
462  {\bf    \filelink{INI\_PARMS}{model-src-ini_parms.F} and is applied in the
463  \begin{rawhtml} <A href=../../../code_reference/vdb/names/UK.htm> \end{rawhtml}    routine \varlink{CALC\_MOM\_RHS}{CALC_MOM_RHS}.
464  no\_slip\_bottom  
465  \begin{rawhtml} </A>\end{rawhtml}    \fbox{
466  }      \begin{minipage}{5.0in}
467  is read in the routine        {\it S/R CALC\_MOM\_RHS}({\it calc\_mom\_rhs.F})
468  {\it      \end{minipage}
469  \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}    }
470  INI\_PARMS    \filelink{calc\_mom\_rhs.F}{calc_mom_rhs.F}
 \begin{rawhtml} </A>\end{rawhtml}  
 } and is applied in the routine {\it S/R CALC\_MOM\_RHS}.  
   
 \fbox{  
 \begin{minipage}{5.0in}  
 {\it S/R CALC\_MOM\_RHS}({\it calc\_mom\_rhs.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/60.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
471    
472  \item Line 10,  \item Line 10,
473  \begin{verbatim}  \begin{verbatim}
474  diffKhT=4.E2,  diffKhT=4.E2,
475  \end{verbatim}  \end{verbatim}
476  this line sets the horizontal diffusion coefficient for temperature    this line sets the horizontal diffusion coefficient for temperature
477  to $400\,{\rm m^{2}s^{-1}}$. The boundary condition on this    to $400\,{\rm m^{2}s^{-1}}$. The boundary condition on this operator
478  operator is $\frac{\partial}{\partial x}=\frac{\partial}{\partial y}=0$ at    is $\frac{\partial}{\partial x}=\frac{\partial}{\partial y}=0$ at
479  all boundaries.    all boundaries.  The variable \varlink{diffKhT}{diffKhT} is read in
480  The variable    the routine \varlink{INI\_PARMS}{INI_PARMS} and used in routine
481  {\bf    \varlink{CALC\_GT}{CALC_GT}.
482  \begin{rawhtml} <A href=../../../code_reference/vdb/names/RC.htm> \end{rawhtml}  
483  diffKhT    \fbox{ \begin{minipage}{5.0in}
484  \begin{rawhtml} </A>\end{rawhtml}        {\it S/R CALC\_GT}({\it calc\_gt.F})
485  }      \end{minipage}
486  is read in the routine    }
487  {\it    \filelink{calc\_gt.F}{model-src-calc_gt.F}
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}  
 INI\_PARMS  
 \begin{rawhtml} </A>\end{rawhtml}  
 } and used in routine {\it S/R CALC\_GT}.  
   
 \fbox{ \begin{minipage}{5.0in}  
 {\it S/R CALC\_GT}({\it calc\_gt.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/57.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
488    
489  \item Line 11,  \item Line 11,
490  \begin{verbatim}  \begin{verbatim}
491  diffKzT=1.E-2,  diffKzT=1.E-2,
492  \end{verbatim}  \end{verbatim}
493  this line sets the vertical diffusion coefficient for temperature    this line sets the vertical diffusion coefficient for temperature to
494  to $10^{-2}\,{\rm m^{2}s^{-1}}$. The boundary condition on this    $10^{-2}\,{\rm m^{2}s^{-1}}$. The boundary condition on this
495  operator is $\frac{\partial}{\partial z}$ = 0 on all boundaries.    operator is $\frac{\partial}{\partial z}$ = 0 on all boundaries.
496  The variable    The variable \varlink{diffKzT}{diffKzT} is read in the routine
497  {\bf    \varlink{INI\_PARMS}{INI_PARMS}. It is copied into model general
498  \begin{rawhtml} <A href=../../../code_reference/vdb/names/ZT.htm> \end{rawhtml}    vertical coordinate variable \varlink{diffKrT}{diffKrT} which is
499  diffKzT    used in routine \varlink{CALC\_DIFFUSIVITY}{CALC_DIFFUSIVITY}.
500  \begin{rawhtml} </A>\end{rawhtml}  
501  }    \fbox{ \begin{minipage}{5.0in}
502  is read in the routine        {\it S/R CALC\_DIFFUSIVITY}({\it calc\_diffusivity.F})
503  {\it      \end{minipage}
504  \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}    }
505  INI\_PARMS    \filelink{calc\_diffusivity.F}{model-src-calc_diffusivity.F}
 \begin{rawhtml} </A>\end{rawhtml}  
 }.  
 It is copied into model general vertical coordinate variable  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/names/PD.htm> \end{rawhtml}  
 diffKrT  
 \begin{rawhtml} </A>\end{rawhtml}  
 } which is used in routine {\it S/R CALC\_DIFFUSIVITY}.  
   
 \fbox{ \begin{minipage}{5.0in}  
 {\it S/R CALC\_DIFFUSIVITY}({\it calc\_diffusivity.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/53.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
   
   
506    
507  \item Line 13,  \item Line 13,
508  \begin{verbatim}  \begin{verbatim}
509  tAlpha=2.E-4,  tAlpha=2.E-4,
510  \end{verbatim}  \end{verbatim}
511  This line sets the thermal expansion coefficient for the fluid    This line sets the thermal expansion coefficient for the fluid to $2
512  to $2 \times 10^{-4}\,{\rm degrees}^{-1}$    \times 10^{-4}\,{\rm degrees}^{-1}$ The variable
513  The variable    \varlink{tAlpha}{tAlpha} is read in the routine
514  {\bf    \varlink{INI\_PARMS}{INI_PARMS}. The routine
515  \begin{rawhtml} <A href=../../../code_reference/vdb/names/ZV.htm> \end{rawhtml}    \varlink{FIND\_RHO}{FIND\_RHO} makes use of {\bf tAlpha}.
516  tAlpha  
517  \begin{rawhtml} </A>\end{rawhtml}    \fbox{
518  }      \begin{minipage}{5.0in}
519  is read in the routine        {\it S/R FIND\_RHO}({\it find\_rho.F})
520  {\it      \end{minipage}
521  \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}    }
522  INI\_PARMS    \filelink{find\_rho.F}{model-src-find_rho.F}
 \begin{rawhtml} </A>\end{rawhtml}  
 }. The routine {\it S/R FIND\_RHO} makes use of {\bf tAlpha}.  
   
 \fbox{  
 \begin{minipage}{5.0in}  
 {\it S/R FIND\_RHO}({\it find\_rho.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/79.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
523    
524  \item Line 18,  \item Line 18,
525  \begin{verbatim}  \begin{verbatim}
526  eosType='LINEAR'  eosType='LINEAR'
527  \end{verbatim}  \end{verbatim}
528  This line selects the linear form of the equation of state.    This line selects the linear form of the equation of state.  The
529  The variable    variable \varlink{eosType}{eosType} is read in the routine
530  {\bf    \varlink{INI\_PARMS}{INI_PARMS}. The values of {\bf eosType} sets
531  \begin{rawhtml} <A href=../../../code_reference/vdb/names/WV.htm> \end{rawhtml}    which formula in routine {\it FIND\_RHO} is used to calculate
532  eosType    density.
533  \begin{rawhtml} </A>\end{rawhtml}  
534  }    \fbox{
535  is read in the routine      \begin{minipage}{5.0in}
536  {\it        {\it S/R FIND\_RHO}({\it find\_rho.F})
537  \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}      \end{minipage}
538  INI\_PARMS    }
539  \begin{rawhtml} </A>\end{rawhtml}    \filelink{find\_rho.F}{model-src-find_rho.F}
 }. The values of {\bf eosType} sets which formula in routine  
 {\it FIND\_RHO} is used to calculate density.  
   
 \fbox{  
 \begin{minipage}{5.0in}  
 {\it S/R FIND\_RHO}({\it find\_rho.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/79.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
   
   
540    
541  \item Line 40,  \item Line 40,
542  \begin{verbatim}  \begin{verbatim}
543  usingSphericalPolarGrid=.TRUE.,  usingSphericalPolarGrid=.TRUE.,
544  \end{verbatim}  \end{verbatim}
545  This line requests that the simulation be performed in a    This line requests that the simulation be performed in a spherical
546  spherical polar coordinate system. It affects the interpretation of    polar coordinate system. It affects the interpretation of grid input
547  grid input parameters, for example {\bf delX} and {\bf delY} and    parameters, for example {\bf delX} and {\bf delY} and causes the
548  causes the grid generation routines to initialize an internal grid based    grid generation routines to initialize an internal grid based on
549  on spherical polar geometry.    spherical polar geometry.  The variable
550  The variable    \varlink{usingSphericalPolarGrid}{usingSphericalPolarGrid} is read
551  {\bf    in the routine \varlink{INI\_PARMS}{INI_PARMS}. When set to {\bf
552  \begin{rawhtml} <A href=../../../code_reference/vdb/names/10T.htm> \end{rawhtml}      .TRUE.} the settings of {\bf delX} and {\bf delY} are taken to be
553  usingSphericalPolarGrid    in degrees. These values are used in the routine
554  \begin{rawhtml} </A>\end{rawhtml}  
555  }    \fbox{
556  is read in the routine      \begin{minipage}{5.0in}
557  {\it        {\it S/R INI\_SPEHRICAL\_POLAR\_GRID}({\it ini\_spherical\_polar\_grid.F})
558  \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}      \end{minipage}
559  INI\_PARMS    }
560  \begin{rawhtml} </A>\end{rawhtml}    \filelink{ini\_spherical\_polar\_grid.F}{model-src-ini_spherical_polar_grid.F}
 }. When set to {\bf .TRUE.} the settings of {\bf delX} and {\bf delY} are  
 taken to be in degrees. These values are used in the  
 routine {\it INI\_SPEHRICAL\_POLAR\_GRID}.  
   
 \fbox{  
 \begin{minipage}{5.0in}  
 {\it S/R INI\_SPEHRICAL\_POLAR\_GRID}({\it ini\_spherical\_polar\_grid.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/97.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
561    
562  \item Line 41,  \item Line 41,
563  \begin{verbatim}  \begin{verbatim}
564  phiMin=0.,  phiMin=0.,
565  \end{verbatim}  \end{verbatim}
566  This line sets the southern boundary of the modeled    This line sets the southern boundary of the modeled domain to
567  domain to $0^{\circ}$ latitude. This value affects both the    $0^{\circ}$ latitude. This value affects both the generation of the
568  generation of the locally orthogonal grid that the model    locally orthogonal grid that the model uses internally and affects
569  uses internally and affects the initialization of the coriolis force.    the initialization of the coriolis force.  Note - it is not required
570  Note - it is not required to set    to set a longitude boundary, since the absolute longitude does not
571  a longitude boundary, since the absolute longitude does    alter the kernel equation discretisation.  The variable
572  not alter the kernel equation discretisation.    \varlink{phiMin}{phiMin} is read in the
573  The variable    routine \varlink{INI\_PARMS}{INI_PARMS} and is used in routine
574  {\bf  
575  \begin{rawhtml} <A href=../../../code_reference/vdb/names/110.htm> \end{rawhtml}    \fbox{
576  phiMin      \begin{minipage}{5.0in}
577  \begin{rawhtml} </A>\end{rawhtml}        {\it S/R INI\_SPEHRICAL\_POLAR\_GRID}({\it ini\_spherical\_polar\_grid.F})
578  }      \end{minipage}
579  is read in the routine    }
580  {\it    \filelink{ini\_spherical\_polar\_grid.F}{model-src-ini_spherical_polar_grid.F}
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}  
 INI\_PARMS  
 \begin{rawhtml} </A>\end{rawhtml}  
 } and is used in routine {\it INI\_SPEHRICAL\_POLAR\_GRID}.  
   
 \fbox{  
 \begin{minipage}{5.0in}  
 {\it S/R INI\_SPEHRICAL\_POLAR\_GRID}({\it ini\_spherical\_polar\_grid.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/97.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
581    
582  \item Line 42,  \item Line 42,
583  \begin{verbatim}  \begin{verbatim}
584  delX=60*1.,  delX=60*1.,
585  \end{verbatim}  \end{verbatim}
586  This line sets the horizontal grid spacing between each y-coordinate line    This line sets the horizontal grid spacing between each y-coordinate
587  in the discrete grid to $1^{\circ}$ in longitude.    line in the discrete grid to $1^{\circ}$ in longitude.  The variable
588  The variable    \varlink{delX}{delX} is read in the routine
589  {\bf    \varlink{INI\_PARMS}{INI_PARMS} and is used in routine
590  \begin{rawhtml} <A href=../../../code_reference/vdb/names/10Z.htm> \end{rawhtml}  
591  delX    \fbox{
592  \begin{rawhtml} </A>\end{rawhtml}      \begin{minipage}{5.0in}
593  }        {\it S/R INI\_SPEHRICAL\_POLAR\_GRID}({\it ini\_spherical\_polar\_grid.F})
594  is read in the routine      \end{minipage}
595  {\it    }
596  \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}    \filelink{ini\_spherical\_polar\_grid.F}{model-src-ini_spherical_polar_grid.F}
 INI\_PARMS  
 \begin{rawhtml} </A>\end{rawhtml}  
 } and is used in routine {\it INI\_SPEHRICAL\_POLAR\_GRID}.  
   
 \fbox{  
 \begin{minipage}{5.0in}  
 {\it S/R INI\_SPEHRICAL\_POLAR\_GRID}({\it ini\_spherical\_polar\_grid.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/97.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
597    
598  \item Line 43,  \item Line 43,
599  \begin{verbatim}  \begin{verbatim}
600  delY=60*1.,  delY=60*1.,
601  \end{verbatim}  \end{verbatim}
602  This line sets the horizontal grid spacing between each y-coordinate line    This line sets the horizontal grid spacing between each y-coordinate
603  in the discrete grid to $1^{\circ}$ in latitude.    line in the discrete grid to $1^{\circ}$ in latitude.  The variable
604  The variable    \varlink{delY}{delY} is read in the routine
605  {\bf    \varlink{INI\_PARMS}{INI_PARMS} and is used in routine
606  \begin{rawhtml} <A href=../../../code_reference/vdb/names/UB.htm> \end{rawhtml}  
607  delY      \fbox{
608  \begin{rawhtml} </A>\end{rawhtml}      \begin{minipage}{5.0in}
609  }        {\it S/R INI\_SPEHRICAL\_POLAR\_GRID}({\it ini\_spherical\_polar\_grid.F})
610  is read in the routine      \end{minipage}
611  {\it    }
612  \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}    \filelink{ini\_spherical\_polar\_grid.F}{model-src-ini_spherical_polar_grid.F}
 INI\_PARMS  
 \begin{rawhtml} </A>\end{rawhtml}  
 } and is used in routine {\it INI\_SPEHRICAL\_POLAR\_GRID}.  
   
 \fbox{  
 \begin{minipage}{5.0in}  
 {\it S/R INI\_SPEHRICAL\_POLAR\_GRID}({\it ini\_spherical\_polar\_grid.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/97.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
613    
614  \item Line 44,  \item Line 44,
615  \begin{verbatim}  \begin{verbatim}
616  delZ=500.,500.,500.,500.,  delZ=500.,500.,500.,500.,
617  \end{verbatim}  \end{verbatim}
618  This line sets the vertical grid spacing between each z-coordinate line    This line sets the vertical grid spacing between each z-coordinate
619  in the discrete grid to $500\,{\rm m}$, so that the total model depth    line in the discrete grid to $500\,{\rm m}$, so that the total model
620  is $2\,{\rm km}$.    depth is $2\,{\rm km}$.  The variable \varlink{delZ}{delZ} is read
621  The variable    in the routine \varlink{INI\_PARMS}{INI_PARMS}.  It is copied into
622  {\bf    the internal model coordinate variable \varlink{delR}{delR} which is
623  \begin{rawhtml} <A href=../../../code_reference/vdb/names/10W.htm> \end{rawhtml}    used in routine
624  delZ  
625  \begin{rawhtml} </A>\end{rawhtml}    \fbox{
626  }      \begin{minipage}{5.0in}
627  is read in the routine        {\it S/R INI\_VERTICAL\_GRID}({\it ini\_vertical\_grid.F})
628  {\it      \end{minipage}
629  \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}    }
630  INI\_PARMS    \filelink{ini\_vertical\_grid.F}{model-src-ini_vertical_grid.F}
 \begin{rawhtml} </A>\end{rawhtml}  
 }.  
 It is copied into the internal  
 model coordinate variable  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/names/10Y.htm> \end{rawhtml}  
 delR  
 \begin{rawhtml} </A>\end{rawhtml}  
 } which is used in routine {\it INI\_VERTICAL\_GRID}.  
   
 \fbox{  
 \begin{minipage}{5.0in}  
 {\it S/R INI\_VERTICAL\_GRID}({\it ini\_vertical\_grid.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/100.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
631    
632  \item Line 47,  \item Line 47,
633  \begin{verbatim}  \begin{verbatim}
634  bathyFile='topog.box'  bathyFile='topog.box'
635  \end{verbatim}  \end{verbatim}
636  This line specifies the name of the file from which the domain    This line specifies the name of the file from which the domain
637  bathymetry is read. This file is a two-dimensional ($x,y$) map of    bathymetry is read. This file is a two-dimensional ($x,y$) map of
638  depths. This file is assumed to contain 64-bit binary numbers    depths. This file is assumed to contain 64-bit binary numbers giving
639  giving the depth of the model at each grid cell, ordered with the x    the depth of the model at each grid cell, ordered with the x
640  coordinate varying fastest. The points are ordered from low coordinate    coordinate varying fastest. The points are ordered from low
641  to high coordinate for both axes. The units and orientation of the    coordinate to high coordinate for both axes. The units and
642  depths in this file are the same as used in the MITgcm code. In this    orientation of the depths in this file are the same as used in the
643  experiment, a depth of $0m$ indicates a solid wall and a depth    MITgcm code. In this experiment, a depth of $0m$ indicates a solid
644  of $-2000m$ indicates open ocean. The matlab program    wall and a depth of $-2000m$ indicates open ocean. The matlab
645  {\it input/gendata.m} shows an example of how to generate a    program {\it input/gendata.m} shows an example of how to generate a
646  bathymetry file.    bathymetry file.  The variable \varlink{bathyFile}{bathyFile} is
647  The variable    read in the routine \varlink{INI\_PARMS}{INI_PARMS}.  The bathymetry
648  {\bf    file is read in the routine
649  \begin{rawhtml} <A href=../../../code_reference/vdb/names/179.htm> \end{rawhtml}  
650  bathyFile    \fbox{
651  \begin{rawhtml} </A>\end{rawhtml}      \begin{minipage}{5.0in}
652  }        {\it S/R INI\_DEPTHS}({\it ini\_depths.F})
653  is read in the routine      \end{minipage}
654  {\it    }
655  \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}    \filelink{ini\_depths.F}{model-src-ini_depths.F}
 INI\_PARMS  
 \begin{rawhtml} </A>\end{rawhtml}  
 }. The bathymetry file is read in the routine {\it INI\_DEPTHS}.  
   
 \fbox{  
 \begin{minipage}{5.0in}  
 {\it S/R INI\_DEPTHS}({\it ini\_depths.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/88.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
   
656    
657  \item Line 50,  \item Line 50,
658  \begin{verbatim}  \begin{verbatim}
659  zonalWindFile='windx.sin_y'  zonalWindFile='windx.sin_y'
660  \end{verbatim}  \end{verbatim}
661  This line specifies the name of the file from which the x-direction    This line specifies the name of the file from which the x-direction
662  (zonal) surface wind stress is read. This file is also a two-dimensional    (zonal) surface wind stress is read. This file is also a
663  ($x,y$) map and is enumerated and formatted in the same manner as the    two-dimensional ($x,y$) map and is enumerated and formatted in the
664  bathymetry file. The matlab program {\it input/gendata.m} includes example    same manner as the bathymetry file. The matlab program {\it
665  code to generate a valid      input/gendata.m} includes example code to generate a valid {\bf
666  {\bf zonalWindFile}      zonalWindFile} file.  The variable
667  file.      \varlink{zonalWindFile}{zonalWindFile} is read in the routine
668  The variable    \varlink{INI\_PARMS}{INI_PARMS}.  The wind-stress file is read in
669  {\bf    the routine
670  \begin{rawhtml} <A href=../../../code_reference/vdb/names/13W.htm> \end{rawhtml}  
671  zonalWindFile    \fbox{
672  \begin{rawhtml} </A>\end{rawhtml}      \begin{minipage}{5.0in}
673  }        {\it S/R EXTERNAL\_FIELDS\_LOAD}({\it external\_fields\_load.F})
674  is read in the routine      \end{minipage}
675  {\it    }
676  \begin{rawhtml} <A href=../../../code_reference/vdb/code/94.htm> \end{rawhtml}    \filelink{external\_fields\_load.F}{model-src-external_fields_load.F}
 INI\_PARMS  
 \begin{rawhtml} </A>\end{rawhtml}  
 }.  The wind-stress file is read in the routine  
 {\it EXTERNAL\_FIELDS\_LOAD}.  
   
 \fbox{  
 \begin{minipage}{5.0in}  
 {\it S/R EXTERNAL\_FIELDS\_LOAD}({\it external\_fields\_load.F})  
 \end{minipage}  
 }  
 {\bf  
 \begin{rawhtml} <A href=../../../code_reference/vdb/code/75.htm> \end{rawhtml}  
 goto code  
 \begin{rawhtml} </A>\end{rawhtml}  
 }  
677    
678  \end{itemize}  \end{itemize}
679    
# Line 967  customisations for this experiment. Line 700  customisations for this experiment.
700  \subsubsection{File {\it input/windx.sin\_y}}  \subsubsection{File {\it input/windx.sin\_y}}
701  \label{www:tutorials}  \label{www:tutorials}
702    
703  The {\it input/windx.sin\_y} file specifies a two-dimensional ($x,y$)  The {\it input/windx.sin\_y} file specifies a two-dimensional ($x,y$)
704  map of wind stress ,$\tau_{x}$, values. The units used are $Nm^{-2}$ (the  map of wind stress ,$\tau_{x}$, values. The units used are $Nm^{-2}$
705  default for MITgcm).  (the default for MITgcm).  Although $\tau_{x}$ is only a function of
706  Although $\tau_{x}$ is only a function of latitude, $y$,  latitude, $y$, in this experiment this file must still define a
707  in this experiment  complete two-dimensional map in order to be compatible with the
708  this file must still define a complete two-dimensional map in order  standard code for loading forcing fields in MITgcm (routine {\it
709  to be compatible with the standard code for loading forcing fields    EXTERNAL\_FIELDS\_LOAD}.  The included matlab program {\it
710  in MITgcm (routine {\it EXTERNAL\_FIELDS\_LOAD}.    input/gendata.m} gives a complete code for creating the {\it
711  The included matlab program {\it input/gendata.m} gives a complete    input/windx.sin\_y} file.
 code for creating the {\it input/windx.sin\_y} file.  
712    
713  \subsubsection{File {\it input/topog.box}}  \subsubsection{File {\it input/topog.box}}
714  \label{www:tutorials}  \label{www:tutorials}

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.22