Changeset 4780 for LMDZ6/trunk/libf/phylmd/lmdz_atke_exchange_coeff.F90
- Timestamp:
- Dec 21, 2023, 10:17:25 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/lmdz_atke_exchange_coeff.F90
r4777 r4780 25 25 26 26 27 USE lmdz_atke_turbulence_ini, ONLY : iflag_atke, kappa, l0, ric, cinf, rpi, rcpd, atke_ok_virtual 27 USE lmdz_atke_turbulence_ini, ONLY : iflag_atke, kappa, l0, ric, cinf, rpi, rcpd, atke_ok_virtual, ri0, ri1 28 28 USE lmdz_atke_turbulence_ini, ONLY : cepsilon, pr_slope, pr_asym, pr_neut, ctkes, rg, rd, rv, atke_ok_vdiff 29 USE lmdz_atke_turbulence_ini, ONLY : viscom, viscoh, clmix, clmixshear, iflag_atke_lmix, lmin, smmin 29 USE lmdz_atke_turbulence_ini, ONLY : viscom, viscoh, clmix, clmixshear, iflag_atke_lmix, lmin, smmin, cn 30 30 31 31 implicit none … … 69 69 70 70 INTEGER :: igrid,ilay ! horizontal,vertical index (flat grid) 71 REAL :: cn,Ri0,Ri1 ! parameter for Sm stability function and Prandlt72 71 REAL :: preff ! reference pressure for potential temperature calculations 73 72 REAL :: thetam ! mean potential temperature at interface … … 132 131 ! Computes the gradient Richardson's number and stability functions: 133 132 !=================================================================== 134 135 ! calculation of cn = Sm value at Ri=0136 ! direct dependance on cepsilon to guarantee Fm=1 (first-order like stability function) at Ri=0137 cn=(1./sqrt(cepsilon))**(2/3)138 ! calculation of Ri0 such that continuity in slope of Sm at Ri=0139 Ri0=2./rpi*(cinf - cn)*ric/cn140 ! calculation of Ri1 to guarantee continuity in slope of Prandlt number at Ri=0141 Ri1 = -2./rpi * (pr_asym - pr_neut)142 143 133 144 134 DO ilay=2,nlay … … 176 166 177 167 IF (iflag_atke_lmix .EQ. 1 ) THEN 178 168 ! Blackadar formulation (~kappa l) + buoyancy length scale (Deardoff 1980) for very stable conditions 179 169 DO ilay=2,nlay 180 170 DO igrid=1,ngrid … … 223 213 224 214 ELSE 225 ! default : neglect effect of local stratification and shear215 ! default Blackadar formulation: neglect effect of local stratification and shear 226 216 227 217 DO ilay=2,nlay+1 … … 250 240 251 241 ! full implicit scheme resolved with a second order polynomial equation 252 242 ! default solution which shows fair convergence properties 253 243 DO ilay=2,nlay 254 244 DO igrid=1,ngrid
Note: See TracChangeset
for help on using the changeset viewer.