[4449] | 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) |
---|
[4481] | 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) |
---|
[4449] | 13 | integer :: lunout,prt_level |
---|
| 14 | !$OMP THREADPRIVATE(lunout,prt_level) |
---|
[4478] | 15 | real :: rg, rd, rpi, rcpd |
---|
| 16 | !$OMP THREADPRIVATE(rg, rd, rpi, rcpd) |
---|
[4449] | 17 | |
---|
[4478] | 18 | real :: viscom, viscoh |
---|
| 19 | !$OMP THREADPRIVATE(viscom,viscoh) |
---|
[4449] | 20 | |
---|
[4478] | 21 | |
---|
| 22 | |
---|
[4449] | 23 | CONTAINS |
---|
| 24 | |
---|
[4478] | 25 | SUBROUTINE atke_ini(prt_level_in, lunout_in, rg_in, rd_in, rpi_in, rcpd_in) |
---|
[4449] | 26 | |
---|
| 27 | USE ioipsl_getin_p_mod, ONLY : getin_p |
---|
| 28 | |
---|
| 29 | integer, intent(in) :: lunout_in,prt_level_in |
---|
[4478] | 30 | real, intent(in) :: rg_in, rd_in, rpi_in, rcpd_in |
---|
[4449] | 31 | |
---|
| 32 | |
---|
| 33 | lunout=lunout_in |
---|
| 34 | prt_level=prt_level_in |
---|
| 35 | rd=rd_in |
---|
| 36 | rg=rg_in |
---|
| 37 | rpi=rpi_in |
---|
[4478] | 38 | rcpd=rcpd_in |
---|
[4449] | 39 | |
---|
[4478] | 40 | viscom=1.46E-5 |
---|
| 41 | viscoh=2.06E-5 |
---|
| 42 | |
---|
[4449] | 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 | |
---|
[4478] | 71 | ! value of turbulent prandtl number in neutral conditions (Ri=0) |
---|
[4481] | 72 | pr_neut=0.8 |
---|
[4478] | 73 | CALL getin_p('atke_pr_neut',pr_neut) |
---|
| 74 | |
---|
[4449] | 75 | |
---|
| 76 | RETURN |
---|
| 77 | |
---|
| 78 | END SUBROUTINE atke_ini |
---|
| 79 | |
---|
| 80 | END MODULE atke_turbulence_ini_mod |
---|