source: LMDZ6/branches/blowing_snow/libf/phylmd/atke_turbulence_ini_mod.F90 @ 4667

Last change on this file since 4667 was 4481, checked in by evignon, 20 months ago

quelques petites modifs pour le prochain atelier tke (lundi 03/04/2023)

File size: 1.8 KB
Line 
1MODULE atke_turbulence_ini_mod
2
3implicit none
4
5save
6
7  integer :: iflag_atke
8  !$OMP THREADPRIVATE(iflag_atke)
9  real :: kappa = 0.4 ! Von Karman constant
10  !$OMP THREADPRIVATE(kappa)
11  real :: l0, ric, ri0, cinf, cepsilon, pr_slope, pr_asym, pr_neut
12  !$OMP THREADPRIVATE(l0, ric, cinf, cepsilon, pr_slope, pr_asym, pr_neut)
13  integer :: lunout,prt_level
14  !$OMP THREADPRIVATE(lunout,prt_level)
15  real :: rg, rd, rpi, rcpd
16  !$OMP THREADPRIVATE(rg, rd, rpi, rcpd)
17
18  real :: viscom, viscoh
19  !$OMP THREADPRIVATE(viscom,viscoh)
20
21
22
23CONTAINS
24
25SUBROUTINE atke_ini(prt_level_in, lunout_in, rg_in, rd_in, rpi_in, rcpd_in)
26
27   USE ioipsl_getin_p_mod, ONLY : getin_p
28
29  integer, intent(in) :: lunout_in,prt_level_in
30  real, intent(in) :: rg_in, rd_in, rpi_in, rcpd_in
31
32
33  lunout=lunout_in
34  prt_level=prt_level_in
35  rd=rd_in
36  rg=rg_in
37  rpi=rpi_in
38  rcpd=rcpd_in
39
40  viscom=1.46E-5
41  viscoh=2.06E-5
42
43  ! flag that controls options in atke_compute_km_kh
44  iflag_atke=0
45  CALL getin_p('iflag_atke',iflag_atke)
46
47  ! asymptotic mixing length [m]
48  l0=150.0
49  CALL getin_p('atke_l0',l0)
50
51  ! critical Richardson number
52  ric=0.25
53  CALL getin_p('atke_ric',ric)
54
55  ! asymptotic value of Sm for Ri=-Inf
56  cinf=1.5
57  CALL getin_p('atke_cinf',cinf)
58
59  ! constant for tke dissipation calculation
60  cepsilon=16.6 ! default value as in yamada4
61  CALL getin_p('atke_cepsilon',cepsilon)
62
63  ! slope of Pr=f(Ri) for stable conditions
64  pr_slope=5.0 ! default value from Zilitinkevich et al. 2005
65  CALL getin_p('atke_pr_slope',pr_slope)
66
67  ! asymptotic turbulent prandt number value for Ri=-Inf
68  pr_asym=0.4
69  CALL getin_p('atke_pr_asym',pr_asym)
70
71  ! value of turbulent prandtl number in neutral conditions (Ri=0)
72  pr_neut=0.8
73  CALL getin_p('atke_pr_neut',pr_neut)
74
75   
76 RETURN
77
78END SUBROUTINE atke_ini
79
80END MODULE  atke_turbulence_ini_mod
Note: See TracBrowser for help on using the repository browser.