1 | MODULE atke_turbulence_ini_mod |
---|
2 | |
---|
3 | implicit none |
---|
4 | |
---|
5 | save |
---|
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, cn, cinf, cepsilon, pr_slope, pr_asym |
---|
12 | !$OMP THREADPRIVATE(l0, ric, cn, cinf, cepsilon, pr_slope, pr_asym) |
---|
13 | integer :: lunout,prt_level |
---|
14 | !$OMP THREADPRIVATE(lunout,prt_level) |
---|
15 | real :: rg, rd, rpi |
---|
16 | !$OMP THREADPRIVATE(rg, rd, rpi) |
---|
17 | |
---|
18 | |
---|
19 | CONTAINS |
---|
20 | |
---|
21 | SUBROUTINE atke_ini(prt_level_in, lunout_in, rg_in, rd_in, rpi_in) |
---|
22 | |
---|
23 | USE ioipsl_getin_p_mod, ONLY : getin_p |
---|
24 | |
---|
25 | integer, intent(in) :: lunout_in,prt_level_in |
---|
26 | real, intent(in) :: rg_in, rd_in, rpi_in |
---|
27 | |
---|
28 | |
---|
29 | lunout=lunout_in |
---|
30 | prt_level=prt_level_in |
---|
31 | rd=rd_in |
---|
32 | rg=rg_in |
---|
33 | rpi=rpi_in |
---|
34 | |
---|
35 | ! flag that controls options in atke_compute_km_kh |
---|
36 | iflag_atke=0 |
---|
37 | CALL getin_p('iflag_atke',iflag_atke) |
---|
38 | |
---|
39 | ! asymptotic mixing length [m] |
---|
40 | l0=150.0 |
---|
41 | CALL getin_p('atke_l0',l0) |
---|
42 | |
---|
43 | ! critical Richardson number |
---|
44 | ric=0.25 |
---|
45 | CALL getin_p('atke_ric',ric) |
---|
46 | |
---|
47 | ! value of Sm stability function for neutral conditions (Ri=0) |
---|
48 | cn=1.0 |
---|
49 | CALL getin_p('atke_cn',cn) |
---|
50 | |
---|
51 | ! asymptotic value of Sm for Ri=-Inf |
---|
52 | cinf=1.5 |
---|
53 | CALL getin_p('atke_cinf',cinf) |
---|
54 | |
---|
55 | ! constant for tke dissipation calculation |
---|
56 | cepsilon=16.6 ! default value as in yamada4 |
---|
57 | CALL getin_p('atke_cepsilon',cepsilon) |
---|
58 | |
---|
59 | ! slope of Pr=f(Ri) for stable conditions |
---|
60 | pr_slope=5.0 ! default value from Zilitinkevich et al. 2005 |
---|
61 | CALL getin_p('atke_pr_slope',pr_slope) |
---|
62 | |
---|
63 | ! asymptotic turbulent prandt number value for Ri=-Inf |
---|
64 | pr_asym=0.4 |
---|
65 | CALL getin_p('atke_pr_asym',pr_asym) |
---|
66 | |
---|
67 | |
---|
68 | RETURN |
---|
69 | |
---|
70 | END SUBROUTINE atke_ini |
---|
71 | |
---|
72 | END MODULE atke_turbulence_ini_mod |
---|