/[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.3 - (hide annotations) (download) (as text)
Sat Oct 16 03:40:14 2004 UTC (20 years, 9 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint57l_post
Changes since 1.2: +3 -0 lines
File MIME type: application/x-tex
 o add HTML comments as a step towards "URL permanence" which will help
   solve:
   - stale links from the CMI web site
   - rotten indexing by bonniefy.pl
 o also cleanup a merge-mangle in diagnostics.tex

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

  ViewVC Help
Powered by ViewVC 1.1.22