/[MITgcm]/manual/s_examples/global_oce_in_p/ogcm_in_pressure.tex
ViewVC logotype

Annotation of /manual/s_examples/global_oce_in_p/ogcm_in_pressure.tex

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


Revision 1.1 - (hide annotations) (download) (as text)
Tue Dec 17 14:39:53 2002 UTC (22 years, 7 months ago) by mlosch
Branch: MAIN
File MIME type: application/x-tex
o added new tutorial experiment global_ocean_pressure to tutorial section
  - this experiment is identical with the new verification experiment
    global_ocean_pressure
  - it simulates the global ocean circulation with a similar setup as the
    global_ocean.90x40x15 experiment
o added some documentation about the new equations of state 'UNESCO', 'JMD95Z',
  'JMD95P', and 'MDJWF' to the 'Getting Started' section.

1 mlosch 1.1 % $Header:
2     % $Name:
3    
4     \section{Global Ocean Simulation at 4$^\circ$ Resolution in Pressure
5     Coordinates}
6     \label{www:tutorials}
7     \label{sect:eg-globalpressure}
8    
9     \bodytext{bgcolor="#FFFFFFFF"}
10    
11     This example experiment demonstrates using the MITgcm to simulate the
12     planetary ocean circulation in pressure coordinates, that is, without
13     making the Boussinesq approximations. The simulation is configured
14     with realistic geography and bathymetry on a $4^{\circ} \times
15     4^{\circ}$ spherical polar grid. Fifteen levels are used in the
16     vertical, ranging in thickness from
17     $50.4089\mbox{\,dbar}\approx50\mbox{\,m}$ at the surface to
18     $710.33\mbox{\,dbar}\approx690\mbox{\,m}$ at depth, giving a maximum
19     model depth of $5302.3122\mbox{\,dbar}\approx5200\mbox{\,km}$. At
20     this resolution, the configuration can be integrated forward for
21     thousands of years on a single processor desktop computer.
22    
23    
24     \subsection{Overview}
25     \label{www:tutorials}
26    
27     The model is forced with climatological wind stress data from
28     Trenberth \cite{trenberth90} and surface flux data from Jiang et~al.\
29     \cite{jiang99}. Climatological data from Levitus \cite{Levitus94} is
30     used to initialize the model hydrography. Levitus seasonal
31     climatology data is also used throughout the calculation to provide
32     additional air-sea fluxes. These fluxes are combined with the Jiang
33     climatological estimates of surface heat flux, resulting in a mixed
34     boundary condition of the style described in Haney \cite{Haney}.
35     Altogether, this yields the following forcing applied in the model
36     surface layer.
37    
38     \begin{eqnarray}
39     \label{EQ:eg-global_forcing_pcoord}
40     \label{EQ:eg-global_forcing_fu_pcoord}
41     {\cal F}_{u} & = & g\frac{\tau_{x}}{\Delta p_{s}}
42     \\
43     \label{EQ:eg-global_forcing_fv_pcoord}
44     {\cal F}_{v} & = & g\frac{\tau_{y}}{\Delta p_{s}}
45     \\
46     \label{EQ:eg-global_forcing_ft_pcoord}
47     {\cal F}_{\theta} & = & - g\lambda_{\theta} ( \theta - \theta^{\ast} )
48     - \frac{1}{C_{p} \Delta p_{s}}{\cal Q}
49     \\
50     \label{EQ:eg-global_forcing_fs_pcoord}
51     {\cal F}_{s} & = &
52     + g\rho_{FW}\frac{S}{\rho\Delta p_{s}}({\cal E} - {\cal P} - {\cal R})
53     \end{eqnarray}
54    
55     \noindent where ${\cal F}_{u}$, ${\cal F}_{v}$, ${\cal F}_{\theta}$,
56     ${\cal F}_{s}$ are the forcing terms in the zonal and meridional
57     momentum and in the potential temperature and salinity equations
58     respectively. The term $\Delta p_{s}$ represents the top ocean layer
59     thickness in Pa. It is used in conjunction with a reference density,
60     $\rho_{FW}$ (here set to $999.8\,{\rm kg\,m^{-3}}$), the surface
61     salinity, $S$, and a specific heat capacity, $C_{p}$ (here set to
62     $4000~{\rm J}~^{\circ}{\rm C}^{-1}~{\rm kg}^{-1}$), to convert input
63     dataset values into time tendencies of potential temperature (with
64     units of $^{\circ}{\rm C}~{\rm s}^{-1}$), salinity (with units ${\rm
65     ppt}~s^{-1}$) and velocity (with units ${\rm m}~{\rm s}^{-2}$). The
66     externally supplied forcing fields used in this experiment are
67     $\tau_{x}$, $\tau_{y}$, $\theta^{\ast}$, $\cal{Q}$ and
68     $\cal{E}-\cal{P}-\cal{R}$. The wind stress fields ($\tau_x$, $\tau_y$)
69     have units of ${\rm N}~{\rm m}^{-2}$. The temperature forcing fields
70     ($\theta^{\ast}$ and $Q$) have units of $^{\circ}{\rm C}$ and ${\rm
71     W}~{\rm m}^{-2}$ respectively. The salinity forcing fields
72     ($\cal{E}-\cal{P}-\cal{R}$) has units of ${\rm m}~{\rm s}^{-1}$
73     respectively. The source files and procedures for ingesting these data
74     into the simulation are described in the experiment configuration
75     discussion in section \ref{SEC:eg-global-clim_ocn_examp_exp_config}.
76    
77    
78     \subsection{Discrete Numerical Configuration}
79     \label{www:tutorials}
80    
81    
82     Due to the pressure coordinate, the model can only be hydrostatic
83     \cite{szoeke02}. The domain is discretized with a uniform grid
84     spacing in latitude and longitude on the sphere $\Delta \phi=\Delta
85     \lambda=4^{\circ}$, so that there are ninety grid cells in the zonal
86     and forty in the meridional direction. The internal model coordinate
87     variables $x$ and $y$ are initialized according to
88     \begin{eqnarray}
89     x=r\cos(\phi),~\Delta x & = &r\cos(\Delta \phi) \\
90     y=r\lambda,~\Delta y &= &r\Delta \lambda
91     \end{eqnarray}
92    
93     Arctic polar regions are not included in this experiment. Meridionally
94     the model extends from $80^{\circ}{\rm S}$ to $80^{\circ}{\rm N}$.
95     Vertically the model is configured with fifteen layers with the
96     following thicknesses %
97     \begin{eqnarray*}
98     \Delta p_{1} &=& 7103300.720021\mbox{\,Pa},\\
99     \Delta p_{2} &=& 6570548.440790\mbox{\,Pa},\\
100     \Delta p_{3} &=& 6041670.010249\mbox{\,Pa},\\
101     \Delta p_{4} &=& 5516436.666057\mbox{\,Pa},\\
102     \Delta p_{5} &=& 4994602.034410\mbox{\,Pa},\\
103     \Delta p_{6} &=& 4475903.435290\mbox{\,Pa},\\
104     \Delta p_{7} &=& 3960063.245801\mbox{\,Pa},\\
105     \Delta p_{8} &=& 3446790.312651\mbox{\,Pa},\\
106     \Delta p_{9} &=& 2935781.405664\mbox{\,Pa},\\
107     \Delta p_{10}&=& 2426722.705046\mbox{\,Pa},\\
108     \Delta p_{11}&=& 1919291.315988\mbox{\,Pa},\\
109     \Delta p_{12}&=& 1413156.804970\mbox{\,Pa},\\
110     \Delta p_{13}&=& 1008846.750166\mbox{\,Pa},\\
111     \Delta p_{14}&=& 705919.025481\mbox{\,Pa},\\
112     \Delta p_{15}&=& 504089.693499\mbox{\,Pa},
113     \end{eqnarray*}
114     (here the numeric subscript indicates the model level index number,
115     ${\tt k}$; note, that the surface layer has the highest index number 15) to
116     give a total depth, $H$, of $-5200{\rm m}$. In pressure, this is
117     $p_{b}^{0}=53023122.566084\mbox{\,Pa}$.
118     The implicit free surface form of the pressure equation described in
119     Marshall et al. \cite{marshall:97a} with the nonlinear extension by
120     Campin et al. \cite{campin:02} is employed. A Laplacian operator, $\nabla^2$, provides viscous
121     dissipation. Thermal and haline diffusion is also represented by a Laplacian operator.
122    
123     Wind-stress forcing is added to the momentum equations in (\ref{EQ:eg-global-model_equations_pcoord})
124     for both the zonal flow, $u$ and the meridional flow $v$, according to equations
125     (\ref{EQ:eg-global_forcing_fu_pcoord}) and (\ref{EQ:eg-global_forcing_fv_pcoord}).
126     Thermodynamic forcing inputs are added to the equations
127     in (\ref{EQ:eg-global-model_equations_pcoord}) for
128     potential temperature, $\theta$, and salinity, $S$, according to equations
129     (\ref{EQ:eg-global_forcing_ft_pcoord}) and (\ref{EQ:eg-global_forcing_fs_pcoord}).
130     This produces a set of equations solved in this configuration as follows:
131    
132     \begin{eqnarray}
133     \label{EQ:eg-global-model_equations_pcoord}
134     \frac{Du}{Dt} - fv +
135     \frac{1}{\rho}\frac{\partial \Phi^{'}}{\partial x} -
136     \nabla_{h}\cdot A_{h}\nabla_{h}u -
137     (g\rho_0)^2\frac{\partial}{\partial p}A_{r}\frac{\partial u}{\partial p}
138     & = &
139     \begin{cases}
140     {\cal F}_u & \text{(surface)} \\
141     0 & \text{(interior)}
142     \end{cases}
143     \\
144     \frac{Dv}{Dt} + fu +
145     \frac{1}{\rho}\frac{\partial \Phi^{'}}{\partial y} -
146     \nabla_{h}\cdot A_{h}\nabla_{h}v -
147     (g\rho_0)^2\frac{\partial}{\partial p}A_{r}\frac{\partial v}{\partial p}
148     & = &
149     \begin{cases}
150     {\cal F}_v & \text{(surface)} \\
151     0 & \text{(interior)}
152     \end{cases}
153     \\
154     \frac{\partial p_{b}}{\partial t} + \nabla_{h}\cdot \vec{u}
155     &=&
156     0
157     \\
158     \frac{D\theta}{Dt} -
159     \nabla_{h}\cdot K_{h}\nabla_{h}\theta
160     - (g\rho_0)^2\frac{\partial}{\partial p}\Gamma(K_{r})\frac{\partial\theta}{\partial p}
161     & = &
162     \begin{cases}
163     {\cal F}_\theta & \text{(surface)} \\
164     0 & \text{(interior)}
165     \end{cases}
166     \\
167     \frac{D s}{Dt} -
168     \nabla_{h}\cdot K_{h}\nabla_{h}s
169     - (g\rho_0)^2\frac{\partial}{\partial p}\Gamma(K_{r})\frac{\partial S}{\partial p}
170     & = &
171     \begin{cases}
172     {\cal F}_s & \text{(surface)} \\
173     0 & \text{(interior)}
174     \end{cases}
175     \\
176     \Phi_{-H}'^{(0)} + \alpha_{0}p_{b}+ \int^{p}_{0}\alpha' dp & = & \Phi'
177     \end{eqnarray}
178    
179     \noindent where $u=\frac{Dx}{Dt}=r \cos(\phi)\frac{D \lambda}{Dt}$ and
180     $v=\frac{Dy}{Dt}=r \frac{D \phi}{Dt}$ are the zonal and meridional
181     components of the flow vector, $\vec{u}$, on the sphere. As described
182     in MITgcm Numerical Solution Procedure \ref{chap:discretization}, the
183     time evolution of potential temperature, $\theta$, equation is solved
184     prognostically. The full geopotential height, $\Phi$, is diagnosed by
185     summing the geopotential height anomalies $\Phi'$ due to bottom
186     pressure $p_{b}$ and density variations. The integration of the
187     hydrostatic equation is started at the bottom of the domain. The
188     condition of $p=0$ at the sea surface requires a time-independent
189     integration constant for the height anomaly due to density variations
190     $\Phi_{-H}'^{(0)}$, which is provided as an input field.
191    
192    
193     \subsection{Experiment Configuration}
194     \label{www:tutorials}
195     \label{SEC:eg-globalpressure-config}
196    
197     The model configuration for this experiment resides under the
198     directory {\it tutorial\_examples/global\_ocean\_circulation/}.
199     The experiment files
200    
201     \begin{itemize}
202     \item {\it input/data}
203     \item {\it input/data.pkg}
204     \item {\it input/eedata},
205     \item {\it input/topog.bin},
206     \item {\it input/deltageopotjmd95.bin},
207     \item {\it input/lev\_s.bin},
208     \item {\it input/lev\_t.bin},
209     \item {\it input/trenberth\_taux.bin},
210     \item {\it input/trenberth\_tauy.bin},
211     \item {\it input/lev\_sst.bin},
212     \item {\it input/shi\_qnet.bin},
213     \item {\it input/shi\_empmr.bin},
214     \item {\it code/CPP\_EEOPTIONS.h}
215     \item {\it code/CPP\_OPTIONS.h},
216     \item {\it code/SIZE.h}.
217     \end{itemize}
218     contain the code customizations and parameter settings for these
219     experiments. Below we describe the customizations
220     to these files associated with this experiment.
221    
222     \subsubsection{Driving Datasets}
223     \label{www:tutorials}
224    
225     Figures (\ref{FIG:sim_config_tclim_pcoord}-\ref{FIG:sim_config_empmr_pcoord}) show
226     the relaxation temperature ($\theta^{\ast}$) and salinity ($S^{\ast}$)
227     fields, the wind stress components ($\tau_x$ and $\tau_y$), the heat
228     flux ($Q$) and the net fresh water flux (${\cal E} - {\cal P} - {\cal
229     R}$) used in equations
230     \ref{EQ:eg-global_forcing_fu_pcoord}-\ref{EQ:eg-global_forcing_fs_pcoord}.
231     The figures also indicate the lateral extent and coastline used in the
232     experiment. Figure ({\ref{FIG:model_bathymetry_pcoord}) shows the depth
233     contours of the model domain.
234     \begin{figure}[t]
235     \begin{center}
236     \includegraphics[width=.9\textwidth]{part3/case_studies/ogcm_in_pressure/sst}
237     \caption{Annual mean of relaxation temperature [$^{\circ}$C]}
238     \label{FIG:sim_config_tclim_pcoord}
239     \end{center}
240     \end{figure}
241     \begin{figure}[t]
242     \begin{center}
243     \includegraphics[width=.9\textwidth]{part3/case_studies/ogcm_in_pressure/sss}
244     \caption{Annual mean of relaxation salinity [PSU]}
245     \label{FIG:sim_config_sclim_pcoord}
246     \end{center}
247     \end{figure}
248     \begin{figure}[t]
249     \begin{center}
250     \includegraphics[width=.9\textwidth]{part3/case_studies/ogcm_in_pressure/tx}
251     \caption{Annual mean of zonal wind stress component [Nm\,m$^{-2}$]}
252     \label{FIG:sim_config_tauy_pcoord}
253     \end{center}
254     \end{figure}
255     \begin{figure}[t]
256     \begin{center}
257     \includegraphics[width=.9\textwidth]{part3/case_studies/ogcm_in_pressure/ty}
258     \caption{Annual mean of meridional wind stress component [Nm\,m$^{-2}$]}
259     \label{FIG:sim_config_tauy_pcoord}
260     \end{center}
261     \end{figure}
262     \begin{figure}[t]
263     \begin{center}
264     \includegraphics[width=.9\textwidth]{part3/case_studies/ogcm_in_pressure/qnet}
265     \caption{Annual mean heat flux [W\,m$^{-2}$]}
266     \label{FIG:sim_config_qnet_pcoord}
267     \end{center}
268     \end{figure}
269     \begin{figure}[t]
270     \begin{center}
271     \includegraphics[width=.9\textwidth]{part3/case_studies/ogcm_in_pressure/emp}
272     \caption{Annual mean fresh water flux (Evaporation-Precipitation) [m\,s$^{-1}$]}
273     \label{FIG:sim_config_empmr_pcoord}
274     \end{center}
275     \end{figure}
276     \begin{figure}[t]
277     \begin{center}
278     \includegraphics[width=.9\textwidth]{part3/case_studies/ogcm_in_pressure/pb0}
279     \caption{Model bathymetry in pressure units [Pa]}
280     \label{FIG:model_bathymetry_pcoord}
281     \end{center}
282     \end{figure}
283    
284     \subsubsection{File {\it input/data}}
285     \label{www:tutorials}
286    
287     This file, reproduced completely below, specifies the main parameters
288     for the experiment. The parameters that are significant for this configuration
289     are
290    
291     \begin{itemize}
292    
293     \item Line 15,
294     \begin{verbatim} viscAr=1.721611620915750E+05, \end{verbatim}
295     this line sets the vertical Laplacian dissipation coefficient to
296     $1.72161162091575 \times 10^{5} {\rm Pa^{2}s^{-1}}$. Note that, the factor
297     $(g\rho)^2$ needs to be included in this line. Boundary conditions
298     for this operator are specified later. This variable is copied into
299     model general vertical coordinate variable {\bf viscAr}.
300    
301     \fbox{
302     \begin{minipage}{5.0in}
303     {\it S/R CALC\_DIFFUSIVITY}({\it calc\_diffusivity.F})
304     \end{minipage}
305     }
306    
307     \item Line 9--10,
308     \begin{verbatim}
309     viscAh=3.E5,
310     no_slip_sides=.TRUE.
311     \end{verbatim}
312     these lines set the horizontal Laplacian frictional dissipation
313     coefficient to $3 \times 10^{5} {\rm m^{2}s^{-1}}$ and specify a
314     no-slip boundary condition for this operator, that is, $u=0$ along
315     boundaries in $y$ and $v=0$ along boundaries in $x$.
316    
317     \item Lines 11-13,
318     \begin{verbatim}
319     viscAr =1.721611620915750e5,
320     #viscAz =1.67E-3,
321     no_slip_bottom=.FALSE.,
322     \end{verbatim}
323     These lines set the vertical Laplacian frictional dissipation
324     coefficient to $1.721611620915750 \times
325     10^{5}\mbox{\,Pa$^{2}$s$^{-1}$}$, which corresponds to
326     $1.67\times10^{-3}\mbox{\,m$^{2}$s$^{-1}$}$ in the commented line, and
327     specify a free slip boundary condition for this operator, that is,
328     $\frac{\partial u}{\partial p}=\frac{\partial v}{\partial p}=0$ at
329     $p=p_{b}^{0}$, where $p_{b}^{0}$ is the local bottom pressure of the
330     domain at rest. Note that, the factor $(g\rho)^2$ needs to be
331     included in this line.
332    
333     \item Line 14,
334     \begin{verbatim}
335     diffKhT=1.E3,
336     \end{verbatim}
337     this line sets the horizontal diffusion coefficient for temperature
338     to $1000\,{\rm m^{2}s^{-1}}$. The boundary condition on this
339     operator is $\frac{\partial}{\partial x}=\frac{\partial}{\partial
340     y}=0$ on all boundaries.
341    
342     \item Line 15--16,
343     \begin{verbatim}
344     diffKrT=5.154525811125000e3,
345     #diffKzT=0.5E-4,
346     \end{verbatim}
347     this line sets the vertical diffusion coefficient for temperature to
348     $5.154525811125 \times 10^{3}\,{\rm Pa^{2}s^{-1}}$, which
349     corresponds to $5\times10^{-4}\mbox{\,m$^{2}$s$^{-1}$}$ in the commented
350     line. Note that, the factor $(g\rho)^2$ needs to be included in this
351     line. The boundary condition on this operator is
352     $\frac{\partial}{\partial p}=0$ at both the upper and lower
353     boundaries.
354    
355     \item Line 17--19,
356     \begin{verbatim}
357     diffKhS=1.E3,
358     diffKrS=5.154525811125000e3,
359     #diffKzS=0.5E-4,
360     \end{verbatim}
361     These lines set the same values for the diffusion coefficients for
362     salinity as for temperature.
363    
364     \item Line 20--22,
365     \begin{verbatim}
366     implicitDiffusion=.TRUE.,
367     ivdc_kappa=1.030905162225000E9,
368     #ivdc_kappa=10.0,
369     \end{verbatim}
370     Select implicit diffusion as a convection scheme and set coefficient
371     for implicit vertical diffusion to $1.030905162225\times10^{9}\,{\rm
372     Pa^{2}s^{-1}}$, which corresponds to $10\mbox{\,m$^{2}$\,s$^{-1}$}$.
373    
374     \item Line 23-24,
375     \begin{verbatim}
376     gravity=9.81,
377     gravitySign=-1.D0,
378     \end{verbatim}
379     These lines set the gravitational acceleration coefficient to
380     $9.81{\rm m}{\rm s}^{-1}$ and define the upward direction relative
381     to the direction of increasing vertical coordinate (in pressure
382     coordinates, up is in the direction of decreasing pressure)
383     \item Line 25,
384     \begin{verbatim}
385     rhoNil=1035.,
386     \end{verbatim}
387     sets the reference density of sea water to $1035\mbox{\,kg\,m$^{-3}$}$.\\
388     \fbox{
389     \begin{minipage}{5.0in}
390     {\it S/R CALC\_PHI\_HYD}~({\it calc\_phi\_hyd.F})\\
391     {\it S/R INI\_CG2D}~({\it ini\_cg2d.F})\\
392     {\it S/R INI\_CG3D}~({\it ini\_cg3d.F})\\
393     {\it S/R INI\_PARMS}~({\it ini\_parms.F})\\
394     {\it S/R SOLVE\_FOR\_PRESSURE}~({\it solve\_for\_pressure.F})
395     \end{minipage}
396     }
397    
398     \item Line 28
399     \begin{verbatim}
400     eosType='JMD95P',
401     \end{verbatim}
402     Selects the full equation of state according to Jackett and McDougall
403     \cite{jackett95}. The only other sensible choice is the equation of
404     state by McDougall et al. \cite{mcdougall03}, 'MDJFW'. All other
405     equations of state do not make sense in this configuration.\\
406     \fbox{
407     \begin{minipage}{5.0in}
408     {\it S/R FIND\_RHO}~({\it find\_rho.F})\\
409     {\it S/R FIND\_ALPHA}~({\it find\_alpha.F})
410     \end{minipage}
411     }
412    
413     \item Line 28-29,
414     \begin{verbatim}
415     rigidLid=.FALSE.,
416     implicitFreeSurface=.TRUE.,
417     \end{verbatim}
418     Selects the barotropic pressure equation to be the implicit free
419     surface formulation.
420     \item Line 30
421     \begin{verbatim}
422     exactConserv=.TRUE.,
423     \end{verbatim}
424     Select a more accurate conservation of properties at the surface
425     layer by including the horizontal velocity divergence to update the
426     free surface.
427     \item Line 31--33
428     \begin{verbatim}
429     nonlinFreeSurf=3,
430     hFacInf=0.2,
431     hFacSup=2.0,
432     \end{verbatim}
433     Select the nonlinear free surface formulation and set lower and
434     upper limits for the free surface excursions.
435     \item Line 34
436     \begin{verbatim}
437     useRealFreshWaterFlux=.FALSE.,
438     \end{verbatim}
439     Select virtual salt flux boundary condition for salinity. The
440     freshwater flux at the surface only affect the surface salinity, but
441     has no mass flux associated with it
442    
443     \item Line 35--36,
444     \begin{verbatim}
445     readBinaryPrec=64,
446     writeBinaryPrec=64,
447     \end{verbatim}
448     Sets format for reading binary input datasets and
449     writing binary output datasets holding model fields to
450     use 64-bit representation for floating-point numbers.\\
451     \fbox{
452     \begin{minipage}{5.0in}
453     {\it S/R READ\_WRITE\_FLD}~({\it read\_write\_fld.F})\\
454     {\it S/R READ\_WRITE\_REC}~({\it read\_write\_rec.F})
455     \end{minipage}
456     }
457    
458     \item Line 42,
459     \begin{verbatim}
460     cg2dMaxIters=200,
461     \end{verbatim}
462     Sets maximum number of iterations the two-dimensional, conjugate
463     gradient solver will use, {\bf irrespective of convergence
464     criteria being met}.\\
465     \fbox{
466     \begin{minipage}{5.0in}
467     {\it S/R CG2D}~({\it cg2d.F})
468     \end{minipage}
469     }
470    
471     \item Line 43,
472     \begin{verbatim}
473     cg2dTargetResidual=1.E-13,
474     \end{verbatim}
475     Sets the tolerance which the two-dimensional, conjugate
476     gradient solver will use to test for convergence in equation
477     \ref{EQ:congrad_2d_resid} to $1 \times 10^{-9}$.
478     Solver will iterate until
479     tolerance falls below this value or until the maximum number of
480     solver iterations is reached.\\
481     \fbox{
482     \begin{minipage}{5.0in}
483     {\it S/R CG2D}~({\it cg2d.F})
484     \end{minipage}
485     }
486    
487     \item Line 48,
488     \begin{verbatim}
489     startTime=0,
490     \end{verbatim}
491     Sets the starting time for the model internal time counter.
492     When set to non-zero this option implicitly requests a
493     checkpoint file be read for initial state.
494     By default the checkpoint file is named according to
495     the integer number of time steps in the {\bf startTime} value.
496     The internal time counter works in seconds.
497    
498     \item Line 49--50,
499     \begin{verbatim}
500     endTime=8640000.,
501     #endTime=62208000000,
502     \end{verbatim}
503     Sets the time (in seconds) at which this simulation will terminate.
504     At the end of a simulation a checkpoint file is automatically
505     written so that a numerical experiment can consist of multiple
506     stages. The commented out setting for endTime is for a 2000 year
507     simulation.
508    
509     \item Line 51--53,
510     \begin{verbatim}
511     deltaTmom = 1200.0,
512     deltaTtracer = 172800.0,
513     deltaTfreesurf = 172800.0,
514     \end{verbatim}
515     Sets the timestep $\delta t_{v}$ used in the momentum equations to
516     $20~{\rm mins}$ and the timesteps $\delta t_{\theta}$ in the tracer
517     equations and $\delta t_{\eta}$ in the implicit free surface
518     equation to $48\mbox{\,hours}$. See section
519     \ref{SEC:mom_time_stepping}.\\
520     \fbox{
521     \begin{minipage}{5.0in}
522     {\it S/R TIMESTEP}({\it timestep.F}) \\
523     {\it S/R INI\_PARMS}({\it ini\_parms.F})\\
524     {\it S/R CALC\_MOM\_RHS}({\it calc\_mom\_rhs.F}) \\
525     {\it S/R TIMESTEP\_TRACER}({\it timestep\_tracer.F})
526     \end{minipage}
527     }
528    
529     \item Line 55,
530     \begin{verbatim}
531     pChkptFreq =3110400000.,
532     \end{verbatim}
533     write a pick-up file every 100 years of integration.
534    
535     \item Line 56--58
536     \begin{verbatim}
537     dumpFreq = 3110400000.,
538     taveFreq = 3110400000.,
539     monitorFreq = 31104000.,
540     \end{verbatim}
541     write model output and time-averaged model output every 100 years,
542     and monitor statisitics every year.
543    
544     \item Line 59--61
545     \begin{verbatim}
546     periodicExternalForcing=.TRUE.,
547     externForcingPeriod=2592000.,
548     externForcingCycle=31104000.,
549     \end{verbatim}
550     Allow periodic external forcing, set forcing period, during which
551     one set of data is valid, to 1 month and the repeat cycle to 1 year.\\
552     \fbox{
553     \begin{minipage}{5.0in}
554     {\it S/R EXTERNAL\_FORCING\_SURF}({\it external\_forcing\_surf.F})
555     \end{minipage}
556     }
557     \item Line 62
558     \begin{verbatim}
559     tauThetaClimRelax=5184000.0,
560     \end{verbatim}
561     Set the restoring timescale to 2 months.\\
562     \fbox{
563     \begin{minipage}{5.0in}
564     {\it S/R EXTERNAL\_FORCING\_SURF}({\it external\_forcing\_surf.F})
565     \end{minipage}
566     }
567    
568     \item Line 63
569     \begin{verbatim}
570     abEps=0.1,
571     \end{verbatim}
572     Adams-Bashford factor (see section \ref{sect:adams-bashforth})
573    
574     \item Line 68--69
575     \begin{verbatim}
576     usingCartesianGrid=.FALSE.,
577     usingSphericalPolarGrid=.TRUE.,
578     \end{verbatim}
579     Select spherical grid.
580     \item Line 70--71
581     \begin{verbatim}
582     dXspacing=4.,
583     dYspacing=4.,
584     \end{verbatim}
585     Set the horizontal grid spacing in degrees spherical distance.
586     \item Line 72
587     \begin{verbatim}
588     Ro_SeaLevel=53023122.566084,
589     \end{verbatim}
590     specifies the total height (in $r$-units, i.e., pressure units) of the
591     sea surface at rest. This is a reference value.
592     \item Line 73
593     \begin{verbatim}
594     groundAtK1=.TRUE.,
595     \end{verbatim}
596     specifies the reversal of the vertical indexing. The vertical index is
597     1 at the bottom of the doman and maximal (i.e., 15) at the surface.
598     \item Line 74--78
599     \begin{verbatim}
600     delR=7103300.720021, \ldots
601     \end{verbatim}
602     set the layer thickness in pressure units, starting with the bottom
603     layer.
604    
605     \item Line 84--93,
606     \begin{verbatim}
607     bathyFile='topog.box'
608     ploadFile='deltageopotjmd95.bin'
609     hydrogThetaFile='lev_t.bin',
610     hydrogSaltFile ='lev_s.bin',
611     zonalWindFile ='trenberth_taux.bin',
612     meridWindFile ='trenberth_tauy.bin',
613     thetaClimFile ='lev_sst.bin',
614     surfQFile ='shi_qnet.bin',
615     EmPmRFile ='shi_empmr.bin',
616     \end{verbatim}
617     This line specifies the names of the files holding the bathymetry
618     data set, the
619     time-independent geopotential height anomaly at the bottom, initial
620     conditions of temperature and salinity, wind stress forcing fields,
621     sea surface temperature climatology, heat flux, and fresh water flux
622     (evaporation minus precipitation minus run-off) at the surface.
623     See file descriptions in section \ref{SEC:eg-globalpressure-config}.
624    
625     \end{itemize}
626    
627     \noindent other lines in the file {\it input/data} are standard values
628     that are described in the MITgcm Getting Started and MITgcm Parameters
629     notes.
630    
631     \begin{small}
632     \input{part3/case_studies/ogcm_in_pressure/input/data}
633     \end{small}
634    
635     \subsubsection{File {\it input/data.pkg}}
636     \label{www:tutorials}
637    
638     This file uses standard default values and does not contain
639     customisations for this experiment.
640    
641     \subsubsection{File {\it input/eedata}}
642     \label{www:tutorials}
643    
644     This file uses standard default values and does not contain
645     customisations for this experiment.
646    
647     \subsubsection{File {\it input/topog.bin}}
648     \label{www:tutorials}
649    
650     This file is a two-dimensional ($x,y$) map of
651     depths. This file is assumed to contain 64-bit binary numbers giving
652     the depth of the model at each grid cell, ordered with the x
653     coordinate varying fastest. The points are ordered from low
654     coordinate to high coordinate for both axes. The units and
655     orientation of the depths in this file are the same as used in the
656     MITgcm code (Pa for this experiment). In this experiment, a depth of
657     $0\mbox{\,Pa}$ indicates a land point wall and a depth of
658     $>0\mbox{\,Pa}$ indicates open ocean.
659    
660     \subsubsection{File {\it input/deltageopotjmd95.box}}
661     \label{www:tutorials}
662    
663     The file contains 12 identical two dimensional maps ($x,y$) of
664     geopotential height anomaly at the bottom at rest. The values have
665     been obtained by vertically integrating the hydrostatic equation with
666     the initial density field (from {\it input/lev\_t/s.bin}). This file
667     has to be consitent with the temperature and salinity field at rest
668     and the choice of equation of state!
669    
670     \subsubsection{File {\it input/lev\_t/s.bin}}
671     \label{www:tutorials}
672    
673     The files {\it input/lev\_t/s.bin} specify the initial conditions for
674     temperature and salinity for every grid point in a three dimensional
675     array ($x,y,z$). The data are obtain by interpolating Levitus
676     \cite{Levitus94} monthly mean values for January onto the model
677     grid. Keep in mind, that the first index corresponds to the bottom
678     layer and highest index to the surface layer.
679    
680     \subsubsection{File {\it input/trenberth\_taux/y.bin}}
681     \label{www:tutorials}
682    
683     Each of the {\it input/trenberth\_taux/y.bin} files specifies 12
684     two-dimensional ($x,y,t$) maps of zonal and meridional wind stress
685     values, $\tau_{x}$ and $\tau_{y}$, that is monthly mean values from
686     Trenberth \cite{trenberth90}. The units used are $Nm^{-2}$.
687    
688     \subsubsection{File {\it input/lev\_sst.bin}}
689     \label{www:tutorials}
690    
691     The file {\it input/lev\_sst.bin} contains 12 monthly surface
692     temperature climatologies from Levitus \cite{Levitus94} in a three
693     dimensional array ($x,y,t$).
694    
695     \subsubsection{File {\it input/shi\_qnet/empmr.bin}}
696     \label{www:tutorials}
697    
698     The files {\it input/shi\_qnet/empmr.bin} contain 12 monthly surface
699     fluxes of heat (qnet) and freshwater (empmr) by Jiang et al.
700     \cite{jiang99} in three dimensional arrays ($x,y,t$). Both fluxes are
701     normalized so that of one year there is no net flux into the
702     ocean. The freshwater flux is actually constant in time.
703    
704     \subsubsection{File {\it code/SIZE.h}}
705     \label{www:tutorials}
706    
707     Three lines are customized in this file for the current experiment
708    
709     \begin{itemize}
710    
711     \item Line 39,
712     \begin{verbatim} sNx=90, \end{verbatim} this line sets
713     the lateral domain extent in grid points for the
714     axis aligned with the x-coordinate.
715    
716     \item Line 40,
717     \begin{verbatim} sNy=40, \end{verbatim} this line sets
718     the lateral domain extent in grid points for the
719     axis aligned with the y-coordinate.
720    
721     \item Line 49,
722     \begin{verbatim} Nr=15, \end{verbatim} this line sets
723     the vertical domain extent in grid points.
724    
725     \end{itemize}
726    
727     \begin{small}
728     \input{part3/case_studies/ogcm_in_pressure/code/SIZE.h}
729     \end{small}
730    
731     \subsubsection{File {\it code/CPP\_OPTIONS.h}}
732     \label{www:tutorials}
733    
734     This file uses mostly standard default values except for:
735     \begin{itemize}
736     \item \verb+#define ATMOSPHERIC_LOADING+\\
737     enable pressure loading which is abused to include the initial
738     geopotential height anomaly
739     \item \verb+#define EXACT_CONSERV+\\
740     enable more accurate conservation properties to include the
741     horizontal mass divergence in the free surface
742     \item \verb+#define NONLIN_FRSURF+\\
743     enable the nonlinear free surface
744     \end{itemize}
745    
746    
747     \subsubsection{File {\it code/CPP\_EEOPTIONS.h}}
748     \label{www:tutorials}
749    
750     This file uses standard default values and does not contain
751     customisations for this experiment.
752    
753    

  ViewVC Help
Powered by ViewVC 1.1.22