Ignore:
Timestamp:
Nov 13, 2012 5:11:03 PM (11 years ago)
Author:
hoffmann
Message:

two-moment cloud physics implemented

Location:
palm/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk

  • palm/trunk/SOURCE

  • palm/trunk/SOURCE/init_cloud_physics.f90

    r1037 r1053  
    2020! Current revisions:
    2121! -----------------
    22 !
     22! calculation of the maximum timestep according to the terminal velocity of rain
     23! drops in the two moment cloud scheme
     24!
     25! calculation of frequently used constants (pirho_l, dpirho_l, schmidt_p_1d3,
     26! hyrho)
    2327!
    2428! Former revisions:
     
    6670    REAL    ::  t_surface
    6771
    68     ALLOCATE( hyp(nzb:nzt+1), pt_d_t(nzb:nzt+1), t_d_pt(nzb:nzt+1) )
     72    ALLOCATE( hyp(nzb:nzt+1), pt_d_t(nzb:nzt+1), t_d_pt(nzb:nzt+1),  &
     73              hyrho(nzb:nzt+1) )
    6974
    7075!
     
    7378    l_d_r  = l_v / r_d
    7479    l_d_rv = l_v / r_v
     80
     81    schmidt_p_1d3 = schmidt**( 1.0 / 3.0 )
     82
     83    pirho_l  = pi * rho_l / 6.0
     84    dpirho_l = 1.0 / pirho_l
     85!
     86!-- Calculate timestep according to precipitation
     87    IF ( icloud_scheme == 0  .AND.  precipitation )  THEN
     88       dt_precipitation = MINVAL( dzu(nzb+2:nzt) ) / w_precipitation
     89    ENDIF
    7590!
    7691!-- Calculate factor used in equation for droplet growth by condensation
     
    94109                   ( (t_surface - g/cp * zu(k)) / t_surface )**(1.0/0.286)
    95110       pt_d_t(k) = ( 100000.0 / hyp(k) )**0.286
    96        t_d_pt(k) = 1.0 / pt_d_t(k)       
     111       t_d_pt(k) = 1.0 / pt_d_t(k)
     112       hyrho(k)  = hyp(k) / ( r_d * t_d_pt(k) * pt_init(k) )       
    97113    ENDDO
    98114
Note: See TracChangeset for help on using the changeset viewer.