Changeset 5537 for LMDZ6/branches


Ignore:
Timestamp:
Feb 12, 2025, 10:18:07 AM (3 days ago)
Author:
aborella
Message:

Added new formulation for effective radius for ice crystals in natural clouds + removed a print

Location:
LMDZ6/branches/contrails/libf/phylmd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/contrails/libf/phylmd/lmdz_cloud_optics_prop.f90

    r5488 r5537  
    2727  USE lmdz_cloud_optics_prop_ini , ONLY : rad_chau1, rad_chau2, rad_froid, iflag_rei
    2828  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
    2930  USE lmdz_cloud_optics_prop_ini , ONLY : zepsec, novlp, iflag_ice_thermo, ok_new_lscp
    3031  USE lmdz_cloud_optics_prop_ini , ONLY : ok_plane_contrail, re_ice_crystals_contrails
     
    303304          zfiwp_var = 1000.*icefrac_optics(i, k)*radocond(i, k)/pclc(i, k)*rhodz(i, k)
    304305          ! Calculation of ice cloud effective radius in micron
    305           IF (iflag_rei .EQ. 1) THEN
     306          IF (iflag_rei .EQ. 2) THEN
     307            ! in-cloud ice water content in g/m3
     308            iwc = icefrac_optics(i,k) * radocond(i,k) / pclc(i,k) * zrho(i,k) * 1000.
     309            ! this formula is a simplified version of the Sun 2001 one (as in the IFS model,
     310            ! and which is activated for iflag_rei = 1).
     311            ! In particular, the term in temperature**2 has been simplified.
     312            ! The new coefs are tunable, and are by default set so that the results fit well
     313            ! to the Sun 2001 formula
     314            ! By default, rei_coef = 2.4 and rei_min_temp = 175.
     315            ! The ranges of these parameters are determined so that the RMSE between this
     316            ! formula and the one from Sun 2001 is less than 4 times the minimum RMSE
     317            ! The ranges are [1.9, 2.9] for rei_coef and [160., 185.] for rei_min_temp
     318            dei = rei_coef * (iwc**0.2445) * ( temp(i,k) - rei_min_temp )
     319            ! we clip the results
     320            !deimin = 20.
     321            deimax = 155.
     322            !dei = MIN(MAX(dei, deimin), deimax)
     323            dei = MIN(dei, deimax)
     324            ! formula to convert effective diameter in effective radius
     325            rei = 3. * SQRT(3.) / 8. * dei
     326            rei = MAX(rei, rei_min)
     327          ELSEIF (iflag_rei .EQ. 1) THEN
    306328            ! when we account for precipitation in the radiation scheme,
    307329            ! It is recommended to use the rei formula from Sun and Rikkus 1999 with a revision
     
    415437        ! Calculation of ice cloud effective radius in micron
    416438
    417 
    418         IF (iflag_rei .GT. 0) THEN
    419 
     439        IF (iflag_rei .EQ. 2) THEN
     440            ! in-cloud ice water content in g/m3
     441            iwc = icefrac_optics(i,k) * radocond(i,k) / pclc(i,k) * zrho(i,k) * 1000.
     442            ! this formula is a simplified version of the Sun 2001 one (as in the IFS model,
     443            ! and which is activated for iflag_rei = 1).
     444            ! In particular, the term in temperature**2 has been simplified.
     445            ! The new coefs are tunable, and are by default set so that the results fit well
     446            ! to the Sun 2001 formula
     447            ! By default, rei_coef = 2.4 and rei_min_temp = 175.
     448            ! The ranges of these parameters are determined so that the RMSE between this
     449            ! formula and the one from Sun 2001 is less than 4 times the minimum RMSE
     450            ! The ranges are [1.9, 2.9] for rei_coef and [160., 185.] for rei_min_temp
     451            dei = rei_coef * (iwc**0.2445) * ( temp(i,k) - rei_min_temp )
     452            ! we clip the results
     453            !deimin = 20.
     454            deimax = 155.
     455            !dei = MIN(MAX(dei, deimin), deimax)
     456            dei = MIN(dei, deimax)
     457            ! formula to convert effective diameter to effective radius
     458            rei = 3. * SQRT(3.) / 8. * dei
     459            rei = MAX(rei, rei_min)
     460           
     461        ELSEIF (iflag_rei .EQ. 1) THEN
    420462            ! when we account for precipitation in the radiation scheme,
    421463            ! we use the rei formula from Sun and Rikkus 1999 with a revision
  • LMDZ6/branches/contrails/libf/phylmd/lmdz_cloud_optics_prop_ini.f90

    r5488 r5537  
    2222  REAL, PROTECTED :: rad_chau1, rad_chau2, rad_froid
    2323  REAL, PROTECTED :: rei_max, rei_min
     24  REAL, PROTECTED :: rei_coef, rei_min_temp
    2425  REAL, PROTECTED :: zepsec
    2526  REAL, PROTECTED :: re_ice_crystals_contrails=7.5E-6 ! [m] effective radius of ice crystals in contrails
     
    4041!$OMP THREADPRIVATE(cdnc_min, cdnc_min_m3, rpi, rg, rd)
    4142!$OMP THREADPRIVATE(rad_chau1, rad_chau2, rad_froid, rei_max, rei_min)
     43!$OMP THREADPRIVATE(rei_coef, rei_min_temp)
    4244!$OMP THREADPRIVATE(zepsec)
    4345!$OMP THREADPRIVATE(re_ice_crystals_contrails)
     
    104106    rei_max = 61.29
    105107    CALL getin_p('rei_max',rei_max)
     108    rei_coef = 2.4
     109    CALL getin_p('rei_coef',rei_coef)
     110    rei_min_temp = 175.
     111    CALL getin_p('rei_min_temp',rei_min_temp)
    106112    CALL getin_p('re_ice_crystals_contrails', re_ice_crystals_contrails)
    107113
  • LMDZ6/branches/contrails/libf/phylmd/lmdz_surf_wind.f90

    r5536 r5537  
    3030REAL    :: ktwk, ktth, kzth
    3131
    32 print*,'LLLLLLLLLLLLLLLLLLLLL nsrfwnd=',nsrfwnd
     32!print*,'LLLLLLLLLLLLLLLLLLLLL nsrfwnd=',nsrfwnd
    3333pi=2.*acos(0.)
    3434ray=7000.
Note: See TracChangeset for help on using the changeset viewer.