source: trunk/LMDZ.MARS/libf/phymars/microphys_h.F90 @ 3393

Last change on this file since 3393 was 3008, checked in by emillour, 16 months ago

Mars PCM:
Some code cleanup around microphysics. Turn microphys.h into module
microphys_h.F90, and while at it also turn nuclea.F, growthrate.F90 and
massflowrateco2.F90 into modules.
EM

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