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

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

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


Revision 1.1 - (hide annotations) (download)
Wed Oct 9 01:01:24 2002 UTC (21 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint48f_post, checkpoint51k_post, checkpoint53f_post, checkpoint47j_post, checkpoint54a_pre, checkpoint55c_post, checkpoint53b_pre, checkpoint48d_pre, checkpoint51l_post, checkpoint51j_post, branch-exfmods-tag, checkpoint47e_post, checkpoint57m_post, checkpoint47i_post, checkpoint52l_pre, checkpoint48i_post, checkpoint52e_pre, hrcube4, hrcube5, checkpoint46l_post, checkpoint57g_pre, checkpoint52j_post, checkpoint47f_post, checkpoint48d_post, checkpoint51o_pre, checkpoint57f_post, checkpoint47c_post, checkpoint50e_post, checkpoint52e_post, checkpoint50c_post, checkpoint51n_pre, checkpoint47d_post, checkpoint57j_post, checkpoint47a_post, checkpoint57b_post, checkpoint52d_pre, checkpoint53c_post, checkpoint53d_post, checkpoint57f_pre, checkpoint48a_post, checkpoint55d_pre, checkpoint51f_pre, checkpoint57g_post, checkpoint48e_post, checkpoint57c_pre, checkpoint48h_post, checkpoint55j_post, checkpoint56b_post, checkpoint50c_pre, checkpoint57h_pre, branchpoint-genmake2, checkpoint46k_post, checkpoint52j_pre, checkpoint54a_post, branch-netcdf, checkpoint50d_pre, checkpoint55h_post, checkpoint51r_post, checkpoint52b_pre, checkpoint52n_post, checkpoint54b_post, checkpoint51i_post, checkpoint57e_post, checkpoint54d_post, checkpoint47h_post, checkpoint48c_post, checkpoint56c_post, checkpoint54e_post, checkpoint55b_post, checkpoint51e_post, checkpoint51b_post, checkpoint51l_pre, checkpoint52m_post, checkpoint51c_post, checkpoint55, checkpoint53a_post, checkpoint55a_post, checkpoint57a_post, checkpoint48, checkpoint49, checkpoint47b_post, checkpoint56, checkpoint57o_post, checkpoint55g_post, checkpoint57h_done, checkpoint51o_post, checkpoint48g_post, checkpoint46l_pre, checkpoint57k_post, checkpoint57d_post, checkpoint55f_post, checkpoint57i_post, checkpoint51q_post, checkpoint52l_post, checkpoint52k_post, checkpoint57h_post, checkpoint57a_pre, checkpoint54, checkpoint57, checkpoint53b_post, checkpoint51, checkpoint50, checkpoint53, checkpoint52, checkpoint50d_post, checkpoint52d_post, checkpoint51b_pre, checkpoint52a_post, checkpoint47g_post, checkpoint52b_post, checkpoint53g_post, checkpoint52f_post, checkpoint57n_post, checkpoint52c_post, checkpoint46m_post, checkpoint57p_post, checkpoint51h_pre, checkpoint50g_post, checkpoint50b_pre, checkpoint51g_post, ecco_c52_e35, checkpoint54f_post, checkpoint51f_post, checkpoint48b_post, checkpoint50b_post, eckpoint57e_pre, checkpoint57c_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint52a_pre, checkpoint47d_pre, checkpoint51d_post, checkpoint48c_pre, checkpoint51m_post, checkpoint51t_post, checkpoint53d_pre, checkpoint47, checkpoint55e_post, checkpoint54c_post, checkpoint50h_post, checkpoint52i_post, checkpoint51a_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51p_post, checkpoint51n_post, checkpoint55i_post, checkpoint51i_pre, checkpoint57l_post, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint56a_post, checkpoint51s_post, checkpoint55d_post
Branch point for: netcdf-sm0, branch-genmake2, branch-nonh, tg2-branch, ecco-branch, checkpoint51n_branch, branch-exfmods-curt
* 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 jmc 1.1 C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/aim/Attic/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