Changeset 2640 for trunk/LMDZ.MARS
- Timestamp:
- Mar 9, 2022, 5:02:26 PM (3 years ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/README
r2639 r2640 3643 3643 tracers. 3644 3644 3645 == 0 3/03/2022 == AB3645 == 09/03/2022 == AB 3646 3646 Update .def* files in LMDZ.MARS/deftank/ 3647 3647 *.def.GCM6 files are bound to change later but are ready to use. 3648 3648 3649 == 0 3/03/2022 == AB3649 == 09/03/2022 == AB 3650 3650 Following r2637, change default values for dust cycle parameters to make them 3651 3651 consistent with callphys.def.GCM6 3652 3653 == 09/03/2022 == JL 3654 Update for non-orographic Gravity Waves; some key parameters can now be 3655 set via callphys.def -
trunk/LMDZ.MARS/libf/phymars/nonoro_gwd_ran_mod.F90
r2596 r2640 104 104 REAL, save :: kmax ! Max horizontal wavenumber (lambda min,lambda=2*pi/kmax),kmax=N/u, u(=30~50) zonal wind velocity at launch altitude 105 105 !$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) 107 108 REAL kstar ! Min horizontal wavenumber constrained by horizontal resolution 108 109 REAL, save :: cmax ! Max horizontal absolute phase velocity (at the maginitide of zonal wind u at the launch altitude) 109 110 !$OMP THREADPRIVATE(cmax) 111 REAL :: max_k(ngrid) ! max_k=max(kstar,kmin) 110 112 REAL, parameter:: cmin = 1. ! Min horizontal absolute phase velocity (not used) 111 113 REAL CPHA ! absolute PHASE VELOCITY frequency … … 126 128 !$OMP THREADPRIVATE(epflux_max) 127 129 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) 129 132 REAL, parameter:: zmaxth_top = 8000. ! Top of convective layer (approx. not used) 130 133 … … 180 183 call getin_p("nonoro_gwd_kmax", kmax) 181 184 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 183 191 ! Characteristic vertical scale height 184 192 H0 = r * tr / g … … 264 272 VH(:, nlayer + 1) = VV(:, nlayer) 265 273 274 DO ii=1,ngrid 275 KSTAR = PI/SQRT(cell_area(II)) 276 MAX_K(II)=MAX(kmin,kstar) 277 ENDDO 266 278 call writediagfi(ngrid,'nonoro_bv','nonoro_bv', 'm',3,BV(:,2:nlayer+1)) 267 279 … … 282 294 ! "Individual waves are not supposed to occupy the entire domain, but only a fraction of it" (Lott+2012) 283 295 ! 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_2296 KSTAR = PI/SQRT(cell_area(II)) 297 ZK(JW, II) = MAX_K(II) + (KMAX - MAX_K(II)) *RAN_NUM_2 286 298 287 299 ! Horizontal phase speed
Note: See TracChangeset
for help on using the changeset viewer.