1 |
C $Header: /u/gcmpack/MITgcm/pkg/shelfice/SHELFICE.h,v 1.20 2015/04/22 21:33:58 dgoldberg Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#ifdef ALLOW_SHELFICE |
5 |
|
6 |
CBOP |
7 |
C !ROUTINE: SHELFICE.h |
8 |
|
9 |
C !DESCRIPTION: \bv |
10 |
C *==========================================================* |
11 |
C | SHELFICE.h |
12 |
C | o Basic header thermodnynamic shelf ice package. |
13 |
C | Contains all SHELFICE field declarations. |
14 |
C *==========================================================* |
15 |
|
16 |
C----------------------------------------------------------------------- |
17 |
C |
18 |
C-- Constants that can be set in data.shelfice |
19 |
C SHELFICEtopoFile :: File containing the topography of the |
20 |
C shelfice draught (unit=m) |
21 |
C SHELFICEmassFile :: name of shelfice Mass file |
22 |
C SHELFICEloadAnomalyFile :: name of shelfice load anomaly file |
23 |
C SHELFICEMassDynTendFile :: file name for other mass tendency |
24 |
C (e.g. dynamics) |
25 |
C useISOMIPTD :: use simple ISOMIP thermodynamics, def: F |
26 |
C SHELFICEconserve :: use conservative form of H&O-thermodynamics |
27 |
C following Jenkins et al. (2001, JPO), def: F |
28 |
C SHELFICEMassStepping :: flag to step forward ice shelf mass/thickness |
29 |
C accounts for melting/freezing & dynamics |
30 |
C (from file or from coupling), def: F |
31 |
C SHELFICEDynMassOnly :: step ice mass ONLY with Shelficemassdyntendency |
32 |
C (not melting/freezing) def: F |
33 |
C SHELFICEboundaryLayer :: turn on vertical merging of cells to for a |
34 |
C boundary layer of drF thickness, def: F |
35 |
C SHELFICEthickboundaryLayer |
36 |
C :: similar to boundary layer but allow for a thicker |
37 |
C layer, encompassing 3 cells in vertical, def: F |
38 |
C SHELFICErealFWflux :: ensure vert advective flux at bdry uses top cell |
39 |
C value rather than "boundary layer" value F |
40 |
C SHELFICEadvDiffHeatFlux :: use advective-diffusive heat flux into the |
41 |
C ice shelf instead of default diffusive heat |
42 |
C flux, see Holland and Jenkins (1999), |
43 |
C eq.21,22,26,31; def: F |
44 |
C SHELFICEheatTransCoeff :: constant heat transfer coefficient that |
45 |
C determines heat flux into shelfice |
46 |
C (def: 1e-4 m/s) |
47 |
C SHELFICEsaltTransCoeff :: constant salinity transfer coefficient that |
48 |
C determines salt flux into shelfice |
49 |
C (def: 5.05e-3 * 1e-4 m/s) |
50 |
C ----------------------------------------------------------------------- |
51 |
C SHELFICEuseGammaFrict :: use velocity dependent exchange coefficients, |
52 |
C see Holland and Jenkins (1999), eq.11-18, |
53 |
C with the following parameters (def: F): |
54 |
C shiCdrag :: quadratic drag coefficient to compute uStar |
55 |
C (def: 0.0015) |
56 |
C shiZetaN :: ??? (def: 0.052) |
57 |
C shiRc :: ??? (not used, def: 0.2) |
58 |
C shiPrandtl, shiSchmidt :: constant Prandtl (13.8) and Schmidt (2432.0) |
59 |
C numbers used to compute gammaTurb |
60 |
C shiKinVisc :: constant kinetic viscosity used to compute |
61 |
C gammaTurb (def: 1.95e-5) |
62 |
C ----------------------------------------------------------------------- |
63 |
C SHELFICEDragLinear :: linear drag at bottom shelfice (1/s) |
64 |
C SHELFICEDragQuadratic :: quadratic drag at bottom shelfice (default |
65 |
C = shiCdrag or bottomDragQuadratic) |
66 |
C no_slip_shelfice :: set slip conditions for shelfice separately, |
67 |
C (by default the same as no_slip_bottom, but |
68 |
C really should be false when there is linear |
69 |
C or quadratic drag) |
70 |
C SHELFICElatentHeat :: latent heat of fusion (def: 334000 J/kg) |
71 |
C SHELFICEwriteState :: enable output |
72 |
C SHELFICEHeatCapacity_Cp :: heat capacity of ice shelf (def: 2000 J/K/kg) |
73 |
C rhoShelfIce :: density of ice shelf (def: 917.0 kg/m^3) |
74 |
C |
75 |
C SHELFICE_dump_mnc :: use netcdf for snapshot output |
76 |
C SHELFICE_tave_mnc :: use netcdf for time-averaged output |
77 |
C SHELFICE_dumpFreq :: analoguous to dumpFreq (= default) |
78 |
C SHELFICE_taveFreq :: analoguous to taveFreq (= default) |
79 |
C |
80 |
C-- Fields |
81 |
C ktopC :: index of the top "wet cell" (2D) |
82 |
C R_shelfIce :: shelfice topography [m] |
83 |
C shelficeMassInit :: ice-shelf mass (per unit area) (kg/m^2) |
84 |
C shelficeMass :: ice-shelf mass (per unit area) (kg/m^2) |
85 |
C shelfIceMassDynTendency :: other mass balance tendency (kg/m^2/s) |
86 |
C :: (e.g., from dynamics) |
87 |
C shelficeLoadAnomaly :: pressure load anomaly of shelfice (Pa) |
88 |
C shelficeHeatFlux :: upward heat flux (W/m^2) |
89 |
C shelficeFreshWaterFlux :: upward fresh water flux (virt. salt flux) |
90 |
C (kg/m^2/s) |
91 |
C shelficeForcingT :: analogue of surfaceForcingT |
92 |
C units are r_unit.Kelvin/s (=Kelvin.m/s if r=z) |
93 |
C shelficeForcingS :: analogue of surfaceForcingS |
94 |
C units are r_unit.psu/s (=psu.m/s if r=z) |
95 |
C----------------------------------------------------------------------- |
96 |
C \ev |
97 |
CEOP |
98 |
|
99 |
COMMON /SHELFICE_PARMS_I/ kTopC, |
100 |
& SHELFICEselectDragQuadr |
101 |
INTEGER kTopC (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
102 |
INTEGER SHELFICEselectDragQuadr |
103 |
|
104 |
COMMON /SHELFICE_PARMS_R/ |
105 |
& SHELFICE_dumpFreq, SHELFICE_taveFreq, |
106 |
& SHELFICEheatTransCoeff, SHELFICEsaltTransCoeff, |
107 |
& rhoShelfice, SHELFICEkappa, |
108 |
& SHELFICElatentHeat, |
109 |
& SHELFICEheatCapacity_Cp, |
110 |
& SHELFICEthetaSurface, |
111 |
& SHELFICEDragLinear, SHELFICEDragQuadratic, |
112 |
& shiCdrag, shiZetaN, shiRc, |
113 |
& shiPrandtl, shiSchmidt, shiKinVisc, |
114 |
& SHELFICERemeshFrequency, |
115 |
& SHELFICESplitThreshold, |
116 |
& SHELFICEMergeThreshold |
117 |
_RL SHELFICE_dumpFreq, SHELFICE_taveFreq |
118 |
_RL SHELFICEheatTransCoeff |
119 |
_RL SHELFICEsaltTransCoeff |
120 |
_RL SHELFICElatentHeat |
121 |
_RL SHELFICEheatCapacity_Cp |
122 |
_RL rhoShelfice |
123 |
_RL SHELFICEkappa |
124 |
_RL SHELFICEDragLinear |
125 |
_RL SHELFICEDragQuadratic, SHELFICEMergeThreshold |
126 |
_RL SHELFICEthetaSurface, SHELFICESplitThreshold |
127 |
_RL shiCdrag, shiZetaN, shiRc, SHELFICERemeshFrequency |
128 |
_RL shiPrandtl, shiSchmidt, shiKinVisc |
129 |
|
130 |
COMMON /SHELFICE_FIELDS_RL/ |
131 |
& shelficeMass, shelficeMassInit, |
132 |
& shelficeLoadAnomaly, |
133 |
& shelficeForcingT, shelficeForcingS, |
134 |
& shiTransCoeffT, shiTransCoeffS |
135 |
_RL shelficeMass (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
136 |
_RL shelficeMassInit (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
137 |
_RL shelficeLoadAnomaly (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
138 |
_RL shelficeForcingT (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
139 |
_RL shelficeForcingS (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
140 |
_RL shiTransCoeffT (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
141 |
_RL shiTransCoeffS (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
142 |
|
143 |
COMMON /SHELFICE_FIELDS_RS/ |
144 |
& R_shelfIce, |
145 |
& shelficeHeatFlux, |
146 |
& shelfIceFreshWaterFlux, |
147 |
& shelfIceMassDynTendency |
148 |
_RS R_shelfIce (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
149 |
_RS shelficeHeatFlux (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
150 |
_RS shelficeFreshWaterFlux(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
151 |
_RS |
152 |
& shelfIceMassDynTendency(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
153 |
|
154 |
#ifdef ALLOW_SHIFWFLX_CONTROL |
155 |
COMMON /SHELFICE_MASKS_CTRL/ maskSHI |
156 |
_RS maskSHI (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
157 |
#endif /* ALLOW_SHIFWFLX_CONTROL */ |
158 |
|
159 |
LOGICAL SHELFICEisOn |
160 |
LOGICAL useISOMIPTD |
161 |
LOGICAL SHELFICEconserve |
162 |
LOGICAL SHELFICEboundaryLayer |
163 |
LOGICAL SHELFICEthickBoundaryLayer |
164 |
LOGICAL SHELFICErealFWflux |
165 |
LOGICAL no_slip_shelfice |
166 |
LOGICAL SHELFICEwriteState |
167 |
LOGICAL SHELFICE_dump_mdsio |
168 |
LOGICAL SHELFICE_tave_mdsio |
169 |
LOGICAL SHELFICE_dump_mnc |
170 |
LOGICAL SHELFICE_tave_mnc |
171 |
LOGICAL SHELFICEadvDiffHeatFlux |
172 |
LOGICAL SHELFICEuseGammaFrict |
173 |
LOGICAL SHELFICEMassStepping |
174 |
LOGICAL SHELFICEDynMassOnly |
175 |
COMMON /SHELFICE_PARMS_L/ |
176 |
& SHELFICEisOn, |
177 |
& useISOMIPTD, |
178 |
& SHELFICEconserve, |
179 |
& SHELFICErealFWflux, |
180 |
& SHELFICEboundaryLayer, |
181 |
& SHELFICEthickBoundaryLayer, |
182 |
& no_slip_shelfice, |
183 |
& SHELFICEwriteState, |
184 |
& SHELFICE_dump_mdsio, |
185 |
& SHELFICE_tave_mdsio, |
186 |
& SHELFICE_dump_mnc, |
187 |
& SHELFICE_tave_mnc, |
188 |
& SHELFICEadvDiffHeatFlux, |
189 |
& SHELFICEuseGammaFrict, |
190 |
& SHELFICEMassStepping, |
191 |
& SHELFICEDynMassOnly |
192 |
|
193 |
CHARACTER*(MAX_LEN_FNAM) SHELFICEloadAnomalyFile |
194 |
CHARACTER*(MAX_LEN_FNAM) SHELFICEmassFile |
195 |
CHARACTER*(MAX_LEN_FNAM) SHELFICEtopoFile |
196 |
CHARACTER*(MAX_LEN_FNAM) SHELFICEMassDynTendFile |
197 |
COMMON /SHELFICE_PARM_C/ |
198 |
& SHELFICEloadAnomalyFile, |
199 |
& SHELFICEmassFile, |
200 |
& SHELFICEtopoFile, |
201 |
& SHELFICEMassDynTendFile |
202 |
|
203 |
#endif /* ALLOW_SHELFICE */ |