/[MITgcm]/MITgcm/pkg/ebm/ebm_atmosphere.F
ViewVC logotype

Contents of /MITgcm/pkg/ebm/ebm_atmosphere.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Wed May 19 20:38:53 2004 UTC (20 years, 1 month ago) by heimbach
Branch: MAIN
Changes since 1.1: +93 -87 lines
ebm package wasnt quite up to the parallel task.
Fixed that.

1 C $Header: /u/gcmpack/MITgcm/pkg/ebm/ebm_atmosphere.F,v 1.1 2004/05/14 21:10:34 heimbach Exp $
2 C $Name: $
3
4 #include "EBM_OPTIONS.h"
5
6 SUBROUTINE EBM_ATMOSPHERE ( myTime, myiter, myThid )
7
8 C |==========================================================|
9 C | S/R CALCULATE FORCING FROM ENERGY AND MOISTURE |
10 C | BALANCE ATMOSPHERE |
11 C |==========================================================|
12 C References:
13 C * X. Wang, P. Stone and J. Marotzke, 1999:
14 C Global thermohaline circulation. Part I:
15 C Sensitivity to atmospheric moisture transport.
16 C J. Climate 12(1), 71-82
17 C * X. Wang, P. Stone and J. Marotzke, 1999:
18 C Global thermohaline circulation. Part II:
19 C Sensitivity with interactive transport.
20 C J. Climate 12(1), 83-91
21 C * M. Nakamura, P. Stone and J. Marotzke, 1994:
22 C Destabilization of the thermohaline circulation
23 C by atmospheric eddy transports.
24 C J. Climate 7(12), 1870-1882
25
26 IMPLICIT NONE
27
28 C === Global variables ===
29 #include "SIZE.h"
30 #include "EEPARAMS.h"
31 #include "PARAMS.h"
32 #include "FFIELDS.h"
33 #include "DYNVARS.h"
34 #include "GRID.h"
35 #ifdef ALLOW_EBM
36 # include "EBM.h"
37 #endif
38
39 C === Routine arguments ===
40 C myThid - Instance number for this innvocation of CALC_FORCING
41 INTEGER myThid
42 INTEGER myIter
43 _RL myTime
44 CEndOfInterface
45
46 #ifdef ALLOW_EBM
47
48 C == Local variables ==
49 _RL Dy
50 _RL ReCountX(1-OLy:sNy+OLy,nSy)
51 INTEGER bi, bj
52 INTEGER i, j
53 INTEGER no_so
54 LOGICAL TOP_LAYER
55
56 C-- Top layer only
57 cph TOP_LAYER = k .EQ. 1
58
59 cph IF ( TOP_LAYER ) THEN
60
61 DO bj=myByLo(myThid),myByHi(myThid)
62 DO bi=myBxLo(myThid),myBxHi(myThid)
63
64 DO j=1,sNy
65 S(j,bj) = 0.0
66 P2(j,bj) = 0.0
67 P4(j,bj) = 0.0
68 SW(j,bj) = 0.0
69 LW(j,bj) = 0.0
70 Hd(j,bj) = 0.0
71 Fw(j,bj) = 0.0
72 T(j,bj) = 0.0
73 ReCountX(j,bj) = 0.0
74 ENDDO
75
76 print *, 'SH', TmlS-t_mlt, TtS-t_mlt
77 print *, 'NH', TmlN-t_mlt, TtN-t_mlt
78
79 C-- account for ice (can absorb heat on an annual averaged basis)
80 C-- Greenland in Northern Hemisphere, Antarctica in Southern
81 DO j = 1,sNy
82 ReCountX(j,bj) = CountX(j,bj)
83 IF (yC(1,j,bi,bj) .LE. -62.0) THEN
84 ReCountX(j,bj) = 90.
85 ELSE IF (yC(1,j,bi,bj) .EQ. 74.0) THEN
86 ReCountX(j,bj) = CountX(j,bj) + 9.0
87 ELSE IF (yC(1,j,bi,bj) .EQ. 70.0) THEN
88 ReCountX(j,bj) = CountX(j,bj) + 8.0
89 ELSE IF (yC(1,j,bi,bj) .EQ. 66.0) THEN
90 ReCountX(j,bj) = CountX(j,bj) + 5.0
91 ELSE IF (yC(1,j,bi,bj) .EQ. 62.0) THEN
92 ReCountX(j,bj) = CountX(j,bj) + 1.0
93 ENDIF
94 ENDDO
95
96
97 c=====================================================
98 c Fit area-weighed averaged SST north/south of 34
99 c degree to second Legendre polynomial:
100 c=======================================================
101 T_var(1) = SIN(lat(2)*deg2rad) - SIN(lat(1)*deg2rad)
102 T_var(2) = SIN(lat(3)*deg2rad) - SIN(lat(2)*deg2rad)
103 T_var(3) = SIN(lat(2)*deg2rad)**3. - SIN(lat(1)*deg2rad)**3.
104 T_var(4) = SIN(lat(3)*deg2rad)**3. - SIN(lat(2)*deg2rad)**3.
105
106 c----------------------------------------
107 c Southern hemisphere:
108 c----------------------------------------
109 T2(1) = 2.*(TtS - TmlS)*T_var(1)*T_var(2)/
110 < (T_var(3)*T_var(2) - T_var(4)*T_var(1))
111 T0(1) = TtS - 0.5*T2(1)*((T_var(3)/T_var(1)) - 1.)
112 c----------------------------------------
113 c Northern hemisphere
114 c----------------------------------------
115 T2(2) = 2.*(TtN - TmlN)*T_var(1)*T_var(2)/
116 < (T_var(3)*T_var(2) - T_var(4)*T_var(1))
117 T0(2) = TtN - 0.5*T2(2)*((T_var(3)/T_var(1)) - 1.)
118 c-----------------------------------------
119 c Temperature at 35 N/S
120 c-----------------------------------------
121 DO no_so = 1,2
122 T35(no_so)= T0(no_so) +
123 < T2(no_so)*0.5*
124 < ((3.*SIN(lat(2)*deg2rad)**2. - 1.))
125 ENDDO
126 c-----------------------------------------
127 c Temperature gradient at 35 N/S
128 c-----------------------------------------
129 DO no_so = 1, 2
130 DTDy35(no_so) = 3.*T2(no_so)*
131 < SIN(lat(2)*deg2rad)/rSphere
132 ENDDO
133 c-----------------------------------------------------------
134 c Magnitude of the heat and moisture transport at 35 N/S
135 c-----------------------------------------------------------
136
137
138 DO no_so = 1, 2
139 gamma = -T35(no_so)*beta*Hw*Nw*Nw/
140 < (gravity*f0*DTDy35(no_so))
141 kappa = Hw/(1 + gamma)
142 De = Hw/(0.48 + 1.48*gamma)
143 C = 0.6*gravity*kappa*kappa*Nw/
144 < (Tw*f0*f0)
145 Cs = rho_air*cp*C*
146 < (1/(1/Hw+1/De) - 1/(1/Hw+1/De+1/dz))
147 Cf = htil*2.97e12*C/(T35(no_so)**3)*(
148 < 1/(1/De + (5420*tau /(T35(no_so)**2)))
149 < - 1/(1/De+5420*tau/(T35(no_so)**2)+1/dz))
150 Cl = Cf*lv
151 Hd35(no_so) = 2.*PI*rSphere*COS(lat(2)*deg2rad)
152 < *(Cs + Cl*exp(-5420./T35(no_so)))
153 < *(abs(DTDy35(no_so))**trans_eff)
154 Fw35(no_so) = 2.*PI*rSphere*COS(lat(2)*deg2rad)
155 < *(abs(DTDy35(no_so))**trans_eff)
156 < *Cf*exp(-5420./T35(no_so))
157 c write(0,*) no_so, Hd35(no_so), Fw35(no_so)
158 ENDDO
159 Fw35(1) = 929944128.
160 Fw35(2) = 678148032.
161 #ifdef EBM_VERSION_1BASIN
162 c Fw35(2) = 0.7*Fw35(2)
163 #else
164 Hd35(2) = 1.6*Hd35(2)
165 #endif
166 c======================================================
167 c Calculation of latitudinal profiles
168 c======================================================
169 c
170 DO j=1,sNy
171 DO i=1,sNx
172
173 IF (yC(i,j,bi,bj) .LT. 0.) THEN
174 no_so = 1
175 ELSE
176 no_so = 2
177 ENDIF
178 C sin(lat)
179 S(j,bj) = sin(yC(i,j,bi,bj)*deg2rad)
180 C setup Legendre polynomials and derivatives
181 P2(j,bj) = 0.5*(3.*S(j,bj)**2 - 1.)
182 P4(j,bj) = 0.12*(35.*S(j,bj)**4 - 30.*S(j,bj)**2 + 3.)
183 c net shortwave
184 SW(j,bj) = 0.25*Q0*(1 + Q2*P2(j,bj))*
185 < (1 - A0 - A2*P2(j,bj) - A4*P4(j,bj) )
186 c temperature
187 T(j,bj) = T0(no_so) + T2(no_so)*P2(j,bj)
188 c net longwave
189 LW(j,bj) = LW0 + LW1*(T(j,bj)-t_mlt)
190 c climate change run, the parameter to change is DLW
191 #ifdef EBM_CLIMATE_CHANGE
192 LW(j,bj) = LW(j,bj) -
193 < (myTime-startTime)*3.215e-8*DLW
194 c < - 6.0
195 c < *75.0*0.0474*
196 c < (-2.62*S(j,bj)**8 + 0.73*S(j,bj)**7 +
197 c < 4.82*S(j,bj)**6 -
198 c < 1.12*S(j,bj)**5 - 2.69*S(j,bj)**4 + 0.47*S(j,bj)**3 +
199 c < 0.51*S(j,bj)**2 - 0.05*S(j,bj)**1 + 0.17)
200 #endif
201 c fluxes at ocean/atmosphere interface
202 c Heat Flux = -Div(atmospheric heat transport) + SW - LW
203 #ifdef EBM_VERSION_1BASIN
204 Qnet(i,j,bi,bj) = -1.0*( SW(j,bj) - LW(j,bj) -
205 < Hd35(no_so)*(
206 < 0.000728e4 - 0.00678e4*S(j,bj) +
207 < 0.0955e4*S(j,bj)**2 + 0.0769e4*S(j,bj)**3 -
208 < 0.8508e4*S(j,bj)**4 - 0.3581e4*S(j,bj)**5 +
209 < 2.9240e4*S(j,bj)**6 + 0.8311e4*S(j,bj)**7 -
210 < 4.9548e4*S(j,bj)**8 - 0.8808e4*S(j,bj)**9 +
211 < 4.0644e4*S(j,bj)**10 +0.3409e4*S(j,bj)**11 -
212 < 1.2893e4*S(j,bj)**12 )
213 < /(2*PI*rSphere*rSphere*25.0) )
214 c Qnet(i,j,bi,bj) = -1.0*( SW(j,bj) - LW(j,bj) -
215 c < 0.5*Hd35(no_so)*(3.054e1 - 3.763e1*S(j,bj) +
216 c < 1.892e2*S(j,bj)**2 + 3.041e2*S(j,bj)**3 -
217 c < 1.540e3*S(j,bj)**4 - 9.586e2*S(j,bj)**5 +
218 c < 2.939e3*S(j,bj)**6 + 1.219e3*S(j,bj)**7 -
219 c < 2.550e3*S(j,bj)**8 - 5.396e2*S(j,bj)**9 +
220 c < 8.119e2*S(j,bj)**10)
221 c < /(2*PI*rSphere*rSphere*22.3) )
222 #else
223 IF (ReCountX(j,bj) .GT. 0.) THEN
224 Qnet(i,j,bi,bj) = (-90./ReCountX(j,bj))*
225 < ( SW(j,bj) - LW(j,bj) -
226 < Hd35(no_so)*(3.054e1 - 3.763e1*S(j,bj) +
227 < 1.892e2*S(j,bj)**2 + 3.041e2*S(j,bj)**3 -
228 < 1.540e3*S(j,bj)**4 - 9.586e2*S(j,bj)**5 +
229 < 2.939e3*S(j,bj)**6 + 1.219e3*S(j,bj)**7 -
230 < 2.550e3*S(j,bj)**8 - 5.396e2*S(j,bj)**9 +
231 < 8.119e2*S(j,bj)**10)
232 < /(2*PI*rSphere*rSphere*22.3) )
233 ELSE
234 Qnet(i,j,bi,bj) = 0.
235 ENDIF
236 #endif
237 c Freshwater Flux = Div(atmospheric moisture transport)
238 c--- conversion of E-P from kg/(s m^2) -> m/s -> psu/s: 1e-3*35/delZ(1)
239 #ifdef EBM_VERSION_1BASIN
240 EmPmR(i,j,bi,bj) = -1.e-3*Fw35(no_so)
241 < *(-0.8454e5*S(j,bj)**14 + 0.5367e5*S(j,bj)**13
242 < +3.3173e5*S(j,bj)**12 - 1.8965e5*S(j,bj)**11
243 < -5.1701e5*S(j,bj)**10
244 < +2.6240e5*S(j,bj)**9 + 4.077e5*S(j,bj)**8 - 1.791e5*S(j,bj)**7
245 < -1.7231e5*S(j,bj)**6 + 0.6229e5*S(j,bj)**5
246 < +0.3824e5*S(j,bj)**4
247 < -0.1017e5*S(j,bj)**3 - 0.0387e5*S(j,bj)**2
248 < +0.00562e5*S(j,bj) + 0.0007743e5)
249 < /(2.0*12.0*PI*rSphere*rSphere)
250 c EmPmR(i,j,bi,bj) = 1.e-3*Fw35(no_so)
251 c < *(50.0 + 228.0*S(j,bj) -1.593e3*S(j,bj)**2
252 c < - 2.127e3*S(j,bj)**3 + 7.3e3*S(j,bj)**4
253 c < + 5.799e3*S(j,bj)**5 - 1.232e4*S(j,bj)**6
254 c < - 6.389e3*S(j,bj)**7 + 9.123e3*S(j,bj)**8
255 c < + 2.495e3*S(j,bj)**9 - 2.567e3*S(j,bj)**10)
256 c < /(2*PI*rSphere*rSphere*15.0)
257 #else
258 IF (yC(i,j,bi,bj) .LT. -40.) THEN
259 c-- Southern Hemisphere
260 EmPmR(i,j,bi,bj) = -1.e-3*(Fw35(no_so)*
261 < (-6.5 + 35.3 + 71.7*S(j,bj)
262 < - 1336.3*S(j,bj)**2 - 425.8*S(j,bj)**3
263 < + 5434.8*S(j,bj)**4 + 707.9*S(j,bj)**5
264 < - 6987.7*S(j,bj)**6 - 360.4*S(j,bj)**7
265 < + 2855.0*S(j,bj)**8)
266 < /(2*PI*rSphere*rSphere*18.0))
267 ELSE
268 c-- Atlantic
269 IF (xC(i,j,bi,bj) .GT. 284.
270 < .OR. xC(i,j,bi,bj) .LT. 28.) THEN
271 EmPmR(i,j,bi,bj) = -1.e-3*(Fw35(no_so)*
272 < (-6.5 -2.878 + 3.157e2*S(j,bj) -
273 < 2.388e3*S(j,bj)**2 - 4.101e3*S(j,bj)**3 +
274 < 1.963e4*S(j,bj)**4 + 1.534e4*S(j,bj)**5 -
275 < 6.556e4*S(j,bj)**6 - 2.478e4*S(j,bj)**7 +
276 < 1.083e5*S(j,bj)**8 + 1.85e4*S(j,bj)**9 -
277 < 8.703e4*S(j,bj)**10 - 5.276e3*S(j,bj)**11 +
278 < 2.703e4*S(j,bj)**12)
279 < /(2*PI*rSphere*rSphere*12.0))
280 ELSE
281 c-- Pacific
282 EmPmR(i,j,bi,bj) = -1.e-3*(Fw35(no_so)
283 < *(-6.5 +51.89 + 4.916e2*S(j,bj) -
284 < 1.041e3*S(j,bj)**2 - 7.546e3*S(j,bj)**3 +
285 < 2.335e3*S(j,bj)**4 + 3.449e4*S(j,bj)**5 +
286 < 6.702e3*S(j,bj)**6 - 6.601e4*S(j,bj)**7 -
287 < 2.594e4*S(j,bj)**8 + 5.652e4*S(j,bj)**9 +
288 < 2.738e4*S(j,bj)**10 - 1.795e4*S(j,bj)**11 -
289 < 9.486e3*S(j,bj)**12)
290 < /(2*PI*rSphere*rSphere*12.0))
291 ENDIF
292 ENDIF
293 #endif
294 ENDDO
295 ENDDO
296 ENDDO
297 ENDDO
298
299 _EXCH_XY_R4(Qnet , myThid )
300 _EXCH_XY_R4(EmPmR , myThid )
301
302
303 C CALL PLOT_FIELD_XYRS( Qnet, 'Qnet' , 1, myThid )
304 C CALL PLOT_FIELD_XYRS( EmPmR, 'EmPmR' , 1, myThid )
305
306 cph end of IF TOP_LAYER
307 cph ENDIF
308
309 #endif /* ALLOW_EBM */
310
311 END
312
313
314
315
316

  ViewVC Help
Powered by ViewVC 1.1.22