CCPP SciDoc v7.0.0  v7.0.0
Common Community Physics Package Developed at DTC
Loading...
Searching...
No Matches
bl_mynn_common.f90
1!>\file bl_mynn_common.f90
2!! Define Model-specific constants/parameters.
3!! This module will be used at the initialization stage
4!! where all model-specific constants are read and saved into
5!! memory. This module is then used again in the MYNN-EDMF. All
6!! MYNN-specific constants are declared globally in the main
7!! module (module_bl_mynn) further below:
8
9!>\ingroup gp_mynnedmf
10!! This module defines model-specific constants/parameters.
12
13!------------------------------------------
14!
15!------------------------------------------
16
17! The following 5-6 lines are the only lines in this file that are not
18! universal for all dycores... Any ideas how to universalize it?
19! For MPAS:
20! use mpas_kind_types,only: kind_phys => RKIND
21! For CCPP:
22 use machine, only : kind_phys
23
24 implicit none
25 save
26
27! To be specified from dycore
28 real(kind=kind_phys):: cp !<= 7.*r_d/2. (J/kg/K)
29 real(kind=kind_phys):: cpv !<= 4.*r_v (J/kg/K) Spec heat H2O gas
30 real(kind=kind_phys):: cice !<= 2106. (J/kg/K) Spec heat H2O ice
31 real(kind=kind_phys):: cliq !<= 4190. (J/kg/K) Spec heat H2O liq
32 real(kind=kind_phys):: p608 !<= R_v/R_d-1.
33 real(kind=kind_phys):: ep_2 !<= R_d/R_v
34 real(kind=kind_phys):: grav !<= accel due to gravity
35 real(kind=kind_phys):: karman !<= von Karman constant
36 real(kind=kind_phys):: t0c !<= temperature of water at freezing, 273.15 K
37 real(kind=kind_phys):: rcp !<= r_d/cp
38 real(kind=kind_phys):: r_d !<= 287. (J/kg/K) gas const dry air
39 real(kind=kind_phys):: r_v !<= 461.6 (J/kg/K) gas const water
40 real(kind=kind_phys):: xlf !<= 0.35E6 (J/kg) fusion at 0 C
41 real(kind=kind_phys):: xlv !<= 2.50E6 (J/kg) vaporization at 0 C
42 real(kind=kind_phys):: xls !<= 2.85E6 (J/kg) sublimation
43 real(kind=kind_phys):: rvovrd !<= r_v/r_d != 1.608
44
45! Specified locally
46 real(kind=kind_phys),parameter:: zero = 0.0
47 real(kind=kind_phys),parameter:: half = 0.5
48 real(kind=kind_phys),parameter:: one = 1.0
49 real(kind=kind_phys),parameter:: two = 2.0
50 real(kind=kind_phys),parameter:: onethird = 1./3.
51 real(kind=kind_phys),parameter:: twothirds = 2./3.
52 real(kind=kind_phys),parameter:: tref = 300.0 !< reference temperature (K)
53 real(kind=kind_phys),parameter:: tkmin = 253.0 !< for total water conversion, Tripoli and Cotton (1981)
54 real(kind=kind_phys),parameter:: p1000mb=100000.0
55 real(kind=kind_phys),parameter:: svp1 = 0.6112 !<(kPa)
56 real(kind=kind_phys),parameter:: svp2 = 17.67 !<(dimensionless)
57 real(kind=kind_phys),parameter:: svp3 = 29.65 !<(K)
58 real(kind=kind_phys),parameter:: tice = 240.0 !<-33 (C), temp at saturation w.r.t. ice
59
60! To be derived in the init routine
61 real(kind=kind_phys):: ep_3 !<= 1.-ep_2 != 0.378
62 real(kind=kind_phys):: gtr !<= grav/tref
63 real(kind=kind_phys):: rk !<= cp/r_d
64 real(kind=kind_phys):: tv0 !<= p608*tref
65 real(kind=kind_phys):: tv1 !<= (1.+p608)*tref
66 real(kind=kind_phys):: xlscp !<= (xlv+xlf)/cp
67 real(kind=kind_phys):: xlvcp !<= xlv/cp
68 real(kind=kind_phys):: g_inv !<= 1./grav
69
70 end module bl_mynn_common
This module defines model-specific constants/parameters.