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

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

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


Revision 1.2 - (show annotations) (download)
Mon Aug 1 19:34:58 2005 UTC (18 years, 9 months ago) by cnh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Emptying aim/ since aim_v23 is now "the one" for all experiements.

1 C $Header: /u/gcmpack/MITgcm/pkg/aim/phy_inphys.F,v 1.1 2002/10/09 01:01:24 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
98 C--- 2. Constants for boundary forcing (common FORCON):
99
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
109 C--- 3. Constants for surface fluxes (common SFLCON):
110
111 C- jmc: return to F.Molteni values (Clim Dim, 02):
112
113 FWIND0 = 0.6 _d 0
114 FTEMP0 = 1. _d 0
115 FHUM0 = 1. _d 0
116
117 CDL = 1.8 _d -3
118 CDS = 0.8 _d -3
119 CHL = 1.2 _d -3
120 CHS = 0.8 _d -3
121 VGUST = 5. _d 0
122
123 C--- 4. Constants for convection (common CNVCON):
124
125 RHBL = 0.8 _d 0
126 TRCNV = 6. _d 0
127 ENTMAX = 0.5 _d 0
128
129 C--- 5. Constants for large-scale condensation (common LSCCON):
130
131 RHLSC = 0.9 _d 0
132 TRLSC = 4. _d 0
133
134 C--- 6. Constants for radiation (common RADCON):
135
136 ABSSW = 0.06 _d 0
137 ABSLW = 1.40 _d 0
138
139 ABWSW = 0.06 _d 0
140 ABWLW = 0.55 _d 0
141
142 ABCSW = 0.0 _d 0
143 ABCLW = 0.15 _d 0
144
145 EPSSW = 0.03 _d 0
146 EPSLW = 0.05 _d 0
147
148 C- jmc: return to F.Molteni values (Clim Dim, 02):
149 ALBCL = 0.40 _d 0
150 RHCL1 = 0.45 _d 0
151 RHCL2 = 0.85 _d 0
152 QACL = 1.00 _d 0
153
154 C-- 7. Constants for vertical diffusion and sh. conv. (common VDICON):
155
156 C- jmc: return to F.Molteni values (Clim Dim, 02):
157 TRVDI = 40. _d 0
158 TRSHC = 24. _d 0
159
160 ENDIF
161
162 #endif /* ALLOW_AIM */
163
164 RETURN
165 END

  ViewVC Help
Powered by ViewVC 1.1.22