source: palm/trunk/SOURCE/package_parin.f90 @ 790

Last change on this file since 790 was 790, checked in by raasch, 12 years ago

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

  • Property svn:keywords set to Id
File size: 5.9 KB
Line 
1 SUBROUTINE package_parin
2
3!------------------------------------------------------------------------------!
4! Current revisions:
5! -----------------
6! +turbulence_effects_on_collision, wang_collision_kernel in particles_par
7!
8! Former revisions:
9! -----------------
10! $Id: package_parin.f90 790 2011-11-29 03:11:20Z raasch $
11!
12! 336 2009-06-10 11:19:35Z raasch
13! +clip_dvrp_*, cluster_size, color_interval, dvrpsize_interval,
14! groundplate_color, isosurface_color, particle_color, particle_dvrpsize
15! topography_color, in dvrp_graphics_par,
16! parameter dvrp_psize moved from particles_par to dvrp_graphics_par
17! Variables for dvrp-mode pathlines added
18!
19! 210 2008-11-06 08:54:02Z raasch
20! Variables for dvrp-mode pathlines added
21!
22! 116 2007-10-11 02:30:27Z raasch
23! +dt_sort_particles in package_parin
24!
25! 60 2007-03-11 11:50:04Z raasch
26! Particles-package is now part of the default code
27!
28! RCS Log replace by Id keyword, revision history cleaned up
29!
30! Revision 1.18  2006/08/04 14:52:23  raasch
31! +dt_dopts, dt_min_part, end_time_prel, particles_per_point,
32! use_sgs_for_particles in particles_par
33!
34! Revision 1.1  2000/12/28 13:21:57  raasch
35! Initial revision
36!
37!
38! Description:
39! ------------
40! This subroutine reads from the NAMELIST file variables controling model
41! software packages which are used optionally in the run.
42!------------------------------------------------------------------------------!
43
44    USE control_parameters
45    USE dvrp_variables
46    USE particle_attributes
47    USE spectrum
48
49    IMPLICIT NONE
50
51    CHARACTER (LEN=80) ::  zeile
52
53    NAMELIST /dvrp_graphics_par/  clip_dvrp_l, clip_dvrp_n, clip_dvrp_r,       &
54                                  clip_dvrp_s, cluster_size, color_interval,   &
55                                  dt_dvrp, dvrpsize_interval, dvrp_directory,  &
56                                  dvrp_file, dvrp_host, dvrp_output,           &
57                                  dvrp_password, dvrp_psize, dvrp_username,    &
58                                  groundplate_color, isosurface_color,         &
59                                  mode_dvrp, particle_color, particle_dvrpsize,&
60                                  pathlines_fadeintime, pathlines_fadeouttime, &
61                                  pathlines_linecount, pathlines_maxhistory,   &
62                                  pathlines_wavecount, pathlines_wavetime,     &
63                                  slicer_range_limits_dvrp, superelevation,    &
64                                  superelevation_x, superelevation_y,          &
65                                  threshold, topography_color, vc_alpha,       &
66                                  vc_gradient_normals, vc_mode, vc_size_x,     &
67                                  vc_size_y, vc_size_z
68
69    NAMELIST /particles_par/      bc_par_b, bc_par_lr, bc_par_ns, bc_par_t,    &
70                                  density_ratio, radius, dt_dopts,             &
71                                  dt_min_part, dt_prel, dt_sort_particles,     &
72                                  dt_write_particle_data,                      &
73                                  end_time_prel, initial_weighting_factor,     &
74                                  maximum_number_of_particles,                 &
75                                  maximum_number_of_tailpoints,                &
76                                  maximum_tailpoint_age,                       &
77                                  minimum_tailpoint_distance,                  &
78                                  number_of_particle_groups,                   &
79                                  particles_per_point,                         &
80                                  particle_advection_start,                    &
81                                  particle_maximum_age, pdx, pdy, pdz, psb,    &
82                                  psl, psn, psr, pss, pst,                     &
83                                  random_start_position,                       &
84                                  read_particles_from_restartfile,             &
85                                  skip_particles_for_tail,                     &
86                                  turbulence_effects_on_collision,             &
87                                  use_particle_tails, use_sgs_for_particles,   &
88                                  vertical_particle_advection,                 &
89                                  wang_collision_kernel,                       &
90                                  write_particle_statistics
91    NAMELIST /spectra_par/        averaging_interval_sp, comp_spectra_level,   &
92                                  data_output_sp, dt_dosp, plot_spectra_level, &
93                                  skip_time_dosp, spectra_direction
94
95!
96!-- Position the namelist-file at the beginning (it was already opened in
97!-- parin), search for the namelist-group of the package and position the
98!-- file at this line. Do the same for each optionally used package.
99    zeile = ' '
100
101#if defined( __dvrp_graphics )
102    REWIND ( 11 )
103    zeile = ' '
104    DO   WHILE ( INDEX( zeile, '&dvrp_graphics_par' ) == 0 )
105       READ ( 11, '(A)', END=10 )  zeile
106    ENDDO
107    BACKSPACE ( 11 )
108
109!
110!-- Read user-defined namelist
111    READ ( 11, dvrp_graphics_par )
112
113 10 CONTINUE
114#endif
115
116!
117!-- Try to find particles package
118    REWIND ( 11 )
119    zeile = ' '
120    DO   WHILE ( INDEX( zeile, '&particles_par' ) == 0 )
121       READ ( 11, '(A)', END=20 )  zeile
122    ENDDO
123    BACKSPACE ( 11 )
124
125!
126!-- Read user-defined namelist
127    READ ( 11, particles_par )
128
129!
130!-- Set flag that indicates that particles are switched on
131    particle_advection = .TRUE.
132
133 20 CONTINUE
134
135
136#if defined( __spectra )
137    REWIND ( 11 )
138    zeile = ' '
139    DO   WHILE ( INDEX( zeile, '&spectra_par' ) == 0 )
140       READ ( 11, '(A)', END=30 )  zeile
141    ENDDO
142    BACKSPACE ( 11 )
143
144!
145!-- Read user-defined namelist
146    READ ( 11, spectra_par )
147
148!
149!-- Default setting of dt_dosp here (instead of check_parameters), because its
150!-- current value is needed in init_pegrid
151    IF ( dt_dosp == 9999999.9 )  dt_dosp = dt_data_output
152
153 30 CONTINUE
154#endif
155
156 END SUBROUTINE package_parin
Note: See TracBrowser for help on using the repository browser.