FV3 Bundle
MAPL_Constants.F90
Go to the documentation of this file.
2 
3 implicit none
4 private
5 
6 integer,parameter, public :: mapl_r8 = selected_real_kind(12) ! 8 byte real
7 integer,parameter, public :: mapl_r4 = selected_real_kind( 6) ! 4 byte real
8 integer,parameter, public :: mapl_rn = kind(1.0) ! native real
9 integer,parameter, public :: mapl_i8 = selected_int_kind (13) ! 8 byte integer
10 integer,parameter, public :: mapl_i4 = selected_int_kind ( 6) ! 4 byte integer
11 integer,parameter, public :: mapl_in = kind(1) ! native integer
12 
13 real(kind=MAPL_R8), parameter, public :: mapl_pi_r8 = 3.14159265358979323846_mapl_r8
14 real(kind=MAPL_R4), parameter, public :: mapl_pi = mapl_pi_r8
15 
16 real(kind=MAPL_R8), parameter, public :: mapl_psdry = 98305.0_mapl_r8
17 
18 real, parameter, public :: mapl_grav = 9.80665 ! m^2/s
19 real, parameter, public :: mapl_radius = 6371.0e3 ! m
20 real, parameter, public :: mapl_omega = 2.0*mapl_pi/86164.0 ! 1/s
21 real, parameter, public :: mapl_stfbol = 5.6734e-8 ! W/(m^2 K^4)
22 real, parameter, public :: mapl_airmw = 28.965 ! kg/Kmole
23 real, parameter, public :: mapl_h2omw = 18.015 ! kg/Kmole
24 real, parameter, public :: mapl_o3mw = 47.9982 ! kg/Kmole
25 real, parameter, public :: mapl_runiv = 8314.47 ! J/(Kmole K)
26 real, parameter, public :: mapl_alhl = 2.4665e6 ! J/kg @15C
27 real, parameter, public :: mapl_alhf = 3.3370e5 ! J/kg
28 real, parameter, public :: mapl_alhs = mapl_alhl+mapl_alhf ! J/kg
29 
30 real, parameter, public :: mapl_rdry = mapl_runiv/mapl_airmw ! J/(kg K)
31 real, parameter, public :: mapl_cpdry = 3.5*mapl_rdry ! J/(kg K)
32 real, parameter, public :: mapl_cvdry = mapl_cpdry-mapl_rdry ! J/(kg K)
33 
34 real, parameter, public :: mapl_rvap = mapl_runiv/mapl_h2omw ! J/(kg K)
35 real, parameter, public :: mapl_cpvap = 4.*mapl_rvap ! J/(kg K)
36 real, parameter, public :: mapl_cvvap = mapl_cpvap-mapl_rvap ! J/(kg K)
37 
38 real, parameter, public :: mapl_kappa = mapl_rdry/mapl_cpdry ! (2.0/7.0)
39 
40 real, parameter, public :: mapl_epsilon= mapl_h2omw/mapl_airmw ! --
41 real, parameter, public :: mapl_deltap = mapl_cpvap/mapl_cpdry ! --
42 real, parameter, public :: mapl_deltav = mapl_cvvap/mapl_cvdry ! --
43 real, parameter, public :: mapl_gammad = mapl_cpdry/mapl_cvdry ! --
44 
45 real, parameter, public :: mapl_rgas = mapl_rdry ! J/(kg K) (DEPRECATED)
46 real, parameter, public :: mapl_cp = mapl_rgas/mapl_kappa ! J/(kg K) (DEPRECATED)
47 real, parameter, public :: mapl_vireps = 1.0/mapl_epsilon-1.0 ! (DEPRECATED)
48 
49 real, parameter, public :: mapl_p00 = 100000.0 ! Pa
50 real, parameter, public :: mapl_capice = 2000. ! J/(K kg)
51 real, parameter, public :: mapl_capwtr = 4218. ! J/(K kg)
52 real, parameter, public :: mapl_rhowtr = 1000. ! kg/m^3
53 real, parameter, public :: mapl_nuair = 1.533e-5 ! m^2/S (@ 18C)
54 real, parameter, public :: mapl_tice = 273.16 ! K
55 real, parameter, public :: mapl_srfprs = 98470 ! Pa
56 real, parameter, public :: mapl_karman = 0.40 ! --
57 real, parameter, public :: mapl_usmin = 1.00 ! m/s
58 real, parameter, public :: mapl_avogad = 6.023e26 ! 1/kmol
59 
60 real, parameter, public :: mapl_rho_seawater = 1026.0 ! sea water density [kg/m^3]. SA: should it be = 1026 kg/m^3?
61 real, parameter, public :: mapl_rho_seaice = 917.0 ! sea ice density [kg/m^3]. SA: should it be = 917 kg/m^3?
62 real, parameter, public :: mapl_rho_snow = 330.0 ! snow density [kg/m^3]. SA: should it be = 330 kg/m^3?
63 
64 end module mapl_constantsmod
real, parameter, public mapl_omega
real(kind=mapl_r8), parameter, public mapl_psdry
real, parameter, public mapl_usmin
integer, parameter, public mapl_rn
real, parameter, public mapl_cvvap
real, parameter, public mapl_deltap
real, parameter, public mapl_cpvap
real, parameter, public mapl_rho_seaice
real, parameter, public mapl_alhs
real, parameter, public mapl_rvap
real(kind=mapl_r8), parameter, public mapl_pi_r8
real, parameter, public mapl_tice
real, parameter, public mapl_epsilon
integer, parameter, public mapl_in
real, parameter, public mapl_gammad
real, parameter, public mapl_cp
real, parameter, public mapl_vireps
real, parameter, public mapl_airmw
real, parameter, public mapl_alhl
real, parameter, public mapl_cvdry
integer, parameter, public mapl_r4
real, parameter, public mapl_nuair
real, parameter, public mapl_kappa
real, parameter, public mapl_h2omw
real, parameter, public mapl_p00
real, parameter, public mapl_o3mw
real, parameter, public mapl_rho_seawater
real, parameter, public mapl_radius
real, parameter, public mapl_alhf
real, parameter, public mapl_cpdry
real, parameter, public mapl_rho_snow
real, parameter, public mapl_rdry
real, parameter, public mapl_stfbol
real, parameter, public mapl_deltav
integer, parameter, public mapl_i4
real, parameter, public mapl_capwtr
real, parameter, public mapl_rgas
real, parameter, public mapl_grav
real, parameter, public mapl_avogad
integer, parameter, public mapl_r8
real(kind=mapl_r4), parameter, public mapl_pi
integer, parameter, public mapl_i8
real, parameter, public mapl_rhowtr
real, parameter, public mapl_capice
real, parameter, public mapl_runiv
real, parameter, public mapl_karman
real, parameter, public mapl_srfprs