Ignore:
Timestamp:
Jun 21, 2022, 11:05:47 AM (2 years ago)
Author:
aslmd
Message:

switch to epsi_generic & RLVTT_generic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/generic_cloud_common_h.F90

    r2721 r2725  
    1919    real,save :: Tref ! Ref temperature for Clausis-Clapeyron (K)
    2020    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)
    2323    real,save :: metallicity_coeff ! Coefficient to take into account the metallicity
    2424
     
    3535    !   Values are based on Vissher (2010) and Morley (2012).
    3636    !
    37     !   Also set up few others useful parameters, such as epsi=m/mugaz, RLVTT and
     37    !   Also set up few others useful parameters, such as epsi_generic=m/mugaz, RLVTT_generic and
    3838    !   the metallicity_coeff.
    3939    !   Authors
     
    5050            Pref =   1.0E5 !in Pa
    5151            m = 140.6931
    52             RLVTT = delta_vapH/(m/1000.)
     52            RLVTT_generic = delta_vapH/(m/1000.)
    5353            metallicity_coeff=1.0*log(10.0)
    5454           
     
    5959            Pref =  1.0E5
    6060            m = 78.04454 !Na2S
    61             RLVTT = delta_vapH/(m/1000.)
     61            RLVTT_generic = delta_vapH/(m/1000.)
    6262            metallicity_coeff=0.5*log(10.0)
    6363           
     
    6868            Pref  = 1.0E5
    6969            m = 55.8450
    70             RLVTT = delta_vapH/(m/1000.)
     70            RLVTT_generic = delta_vapH/(m/1000.)
    7171            metallicity_coeff=0.0*log(10.0)
    7272           
     
    7777            Pref  = 1.0E5
    7878            m = 51.9961
    79             RLVTT = delta_vapH/(m/1000.)
     79            RLVTT_generic = delta_vapH/(m/1000.)
    8080            metallicity_coeff=0.0*log(10.0)
    8181           
     
    8787            metallicity_coeff=0.0*log(10.0)
    8888            m = 74.5498
    89             RLVTT = delta_vapH/(m/1000.)
     89            RLVTT_generic = delta_vapH/(m/1000.)
    9090        else if (trim(specname) .eq. "Mn") then
    9191            print*,"Loading data for Mn"
     
    9595            metallicity_coeff=1.0*log(10.0)
    9696            m = 87.003049
    97             RLVTT = delta_vapH/(m/1000.)
     97            RLVTT_generic = delta_vapH/(m/1000.)
    9898        else if (trim(specname) .eq. "Zn") then
    9999            print*,"Loading data for Zn"
     
    103103            metallicity_coeff=1.0*log(10.0)
    104104            m = 97.445
    105             RLVTT = delta_vapH/(m/1000.)
     105            RLVTT_generic = delta_vapH/(m/1000.)
    106106        else
    107107            print*,"Unknow species (not in Mg, Fe, Na, KCl, Cr, Mn or Zn)"
    108108        endif
    109         epsi = m/mugaz
     109        epsi_generic = m/mugaz
    110110    end subroutine specie_parameters
    111111
     
    118118    !   From a table of traceurs
    119119    !
    120     !   Also set up few others useful parameters, such as epsi=m/mugaz, RLVTT and
     120    !   Also set up few others useful parameters, such as epsi_generic=m/mugaz, RLVTT_generic and
    121121    !   the metallicity_coeff.
    122122    !   Authors
     
    178178        close(117)
    179179
    180         RLVTT=delta_vapH/(m/1000.)
    181 
    182         write(*,*) 'RLVTT', RLVTT
    183 
    184         epsi = m/mugaz
     180        RLVTT_generic=delta_vapH/(m/1000.)
     181
     182        write(*,*) 'RLVTT_generic', RLVTT_generic
     183
     184        epsi_generic = m/mugaz
    185185
    186186    end subroutine specie_parameters_table
     
    208208            qsat = 1. ! is the maximum amount of vapor that a parcel can hold without condensation, in specific concentration.
    209209        else
    210             qsat = epsi *psat/(p-(1-epsi)*psat)
     210            qsat = epsi_generic *psat/(p-(1-epsi_generic)*psat)
    211211        endif
    212212    end subroutine Psat_generic
     
    240240            dqsat =0.
    241241        else
    242             dqsat = (RLVTT/cpp) *qsat*(p/(p-(1-epsi)*psat))*dummy
    243             dlnpsat = (RLVTT/cpp) * dummy
     242            dqsat = (RLVTT_generic/cpp) *qsat*(p/(p-(1-epsi_generic)*psat))*dummy
     243            dlnpsat = (RLVTT_generic/cpp) * dummy
    244244        endif
    245245
Note: See TracChangeset for help on using the changeset viewer.