Changeset 1053 for palm/trunk/SOURCE/init_cloud_physics.f90
- Timestamp:
- Nov 13, 2012 5:11:03 PM (11 years ago)
- Location:
- palm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk
- Property svn:mergeinfo changed
/palm/branches/hoffmann (added) merged: 989,994,999-1000,1005-1006,1012,1022,1048-1052
- Property svn:mergeinfo changed
-
palm/trunk/SOURCE
- Property svn:mergeinfo changed
/palm/branches/hoffmann/SOURCE (added) merged: 994,999-1000,1005-1006,1012,1022,1048-1052
- Property svn:mergeinfo changed
-
palm/trunk/SOURCE/init_cloud_physics.f90
r1037 r1053 20 20 ! Current revisions: 21 21 ! ----------------- 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) 23 27 ! 24 28 ! Former revisions: … … 66 70 REAL :: t_surface 67 71 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) ) 69 74 70 75 ! … … 73 78 l_d_r = l_v / r_d 74 79 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 75 90 ! 76 91 !-- Calculate factor used in equation for droplet growth by condensation … … 94 109 ( (t_surface - g/cp * zu(k)) / t_surface )**(1.0/0.286) 95 110 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) ) 97 113 ENDDO 98 114
Note: See TracChangeset
for help on using the changeset viewer.