- Timestamp:
- Jan 20, 2025, 10:37:37 PM (28 hours ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/lmdz_cloud_optics_prop.f90
r5400 r5496 27 27 USE lmdz_cloud_optics_prop_ini , ONLY : rad_chau1, rad_chau2, rad_froid, iflag_rei 28 28 USE lmdz_cloud_optics_prop_ini , ONLY : ok_icefra_lscp, rei_max, rei_min 29 USE lmdz_cloud_optics_prop_ini , ONLY : rei_coef, rei_min_temp 29 30 USE lmdz_cloud_optics_prop_ini , ONLY : zepsec, novlp, iflag_ice_thermo, ok_new_lscp 30 31 … … 300 301 zfiwp_var = 1000.*icefrac_optics(i, k)*radocond(i, k)/pclc(i, k)*rhodz(i, k) 301 302 ! Calculation of ice cloud effective radius in micron 302 IF (iflag_rei .EQ. 1) THEN 303 IF (iflag_rei .EQ. 2) THEN 304 ! in-cloud ice water content in g/m3 305 iwc = icefrac_optics(i,k) * radocond(i,k) / pclc(i,k) * zrho(i,k) * 1000. 306 ! this formula is a simplified version of the Sun 2001 one (as in the IFS model, 307 ! and which is activated for iflag_rei = 1). 308 ! In particular, the term in temperature**2 has been simplified. 309 ! The new coefs are tunable, and are by default set so that the results fit well 310 ! to the Sun 2001 formula 311 ! By default, rei_coef = 2.4 and rei_min_temp = 175. 312 ! The ranges of these parameters are determined so that the RMSE between this 313 ! formula and the one from Sun 2001 is less than 4 times the minimum RMSE 314 ! The ranges are [1.9, 2.9] for rei_coef and [160., 185.] for rei_min_temp 315 dei = rei_coef * (iwc**0.2445) * ( temp(i,k) - rei_min_temp ) 316 ! we clip the results 317 deimax = 20. 318 deimin = 155. 319 dei = MIN(MAX(dei, deimin), deimax) 320 ! formula to convert effective diameter in effective radius 321 rei = 3. * SQRT(3.) / 8. * dei 322 ELSEIF (iflag_rei .EQ. 1) THEN 303 323 ! when we account for precipitation in the radiation scheme, 304 324 ! It is recommended to use the rei formula from Sun and Rikkus 1999 with a revision … … 407 427 408 428 409 IF (iflag_rei .GT. 0) THEN 410 429 IF (iflag_rei .EQ. 2) THEN 430 ! in-cloud ice water content in g/m3 431 iwc = icefrac_optics(i,k) * radocond(i,k) / pclc(i,k) * zrho(i,k) * 1000. 432 ! this formula is a simplified version of the Sun 2001 one (as in the IFS model, 433 ! and which is activated for iflag_rei = 1). 434 ! In particular, the term in temperature**2 has been simplified. 435 ! The new coefs are tunable, and are by default set so that the results fit well 436 ! to the Sun 2001 formula 437 ! By default, rei_coef = 2.4 and rei_min_temp = 175. 438 ! The ranges of these parameters are determined so that the RMSE between this 439 ! formula and the one from Sun 2001 is less than 4 times the minimum RMSE 440 ! The ranges are [1.9, 2.9] for rei_coef and [160., 185.] for rei_min_temp 441 dei = rei_coef * (iwc**0.2445) * ( temp(i,k) - rei_min_temp ) 442 ! we clip the results 443 deimin = 20. 444 deimin = 155. 445 dei = MIN(MAX(dei, deimin), deimax) 446 ! formula to convert effective diameter to effective radius 447 rei = 3. * SQRT(3.) / 8. * dei 448 449 ELSEIF (iflag_rei .EQ. 1) THEN 411 450 ! when we account for precipitation in the radiation scheme, 412 451 ! we use the rei formula from Sun and Rikkus 1999 with a revision -
LMDZ6/trunk/libf/phylmd/lmdz_cloud_optics_prop_ini.f90
r5400 r5496 21 21 REAL, PROTECTED :: rad_chau1, rad_chau2, rad_froid 22 22 REAL, PROTECTED :: rei_max, rei_min 23 REAL, PROTECTED :: rei_coef, rei_min_temp 23 24 REAL, PROTECTED :: zepsec 24 25 REAL, PARAMETER :: thres_tau=0.3, thres_neb=0.001 … … 38 39 !$OMP THREADPRIVATE(cdnc_min, cdnc_min_m3, rpi, rg, rd) 39 40 !$OMP THREADPRIVATE(rad_chau1, rad_chau2, rad_froid, rei_max, rei_min) 41 !$OMP THREADPRIVATE(rei_coef, rei_min_temp) 40 42 !$OMP THREADPRIVATE(zepsec) 41 43 … … 98 100 rei_max = 61.29 99 101 CALL getin_p('rei_max',rei_max) 102 rei_coef = 2.4 103 CALL getin_p('rei_coef',rei_coef) 104 rei_min_temp = 175. 105 CALL getin_p('rei_min_temp',rei_min_temp) 100 106 101 107
Note: See TracChangeset
for help on using the changeset viewer.