source: palm/trunk/SOURCE/mod_particle_attributes.f90 @ 1833

Last change on this file since 1833 was 1832, checked in by hoffmann, 8 years ago

last commit documented

  • Property svn:keywords set to Id
File size: 7.3 KB
Line 
1!> @file mod_particle_attributes.f90
2!--------------------------------------------------------------------------------!
3! This file is part of PALM.
4!
5! PALM is free software: you can redistribute it and/or modify it under the terms
6! of the GNU General Public License as published by the Free Software Foundation,
7! either version 3 of the License, or (at your option) any later version.
8!
9! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
10! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
12!
13! You should have received a copy of the GNU General Public License along with
14! PALM. If not, see <http://www.gnu.org/licenses/>.
15!
16! Copyright 1997-2014  Leibniz Universitaet Hannover
17!--------------------------------------------------------------------------------!
18!
19! Current revisions:
20! ------------------
21!
22!
23! Former revisions:
24! -----------------
25! $Id: mod_particle_attributes.f90 1832 2016-04-07 13:28:15Z raasch $
26!
27! 1831 2016-04-07 13:15:51Z hoffmann
28! palm_kernel removed, curvature_solution_effects added
29!
30! 1822 2016-04-07 07:49:42Z hoffmann
31! +collision_algorithm, all_or_nothing, average_impact
32! Tails removed.
33!
34! 1727 2015-11-20 07:22:02Z knoop
35! Bugfix: Cause of syntax warning gfortran preprocessor removed
36!
37! 1682 2015-10-07 23:56:08Z knoop
38! Code annotations made doxygen readable
39!
40! 1575 2015-03-27 09:56:27Z raasch
41! +seed_follows_topography
42!
43! 1359 2014-04-11 17:15:14Z hoffmann
44! new module containing all particle related variables
45! -dt_sort_particles
46!
47! Description:
48! ------------
49!> Definition of variables used to compute particle transport
50!------------------------------------------------------------------------------!
51MODULE particle_attributes
52 
53
54    USE kinds
55
56    CHARACTER(LEN=15) ::  bc_par_lr = 'cyclic'                    !< left/right boundary condition
57    CHARACTER(LEN=15) ::  bc_par_ns = 'cyclic'                    !< north/south boundary condition
58    CHARACTER(LEN=15) ::  bc_par_b  = 'reflect'                   !< bottom boundary condition
59    CHARACTER(LEN=15) ::  bc_par_t  = 'absorb'                    !< top boundary condition
60    CHARACTER(LEN=15) ::  collision_algorithm = 'all_or_nothing'  !< collision algorithm
61    CHARACTER(LEN=15) ::  collision_kernel = 'none'               !< collision kernel
62
63    INTEGER(iwp) ::  deleted_particles = 0,                                    &
64                     dissipation_classes = 10, ibc_par_lr,                     &
65                     ibc_par_ns, ibc_par_b, ibc_par_t, iran_part = -1234567,   &
66                     maximum_number_of_particles = 0,                          &
67                     min_nr_particle = 50,                                     &
68                     mpi_particle_type,                                        &
69                     number_of_particles = 0,                                  &
70                     number_of_particle_groups = 1,                            &
71                     number_of_sublayers = 20,                                 &
72                     offset_ocean_nzt = 0,                                     &
73                     offset_ocean_nzt_m1 = 0, particles_per_point = 1,         &
74                     particle_file_count = 0, radius_classes = 20,             &
75                     sort_count = 0,                                           &
76                     total_number_of_particles,                                &
77                     trlp_count_sum, trlp_count_recv_sum, trrp_count_sum,      &
78                     trrp_count_recv_sum, trsp_count_sum, trsp_count_recv_sum, &
79                     trnp_count_sum, trnp_count_recv_sum
80
81    INTEGER(iwp), PARAMETER ::  max_number_of_particle_groups = 10
82
83    INTEGER(iwp), DIMENSION(:,:,:), ALLOCATABLE ::  prt_count
84
85    LOGICAL ::  all_or_nothing = .FALSE., average_impact = .FALSE.,            &
86                curvature_solution_effects = .FALSE.,                          &
87                hall_kernel = .FALSE., particle_advection = .FALSE.,           &
88                random_start_position = .FALSE.,                               &
89                read_particles_from_restartfile = .TRUE.,                      &
90                seed_follows_topography = .FALSE.,                             &
91                uniform_particles = .TRUE., use_kernel_tables = .FALSE.,       &
92                use_sgs_for_particles = .FALSE., wang_kernel = .FALSE.,        &
93                write_particle_statistics = .FALSE.
94
95    LOGICAL, DIMENSION(max_number_of_particle_groups) ::                       &
96                vertical_particle_advection = .TRUE.
97
98    REAL(wp) ::  alloc_factor = 20.0_wp, c_0 = 3.0_wp,                         &
99                 dt_min_part = 0.0002_wp, dt_prel = 9999999.9_wp,              &
100                 dt_write_particle_data = 9999999.9_wp,                        &
101                 end_time_prel = 9999999.9_wp,                                 &
102                 initial_weighting_factor = 1.0_wp,                            &
103                 particle_advection_start = 0.0_wp,                            &
104                 sgs_wfu_part = 0.3333333_wp, sgs_wfv_part = 0.3333333_wp,     &
105                 sgs_wfw_part = 0.3333333_wp, time_prel = 0.0_wp,              &
106                 time_sort_particles = 0.0_wp,                                 &
107                 time_write_particle_data = 0.0_wp, z0_av_global
108
109    REAL(wp), DIMENSION(max_number_of_particle_groups) ::                      &
110                 density_ratio = 9999999.9_wp, pdx = 9999999.9_wp,             &
111                 pdy = 9999999.9_wp, pdz = 9999999.9_wp, psb = 9999999.9_wp,   &
112                 psl = 9999999.9_wp, psn = 9999999.9_wp, psr = 9999999.9_wp,   &
113                 pss = 9999999.9_wp, pst = 9999999.9_wp, radius = 9999999.9_wp
114
115    REAL(wp), DIMENSION(:), ALLOCATABLE     ::  log_z_z0
116
117    TYPE particle_type
118        SEQUENCE
119        REAL(wp)     ::  radius, age, age_m, dt_sum, dvrp_psize, e_m,          &
120                         origin_x, origin_y, origin_z, rvar1, rvar2, rvar3,    &
121                         speed_x, speed_y, speed_z, weight_factor, x, y, z
122        INTEGER(iwp) ::  class, group, tailpoints, tail_id
123        LOGICAL      ::  particle_mask
124        INTEGER(iwp) ::  block_nr
125    END TYPE particle_type
126
127    TYPE(particle_type), DIMENSION(:), POINTER ::  particles
128    TYPE(particle_type)                        ::  zero_particle
129
130    TYPE particle_groups_type
131        SEQUENCE
132        REAL(wp) ::  density_ratio, radius, exp_arg, exp_term
133    END TYPE particle_groups_type
134
135    TYPE(particle_groups_type), DIMENSION(max_number_of_particle_groups) ::    &
136       particle_groups
137
138    TYPE  grid_particle_def
139        INTEGER(iwp), DIMENSION(0:7)               ::  start_index
140        INTEGER(iwp), DIMENSION(0:7)               ::  end_index
141        LOGICAL                                    ::  time_loop_done
142        TYPE(particle_type), POINTER, DIMENSION(:) ::  particles                !Particle array for this grid cell
143    END TYPE grid_particle_def
144
145    TYPE(grid_particle_def), DIMENSION(:,:,:), ALLOCATABLE, TARGET ::  grid_particles
146
147    TYPE block_offset_def
148        INTEGER(iwp) ::  i_off
149        INTEGER(iwp) ::  j_off
150        INTEGER(iwp) ::  k_off
151    END TYPE block_offset_def
152
153    TYPE(block_offset_def), DIMENSION(0:7)         ::  block_offset
154
155    SAVE
156
157
158END MODULE particle_attributes
159
Note: See TracBrowser for help on using the repository browser.