Ignore:
Timestamp:
Jul 9, 2020, 11:10:48 AM (4 years ago)
Author:
dbardet
Message:

Add kstar parameter to control kmin value (set value in the parameterization). kmin=1/lambda_max, to ensure the subgrid scale characteristic, we have to constrain the maximum GW's wavelength (lambda_max) by the size of the mesh. So, kmin=max(kstar, kmin prescribed value)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/nonoro_gwd_ran_mod.F90

    r2305 r2403  
    4949                              gwd_convective_source
    5050     use inifis_mod
     51     use geometry_mod, only: cell_area
    5152#ifdef CPP_XIOS
    5253     use xios_output_mod, only: send_xios_field
     
    9798     INTEGER, parameter:: nw = nk * np *no ! Total numbers of gravity waves
    9899     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
    103107     REAL, parameter:: cmin = 1.    ! Min horizontal absolute phase velocity
    104108     REAL cpha                      ! absolute phase velocity frequency
     
    117121     REAL epflux_0(nw, ngrid)             ! Fluxes at launching level (previous name: RUW0)
    118122     INTEGER launch                       ! Launching altitude
    119      REAL, parameter:: xlaunch = 0.4      ! Control the launching altitude
    120      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.)
    121125
    122126     REAL prec(ngrid)     ! precipitations
     
    131135     REAL H0bis(ngrid, nlayer)       ! characteristic height of the atmosphere
    132136     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]
    135142     REAL zh(ngrid, nlayer + 1)      ! Log-pressure altitude (constant H0)
    136143     REAL zhbis(ngrid, nlayer + 1)   ! Log-pressure altitude (varying H)
     
    237244                        + 1.) * pi / 2.
    238245           ! 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
    240254           ! horizontal phase speed
    241255           cpha = 0.
Note: See TracChangeset for help on using the changeset viewer.