1 |
dgoldberg |
1.6 |
C $Header: /u/gcmpack/MITgcm_contrib/verification_other/shelfice_remeshing/code/SHELFICE.h,v 1.5 2016/01/26 10:49:13 dgoldberg Exp $ |
2 |
dgoldberg |
1.1 |
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 SHELFICERemeshFrequency :: Frequency that size of etaN is checked to |
63 |
|
|
C trigger remesh |
64 |
|
|
C SHELFICESplitThreshold :: Max size of etaN allowed before a remesh |
65 |
|
|
C SHELFICEMergeThreshold :: Min size of etaN allowed before a remesh |
66 |
|
|
C ----------------------------------------------------------------------- |
67 |
|
|
C SHELFICEDragLinear :: linear drag at bottom shelfice (1/s) |
68 |
|
|
C SHELFICEDragQuadratic :: quadratic drag at bottom shelfice (default |
69 |
|
|
C = shiCdrag or bottomDragQuadratic) |
70 |
|
|
C no_slip_shelfice :: set slip conditions for shelfice separately, |
71 |
|
|
C (by default the same as no_slip_bottom, but |
72 |
|
|
C really should be false when there is linear |
73 |
|
|
C or quadratic drag) |
74 |
|
|
C SHELFICElatentHeat :: latent heat of fusion (def: 334000 J/kg) |
75 |
|
|
C SHELFICEwriteState :: enable output |
76 |
|
|
C SHELFICEHeatCapacity_Cp :: heat capacity of ice shelf (def: 2000 J/K/kg) |
77 |
|
|
C rhoShelfIce :: density of ice shelf (def: 917.0 kg/m^3) |
78 |
|
|
C |
79 |
|
|
C SHELFICE_dump_mnc :: use netcdf for snapshot output |
80 |
|
|
C SHELFICE_tave_mnc :: use netcdf for time-averaged output |
81 |
|
|
C SHELFICE_dumpFreq :: analoguous to dumpFreq (= default) |
82 |
|
|
C SHELFICE_taveFreq :: analoguous to taveFreq (= default) |
83 |
|
|
C |
84 |
|
|
C-- Fields |
85 |
|
|
C ktopC :: index of the top "wet cell" (2D) |
86 |
|
|
C R_shelfIce :: shelfice topography [m] |
87 |
|
|
C R_Grounding :: "grounded" ice topography [m] |
88 |
|
|
C shelficeMassInit :: ice-shelf mass (per unit area) (kg/m^2) |
89 |
|
|
C shelficeMass :: ice-shelf mass (per unit area) (kg/m^2) |
90 |
|
|
C shelfIceMassDynTendency :: other mass balance tendency (kg/m^2/s) |
91 |
|
|
C :: (e.g., from dynamics) |
92 |
|
|
C shelficeLoadAnomaly :: pressure load anomaly of shelfice (Pa) |
93 |
|
|
C shelficeHeatFlux :: upward heat flux (W/m^2) |
94 |
|
|
C shelficeFreshWaterFlux :: upward fresh water flux (virt. salt flux) |
95 |
|
|
C (kg/m^2/s) |
96 |
|
|
C shelficeForcingT :: analogue of surfaceForcingT |
97 |
|
|
C units are r_unit.Kelvin/s (=Kelvin.m/s if r=z) |
98 |
|
|
C shelficeForcingS :: analogue of surfaceForcingS |
99 |
|
|
C units are r_unit.psu/s (=psu.m/s if r=z) |
100 |
|
|
C----------------------------------------------------------------------- |
101 |
|
|
C \ev |
102 |
|
|
CEOP |
103 |
|
|
|
104 |
|
|
COMMON /SHELFICE_PARMS_I/ kTopC, |
105 |
dgoldberg |
1.4 |
& SHELFICEselectDragQuadr, |
106 |
|
|
& shelfice_etarestore_spongewidth |
107 |
dgoldberg |
1.1 |
INTEGER kTopC (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
108 |
|
|
INTEGER SHELFICEselectDragQuadr |
109 |
dgoldberg |
1.4 |
INTEGER shelfice_etarestore_spongewidth |
110 |
dgoldberg |
1.1 |
|
111 |
|
|
COMMON /SHELFICE_PARMS_R/ |
112 |
|
|
& SHELFICE_dumpFreq, SHELFICE_taveFreq, |
113 |
|
|
& SHELFICEheatTransCoeff, SHELFICEsaltTransCoeff, |
114 |
|
|
& rhoShelfice, SHELFICEkappa, |
115 |
|
|
& SHELFICElatentHeat, |
116 |
|
|
& SHELFICEheatCapacity_Cp, |
117 |
|
|
& SHELFICEthetaSurface, |
118 |
|
|
& SHELFICEDragLinear, SHELFICEDragQuadratic, |
119 |
|
|
& shiCdrag, shiZetaN, shiRc, |
120 |
|
|
& shiPrandtl, shiSchmidt, shiKinVisc, |
121 |
|
|
& SHELFICERemeshFrequency, |
122 |
|
|
& SHELFICESplitThreshold, |
123 |
dgoldberg |
1.4 |
& SHELFICEMergeThreshold, |
124 |
|
|
& shelficeEtaRelax |
125 |
dgoldberg |
1.1 |
_RL SHELFICE_dumpFreq, SHELFICE_taveFreq |
126 |
|
|
_RL SHELFICEheatTransCoeff |
127 |
|
|
_RL SHELFICEsaltTransCoeff |
128 |
|
|
_RL SHELFICElatentHeat |
129 |
|
|
_RL SHELFICEheatCapacity_Cp |
130 |
|
|
_RL rhoShelfice |
131 |
|
|
_RL SHELFICEkappa |
132 |
|
|
_RL SHELFICEDragLinear |
133 |
|
|
_RL SHELFICEDragQuadratic, SHELFICEMergeThreshold |
134 |
|
|
_RL SHELFICEthetaSurface, SHELFICESplitThreshold |
135 |
|
|
_RL shiCdrag, shiZetaN, shiRc, SHELFICERemeshFrequency |
136 |
|
|
_RL shiPrandtl, shiSchmidt, shiKinVisc |
137 |
dgoldberg |
1.4 |
_RL SHELFICEGroundW, SHELFICEGroundC, shelficeEtaRelax |
138 |
dgoldberg |
1.1 |
COMMON /SHELFICE_FIELDS_RL/ |
139 |
dgoldberg |
1.5 |
& shelficeMass, shelficeMassInit, |
140 |
dgoldberg |
1.1 |
& shelficeLoadAnomaly, |
141 |
|
|
& shelficeForcingT, shelficeForcingS, |
142 |
dgoldberg |
1.2 |
& shiTransCoeffT, shiTransCoeffS, EFFMASS |
143 |
dgoldberg |
1.1 |
_RL shelficeMass (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
144 |
|
|
_RL shelficeMassInit (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
145 |
|
|
_RL shelficeLoadAnomaly (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
146 |
|
|
_RL shelficeForcingT (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
147 |
|
|
_RL shelficeForcingS (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
148 |
|
|
_RL shiTransCoeffT (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
149 |
|
|
_RL shiTransCoeffS (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
150 |
dgoldberg |
1.2 |
_RL EFFMASS (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
151 |
|
|
_RL SeaLevelRestore (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
152 |
|
|
|
153 |
dgoldberg |
1.1 |
COMMON /SHELFICE_FIELDS_RS/ |
154 |
dgoldberg |
1.6 |
& R_shelfIce, R_MWCT, |
155 |
dgoldberg |
1.1 |
& shelficeHeatFlux, |
156 |
|
|
& shelfIceFreshWaterFlux, |
157 |
dgoldberg |
1.3 |
& shelfIceMassDynTendency |
158 |
dgoldberg |
1.1 |
_RS R_shelfIce (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
159 |
dgoldberg |
1.6 |
_RS R_MWCT (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
160 |
dgoldberg |
1.1 |
_RS shelficeHeatFlux (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
161 |
|
|
_RS shelficeFreshWaterFlux(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
162 |
|
|
_RS |
163 |
|
|
& shelfIceMassDynTendency(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
164 |
|
|
|
165 |
|
|
#ifdef ALLOW_SHIFWFLX_CONTROL |
166 |
|
|
COMMON /SHELFICE_MASKS_CTRL/ maskSHI |
167 |
|
|
_RS maskSHI (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
168 |
|
|
#endif /* ALLOW_SHIFWFLX_CONTROL */ |
169 |
|
|
|
170 |
|
|
LOGICAL SHELFICEisOn |
171 |
|
|
LOGICAL useISOMIPTD |
172 |
|
|
LOGICAL SHELFICEconserve |
173 |
|
|
LOGICAL SHELFICEboundaryLayer |
174 |
|
|
LOGICAL SHELFICEthickBoundaryLayer |
175 |
|
|
LOGICAL SHELFICErealFWflux |
176 |
|
|
LOGICAL no_slip_shelfice |
177 |
|
|
LOGICAL SHELFICEwriteState |
178 |
|
|
LOGICAL SHELFICE_dump_mdsio |
179 |
|
|
LOGICAL SHELFICE_tave_mdsio |
180 |
|
|
LOGICAL SHELFICE_dump_mnc |
181 |
|
|
LOGICAL SHELFICE_tave_mnc |
182 |
|
|
LOGICAL SHELFICEadvDiffHeatFlux |
183 |
|
|
LOGICAL SHELFICEuseGammaFrict |
184 |
|
|
LOGICAL SHELFICEMassStepping |
185 |
|
|
LOGICAL SHELFICEDynMassOnly |
186 |
dgoldberg |
1.4 |
LOGICAL SHELFICEEtaSponge |
187 |
dgoldberg |
1.6 |
LOGICAL SHELFICE_dig_ice |
188 |
dgoldberg |
1.1 |
COMMON /SHELFICE_PARMS_L/ |
189 |
|
|
& SHELFICEisOn, |
190 |
|
|
& useISOMIPTD, |
191 |
|
|
& SHELFICEconserve, |
192 |
|
|
& SHELFICErealFWflux, |
193 |
|
|
& SHELFICEboundaryLayer, |
194 |
|
|
& SHELFICEthickBoundaryLayer, |
195 |
|
|
& no_slip_shelfice, |
196 |
|
|
& SHELFICEwriteState, |
197 |
|
|
& SHELFICE_dump_mdsio, |
198 |
|
|
& SHELFICE_tave_mdsio, |
199 |
|
|
& SHELFICE_dump_mnc, |
200 |
|
|
& SHELFICE_tave_mnc, |
201 |
|
|
& SHELFICEadvDiffHeatFlux, |
202 |
|
|
& SHELFICEuseGammaFrict, |
203 |
|
|
& SHELFICEMassStepping, |
204 |
dgoldberg |
1.4 |
& SHELFICEDynMassOnly, |
205 |
dgoldberg |
1.6 |
& SHELFICEEtaSponge, |
206 |
|
|
& SHELFICE_dig_ice |
207 |
dgoldberg |
1.1 |
|
208 |
|
|
CHARACTER*(MAX_LEN_FNAM) SHELFICEloadAnomalyFile |
209 |
|
|
CHARACTER*(MAX_LEN_FNAM) SHELFICEmassFile |
210 |
|
|
CHARACTER*(MAX_LEN_FNAM) SHELFICEGroundTopoFile |
211 |
|
|
CHARACTER*(MAX_LEN_FNAM) SHELFICEtopoFile |
212 |
|
|
CHARACTER*(MAX_LEN_FNAM) SHELFICEMassDynTendFile |
213 |
|
|
CHARACTER*(MAX_LEN_FNAM) SHELFICEGroundInitFile |
214 |
|
|
CHARACTER*(MAX_LEN_FNAM) SHELFICETransCoeffTFile |
215 |
|
|
|
216 |
|
|
|
217 |
|
|
COMMON /SHELFICE_PARM_C/ |
218 |
|
|
& SHELFICEloadAnomalyFile, |
219 |
|
|
& SHELFICEmassFile, |
220 |
|
|
& SHELFICEtopoFile, |
221 |
|
|
& SHELFICEGroundTopoFile, |
222 |
|
|
& SHELFICEMassDynTendFile, |
223 |
|
|
& SHELFICEGroundInitFile, |
224 |
|
|
& SHELFICETransCoeffTFile |
225 |
|
|
|
226 |
|
|
#endif /* ALLOW_SHELFICE */ |