Ignore:
Timestamp:
Nov 29, 2011 3:11:20 AM (12 years ago)
Author:
raasch
Message:

Bugfix for output of mean particle radius + preliminary works for implementing the Wang collision kernel

File:
1 edited

Legend:

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

    r772 r790  
    44! Current revisions:
    55! -----------------
     6! bugfix: calculation of 'pr' must depend on the particle weighting factor,
     7! nzt+1 replaced by nz_do3d for 'pr'
    68!
    79! Former revisions:
     
    207209                DO  i = nxl, nxr
    208210                   DO  j = nys, nyn
    209                       DO  k = nzb, nzt+1
     211                      DO  k = nzb, nz_do3d
    210212                         psi = prt_start_index(k,j,i)
    211213                         s_r3 = 0.0
    212214                         s_r4 = 0.0
    213215                         DO  n = psi, psi+prt_count(k,j,i)-1
    214                             s_r3 = s_r3 + particles(n)%radius**3
    215                             s_r4 = s_r4 + particles(n)%radius**4
     216                         s_r3 = s_r3 + particles(n)%radius**3 * &
     217                                       particles(n)%weight_factor
     218                         s_r4 = s_r4 + particles(n)%radius**4 * &
     219                                       particles(n)%weight_factor
    216220                         ENDDO
    217221                         IF ( s_r3 /= 0.0 )  THEN
     
    227231                DO  i = nxlg, nxrg
    228232                   DO  j = nysg, nyng
    229                       DO  k = nzb, nzt+1
     233                      DO  k = nzb, nz_do3d
    230234                         local_pf(i,j,k) = tend(k,j,i)
    231235                      ENDDO
Note: See TracChangeset for help on using the changeset viewer.