Professional Documents
Culture Documents
This example experiment demonstrates using the MITgcm to simulate the planetary ocean
∘ ∘
circulation. The simulation is configured with realistic geography and bathymetry on a 4 × 4
spherical polar grid. Fifteen levels are used in the vertical, ranging in thickness from 50 m at the
surface to 690 m at depth, giving a maximum model depth of 5200 m. Different time-steps are used
to accelerate the convergence to equilibrium (see Bryan 1984 [Bry84]) so that, at this resolution,
the configuration can be integrated forward for thousands of years on a single processor desktop
computer.
4.5.1. Overview
The model is forced with climatological wind stress data from Trenberth (1990) [TOL90] and NCEP
surface flux data from Kalnay et al. (1996) [KKK+96]. Climatological data (Levitus and Boyer
1994a,b [LB94a, LB94b]) is used to initialize the model hydrography. Levitus and Boyer seasonal
climatology data is also used throughout the calculation to provide additional air-sea fluxes. These
fluxes are combined with the NCEP climatological estimates of surface heat flux, resulting in a
mixed boundary condition of the style described in Haney (1971) [Han71]. Altogether, this yields
the following forcing applied in the model surface layer.
τx
Fu =
(4.30)
ρ 0 Δz s
τy
Fv =
(4.31)
ρ 0 Δz s
∗
1 (4.32)
F θ = −λ θ (θ − θ ) − Q
C p ρ 0 Δz s
∗
S0 (4.33)
F s = −λ s (S − S ) + (E − P − R)
Δz s
where F , F , F , F are the forcing terms in the zonal and meridional momentum and in the
u v θ s
potential temperature and salinity equations respectively. The term Δz represents the top ocean
s
layer thickness in meters. It is used in conjunction with a reference density, ρ (here set to
0
999.8 kg m-3), a reference salinity, S (here set to 35 ppt), and a specific heat capacity, C (here set
0 p
to 4000 J kg-1 K-1), to convert input dataset values into time tendencies of potential temperature
(with units of oC s-1), salinity (with units ppt s-1) and velocity (with units m s-2). The externally
supplied forcing fields used in this experiment are τ , τ , θ , S , Q and E − P − R. The wind
x y
∗ ∗
stress fields (τ , τ ) have units of N m-2. The temperature forcing fields (θ and Q) have units of oC
x y
∗
and W m-2 respectively. The salinity forcing fields (S and E − P − R) have units of ppt and m s-1
∗
respectively. The source files and procedures for ingesting this data into the simulation are
described in the experiment configuration discussion in section Section 4.5.3.
and 40 in the meridional direction. The internal model coordinate variables x and y are initialized
according to
x = r cos(ϕ), Δx = r cos(Δϕ)
y = rλ, Δy = rΔλ
Arctic polar regions are not included in this experiment. Meridionally the model extends from 80oS
to 80oN. Vertically the model is configured with fifteen layers with the following thicknesses:
Δz 1 = 50 m
Δz 2 = 70 m
Δz 3 = 100 m
Δz 4 = 140 m
Δz 5 = 190 m
Δz 6 = 240 m
Δz 7 = 290 m
Δz 8 = 340 m
Δz 9 = 390 m
Δz 10 = 440 m
Δz 11 = 490 m
Δz 12 = 540 m
Δz 13 = 590 m
Δz 14 = 640 m
Δz 15 = 690 m
(here the numeric subscript indicates the model level index number, k) to give a total depth, H , of
-5200 m. The implicit free surface form of the pressure equation described in Marshall et al. (1997)
2
[MHPA97] is employed. A Laplacian operator, ∇ , provides viscous dissipation. Thermal and haline
diffusion is also represented by a Laplacian operator.
Wind-stress forcing is added to the momentum equations in (4.34) for both the zonal flow u and
the meridional flow v, according to equations (4.30) and (4.31). Thermodynamic forcing inputs are
added to the equations in (4.35) for potential temperature, θ, and salinity, S , according to
equations (4.32) and (4.33). This produces a set of equations solved in this configuration as follows:
′
Du 1 ∂p ∂ ∂u Fu (surf ace) (4.34)
− fv + − ∇ h ⋅ (A h ∇ h u) − (A z ) = {
Dt ρ ∂x ∂z ∂z 0 (interior)
′
Dv 1 ∂p ∂ ∂v Fv (surf ace)
+ fu + − ∇ h ⋅ (A h ∇ h v) − (A z ) = {
Dt ρ ∂y ∂z ∂z 0 (interior)
∂η
+ ∇h ⋅ u = 0 →
∂t
DS ∂ ∂S FS (surf ace)
− ∇ h ⋅ (K h ∇ h S) − (Γ(K z ) ) = {
Dt ∂z ∂z 0 (interior)
0
′ ′
gρ 0 η + ∫ ρ dz = p
−z
Dy Dϕ
where u =
Dx
Dt
= r cos(ϕ)
Dλ
Dt
and v =
Dt
= r
Dt
are the zonal and meridional components of
→ , on the sphere. As described in Section 2, the time evolution of potential
the flow vector, u
temperature θ equation is solved prognostically. The total pressure p is diagnosed by summing
pressure due to surface elevation η and the hydrostatic pressure.
The Laplacian dissipation coefficient, A , is set to 5 × 10 m s-1. This value is chosen to yield a
h
5
Ah 1 (4.36)
M = π( ) 3
of ~600 km. This is greater than the model resolution in low-latitudes, Δx ≈ 400 km, ensuring that
the frictional boundary layer is adequately resolved.
The model is stepped forward with a time step Δt = 24 hours for thermodynamic variables and
θ
Δt = 30 minutes for momentum terms. With this time step, the stability parameter to the
v
A h Δt v (4.37)
S Lh = 4
2
Δx
o
evaluates to 0.6 at a latitude of ϕ = 80 , which is above the 0.3 upper limit for stability, but the
zonal grid spacing Δx is smallest at ϕ = 80o where Δx = r cos(ϕ)Δϕ ≈ 77 km and the stability
criterion is already met one grid cell equatorwards (at ϕ = 76o).
The vertical dissipation coefficient, A , is set to 1 × 10
z
−3
m2 s-1. The associated stability limit
A z Δt v (4.38)
S Lv = 4
2
Δz
evaluates to 0.0029 for the smallest model level spacing (Δz = 50 m) which is well below the
1
S inert = f
2
Δt v
2
(4.39)
→| =
The advective CFL (Adcroft 1995 [Adc95]) for a extreme maximum horizontal flow speed of |u
2 m s-1
→
|u|Δt v (4.40)
S adv =
Δx
−2
evaluates to 5 × 10 . This is well below the stability limit of 0.5.
The stability parameter for internal gravity waves propagating with a maximum speed of c = g
c g Δt v (4.41)
Sc =
Δx
−1
evaluates to 2.3 × 10 . This is close to the linear stability limit of 0.5.
4.5.3. Experiment Configuration
verification/tutorial_global_oce_latlon/input/data
verification/tutorial_global_oce_latlon/input/data.pkg
verification/tutorial_global_oce_latlon/input/eedata
verification/tutorial_global_oce_latlon/input/trenberth_taux.bin
verification/tutorial_global_oce_latlon/input/trenberth_tauy.bin
verification/tutorial_global_oce_latlon/input/lev_s.bin
verification/tutorial_global_oce_latlon/input/lev_t.bin
verification/tutorial_global_oce_latlon/input/lev_sss.bin
verification/tutorial_global_oce_latlon/input/lev_sst.bin
verification/tutorial_global_oce_latlon/input/bathymetry.bin
verification/tutorial_global_oce_latlon/code/SIZE.h
contain the code customizations and parameter settings for these experiments. Below we describe
the customizations to these files associated with this experiment.
equations (4.30)-(4.33). The figures also indicate the lateral extent and coastline used in the
experiment. Figure (— missing figure — ) shows the depth contours of the model domain.
Figure 4.26 Annual mean of relaxation temperature (oC)
Lines 7-8,
tRef= 15*20.,
sRef= 15*35.,
set reference values for potential temperature and salinity at each model level in units of oC and
ppt. The entries are ordered from surface to depth. Density is calculated from anomalies at
each level evaluated with respect to the reference values set here.
Line 9,
viscAr=1.E-3,
Line 10,
viscAh=5.E5,
this line sets the horizontal Laplacian frictional dissipation coefficient to 5 × 10 m2 s-1.
5
diffKhT=0.,
diffKhS=0.,
set the horizontal diffusion coefficient for temperature and salinity to 0, since pkg/gmredi is
used.
diffKrT=3.E-5,
diffKrS=3.E-5,
∂z
= 0 at both the upper and lower boundaries.
Lines 15-17,
rhoConst=1035.,
rhoConstFresh=1000.,
eosType = 'JMD95Z',
set the reference densities for sea water and fresh water, and selects the equation of state
(Jackett and McDougall 1995 [JM95])
Lines 18-19,
ivdc_kappa=100.,
implicitDiffusion=.TRUE.,
specify an “implicit diffusion” scheme with increased vertical diffusivity of 100 m2/s in case of
instable stratification.
Line 28,
readBinaryPrec=32,
Sets format for reading binary input datasets containing model fields to use 32-bit
representation for floating-point numbers.
Line 33,
cg2dMaxIters=500,
Sets maximum number of iterations the two-dimensional, conjugate gradient solver will use,
irrespective of convergence criteria being met.
Line 34,
cg2dTargetResidual=1.E-13,
Sets the tolerance which the 2-D conjugate gradient solver will use to test for convergence in
−13
(2.15) to 1 × 10 . Solver will iterate until tolerance falls below this value or until the
maximum number of solver iterations is reached.
Line 39,
nIter0=0,
Sets the starting time for the model internal time counter. When set to non-zero this option
implicitly requests a checkpoint file be read for initial state. By default the checkpoint file is
named according to the integer number of time step value nIter0. The internal time counter
works in seconds. Alternatively, startTime can be set.
Line 40,
nTimeSteps=20,
Sets the time step number at which this simulation will terminate. At the end of a simulation a
checkpoint file is automatically written so that a numerical experiment can consist of multiple
stages. Alternatively endTime can be set.
Line 44,
deltaTmom=1800.,
Sets the timestep Δt used in the momentum equations to 30 minutes. See Section 2.2.
v
Line 45,
tauCD=321428.,
Sets the D-grid to C-grid coupling time scale τ CD used in the momentum equations.
Lines 46-48,
deltaTtracer=86400.,
deltaTClock = 86400.,
deltaTfreesurf= 86400.,
Sets the default timestep, Δt , for tracer equations and implicit free surface equations to 24
θ
Line 76,
bathyFile='bathymetry.bin'
This line specifies the name of the file from which the domain bathymetry is read. This file is a
2-D (x, y) map of depths. This file is assumed to contain 32-bit binary numbers giving the depth
of the model at each grid cell, ordered with the x coordinate varying fastest. The points are
ordered from low coordinate to high coordinate for both axes. The units and orientation of the
depths in this file are the same as used in the MITgcm code. In this experiment, a depth of 0 m
indicates a solid wall and a depth of <0 m indicates open ocean.
Lines 79-80,
zonalWindFile='trenberth_taux.bin'
meridWindFile='trenberth_tauy.bin'
These lines specify the names of the files from which the x- and y- direction surface wind
stress is read. These files are also 3-D (x, y, time) maps and are enumerated and formatted in
the same manner as the bathymetry file.
Other lines in the file input/data are standard values that are described in the Section 3.8.
4.5.3.3. File input/data.pkg
This file uses standard default values and does not contain customizations for this experiment.
This file uses standard default values and does not contain customizations for this experiment.
The input/trenberth_taux.bin and input/trenberth_tauy.bin files specify 3-D (x, y, time) maps of
wind stress (τ x, , based on values from Treberth et al. (1990) [TOL90]. The units are N m-2.
τy )
The input/bathymetry.bin file specifies a 2-D (x, y) map of depth values. For this experiment values
range between 0 and -5200 m, and have been derived from ETOPO5. The file contains a raw binary
stream of data that is enumerated in the same way as standard MITgcm 2-D horizontal arrays.
Four lines are customized in this file for the current experiment
Line 45,
sNx=45,
this line sets the number of grid points of each tile (or sub-domain) along the x-coordinate axis.
Line 46,
sNy=40,
this line sets the number of grid points of each tile (or sub-domain) along the y-coordinate axis.
Lines 49,51,
nSx=2,
nPx=1,
these lines set, respectively, the number of tiles per process and the number of processes along
the x-coordinate axis. Therefore, the total number of grid points along the x-coordinate axis
corresponding to the full domain extent is N x = sN x ∗ nSx ∗ nP x = 90.
Line 55,
Nr=15