Ignore:
Timestamp:
Nov 13, 2017 2:04:26 PM (6 years ago)
Author:
schwenkel
Message:

Inital revision of diagnostic_quantities_mod allows unified calculation of magnus equation and saturion mixing ratio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/calc_liquid_water_content.f90

    r2292 r2608  
    2525! -----------------
    2626! $Id$
     27! Calculation of supersaturation in external module (diagnostic_quantities_mod).
     28! Change: correct calculation of saturation specific humidity to saturation
     29! mixing ratio (the factor of 0.378 vanishes).
     30!
     31! 2292 2017-06-20 09:51:42Z schwenkel
    2732! Implementation of new microphysic scheme: cloud_scheme = 'morrison'
    2833! includes two more prognostic equations for cloud drop concentration (nc) 
     
    8287
    8388    USE arrays_3d,                                                             &
    84         ONLY:  hyp, pt, q, qc, ql, qr
    85 
    86     USE cloud_parameters,                                                      &
    87         ONLY:  l_d_cp, l_d_r, t_d_pt
     89        ONLY:  q, qc, ql, qr
    8890
    8991    USE control_parameters,                                                    &
    9092        ONLY:  microphysics_morrison, microphysics_seifert
     93
     94    USE diagnostic_quantities_mod,                                             &
     95        ONLY:  e_s, magnus, q_s, sat, supersaturation, t_l
    9196
    9297    USE indices,                                                               &
     
    104109    INTEGER(iwp) ::  k !<
    105110
    106     REAL(wp) ::  alpha !<
    107     REAL(wp) ::  e_s   !<
    108     REAL(wp) ::  q_s   !<
    109     REAL(wp) ::  t_l   !<
    110111
    111112    DO  i = nxlg, nxrg
     
    114115
    115116!
    116 !--          Compute the liquid water temperature
    117              t_l = t_d_pt(k) * pt(k,j,i)
    118 
    119 !
    120 !--          Compute saturation water vapor pressure at t_l
    121              e_s = 610.78_wp * EXP( 17.269_wp * ( t_l - 273.16_wp ) /          &
    122                                                 ( t_l - 35.86_wp ) )
    123 
    124 !
    125 !--          Compute approximation of saturation humidity
    126              q_s = 0.622_wp * e_s / ( hyp(k) - 0.378_wp * e_s )
    127 
    128 !
    129 !--          Correction factor
    130              alpha = 0.622_wp * l_d_r * l_d_cp / ( t_l * t_l )
    131 
    132 !
    133 !--          Correction of the approximated value
    134 !--          (see: Cuijpers + Duynkerke, 1993, JAS, 23)
    135              q_s = q_s * ( 1.0_wp + alpha * q(k,j,i) ) / ( 1.0_wp + alpha * q_s )
     117!--          Call calculation of supersaturation located
     118!--          in diagnostic_quantities_mod
     119             CALL supersaturation ( i, j, k )
    136120
    137121!
Note: See TracChangeset for help on using the changeset viewer.