- Timestamp:
- Jun 21, 2022, 11:05:47 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/generic_cloud_common_h.F90
r2721 r2725 19 19 real,save :: Tref ! Ref temperature for Clausis-Clapeyron (K) 20 20 real,save :: Pref ! Reference pressure for Clausius Clapeyron (Pa) 21 real, save :: epsi ! fractionnal molecular mass (m/mugaz)22 real,save :: RLVTT !Latent heat of vaporization (J/kg)21 real, save :: epsi_generic ! fractionnal molecular mass (m/mugaz) 22 real,save :: RLVTT_generic !Latent heat of vaporization (J/kg) 23 23 real,save :: metallicity_coeff ! Coefficient to take into account the metallicity 24 24 … … 35 35 ! Values are based on Vissher (2010) and Morley (2012). 36 36 ! 37 ! Also set up few others useful parameters, such as epsi =m/mugaz, RLVTTand37 ! Also set up few others useful parameters, such as epsi_generic=m/mugaz, RLVTT_generic and 38 38 ! the metallicity_coeff. 39 39 ! Authors … … 50 50 Pref = 1.0E5 !in Pa 51 51 m = 140.6931 52 RLVTT = delta_vapH/(m/1000.)52 RLVTT_generic = delta_vapH/(m/1000.) 53 53 metallicity_coeff=1.0*log(10.0) 54 54 … … 59 59 Pref = 1.0E5 60 60 m = 78.04454 !Na2S 61 RLVTT = delta_vapH/(m/1000.)61 RLVTT_generic = delta_vapH/(m/1000.) 62 62 metallicity_coeff=0.5*log(10.0) 63 63 … … 68 68 Pref = 1.0E5 69 69 m = 55.8450 70 RLVTT = delta_vapH/(m/1000.)70 RLVTT_generic = delta_vapH/(m/1000.) 71 71 metallicity_coeff=0.0*log(10.0) 72 72 … … 77 77 Pref = 1.0E5 78 78 m = 51.9961 79 RLVTT = delta_vapH/(m/1000.)79 RLVTT_generic = delta_vapH/(m/1000.) 80 80 metallicity_coeff=0.0*log(10.0) 81 81 … … 87 87 metallicity_coeff=0.0*log(10.0) 88 88 m = 74.5498 89 RLVTT = delta_vapH/(m/1000.)89 RLVTT_generic = delta_vapH/(m/1000.) 90 90 else if (trim(specname) .eq. "Mn") then 91 91 print*,"Loading data for Mn" … … 95 95 metallicity_coeff=1.0*log(10.0) 96 96 m = 87.003049 97 RLVTT = delta_vapH/(m/1000.)97 RLVTT_generic = delta_vapH/(m/1000.) 98 98 else if (trim(specname) .eq. "Zn") then 99 99 print*,"Loading data for Zn" … … 103 103 metallicity_coeff=1.0*log(10.0) 104 104 m = 97.445 105 RLVTT = delta_vapH/(m/1000.)105 RLVTT_generic = delta_vapH/(m/1000.) 106 106 else 107 107 print*,"Unknow species (not in Mg, Fe, Na, KCl, Cr, Mn or Zn)" 108 108 endif 109 epsi = m/mugaz109 epsi_generic = m/mugaz 110 110 end subroutine specie_parameters 111 111 … … 118 118 ! From a table of traceurs 119 119 ! 120 ! Also set up few others useful parameters, such as epsi =m/mugaz, RLVTTand120 ! Also set up few others useful parameters, such as epsi_generic=m/mugaz, RLVTT_generic and 121 121 ! the metallicity_coeff. 122 122 ! Authors … … 178 178 close(117) 179 179 180 RLVTT =delta_vapH/(m/1000.)181 182 write(*,*) 'RLVTT ', RLVTT183 184 epsi = m/mugaz180 RLVTT_generic=delta_vapH/(m/1000.) 181 182 write(*,*) 'RLVTT_generic', RLVTT_generic 183 184 epsi_generic = m/mugaz 185 185 186 186 end subroutine specie_parameters_table … … 208 208 qsat = 1. ! is the maximum amount of vapor that a parcel can hold without condensation, in specific concentration. 209 209 else 210 qsat = epsi *psat/(p-(1-epsi)*psat)210 qsat = epsi_generic *psat/(p-(1-epsi_generic)*psat) 211 211 endif 212 212 end subroutine Psat_generic … … 240 240 dqsat =0. 241 241 else 242 dqsat = (RLVTT /cpp) *qsat*(p/(p-(1-epsi)*psat))*dummy243 dlnpsat = (RLVTT /cpp) * dummy242 dqsat = (RLVTT_generic/cpp) *qsat*(p/(p-(1-epsi_generic)*psat))*dummy 243 dlnpsat = (RLVTT_generic/cpp) * dummy 244 244 endif 245 245
Note: See TracChangeset
for help on using the changeset viewer.