Changeset 2522 for palm/trunk
- Timestamp:
- Oct 5, 2017 2:20:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/microphysics_mod.f90
r2375 r2522 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Minor bugfix 28 ! 29 ! 2375 2017-08-29 14:10:28Z schwenkel 27 30 ! Improved aerosol initilization and some minor bugfixes 28 31 ! for droplet sedimenation … … 609 612 !-- (see: Bott + Trautmann, 2002, Atm. Res., 64) 610 613 k_act = 0.7_wp 611 612 IF ( sat >= 0.0 .AND. .NOT. curvature_solution_effects_bulk ) THEN 614 activ = 0.0_wp 615 616 617 IF ( sat > 0.0 .AND. .NOT. curvature_solution_effects_bulk ) THEN 613 618 ! 614 619 !-- Compute the number of activated Aerosols … … 627 632 ( 1.0_wp, ( sat / sat_max )**k_act) - nc(k,j,i) ) ) / & 628 633 dt_micro 629 ELSEIF ( sat > =0.0 .AND. curvature_solution_effects_bulk ) THEN634 ELSEIF ( sat > 0.0 .AND. curvature_solution_effects_bulk ) THEN 630 635 ! 631 636 !-- Curvature effect (afactor) with surface tension … … 850 855 nc_auto = MERGE( nc(k,j,i), nc_const, microphysics_morrison ) 851 856 852 IF ( qc(k,j,i) > eps_sb ) THEN857 IF ( qc(k,j,i) > eps_sb .AND. nc_auto > eps_mr ) THEN 853 858 854 859 k_au = k_cc / ( 20.0_wp * x0 ) … … 856 861 !-- Intern time scale of coagulation (Seifert and Beheng, 2006): 857 862 !-- (1.0_wp - qc(k,j,i) / ( qc(k,j,i) + qr(k,j,i) )) 858 tau_cloud = 1.0_wp - qc(k,j,i) / ( qr(k,j,i) + qc(k,j,i) ) 863 tau_cloud = MAX( 1.0_wp - qc(k,j,i) / ( qr(k,j,i) + & 864 qc(k,j,i) ), 0.0_wp ) 859 865 ! 860 866 !-- Universal function for autoconversion process … … 868 874 ! 869 875 !-- Mean weight of cloud droplets: 870 xc = hyrho(k) * qc(k,j,i) / nc_auto876 xc = MAX( hyrho(k) * qc(k,j,i) / nc_auto, xcmin) 871 877 ! 872 878 !-- Parameterized turbulence effects on autoconversion (Seifert, … … 2041 2047 !-- (see: Bott + Trautmann, 2002, Atm. Res., 64) 2042 2048 k_act = 0.7_wp 2049 activ = 0.0_wp 2043 2050 2044 2051 IF ( sat >= 0.0 .AND. .NOT. curvature_solution_effects_bulk ) THEN … … 2262 2269 nc_auto = MERGE ( nc_1d(k), nc_const, microphysics_morrison ) 2263 2270 2264 IF ( qc_1d(k) > eps_sb ) THEN2271 IF ( qc_1d(k) > eps_sb .AND. nc_auto > eps_mr ) THEN 2265 2272 2266 2273 k_au = k_cc / ( 20.0_wp * x0 ) … … 2268 2275 !-- Intern time scale of coagulation (Seifert and Beheng, 2006): 2269 2276 !-- (1.0_wp - qc(k,j,i) / ( qc(k,j,i) + qr_1d(k) )) 2270 tau_cloud = 1.0_wp - qc_1d(k) / ( qr_1d(k) + qc_1d(k) ) 2277 tau_cloud = MAX( 1.0_wp - qc_1d(k) / ( qr_1d(k) + qc_1d(k) ), & 2278 0.0_wp ) 2271 2279 ! 2272 2280 !-- Universal function for autoconversion process
Note: See TracChangeset
for help on using the changeset viewer.