source: trunk/LMDZ.MARS/libf/phymars/microphys.h @ 2616

Last change on this file since 2616 was 2612, checked in by romain.vande, 3 years ago

LMDZ_MARS RV : Open_MP;
Put all the "COMMON" of *.h file as "$OMP THREADPRIVATE"

File size: 3.9 KB
Line 
1!-----------------------------------------------------------------------
2! INCLUDE 'microphys.h'
3! Parameters and physical constants used by the microphysal scheme;
4! Parameters for CO2 microphysics are also in this file
5!-----------------------------------------------------------------------
6
7!     Number of bins
8      INTEGER, PARAMETER :: nbin_cld = 5
9
10!     Reference temperature, T=273.15 K
11      REAL, PARAMETER :: To = 273.15
12!     Avogadro number
13      DOUBLE PRECISION, PARAMETER :: nav = 6.023d23
14!     Perfect gas constant
15      DOUBLE PRECISION, PARAMETER :: rgp = 8.3143
16!     Boltzman constant
17      DOUBLE PRECISION, PARAMETER :: kbz = 1.381d-23
18!     Molecular weight of H2O (kg.mol-1)
19      DOUBLE PRECISION, PARAMETER :: mh2o = 18.d-3
20!     Molecular weight of HDO (kg.mol-1)
21      DOUBLE PRECISION, PARAMETER :: mhdo = 19.d-3
22!     Molecular weight of CO2 (kg.mol-1)
23      DOUBLE PRECISION, PARAMETER :: mco2 = 44.d-3
24!     Molecular weight of N2 (kg.mol-1)
25      DOUBLE PRECISION, PARAMETER :: mn2 = 28.01d-3
26!     Effective CO2 gas molecular radius (m)
27  !    bachnar 2016 value :1.97d-10   ! old value = 2.2d-10
28      DOUBLE PRECISION, PARAMETER :: molco2 = 1.97d-10
29!     Effective H2O gas molecular radius (m)
30      DOUBLE PRECISION, PARAMETER :: molh2o = 1.2d-10
31!     Effective HDO gas molecular radius (m)
32      DOUBLE PRECISION, PARAMETER :: molhdo = 1.2d-10
33!     Surface tension of ice/vapor (N.m)
34      DOUBLE PRECISION, PARAMETER :: sigh2o = 0.12
35!     Activation energy for desorption of
36!       water on a dust-like substrate
37!       (J/molecule)
38      DOUBLE PRECISION, PARAMETER :: desorp = 0.288e-19
39!     Jump frequency of a water molecule (s-1)
40      DOUBLE PRECISION, PARAMETER :: nus = 1.e+13
41!     Estimated activation energy for
42!       surface diffusion of water molecules
43!       (J/molecule)
44      DOUBLE PRECISION, PARAMETER :: surfdif = desorp / 10.
45!     Weight of a water molecule (kg)
46      DOUBLE PRECISION, PARAMETER :: m0 = mh2o / nav
47
48!     Contact parameter ( m=cos(theta) )
49!       (initialized in improvedclouds.F)
50      REAL mteta
51
52!     Volume of a water molecule (m3)
53      DOUBLE PRECISION vo1
54!     Radius used by the microphysical scheme (m)
55      DOUBLE PRECISION rad_cld(nbin_cld)
56
57
58
59
60!CO2 part
61!      number of bins for nucleation
62      INTEGER, PARAMETER :: nbinco2_cld=100
63!     Surface tension of ice/vapor (J.m-2)
64      DOUBLE PRECISION, PARAMETER :: sigco2 = 0.08
65!     Activation energy for desorption of
66!       water on a dust-like substrate
67!       (J/molecule)
68      DOUBLE PRECISION, PARAMETER ::desorpco2=3.07e-20
69!     bachnar 2016 value 3.07d-20 
70!old value 3.20e-20
71!     Jump frequency of a co2 molecule (s-1)
72      DOUBLE PRECISION, PARAMETER :: nusco2 =  2.9e+12
73!     Estimated activation energy for
74!       surface diffusion of co2 molecules
75!       (J/molecule)
76      DOUBLE PRECISION, PARAMETER :: surfdifco2 = desorpco2 / 10.
77!     Weight of a co2 molecule (kg)
78      DOUBLE PRECISION, PARAMETER :: m0co2 = mco2 / nav
79!     Contact parameter ( m=cos(theta) )
80!       (initialized in improvedCO2clouds.F)
81!    bachnar 2016 value :0.78 
82!old value 0.95
83      REAL, parameter :: mtetaco2 = 0.95
84!     Volume of a co2 molecule (m3)
85       DOUBLE PRECISION :: vo1co2
86!     Radius used by the microphysical scheme (m)
87      DOUBLE PRECISION :: rad_cldco2(nbinco2_cld)
88       REAL, parameter :: threshJA = 1
89!     COMMON/microphys/vo1co2,rad_cldco2
90
91! NB: to keep commons aligned: 
92!     split them in groups (reals, integers and characters)
93
94      COMMON/microphys/rad_cld,vo1,rad_cldco2,vo1co2
95                  COMMON/microphys_2/mteta
96!$OMP THREADPRIVATE(/microphys/)
97!$OMP THREADPRIVATE(/microphys_2/)
98
99     
100!     EXAMPLE:
101!     COMMON/tracer/radius,rho_q,alpha_lift,alpha_devil,mmol,           &
102!    & varian,r3n_q,rho_dust,rho_ice,nuice_ref,nuice_sed,               &
103!    & ref_r0,dryness
104!-----------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.