Radiation Scheme in CCPP
physcons.f
Go to the documentation of this file.
1 !!!!! ========================================================== !!!!!
2 !!!!! module 'physcons' description !!!!!
3 !!!!! ========================================================== !!!!!
4 ! !
5 ! this module contains some the most frequently used math and !
6 ! physics constatns for gcm models. !
7 ! !
8 ! references: !
9 ! as set in NMC handbook from Smithsonian tables. !
10 ! !
11 ! modification history: !
12 ! !
13 ! 1990-04-30 g and rd are made consistent with NWS usage !
14 ! 2001-10-22 g made consistent with SI usage !
15 ! 2005-04-13 added molecular weights for gases - y-t hou !
16 ! 2013-07-12 added temperature for homogen. nuc. for ice. - R.sun !
17 ! !
18 ! external modules referenced: !
19 ! !
20 ! 'module machine' in 'machine.f' !
21 ! !
22 ! !
23 !!!!! ========================================================== !!!!!
24 !!!!! end descriptions !!!!!
25 !!!!! ========================================================== !!!!!
26 
28 !========================================!
29  module physcons !
30 !........................................!
31 !
32  use machine, only : kind_phys
33 !
34  implicit none
35 !
36  public
37 
38 ! --- ... Math constants
41  real(kind=kind_phys),parameter:: con_pi =3.1415926535897931 ! pi
43  real(kind=kind_phys),parameter:: con_sqrt2 =1.414214e+0 ! square root of 2
45  real(kind=kind_phys),parameter:: con_sqrt3 =1.732051e+0 ! square root of 3
47 ! --- ... Geophysics/Astronomy constants
50  real(kind=kind_phys),parameter:: con_rerth =6.3712e+6 ! radius of earth (m)
52  real(kind=kind_phys),parameter:: con_g =9.80665e+0 ! gravity (m/s2)
54  real(kind=kind_phys),parameter:: con_omega =7.2921e-5 ! ang vel of earth (1/s)
56  real(kind=kind_phys),parameter:: con_p0 =1.01325e5 ! std atms pressure (pa)
57 ! real(kind=kind_phys),parameter:: con_solr =1.36822e+3 ! solar constant (W/m2)-aer(2001)
59  real(kind=kind_phys),parameter:: con_solr_old =1.3660e+3 ! solar constant (W/m2)-liu(2002)
61  real(kind=kind_phys),parameter:: con_solr =1.3608e+3 ! solar constant (W/m2)-nasa-sorce tim (2008)
62 ! real(kind=kind_phys),parameter:: con_solr =1.36742732e+3 ! solar constant (W/m2)-gfdl(1989) - OPR as of Jan 2006
64 ! --- ... Thermodynamics constants
67  real(kind=kind_phys),parameter:: con_rgas =8.314472 ! molar gas constant (J/mol/K)
69  real(kind=kind_phys),parameter:: con_rd =2.8705e+2 ! gas constant air (J/kg/K)
71  real(kind=kind_phys),parameter:: con_rv =4.6150e+2 ! gas constant H2O (J/kg/K)
73  real(kind=kind_phys),parameter:: con_cp =1.0046e+3 ! spec heat air @p (J/kg/K)
75  real(kind=kind_phys),parameter:: con_cv =7.1760e+2 ! spec heat air @v (J/kg/K)
77  real(kind=kind_phys),parameter:: con_cvap =1.8460e+3 ! spec heat H2O gas (J/kg/K)
79  real(kind=kind_phys),parameter:: con_cliq =4.1855e+3 ! spec heat H2O liq (J/kg/K)
81  real(kind=kind_phys),parameter:: con_csol =2.1060e+3 ! spec heat H2O ice (J/kg/K)
83  real(kind=kind_phys),parameter:: con_hvap =2.5000e+6 ! lat heat H2O cond (J/kg)
85  real(kind=kind_phys),parameter:: con_hfus =3.3358e+5 ! lat heat H2O fusion (J/kg)
87  real(kind=kind_phys),parameter:: con_psat =6.1078e+2 ! pres at H2O 3pt (Pa)
89  real(kind=kind_phys),parameter:: con_t0c =2.7315e+2 ! temp at 0C (K)
91  real(kind=kind_phys),parameter:: con_ttp =2.7316e+2 ! temp at H2O 3pt (K)
93  real(kind=kind_phys),parameter:: con_tice =2.7120e+2 ! temp freezing sea (K)
95  real(kind=kind_phys),parameter:: con_jcal =4.1855e+0 ! joules per calorie ()
97  real(kind=kind_phys),parameter:: con_rhw0 =1022.0 ! sea water reference density (kg/m^3)
99  real(kind=kind_phys),parameter:: con_epsq =1.0e-12 ! min q for computing precip type
101 ! Secondary constants
104  real(kind=kind_phys),parameter:: con_rocp =con_rd/con_cp
105  real(kind=kind_phys),parameter:: con_cpor =con_cp/con_rd
106  real(kind=kind_phys),parameter:: con_rog =con_rd/con_g
107  real(kind=kind_phys),parameter:: con_fvirt =con_rv/con_rd-1.
108  real(kind=kind_phys),parameter:: con_eps =con_rd/con_rv
109  real(kind=kind_phys),parameter:: con_epsm1 =con_rd/con_rv-1.
110  real(kind=kind_phys),parameter:: con_dldt =con_cvap-con_cliq
111  real(kind=kind_phys),parameter:: con_xpona =-con_dldt/con_rv
112  real(kind=kind_phys),parameter:: con_xponb =-con_dldt/con_rv+con_hvap/(con_rv*con_ttp)
114 ! --- ... Other Physics/Chemistry constants (source: 2002 CODATA)
117  real(kind=kind_phys),parameter:: con_c =2.99792458e+8 ! speed of light (m/s)
119  real(kind=kind_phys),parameter:: con_plnk =6.6260693e-34 ! planck constatn (J/s)
121  real(kind=kind_phys),parameter:: con_boltz =1.3806505e-23 ! boltzmann constant (J/K)
123  real(kind=kind_phys),parameter:: con_sbc =5.670400e-8 ! stefan-boltzmann (W/m2/K4)
125  real(kind=kind_phys),parameter:: con_avgd =6.0221415e23 ! avogadro constant (1/mol)
127  real(kind=kind_phys),parameter:: con_gasv =22413.996e-6 ! vol of ideal gas at 273.15k, 101.325kpa (m3/mol)
128 ! real(kind=kind_phys),parameter:: con_amd =28.970 ! molecular wght of dry air (g/mol)
130  real(kind=kind_phys),parameter:: con_amd =28.9644 ! molecular wght of dry air (g/mol)
132  real(kind=kind_phys),parameter:: con_amw =18.0154 ! molecular wght of water vapor (g/mol)
134  real(kind=kind_phys),parameter:: con_amo3 =47.9982 ! molecular wght of o3 (g/mol)
135 ! real(kind=kind_phys),parameter:: con_amo3 =48.0 ! molecular wght of o3 (g/mol)
137  real(kind=kind_phys),parameter:: con_amco2 =44.011 ! molecular wght of co2 (g/mol)
139  real(kind=kind_phys),parameter:: con_amo2 =31.9999 ! molecular wght of o2 (g/mol)
141  real(kind=kind_phys),parameter:: con_amch4 =16.043 ! molecular wght of ch4 (g/mol)
143  real(kind=kind_phys),parameter:: con_amn2o =44.013 ! molecular wght of n2o (g/mol)
145  real(kind=kind_phys), parameter:: con_thgni =-38.15 ! temperature the H.G.Nuc. ice starts
147 !
148 ! Miscellaneous physics related constatnts (Moorthi - Jul 2014)
149 !
152 ! integer, parameter :: max_lon=16000, max_lat=8000, min_lon=192, min_lat=94
153 ! integer, parameter :: max_lon=5000, max_lat=2500, min_lon=192, min_lat=94 ! current opr
154  integer, parameter :: max_lon=5000, max_lat=2000, min_lon=192, min_lat=94 ! current opr
155  real(kind=kind_phys), parameter:: rlapse = 0.65e-2, rhc_max = 0.9999 ! current opr
156 ! real(kind=kind_phys), parameter:: rlapse = 0.65e-2, rhc_max = 0.9900
157  real(kind=kind_phys), parameter:: cb2mb = 10.0, pa2mb = 0.01
158 
159  real(kind=kind_phys) :: dxmax, dxmin, dxinv
161 !........................................!
162  end module physcons !
163 !========================================!
real(kind=kind_phys), parameter con_amo3
molecular wght of o3 (g/mol)
Definition: physcons.f:134
real(kind=kind_phys), parameter con_omega
ang vel of earth (1/s)
Definition: physcons.f:54
real(kind=kind_phys), parameter con_rhw0
sea water reference density (kg/m^3)
Definition: physcons.f:97
real(kind=kind_phys), parameter con_cv
spec heat air at v (J/kg/K)
Definition: physcons.f:75
real(kind=kind_phys), parameter con_xpona
Definition: physcons.f:111
real(kind=kind_phys), parameter pa2mb
Definition: physcons.f:157
real(kind=kind_phys), parameter con_dldt
Definition: physcons.f:110
integer, parameter min_lat
Definition: physcons.f:154
integer, parameter min_lon
Definition: physcons.f:154
real(kind=kind_phys), parameter con_sqrt3
square root of 3
Definition: physcons.f:45
real(kind=kind_phys), parameter con_csol
spec heat H2O ice (J/kg/K)
Definition: physcons.f:81
real(kind=kind_phys), parameter con_t0c
temp at 0C (K)
Definition: physcons.f:89
real(kind=kind_phys), parameter con_hfus
lat heat H2O fusion (J/kg)
Definition: physcons.f:85
real(kind=kind_phys), parameter con_hvap
lat heat H2O cond (J/kg)
Definition: physcons.f:83
real(kind=kind_phys), parameter cb2mb
Definition: physcons.f:157
real(kind=kind_phys), parameter con_solr_old
solar constant (W/m2)-liu(2002)
Definition: physcons.f:59
real(kind=kind_phys), parameter con_cliq
spec heat H2O liq (J/kg/K)
Definition: physcons.f:79
real(kind=kind_phys), parameter con_amch4
molecular wght of ch4 (g/mol)
Definition: physcons.f:141
This module contains some the most frequently used math and physics constants for gcm models...
Definition: physcons.f:29
real(kind=kind_phys), parameter con_boltz
boltzmann constant (J/K)
Definition: physcons.f:121
real(kind=kind_phys), parameter con_p0
std atms pressure (ps)
Definition: physcons.f:56
real(kind=kind_phys), parameter con_ttp
temp at H2O 3pt (K)
Definition: physcons.f:91
real(kind=kind_phys), parameter con_thgni
temperature the H.G.Nuc. ice starts
Definition: physcons.f:145
real(kind=kind_phys), parameter con_gasv
vol of ideal gas at 273.15k, 101.325kpa(m3/mol)
Definition: physcons.f:127
integer, parameter max_lat
Definition: physcons.f:154
real(kind=kind_phys), parameter con_rd
gas constant air (J/kg/K)
Definition: physcons.f:69
real(kind=kind_phys), parameter con_rerth
Definition: physcons.f:50
real(kind=kind_phys), parameter con_solr
solar constant (W/m2)-nasa-sorce tim(2008)
Definition: physcons.f:61
real(kind=kind_phys), parameter con_sbc
stefan-boltzmann (W/m2/K4)
Definition: physcons.f:123
real(kind=kind_phys), parameter con_rocp
Definition: physcons.f:104
real(kind=kind_phys), parameter con_jcal
joules per calorie
Definition: physcons.f:95
real(kind=kind_phys), parameter rhc_max
Definition: physcons.f:155
real(kind=kind_phys), parameter con_plnk
planck constant (J/s)
Definition: physcons.f:119
real(kind=kind_phys) dxinv
Definition: physcons.f:159
real(kind=kind_phys), parameter con_amw
molecular wght of water vapor (g/mol)
Definition: physcons.f:132
real(kind=kind_phys) dxmax
Definition: physcons.f:159
real(kind=kind_phys), parameter con_xponb
Definition: physcons.f:112
real(kind=kind_phys), parameter con_sqrt2
square root of 2
Definition: physcons.f:43
real(kind=kind_phys), parameter con_amd
molecular wght of dry air (g/mol)
Definition: physcons.f:130
real(kind=kind_phys), parameter con_rv
gas constant H2O (J/kg/K)
Definition: physcons.f:71
real(kind=kind_phys), parameter con_tice
temp freezing sea (K)
Definition: physcons.f:93
real(kind=kind_phys), parameter con_rgas
Definition: physcons.f:67
real(kind=kind_phys), parameter con_g
gravity (m/s2)
Definition: physcons.f:52
real(kind=kind_phys), parameter con_pi
Definition: physcons.f:41
real(kind=kind_phys), parameter con_psat
pres at H2O 3pt (Pa)
Definition: physcons.f:87
integer, parameter max_lon
Definition: physcons.f:154
real(kind=kind_phys), parameter con_c
Definition: physcons.f:117
real(kind=kind_phys), parameter con_cvap
spec heat H2O gas (J/kg/K)
Definition: physcons.f:77
real(kind=kind_phys), parameter con_rog
Definition: physcons.f:106
real(kind=kind_phys), parameter con_cp
spec heat air at p (J/kg/K)
Definition: physcons.f:73
real(kind=kind_phys), parameter con_cpor
Definition: physcons.f:105
real(kind=kind_phys), parameter con_fvirt
Definition: physcons.f:107
real(kind=kind_phys), parameter rlapse
Definition: physcons.f:155
real(kind=kind_phys), parameter con_avgd
avogadro constant (1/mol)
Definition: physcons.f:125
real(kind=kind_phys), parameter con_epsm1
Definition: physcons.f:109
real(kind=kind_phys), parameter con_amco2
molecular wght of co2 (g/mol)
Definition: physcons.f:137
real(kind=kind_phys), parameter con_eps
Definition: physcons.f:108
real(kind=kind_phys), parameter con_epsq
min q for computing precip type
Definition: physcons.f:99
real(kind=kind_phys), parameter con_amo2
molecular wght of o2 (g/mol)
Definition: physcons.f:139
real(kind=kind_phys) dxmin
Definition: physcons.f:159
real(kind=kind_phys), parameter con_amn2o
molecular wght of n2o (g/mol)
Definition: physcons.f:143