Changeset 2403 for trunk/LMDZ.GENERIC/libf
- Timestamp:
- Jul 9, 2020, 11:10:48 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/nonoro_gwd_ran_mod.F90
r2305 r2403 49 49 gwd_convective_source 50 50 use inifis_mod 51 use geometry_mod, only: cell_area 51 52 #ifdef CPP_XIOS 52 53 use xios_output_mod, only: send_xios_field … … 97 98 INTEGER, parameter:: nw = nk * np *no ! Total numbers of gravity waves 98 99 INTEGER jk, jp, jo, jw 99 REAL, parameter:: kmax = 7.e-4 ! Max horizontal wavenumber 100 REAL, parameter:: kmin = 2.e-5 ! Min horizontal wavenumber 101 !REAL, parameter:: cmax = 30. ! Max horizontal absolute phase velocity 102 REAL, parameter:: cmax = 100. ! Test for Saturn: Max horizontal absolute phase velocity 100 REAL kstar ! Control value to constrain the min horizontal wavenumber by the horizontal resolution 101 REAL, parameter:: kmax = 1.e-4 ! Max horizontal wavenumber=N/u, u(=30) zonal wind velocity at launch 102 !REAL, parameter:: kmax = 4.e-5 ! Max horizontal wavenumber=N/u, u(=70) zonal wind velocity at launch 103 REAL, parameter:: kmin = 2.e-6 ! Min horizontal wavenumber=1/sqrt(DxDy) Dx and Dy horizontal grid 104 REAL, parameter:: cmax = 30. ! Max horizontal absolute phase velocity=zonal wind at launch 105 !REAL, parameter:: cmax = 100. ! Test for Saturn: Max horizontal absolute phase velocity 106 !REAL, parameter:: cmax = 70. ! Test for Saturn: Max horizontal absolute phase velocity 103 107 REAL, parameter:: cmin = 1. ! Min horizontal absolute phase velocity 104 108 REAL cpha ! absolute phase velocity frequency … … 117 121 REAL epflux_0(nw, ngrid) ! Fluxes at launching level (previous name: RUW0) 118 122 INTEGER launch ! Launching altitude 119 REAL, parameter:: xlaunch = 0. 4! Control the launching altitude120 REAL, parameter:: zmaxth_top = 8000. ! Top of convective layer (approx.)123 REAL, parameter:: xlaunch = 0.2 ! Control the launching altitude 124 REAL, parameter:: zmaxth_top = 8000. ! Top of convective layer in m (approx.) 121 125 122 126 REAL prec(ngrid) ! precipitations … … 131 135 REAL H0bis(ngrid, nlayer) ! characteristic height of the atmosphere 132 136 REAL, save:: H0 ! characteristic height of the atmosphere 133 REAL, parameter:: pr = 250 ! Reference pressure [Pa] 134 REAL, parameter:: tr = 220. ! Reference temperature [K] 137 !REAL, parameter:: pr = 250 ! Reference pressure [Pa] 138 !REAL, parameter:: tr = 220. ! Reference temperature [K] 139 ! TEST FOR SATURN STRATOSPHERE 140 REAL, parameter:: pr = 110 ! Reference pressure [Pa] 141 REAL, parameter:: tr = 130. ! Reference temperature [K] 135 142 REAL zh(ngrid, nlayer + 1) ! Log-pressure altitude (constant H0) 136 143 REAL zhbis(ngrid, nlayer + 1) ! Log-pressure altitude (varying H) … … 237 244 + 1.) * pi / 2. 238 245 ! horizontal wavenumber amplitude 239 zk(jw, ii) = kmin + (kmax - kmin) * ran_num_2 246 ! TN+GG April/June 2020 247 ! "Individual waves are not supposed 248 ! to occupy the entire domain, but 249 ! only a faction of it" Lott+2012 250 251 !zk(jw, ii) = kmin + (kmax - kmin) * ran_num_2 252 kstar = pi / sqrt(cell_area(ii)) 253 zk(jw, ii) = max(kmin,kstar) + (kmax - max(kmin,kstar)) * ran_num_2 240 254 ! horizontal phase speed 241 255 cpha = 0.
Note: See TracChangeset
for help on using the changeset viewer.