Ignore:
Timestamp:
Nov 10, 2017 10:36:31 AM (6 years ago)
Author:
schwenkel
Message:

Modified particle box location and further changes in particle model

File:
1 edited

Legend:

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

    r2417 r2606  
    2525! -----------------
    2626! $Id$
     27! Changed particle box locations: center of particle box now coincides
     28! with scalar grid point of same index.
     29! Renamed module and subroutines: lpm_pack_arrays_mod -> lpm_pack_and_sort_mod
     30! lpm_pack_all_arrays -> lpm_sort_in_subboxes, lpm_pack_arrays -> lpm_pack
     31! lpm_sort -> lpm_sort_timeloop_done
     32!
     33! 2417 2017-09-06 15:22:27Z suehring
    2734! Particle loops adapted for sub-box structure, i.e. for each sub-box the
    2835! particle loop runs from start_index up to end_index instead from 1 to
     
    273280
    274281    DO  nb = 0, 7
    275        
     282!
     283!--    Interpolate u velocity-component       
    276284       i = ip
    277285       j = jp + block_offset(nb)%j_off
    278286       k = kp + block_offset(nb)%k_off
    279 !
    280 !--    Interpolate u velocity-component
     287
    281288       DO  n = start_index(nb), end_index(nb)
    282289!
     
    289296!--       First, check if particle is located below first vertical grid level
    290297!--       above topography (Prandtl-layer height)
    291           ilog = ( particles(n)%x + 0.5_wp * dx ) * ddx
    292           jlog = ( particles(n)%y + 0.5_wp * dy ) * ddy
     298          ilog = particles(n)%x * ddx
     299          jlog = particles(n)%y * ddy
    293300!
    294301!--       Determine vertical index of topography top
     
    378385
    379386       ENDDO
    380 
     387!
     388!--    Same procedure for interpolation of the v velocity-component
    381389       i = ip + block_offset(nb)%i_off
    382390       j = jp
    383391       k = kp + block_offset(nb)%k_off
    384 !
    385 !--    Same procedure for interpolation of the v velocity-component
     392
    386393       DO  n = start_index(nb), end_index(nb)
    387394
    388           ilog = ( particles(n)%x + 0.5_wp * dx ) * ddx
    389           jlog = ( particles(n)%y + 0.5_wp * dy ) * ddy
     395          ilog = particles(n)%x * ddx
     396          jlog = particles(n)%y * ddy
    390397!
    391398!--       Determine vertical index of topography top
     
    474481
    475482       ENDDO
    476 
     483!
     484!--    Same procedure for interpolation of the w velocity-component
    477485       i = ip + block_offset(nb)%i_off
    478486       j = jp + block_offset(nb)%j_off
    479487       k = kp - 1
    480 !
    481 !--    Same procedure for interpolation of the w velocity-component
     488
    482489       DO  n = start_index(nb), end_index(nb)
    483490
     
    660667                i = particles(n)%x * ddx
    661668                j = particles(n)%y * ddy
    662                 k = ( zv(n) + 0.5_wp * dz * atmos_ocean_sign ) / dz  &
     669                k = ( zv(n) + dz * atmos_ocean_sign ) / dz  &
    663670                    + offset_ocean_nzt                      ! only exact if eq.dist
    664671!
Note: See TracChangeset for help on using the changeset viewer.