/[MITgcm]/MITgcm/pkg/aim/ini_inphys.F
ViewVC logotype

Contents of /MITgcm/pkg/aim/ini_inphys.F

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


Revision 1.5 - (show annotations) (download)
Wed Oct 9 01:01:24 2002 UTC (21 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
* S/R aim_initialise.F replace S/R aim_init from file aim_do_inphys.F:
 - read AIM physics parameters from a file (data.aimphys)
 - set defaults values = F.Molteni paper (Clim.Dyn., 2002)
 - phiHyd removed from arg. list of S/R aim_do_atmos_physics

1 C $Header: /u/gcmpack/MITgcm/pkg/aim/ini_inphys.F,v 1.4 2002/09/27 20:05:11 jmc Exp $
2 C $Name: $
3
4 #include "AIM_OPTIONS.h"
5
6 SUBROUTINE INPHYS (FSG,HSG,RLAT,myThid)
7
8 IMPLICIT NONE
9
10 C--
11 C-- SUBROUTINE INPHYS (FSG,HSG,RLAT)
12 C--
13 C-- Purpose: Initialize common blocks for physical parametrization routines
14 C-- Input : FSG : sigma at full levels
15 C-- HSG : sigma at half levels
16 C-- RLAT : gaussian-grid latitudes
17 C-- Initialized common blocks: PHYCON, FSIGMU, VDICON,
18 C-- FORCON, SFLCON, CNVCON, LSCCON, RADCON
19 C--
20 C Resolution parameters
21
22 C-- size for MITgcm & Physics package :
23 #include "AIM_SIZE.h"
24
25 #include "GRID.h"
26 #include "EEPARAMS.h"
27 #include "PARAMS.h"
28
29 #include "AIM_GRID.h"
30 C
31 C Physical constants + functions of sigma and latitude
32 C
33 #include "com_physcon.h"
34 C
35 C Constants for sub-grid-scale physics
36 C
37 #include "com_forcon.h"
38 #include "com_sflcon.h"
39 #include "com_cnvcon.h"
40 #include "com_lsccon.h"
41 #include "com_radcon.h"
42 #include "com_vdicon.h"
43 C
44 C == Routine Arguments ==
45 INTEGER myThid
46 _RL FSG(NLEV), HSG(0:NLEV), RLAT(NLAT)
47
48 #ifdef ALLOW_AIM
49
50 C == Local Variables ==
51 INTEGER K
52 c DATA Pground /1. _d +5/
53
54 C--- 1. Time independent parameters and arrays
55 C
56 C 1.1 Physical constants
57 C
58 IF ( myThid .EQ. 1 ) THEN
59 P0 = 1. _d +5
60 GG = 9.81 _d 0
61 RD = 287. _d 0
62 CP = 1004. _d 0
63 C Latent heat is in J/g for consistency with spec.hum. in g/Kg
64 ALHC = 2501. _d 0
65 SBC = 5.67 _d -8
66 C
67 C 1.2 Functions of sigma and latitude
68 C
69 SIGH(0)=HSG(0)
70 C
71 DO K=1,NLEV
72 SIG(K) = FSG(K)
73 Cg77 SIGL(K) = DLOG(FSG(K))
74 SIGL(K) = LOG(FSG(K))
75 SIGH(K) = HSG(K)
76 DSIG(K) = HSG(K)-HSG(K-1)
77 C POUT(K) = PRLEV(FSG(K))
78 GRDSIG(K) = GG/(DSIG(K)*P0)
79 GRDSCP(K) = GRDSIG(K)/CP
80 ENDDO
81 C
82 C Weights for vertical interpolation at half-levels(1,nlev) and surface
83 C Note that for phys.par. half-lev(k) is between full-lev k and k+1
84 C Fhalf(k) = Ffull(k)+WVI(K,2)*(Ffull(k+1)-Ffull(k))
85 C Fsurf = Ffull(nlev)+WVI(nlev,2)*(Ffull(nlev)-Ffull(nlev-1))
86 C
87 DO K=1,NLEV-1
88 WVI(K,1)=1./(SIGL(K+1)-SIGL(K))
89 WVI(K,2)=(LOG(SIGH(K))-SIGL(K))*WVI(K,1)
90 ENDDO
91 C
92 WVI(NLEV,1)=0.
93 WVI(NLEV,2)=-SIGL(NLEV)*WVI(NLEV-1,2)
94 cchdbg
95 WVI(NLEV,2)=-SIGL(NLEV)*WVI(NLEV-1,1)
96 cchdbg
97 C
98 C--- 2. Constants for boundary forcing (common FORCON):
99 C
100 SOLC = 342. _d 0
101
102 ALBSEA = 0.07 _d 0
103 ALBICE = 0.60 _d 0
104 ALBSN = 0.60 _d 0
105 SDALB = 60. _d 0
106 SWCAP = 75. _d 0
107 SWWIL = 0. _d 0
108 C
109 C--- 3. Constants for surface fluxes (common SFLCON):
110 C
111 FWIND0 = 0.6 _d 0
112 cchdbg *****************************************************
113 FWIND0 = 0.6 _d 0*0.7 _d 0
114 cchdbg ******************************************************
115 cchdbg FTEMP0 = 1.
116 cchdbg FHUM0 = 1.
117 FTEMP0 = 0. _d 0
118 FHUM0 = 0.5 _d 0
119 FHUM0 = 1. _d 0
120
121 c CDL = 3.0E-3
122 c CDS = 1.2E-3
123 c CHL = 1.2E-3
124 c CHS = 1.2E-3
125 CDL = 1.8 _d -3
126 CDS = 0.8 _d -3
127 CHL = 2.0 _d -3
128 CHS = 0.9 _d -3
129 C
130 VGUST = 4. _d 0
131 c DTHETAF = 3. _d 0
132 c FSTAB = 0.67 _d 0
133 C
134 C--- 4. Constants for convection (common CNVCON):
135 C
136 RHBL = 0.8 _d 0
137 TRCNV = 6. _d 0
138 ENTMAX = 0.5 _d 0
139 C
140 C--- 5. Constants for large-scale condensation (common LSCCON):
141 C
142 RHLSC = 0.9 _d 0
143 TRLSC = 4. _d 0
144 C
145 C--- 6. Constants for radiation (common RADCON):
146 C
147 ABSSW = 0.06 _d 0
148 cchdbg ********************
149 ABSSW = 0.04 _d 0
150 ABSSW = 0.06 _d 0
151 cchdbg *********************
152 ABSLW = 1.40 _d 0
153 cchdbg ****************************************************
154 cch ABSLW = 1.00
155 cchdbg ****************************************************
156
157 ABWSW = 0.06 _d 0
158 ABWLW = 0.55 _d 0
159 cchdbg ****************************************************
160 ABWLW = 0.60 _d 0
161 cchdbg ABWLW = 0.65
162 cchdbg ABWLW = 0.90
163 cchdbg ****************************************************
164
165 ABCSW = 0.0 _d 0
166 ABCLW = 0.15 _d 0
167 ABCLW = 0.15 _d 0
168 cchdbg *******************************************
169 c ABCLW = 3.0
170 c ABCLW = 2.0
171 cch ABCLW = 3.5
172 cch ABCLW = 2.5
173 cch ABCLW = 2.8
174 cchdbg ********************************************
175
176 EPSSW = 0.03 _d 0
177 EPSLW = 0.05 _d 0
178
179 ALBCL = 0.50 _d 0
180 cchdbg *******************************************
181 ALBCL = 0.49 _d 0
182 ALBCL = 0.47 _d 0
183 ALBCL = 0.40 _d 0
184 ALBCL = 0.35 _d 0
185 ALBCL = 0.33 _d 0
186 ALBCL = 0.36 _d 0
187 ALBCL = 0.34 _d 0
188 cchdbg ********************************************
189 cchdbg RHCL1 = 0.45
190 cchdbg RHCL2 = 0.85
191 cchdbg QACL = 1.00
192 cchdbg *******************************************
193 RHCL1 = 0.50 _d 0
194 RHCL2 = 0.90 _d 0
195 QACL = 0.50 _d 0
196 cchdbg *******************************************
197 C
198 C 2.6 Constants for vertical diffusion and sh. conv. (common VDICON):
199 C
200 TRVDI = 48. _d 0
201 TRSHC = 24. _d 0
202 cchdbg *******************************************
203 TRSHC = 12. _d 0
204 cchdbg *******************************************
205 ENDIF
206
207 CcnhDebugStarts
208 C write(0,*) 'MAXVAL(NLEVxy)=',MAXVAL(NLEVxy)
209 C write(0,*) 'MINVAL(NLEVxy)=',MINVAL(NLEVxy)
210 CcnhDebugEnds
211
212 #endif /* ALLOW_AIM */
213
214 RETURN
215 END

  ViewVC Help
Powered by ViewVC 1.1.22