/[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.5 - (hide annotations) (download) (as text)
Tue Jun 27 19:08:22 2006 UTC (19 years ago) by molod
Branch: MAIN
Changes since 1.4: +3 -1 lines
File MIME type: application/x-tex
Add cross references between tutorials and verification file system directories

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

  ViewVC Help
Powered by ViewVC 1.1.22