Changeset 2640 for trunk/LMDZ.MARS


Ignore:
Timestamp:
Mar 9, 2022, 5:02:26 PM (3 years ago)
Author:
emillour
Message:

Mars GCM:
Update for non-orographic Gravity Waves; some key parameters can now be
set via callphys.def
JL

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2639 r2640  
    36433643tracers.
    36443644
    3645 == 03/03/2022 == AB
     3645== 09/03/2022 == AB
    36463646Update .def* files in LMDZ.MARS/deftank/
    36473647*.def.GCM6 files are bound to change later but are ready to use.
    36483648
    3649 == 03/03/2022 == AB
     3649== 09/03/2022 == AB
    36503650Following r2637, change default values for dust cycle parameters to make them
    36513651consistent with callphys.def.GCM6
     3652
     3653== 09/03/2022 == JL
     3654Update for non-orographic Gravity Waves; some key parameters can now be
     3655set via callphys.def
  • trunk/LMDZ.MARS/libf/phymars/nonoro_gwd_ran_mod.F90

    r2596 r2640  
    104104    REAL, save :: kmax             ! Max horizontal wavenumber (lambda min,lambda=2*pi/kmax),kmax=N/u, u(=30~50) zonal wind velocity at launch altitude
    105105!$OMP THREADPRIVATE(kmax)
    106     REAL, parameter:: kmin = 2.e-5 ! Min horizontal wavenumber (lambda max = 314 km,lambda=2*pi/kmin)
     106    REAL, save :: kmin             ! Min horizontal wavenumber (lambda max = 314 km,lambda=2*pi/kmin)
     107!$OMP THREADPRIVATE(kmim)
    107108    REAL kstar                     ! Min horizontal wavenumber constrained by horizontal resolution
    108109    REAL, save :: cmax             ! Max horizontal absolute phase velocity (at the maginitide of zonal wind u at the launch altitude)
    109110!$OMP THREADPRIVATE(cmax)
     111    REAL :: max_k(ngrid)           ! max_k=max(kstar,kmin)
    110112    REAL, parameter:: cmin = 1.    ! Min horizontal absolute phase velocity (not used)   
    111113    REAL CPHA                      ! absolute PHASE VELOCITY frequency
     
    126128!$OMP THREADPRIVATE(epflux_max)
    127129    INTEGER LAUNCH                       ! Launching altitude
    128     REAL, parameter:: xlaunch = 0.4      ! Control the launching altitude by pressure
     130    REAL, save :: xlaunch                ! Control the launching altitude by pressure
     131!$OMP THREADPRIVATE(xlaunch)
    129132    REAL, parameter:: zmaxth_top = 8000. ! Top of convective layer (approx. not used)
    130133
     
    180183        call getin_p("nonoro_gwd_kmax", kmax)
    181184        write(*,*) "nonoro_gwd_ran: kmax=", kmax
    182 
     185        kmin=2.e-5 ! default Max horizontal wavenumber !!
     186        call getin_p("nonoro_gwd_kmin", kmin)
     187        write(*,*) "nonoro_gwd_ran: kmin=", kmin
     188        xlaunch=0.4 ! default GW luanch altitude controller !!
     189        call getin_p("nonoro_gwd_xlaunch", xlaunch)
     190        write(*,*) "nonoro_gwd_ran: xlaunch=", xlaunch
    183191        ! Characteristic vertical scale height
    184192        H0 = r * tr / g
     
    264272    VH(:, nlayer + 1) = VV(:, nlayer)
    265273
     274    DO ii=1,ngrid
     275       KSTAR = PI/SQRT(cell_area(II))
     276       MAX_K(II)=MAX(kmin,kstar)
     277    ENDDO
    266278    call writediagfi(ngrid,'nonoro_bv','nonoro_bv', 'm',3,BV(:,2:nlayer+1))
    267279
     
    282294                ! "Individual waves are not supposed to occupy the entire domain, but only a fraction of it" (Lott+2012)
    283295                ! ZK(JW, II) = KMIN + (KMAX - KMIN) *RAN_NUM_2
    284                 KSTAR = PI/SQRT(cell_area(II))
    285                 ZK(JW, II) = MAX(KMIN,KSTAR) + (KMAX - MAX(KMIN,KSTAR)) *RAN_NUM_2
     296                KSTAR = PI/SQRT(cell_area(II))         
     297                ZK(JW, II) = MAX_K(II) + (KMAX - MAX_K(II)) *RAN_NUM_2
    286298               
    287299               ! Horizontal phase speed
Note: See TracChangeset for help on using the changeset viewer.