Changeset 1322 for palm/trunk/SOURCE/lpm_droplet_collision.f90
 Timestamp:
 Mar 20, 2014 4:38:49 PM (8 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

palm/trunk/SOURCE/lpm_droplet_collision.f90
r1321 r1322 20 20 ! Current revisions: 21 21 !  22 ! 22 ! REAL constants defined as wp_kind 23 23 ! 24 24 ! Former revisions: … … 207 207 ! Determine dissipation class index of this gridbox 208 208 IF ( wang_kernel ) THEN 209 eclass = INT( diss(k,j,i) * 1.0E4 / 1000.0* &209 eclass = INT( diss(k,j,i) * 1.0E4_wp / 1000.0_wp * & 210 210 dissipation_classes ) + 1 211 211 epsilon = diss(k,j,i) … … 213 213 epsilon = 0.0 214 214 ENDIF 215 IF ( hall_kernel .OR. epsilon * 1.0E4 < 0.001 ) THEN215 IF ( hall_kernel .OR. epsilon * 1.0E4_wp < 0.001 ) THEN 216 216 eclass = 0 ! Hall kernel is used 217 217 ELSE … … 270 270 ! Change of the current droplet radius 271 271 rad(nis+1) = ( (r3 + dt_3d * ddV * (sum1  sum2 * r3) )/& 272 sum3 )**0.33333333333333 272 sum3 )**0.33333333333333_wp 273 273 274 274 IF ( weight(nis+1) < 0.0 ) THEN … … 347 347 ! Change of the current droplet radius 348 348 rad(nis+1) = ( (r3 + dt_3d * ddV * (sum1  sum2 * r3) )/& 349 sum3 )**0.33333333333333 349 sum3 )**0.33333333333333_wp 350 350 351 351 IF ( weight(nis+1) < 0.0 ) THEN … … 534 534 ! 535 535 ! Change in radius due to collision 536 delta_r = effective_coll_efficiency / 3.0 536 delta_r = effective_coll_efficiency / 3.0_wp & 537 537 * pi * sl_r3 * ddx * ddy / dz & 538 538 * SQRT( ( u_int  particles(n)%speed_x )**2 & … … 551 551 IF ( delta_v >= sl_r3 .AND. sl_r3 > 0.0 ) THEN 552 552 553 delta_r = ( ( sl_r3/particles(n)%weight_factor ) &554 + particles(n)%radius**3 )**( 1. /3.) &553 delta_r = ( ( sl_r3/particles(n)%weight_factor ) & 554 + particles(n)%radius**3 )**( 1.0_wp/3.0_wp ) & 555 555  particles(n)%radius 556 556 … … 612 612 613 613 IF ( wang_kernel ) THEN 614 eclass = INT( diss(k,j,i) * 1.0E4 / 1000.0* &614 eclass = INT( diss(k,j,i) * 1.0E4_wp / 1000.0_wp * & 615 615 dissipation_classes ) + 1 616 616 epsilon = diss(k,j,i) … … 618 618 epsilon = 0.0 619 619 ENDIF 620 IF ( hall_kernel .OR. epsilon * 1.0E4 < 0.001 ) THEN620 IF ( hall_kernel .OR. epsilon * 1.0E4_wp < 0.001 ) THEN 621 621 eclass = 0 ! Hall kernel is used 622 622 ELSE … … 631 631 632 632 particles(psi)%radius = ( particles(psi)%radius**3 / & 633 sum3 )**0.33333333333333 633 sum3 )**0.33333333333333_wp 634 634 particles(psi)%weight_factor = particles(psi)%weight_factor & 635 635 * sum3 … … 652 652 653 653 particles(psi)%radius = ( particles(psi)%radius**3 / & 654 sum3 )**0.33333333333333 654 sum3 )**0.33333333333333_wp 655 655 particles(psi)%weight_factor = particles(psi)%weight_factor & 656 656 * sum3
Note: See TracChangeset
for help on using the changeset viewer.