Changeset 4653 for LMDZ6/trunk/libf/phylmd/atke_turbulence_ini_mod.F90
- Timestamp:
- Aug 30, 2023, 9:15:43 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/atke_turbulence_ini_mod.F90
r4644 r4653 13 13 integer :: lunout,prt_level 14 14 !$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) 17 17 18 18 real :: viscom, viscoh … … 22 22 !$OMP THREADPRIVATE(lmin) 23 23 24 logical :: ok_vdiff_tke25 !$OMP THREADPRIVATE( ok_vdiff_tke)24 logical :: atke_ok_vdiff, atke_ok_virtual 25 !$OMP THREADPRIVATE(atke_ok_vdiff,atke_ok_virtual) 26 26 27 27 CONTAINS 28 28 29 SUBROUTINE atke_ini(prt_level_in, lunout_in, rg_in, rd_in, rpi_in, rcpd_in )29 SUBROUTINE atke_ini(prt_level_in, lunout_in, rg_in, rd_in, rpi_in, rcpd_in, rv_in) 30 30 31 31 USE ioipsl_getin_p_mod, ONLY : getin_p 32 32 33 33 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 35 35 36 36 … … 41 41 rpi=rpi_in 42 42 rcpd=rcpd_in 43 rv=rv_in 43 44 44 45 viscom=1.46E-5 … … 59 60 60 61 ! 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 63 70 64 71 ! flag that controls the numerical treatment of diffusion coeffiient calculation … … 82 89 83 90 ! constant for tke dissipation calculation 84 cepsilon= 16.6/2./sqrt(2.)! default value as in yamada491 cepsilon=5.87 ! default value as in yamada4 85 92 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 86 100 87 101 ! slope of Pr=f(Ri) for stable conditions … … 111 125 CALL getin_p('atke_smmin',smmin) 112 126 113 ! coefficient for surface TKE (default value from Arpege, see E. Bazile note)114 ctkes=3.75115 CALL getin_p('atke_ctkes',ctkes)116 127 117 128 ! ratio between the eddy diffusivity coeff for tke wrt that for momentum
Note: See TracChangeset
for help on using the changeset viewer.