Ignore:
Timestamp:
Aug 30, 2023, 9:15:43 AM (15 months ago)
Author:
evignon
Message:

prise en compte de l'humidite pour le calcul du flux de flottabilite dans atke
+ petits ajustements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/atke_turbulence_ini_mod.F90

    r4644 r4653  
    1313  integer :: lunout,prt_level
    1414  !$OMP THREADPRIVATE(lunout,prt_level)
    15   real :: rg, rd, rpi, rcpd
    16   !$OMP THREADPRIVATE(rg, rd, rpi, rcpd)
     15  real :: rg, rd, rpi, rcpd, rv
     16  !$OMP THREADPRIVATE(rg, rd, rpi, rcpd, rv)
    1717
    1818  real :: viscom, viscoh
     
    2222  !$OMP THREADPRIVATE(lmin)
    2323
    24   logical :: ok_vdiff_tke
    25   !$OMP THREADPRIVATE(ok_vdiff_tke)
     24  logical :: atke_ok_vdiff, atke_ok_virtual
     25  !$OMP THREADPRIVATE(atke_ok_vdiff,atke_ok_virtual)
    2626
    2727CONTAINS
    2828
    29 SUBROUTINE atke_ini(prt_level_in, lunout_in, rg_in, rd_in, rpi_in, rcpd_in)
     29SUBROUTINE atke_ini(prt_level_in, lunout_in, rg_in, rd_in, rpi_in, rcpd_in, rv_in)
    3030
    3131   USE ioipsl_getin_p_mod, ONLY : getin_p
    3232
    3333  integer, intent(in) :: lunout_in,prt_level_in
    34   real, intent(in) :: rg_in, rd_in, rpi_in, rcpd_in
     34  real, intent(in) :: rg_in, rd_in, rpi_in, rcpd_in, rv_in
    3535
    3636
     
    4141  rpi=rpi_in
    4242  rcpd=rcpd_in
     43  rv=rv_in
    4344
    4445  viscom=1.46E-5
     
    5960
    6061  ! activate vertical diffusion of TKE or not
    61   ok_vdiff_tke=.false.
    62   CALL getin_p('atke_ok_vdiff_tke',ok_vdiff_tke)
     62  atke_ok_vdiff=.false.
     63  CALL getin_p('atke_ok_vdiff',atke_ok_vdiff)
     64
     65
     66  ! account for vapor for flottability
     67  atke_ok_virtual=.true.
     68  CALL getin_p('atke_ok_virtual',atke_ok_virtual)
     69
    6370
    6471  ! flag that controls the numerical treatment of diffusion coeffiient calculation
     
    8289
    8390  ! constant for tke dissipation calculation
    84   cepsilon=16.6/2./sqrt(2.) ! default value as in yamada4
     91  cepsilon=5.87 ! default value as in yamada4
    8592  CALL getin_p('atke_cepsilon',cepsilon)
     93
     94
     95 ! coefficient for surface TKE
     96 ! following Lenderink & Holtslag 2004, ctkes=sqrt(cepsilon)
     97 ! (provided by limit condition in neutral conditions)
     98  ctkes=sqrt(cepsilon)
     99
    86100
    87101  ! slope of Pr=f(Ri) for stable conditions
     
    111125  CALL getin_p('atke_smmin',smmin)
    112126
    113  ! coefficient for surface TKE (default value from Arpege, see E. Bazile note)
    114   ctkes=3.75
    115   CALL getin_p('atke_ctkes',ctkes)
    116127
    117128  ! ratio between the eddy diffusivity coeff for tke wrt that for momentum
Note: See TracChangeset for help on using the changeset viewer.