source: branches/sabine/com_mod.f90 @ 6

Last change on this file since 6 was 6, checked in by saeck, 11 years ago

import to sabine

File size: 28.6 KB
Line 
1!*******************************************************************************
2!        Include file for particle diffusion model FLEXPART                    *
3!        This file contains a global common block used by FLEXPART             *
4!                                                                              *
5!        Author: A. Stohl                                                      *
6!                                                                              *
7!        June 1996                                                             *
8!                                                                              *
9!        Last update: 9 August 2000                                            *
10!                                                                              *
11!*******************************************************************************
12
13module com_mod
14
15  use par_mod, only: dp, numpath, maxnests, maxageclass, maxspec, ni, &
16       numclass, nymax, nxmax, maxcolumn, maxwf, nzmax, nxmaxn, nymaxn, &
17       maxreceptor, maxpart, maxrand, nwzmax, nuvzmax
18
19  implicit none
20
21  !****************************************************************
22  ! Variables defining where FLEXPART input/output files are stored
23  !****************************************************************
24
25  character :: path(numpath+2*maxnests)*120
26  integer :: length(numpath+2*maxnests)
27
28  ! path                    path names needed for trajectory model
29  ! length                  length of path names needed for trajectory model
30
31
32  !********************************************************
33  ! Variables defining the general model run specifications
34  !********************************************************
35
36  integer :: ibdate,ibtime,iedate,ietime
37  real(kind=dp) :: bdate,edate
38
39
40  ! ibdate                  beginning date (YYYYMMDD)
41  ! ibtime                  beginning time (HHMISS)
42  ! iedate                  ending date (YYYYMMDD)
43  ! ietime                  ending time (HHMISS)
44  ! bdate                   beginning date of simulation (julian date)
45  ! edate                   ending date of simulation (julian date)
46
47
48  integer :: ldirect,ideltas
49
50  ! ldirect                 1 for forward, -1 for backward simulation
51  ! ideltas                 length of trajectory loop from beginning to
52  !                    ending date (s)
53
54  integer :: loutstep,loutaver,loutsample,method,lsynctime
55  real :: outstep
56
57  ! loutstep [s]            gridded concentration output every loutstep seconds
58  ! loutaver [s]            concentration output is an average over [s] seconds
59  ! loutsample [s]          sampling interval of gridded concentration output
60  ! lsynctime [s]           synchronisation time of all particles
61  ! method                  indicator which dispersion method is to be used
62  ! outstep = real(abs(loutstep))
63
64  real :: ctl,fine
65  integer :: ifine,iout,ipout,ipin,iflux,mdomainfill
66  integer :: mquasilag,nested_output,ind_source,ind_receptor
67  integer :: ind_rel,ind_samp,ioutputforeachrelease,linit_cond
68  logical :: turbswitch
69
70  ! ctl      factor, by which time step must be smaller than Lagrangian time scale
71  ! ifine    reduction factor for time step used for vertical wind
72  !     Langevin equation for the vertical wind component
73  ! ioutputforeachrelease Should each release be a seperate output field?
74  ! iflux    flux calculation options: 1 calculation of fluxes, 2 no fluxes
75  ! iout     output options: 1 conc. output (ng/m3), 2 mixing ratio (pptv), 3 both
76  ! ipout    particle dump options: 0 no, 1 every output interval, 2 only at end
77  ! ipin     read in particle positions from dumped file from a previous run
78  ! fine     real(ifine)
79  ! mdomainfill 0: normal run
80  !        1: particles are initialized according to atmospheric mass distribution
81  ! ind_source switches between different units for concentrations at the source
82  !  NOTE that in backward simulations the release of computational particles
83  !  takes place at the "receptor" and the sampling of particles at the "source".
84  !     1= mass units
85  !     2= mass mixing ratio units
86  ! ind_receptor switches between different units for FLEXPART concentration at the receptor
87  !     1= mass units
88  !     2= mass mixing ratio units
89  ! linit_cond  switch on the output of sensitivity to initial conditions for backward runs
90  !     0=no, 1=mass unit, 2=mass mixing ratio unit
91  ! mquasilag 0: normal run
92  !      1: Particle position output is produced in a condensed format and particles are numbered
93  ! nested_output: 0 no, 1 yes
94  ! turbswitch              determines how the Markov chain is formulated
95
96  ! ind_rel and ind_samp  are used within the code to change between mass and mass-mix (see readcommand.f)
97
98
99  integer :: mintime,itsplit
100
101  ! mintime                 minimum time step to be used by FLEXPART
102  ! itsplit                 time constant for splitting particles
103
104  integer :: lsubgrid,lconvection,lagespectra
105
106  ! lsubgrid     1 if subgrid topography parameterization switched on, 2 if not
107  ! lconvection  1 if convection parameterization switched on, 0 if not
108  ! lagespectra  1 if age spectra calculation switched on, 2 if not
109
110
111  integer :: nageclass,lage(maxageclass)
112
113  ! nageclass               number of ageclasses for the age spectra calculation
114  ! lage [s]                ageclasses for the age spectra calculation
115
116
117  logical :: gdomainfill
118
119  ! gdomainfill             .T., if domain-filling is global, .F. if not
120
121
122
123  !*********************************************************************
124  ! Variables defining the release locations, released species and their
125  ! properties, etc.
126  !*********************************************************************
127
128  !change Sabine Eckhardt, only save the first 1000 identifier for releasepoints
129  character :: compoint(1001)*45
130  integer :: numpoint
131  !sec, now dynamically allocated:
132  ! ireleasestart(maxpoint),ireleaseend(maxpoint)
133  !      real xpoint1(maxpoint),ypoint1(maxpoint)
134  !real xpoint2(maxpoint),ypoint2(maxpoint)
135  !real zpoint1(maxpoint),zpoint2(maxpoint)
136  !integer*2 kindz(maxpoint)
137  integer :: specnum(maxspec)
138  !real xmass(maxpoint,maxspec)
139  real :: decay(maxspec)
140  real :: weta(maxspec),wetb(maxspec)
141  real :: reldiff(maxspec),henry(maxspec),f0(maxspec)
142  real :: density(maxspec),dquer(maxspec),dsigma(maxspec)
143  real :: vsetaver(maxspec),cunningham(maxspec),weightmolar(maxspec)
144  real :: vset(maxspec,ni),schmi(maxspec,ni),fract(maxspec,ni)
145  real :: ri(5,numclass),rac(5,numclass),rcl(maxspec,5,numclass)
146  real :: rgs(maxspec,5,numclass),rlu(maxspec,5,numclass)
147  real :: rm(maxspec),dryvel(maxspec),kao(maxspec),ohreact(maxspec)
148  ! se  it is possible to associate a species with a second one to make transfer from gas to aerosol
149  integer :: spec_ass(maxspec)
150
151  real :: area_hour(maxspec,24),point_hour(maxspec,24)
152  real :: area_dow(maxspec,7),point_dow(maxspec,7)
153
154  !integer npart(maxpoint)
155  integer :: nspec,maxpointspec_act
156  character(len=10) :: species(maxspec)
157
158
159  ! compoint                comment, also "name" of each starting point
160  ! numpoint                actual number of trajectory starting/ending points
161  ! ireleasestart,ireleaseend [s] starting and ending time of each release
162  ! xmass                   total mass emitted
163  ! xpoint1,ypoint1         lower left coordinates of release area
164  ! xpoint2,ypoint2         upper right coordinates of release area
165  ! zpoint1,zpoint2         min./max. z-coordinates of release points
166  ! kindz                   1: zpoint is in m agl, 2: zpoint is in m asl
167  ! npart                   number of particles per release point
168  ! nspec                   number of different species allowed for one release
169  ! maxpointspec_act        number of releaspoints for which a different output shall be created
170  ! species                 name of species
171  ! decay                   decay constant of radionuclide
172
173  ! WET DEPOSITION
174  ! weta, wetb              parameters for determining wet scavenging coefficients
175
176  ! GAS DEPOSITION
177  ! reldiff                 diffusivitiy of species relative to diff. of H2O
178  ! henry [M/atm]           Henry constant
179  ! f0                      reactivity relative to that of O3
180  ! ri [s/m]                stomatal resistance
181  ! rcl [s/m]               lower canopy resistance
182  ! rgs [s/m]               ground resistance
183  ! rlu [s/m]               leaf cuticular resistance
184  ! rm [s/m]                mesophyll resistance
185  ! dryvel [m/s]            constant dry deposition velocity
186
187  ! PARTICLE DEPOSITION
188  ! density [kg/m3]         density of particles
189  ! dquer [m]               mean diameter of particles
190  ! dsigma                  dsigma=10 or dsigma=0.1 means that 68% of the
191  !                    mass are between 0.1*dquer and 10*dquer
192
193  ! fract                   mass fraction of each diameter interval
194  ! vset [m/s]              gravitational settling velocity in ni intervals
195  ! cunningham              Cunningham slip correction (strictly valid only near surface)
196  ! vsetaver [m/s]          average gravitational settling velocity
197  ! schmi                   Schmidt number**2/3 of each diameter interval
198  ! weightmolar [g/mol]     molecular weight
199
200  ! TIME VARIATION OF EMISSION
201  ! area_hour, point_hour   daily variation of emission strengths for area and point sources
202  ! area_dow, point_dow     day-of-week variation of emission strengths for area and point sources
203
204
205
206  !**********************************************************
207  ! Variables used for domain-filling trajectory calculations
208  !**********************************************************
209
210  integer :: nx_we(2),ny_sn(2)
211  integer :: numcolumn
212  integer :: numcolumn_we(2,0:nymax-1),numcolumn_sn(2,0:nxmax-1)
213  real :: zcolumn_we(2,0:nymax-1,maxcolumn)
214  real :: zcolumn_sn(2,0:nxmax-1,maxcolumn)
215  real :: xmassperparticle
216  real :: acc_mass_we(2,0:nymax-1,maxcolumn)
217  real :: acc_mass_sn(2,0:nxmax-1,maxcolumn)
218
219  ! nx_we(2)                x indices of western and eastern boundary of domain-filling
220  ! ny_sn(2)                y indices of southern and northern boundary of domain-filling
221  ! numcolumn_we            number of particles to be released within one column
222  !                    at the western and eastern boundary surfaces
223  ! numcolumn_sn            same as numcolumn_we, but for southern and northern domain boundary
224  ! numcolumn               maximum number of particles to be released within a single
225  !                    column
226  ! zcolumn_we              altitudes where particles are to be released
227  !                    at the western and eastern boundary surfaces
228  ! zcolumn_sn              same as zcolumn_we, but for southern and northern domain boundary
229  ! xmassperparticle        air mass per particle in the domain-filling traj. option
230  ! acc_mass_we             mass that has accumulated at the western and eastern boundary;
231  !                    if it exceeds xmassperparticle, a particle is released and
232  !                    acc_mass_we is reduced accordingly
233  ! acc_mass_sn             same as acc_mass_we, but for southern and northern domain boundary
234
235
236
237  !******************************************************************************
238  ! Variables associated with the ECMWF meteorological input data ("wind fields")
239  !******************************************************************************
240
241  integer :: numbwf,wftime(maxwf),lwindinterv
242  character(len=255) :: wfname(maxwf),wfspec(maxwf)
243
244  ! lwindinterv [s]         Interval between wind fields currently in memory
245  ! numbwf                  actual number of wind fields
246  ! wftime(maxwf) [s]       times relative to beginning time of wind fields
247  ! wfname(maxwf)           file names of wind fields
248  ! wfspec(maxwf)           specifications of wind field file, e.g. if on hard
249  !                    disc or on tape
250
251  integer :: memtime(2),memind(2)
252
253  ! memtime [s]             validation times of wind fields in memory
254  ! memind                  pointer to wind field, in order to avoid shuffling
255  !                    of wind fields
256
257
258
259  !****************************************************************************
260  ! Variables defining actual size and geographical location of the wind fields
261  !****************************************************************************
262
263  integer :: nx,ny,nxmin1,nymin1,nxfield,nuvz,nwz,nz,nmixz,nlev_ec
264  real :: dx,dy,xlon0,ylat0,dxconst,dyconst,height(nzmax)
265
266  ! nx,ny,nz                actual dimensions of wind fields in x,y and z
267  !                    direction, respectively
268  ! nxmin1,nymin1           nx-1, ny-1, respectively
269  ! nuvz,nwz                vertical dimension of original ECMWF data
270  ! nxfield                 same as nx for limited area fields,
271  !                    but for global fields nx=nxfield+1
272  ! nmixz                   number of levels up to maximum PBL height (3500 m)
273
274  ! nuvz is used for u,v components
275  ! nwz is used for w components (staggered grid)
276  ! nz is used for the levels in transformed coordinates (terrain-following Cartesian
277  ! coordinates)
278
279  ! nlev_ec  number of levels ECMWF model
280  ! dx                      grid distance in x direction
281  ! dy                      grid distance in y direction
282  ! dxconst,dyconst         auxiliary variables for utransform,vtransform
283  ! height                  heights of all levels
284  ! xlon0                   geographical longitude and
285  ! ylat0                   geographical latitude of lower left grid point
286
287
288
289  !*************************************************
290  ! Variables used for vertical model discretization
291  !*************************************************
292
293  real :: akm(nwzmax),bkm(nwzmax)
294  real :: akz(nuvzmax),bkz(nuvzmax)
295  real :: aknew(nzmax),bknew(nzmax)
296
297  ! akm,bkm: coeffizients which regulate vertical discretization of ecmwf model
298  !     (at the border of model layers)
299  ! akz,bkz: model discretization coeffizients at the centre of the layers
300  ! aknew,bknew model discretization coeffizients at the interpolated levels
301
302
303
304  ! Fixed fields, unchangeable with time
305  !*************************************
306
307  real :: oro(0:nxmax-1,0:nymax-1)
308  real :: excessoro(0:nxmax-1,0:nymax-1)
309  real :: lsm(0:nxmax-1,0:nymax-1)
310  real :: xlanduse(0:nxmax-1,0:nymax-1,numclass)
311
312  ! oro [m]              orography of the ECMWF model
313  ! excessoro            excess orography mother domain
314  ! lsm                  land sea mask of the ECMWF model
315  ! xlanduse [0-1]       area fractions in percent
316
317  ! 3d fields
318  !**********
319
320  real :: uu(0:nxmax-1,0:nymax-1,nzmax,2)
321  real :: vv(0:nxmax-1,0:nymax-1,nzmax,2)
322  real :: uupol(0:nxmax-1,0:nymax-1,nzmax,2)
323  real :: vvpol(0:nxmax-1,0:nymax-1,nzmax,2)
324  real :: ww(0:nxmax-1,0:nymax-1,nzmax,2)
325  real :: tt(0:nxmax-1,0:nymax-1,nzmax,2)
326  real :: qv(0:nxmax-1,0:nymax-1,nzmax,2)
327  real :: pv(0:nxmax-1,0:nymax-1,nzmax,2)
328  real :: rho(0:nxmax-1,0:nymax-1,nzmax,2)
329  real :: drhodz(0:nxmax-1,0:nymax-1,nzmax,2)
330  real :: tth(0:nxmax-1,0:nymax-1,nuvzmax,2)
331  real :: qvh(0:nxmax-1,0:nymax-1,nuvzmax,2)
332  real :: pplev(0:nxmax-1,0:nymax-1,nuvzmax,2)
333  integer(kind=1) :: clouds(0:nxmax-1,0:nymax-1,nzmax,2)
334  integer :: cloudsh(0:nxmax-1,0:nymax-1,2)
335
336  ! uu,vv,ww [m/2]       wind components in x,y and z direction
337  ! uupol,vvpol [m/s]    wind components in polar stereographic projection
338  ! tt [K]               temperature data
339  ! qv                   specific humidity data
340  ! pv (pvu)             potential vorticity
341  ! rho [kg/m3]          air density
342  ! drhodz [kg/m2]       vertical air density gradient
343  ! tth,qvh              tth,qvh on original eta levels
344  ! clouds:   no cloud, no precipitation   0
345  !      cloud, no precipitation      1
346  !      rainout  conv/lsp dominated  2/3
347  !      washout  conv/lsp dominated  4/5
348  ! pplev for the GFS version
349
350  ! 2d fields
351  !**********
352
353  real :: ps(0:nxmax-1,0:nymax-1,1,2)
354  real :: sd(0:nxmax-1,0:nymax-1,1,2)
355  real :: msl(0:nxmax-1,0:nymax-1,1,2)
356  real :: tcc(0:nxmax-1,0:nymax-1,1,2)
357  real :: u10(0:nxmax-1,0:nymax-1,1,2)
358  real :: v10(0:nxmax-1,0:nymax-1,1,2)
359  real :: tt2(0:nxmax-1,0:nymax-1,1,2)
360  real :: td2(0:nxmax-1,0:nymax-1,1,2)
361  real :: lsprec(0:nxmax-1,0:nymax-1,1,2)
362  real :: convprec(0:nxmax-1,0:nymax-1,1,2)
363  real :: sshf(0:nxmax-1,0:nymax-1,1,2)
364  real :: ssr(0:nxmax-1,0:nymax-1,1,2)
365  real :: surfstr(0:nxmax-1,0:nymax-1,1,2)
366  real :: ustar(0:nxmax-1,0:nymax-1,1,2)
367  real :: wstar(0:nxmax-1,0:nymax-1,1,2)
368  real :: hmix(0:nxmax-1,0:nymax-1,1,2)
369  real :: tropopause(0:nxmax-1,0:nymax-1,1,2)
370  real :: oli(0:nxmax-1,0:nymax-1,1,2)
371  real :: diffk(0:nxmax-1,0:nymax-1,1,2)
372
373  ! ps                   surface pressure
374  ! sd                   snow depth
375  ! msl                  mean sea level pressure
376  ! tcc                  total cloud cover
377  ! u10                  10 meter u
378  ! v10                  10 meter v
379  ! tt2                  2 meter temperature
380  ! td2                  2 meter dew point
381  ! lsprec [mm/h]        large scale total precipitation
382  ! convprec [mm/h]      convective precipitation
383  ! sshf                 surface sensible heat flux
384  ! ssr                  surface solar radiation
385  ! surfstr              surface stress
386  ! ustar [m/s]          friction velocity
387  ! wstar [m/s]          convective velocity scale
388  ! hmix  [m]            mixing height
389  ! tropopause [m]       altitude of thermal tropopause
390  ! oli [m]              inverse Obukhov length (1/L)
391  ! diffk [m2/s]         diffusion coefficient at reference height
392
393
394  real :: vdep(0:nxmax-1,0:nymax-1,maxspec,2)
395
396  ! vdep [m/s]           deposition velocities
397
398
399  !********************************************************************
400  ! Variables associated with the ECMWF input data (nested wind fields)
401  !********************************************************************
402
403  ! NOTE: all nested variables have the same name as the variables used
404  ! for the mother domain, except with a 'n' appended at the end
405  !********************************************************************
406
407  integer :: numbnests
408
409  ! numbnests    number of nested grids
410
411  character(len=255) :: wfnamen(maxnests,maxwf)
412  character(len=18) :: wfspecn(maxnests,maxwf)
413
414  ! wfnamen      nested wind field names
415  ! wfspecn      specifications of wind field file, e.g. if on hard
416  !         disc or on tape
417
418
419  !*********************************************************************
420  ! Variables characterizing size and location of the nested wind fields
421  !*********************************************************************
422
423  integer :: nxn(maxnests),nyn(maxnests)
424  real :: dxn(maxnests),dyn(maxnests),xlon0n(maxnests),ylat0n(maxnests)
425
426  ! nxn,nyn      actual dimensions of nested wind fields in x and y direction
427  ! dxn,dyn      grid distances in x,y direction for the nested grids
428  ! xlon0n       geographical longitude of lower left grid point of nested wind fields
429  ! ylat0n       geographical latitude of lower left grid point of nested wind fields
430
431
432  ! Nested fields, unchangeable with time
433  !**************************************
434
435  real :: oron(0:nxmaxn-1,0:nymaxn-1,maxnests)
436  real :: excessoron(0:nxmaxn-1,0:nymaxn-1,maxnests)
437  real :: lsmn(0:nxmaxn-1,0:nymaxn-1,maxnests)
438  real :: xlandusen(0:nxmaxn-1,0:nymaxn-1,numclass,maxnests)
439
440
441  ! 3d nested fields
442  !*****************
443
444  real :: uun(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
445  real :: vvn(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
446  real :: wwn(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
447  real :: ttn(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
448  real :: qvn(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
449  real :: pvn(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
450  integer(kind=1) :: cloudsn(0:nxmaxn-1,0:nymaxn-1,0:nzmax,2,maxnests)
451  integer :: cloudsnh(0:nxmaxn-1,0:nymaxn-1,2,maxnests)
452  real :: rhon(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
453  real :: drhodzn(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
454  real :: tthn(0:nxmaxn-1,0:nymaxn-1,nuvzmax,2,maxnests)
455  real :: qvhn(0:nxmaxn-1,0:nymaxn-1,nuvzmax,2,maxnests)
456
457  ! 2d nested fields
458  !*****************
459
460  real :: psn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
461  real :: sdn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
462  real :: msln(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
463  real :: tccn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
464  real :: u10n(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
465  real :: v10n(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
466  real :: tt2n(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
467  real :: td2n(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
468  real :: lsprecn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
469  real :: convprecn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
470  real :: sshfn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
471  real :: ssrn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
472  real :: surfstrn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
473  real :: ustarn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
474  real :: wstarn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
475  real :: hmixn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
476  real :: tropopausen(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
477  real :: olin(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
478  real :: diffkn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
479  real :: vdepn(0:nxmaxn-1,0:nymaxn-1,maxspec,2,maxnests)
480
481
482  !*************************************************
483  ! Certain auxiliary variables needed for the nests
484  !*************************************************
485
486  real :: xresoln(0:maxnests),yresoln(0:maxnests)
487
488  ! xresoln, yresoln   Factors by which the resolutions in the nests
489  !               are enhanced compared to mother grid
490
491  real :: xln(maxnests),yln(maxnests),xrn(maxnests),yrn(maxnests)
492
493  ! xln,yln,xrn,yrn    Corner points of nested grids in grid coordinates
494  !               of mother grid
495
496
497  !******************************************************
498  ! Variables defining the polar stereographic projection
499  !******************************************************
500
501  logical :: xglobal,sglobal,nglobal
502  real :: switchnorthg,switchsouthg
503
504  !xglobal             T for global fields, F for limited area fields
505  !sglobal             T if domain extends towards south pole
506  !nglobal             T if domain extends towards north pole
507  !switchnorthg,switchsouthg   same as parameters switchnorth,
508  !                    switchsouth, but in grid units
509
510  real :: southpolemap(9),northpolemap(9)
511
512  !southpolemap,northpolemap   define stereographic projections
513  !                    at the two poles
514
515
516  !******************
517  ! Landuse inventory
518  ! Sabine Eckhardt Dec 06: change to new landuse inventary - 11 classes, 1200 x 600 global
519  !******************
520
521  integer(kind=1) :: landinvent(1200,600,6)
522  real :: z0(numclass)
523
524  ! landinvent         landuse inventory (numclass=11 classes)
525  ! z0                  roughness length for the landuse classes
526
527
528
529  !**************************************************************************
530  ! Variables characterizing the output grid and containing the model results
531  !**************************************************************************
532
533  integer :: numxgrid,numygrid,numzgrid
534  real :: dxout,dyout,outlon0,outlat0,xoutshift,youtshift
535  integer :: numxgridn,numygridn
536  real :: dxoutn,dyoutn,outlon0n,outlat0n,xoutshiftn,youtshiftn
537  !real outheight(maxzgrid),outheighthalf(maxzgrid)
538  logical :: DEP,DRYDEP,DRYDEPSPEC(maxspec),WETDEP,OHREA,ASSSPEC
539
540  ! numxgrid,numygrid       number of grid points in x,y-direction
541  ! numxgridn,numygridn     number of grid points in x,y-direction for nested output grid
542  ! numzgrid                number of vertical levels of output grid
543  ! dxout,dyout             grid distance of output grid
544  ! dxoutn,dyoutn           grid distance of nested output grid
545  ! outlon0,outlat0         lower left corner of output grid
546  ! outlon0n,outlat0n       lower left corner of nested output grid
547  ! xoutshift,youtshift     xlon0-outlon0, ylat0-outlat0
548  ! xoutshiftn,youtshiftn   xlon0-outlon0n, ylat0-outlat0n
549  ! outheight [m]           upper levels of the output grid
550  ! outheighthalf [m]       half (middle) levels of the output grid cells
551  ! DEP                     .true., if either dry or wet depos. is switched on
552  ! DRYDEP                  .true., if dry deposition is switched on
553  ! DRYDEPSPEC              .true., if dry deposition is switched on for that species
554  ! WETDEP                  .true., if wet deposition is switched on
555  ! OHREA                   .true., if OH reaction is switched on
556  ! ASSSPEC                 .true., if there are two species asscoiated
557  !                    (i.e. transfer of mass between these two occurs
558
559
560
561  !  if output for each releasepoint shall be created maxpointspec=number of releasepoints
562  !  else maxpointspec is 1 -> moved to unc_mod
563  !  the OUTGRID is moved to the module outg_mod
564  !******************************************************************************
565
566  !real gridunc(0:maxxgrid-1,0:maxygrid-1,maxzgrid,maxspec,
567  !    +             maxpointspec_act,nclassunc,maxageclass)
568  !real griduncn(0:maxxgridn-1,0:maxygridn-1,maxzgrid,maxspec,
569  !    +              maxpointspec_act,nclassunc,maxageclass)
570  !real wetgridunc(0:maxxgrid-1,0:maxygrid-1,maxspec,
571  !    +                maxpointspec_act,nclassunc,maxageclass)
572  !real wetgriduncn(0:maxxgridn-1,0:maxygridn-1,maxspec,
573  !    +ct                 maxpointspec,nclassunc,maxageclass)
574  !real drygridunc(0:maxxgrid-1,0:maxygrid-1,maxspec,maxpointspec,
575  !    +                nclassunc,maxageclass)
576  !real drygriduncn(0:maxxgridn-1,0:maxygridn-1,maxspec,
577  !    +                 maxpointspec,nclassunc,maxageclass)
578
579  !real oroout(0:maxxgrid-1,0:maxygrid-1)
580  !real orooutn(0:maxxgridn-1,0:maxygridn-1)
581  !     real area(0:maxxgrid-1,0:maxygrid-1)
582  !real arean(0:maxxgridn-1,0:maxygridn-1)
583  !real volume(0:maxxgrid-1,0:maxygrid-1,maxzgrid)
584  !real volumen(0:maxxgridn-1,0:maxygridn-1,maxzgrid)
585
586  !real areaeast(0:maxxgrid-1,0:maxygrid-1,maxzgrid)
587  !real areanorth(0:maxxgrid-1,0:maxygrid-1,maxzgrid)
588
589
590  ! gridunc,griduncn        uncertainty of outputted concentrations
591  ! wetgridunc,wetgriduncn  uncertainty of accumulated wet deposited mass on output grid
592  ! drygridunc,drygriduncn  uncertainty of accumulated dry deposited mass on output grid
593  ! oroout,orooutn [m]      height of model topography at output grid
594  ! area,arean [m2]         area of each grid cell
595  ! volume,volumen [m3]     volume of each grid cell
596  ! ... field names with n at the end indicate a nested output grid
597
598
599  !***********************************
600  ! Variables defining receptor points
601  !***********************************
602
603  real :: xreceptor(maxreceptor),yreceptor(maxreceptor)
604  real :: receptorarea(maxreceptor)
605  real :: creceptor(maxreceptor,maxspec)
606  character(len=16) :: receptorname(maxreceptor)
607  integer :: numreceptor
608
609  ! xreceptor,yreceptor     receptor position
610  ! creceptor               concentrations at receptor points
611  ! receptorarea            area of 1*1 grid cell at receptor point
612
613
614
615  !***************************************
616  ! Variables characterizing each particle
617  !***************************************
618
619  integer :: numpart,itra1(maxpart)
620  integer :: npoint(maxpart),nclass(maxpart)
621  integer :: idt(maxpart),itramem(maxpart),itrasplit(maxpart)
622  integer :: numparticlecount
623
624  real(kind=dp) :: xtra1(maxpart),ytra1(maxpart)
625  real :: ztra1(maxpart),xmass1(maxpart,maxspec)
626
627  ! numpart                 actual number of particles in memory
628  ! itra1 (maxpart) [s]     temporal positions of the particles
629  ! npoint(maxpart)         indicates the release point of each particle
630  ! nclass (maxpart)        one of nclassunc classes to which the particle is attributed
631  ! itramem (maxpart) [s]   memorized release times of the particles
632  ! itrasplit (maxpart) [s] next time when particle is to be split into two
633  ! idt(maxpart) [s]        time step to be used for next integration
634  ! numparticlecount        counts the total number of particles that have been released
635  ! xtra1,ytra1,ztra1       spatial positions of the particles
636  ! xmass1 [kg]             particle masses
637
638
639
640  !*******************************************************
641  ! Info table on available chemical species/radionuclides
642  !*******************************************************
643
644  !character*10 specname(maxtable)
645  !real decaytime(maxtable),wetscava(maxtable),wetscavb(maxtable)
646  !real drydiff(maxtable),dryhenry(maxtable),dryactiv(maxtable)
647  !real partrho(maxtable),partmean(maxtable),partsig(maxtable)
648  !real dryvelo(maxtable),weightmol(maxtable),ohreact(maxtable)
649
650  ! specname            Name of chemical species/radionuclide
651  ! decaytime           Half time of radionuclides
652  ! wetscava, wetscavb  Parameters for calculating scavenging coefficients
653  ! drydiff             diffusivitiy of species relative to diff. of H2O
654  ! dryhenry [M/atm]    Henry constant
655  ! dryactiv            reactivity relative to that of O3
656  ! partrho [kg/m3]     density of particles
657  ! partmean [m]        mean diameter of particles
658  ! partsig [m]         mean stand. deviation of particle diameter
659  ! dryvelo [cm/s]      constant dry deposition velocity
660  ! weightmol [g/mol]   molecular weight
661  ! ohreact             OH reaction rate
662
663
664
665  !********************
666  ! Random number field
667  !********************
668
669  real :: rannumb(maxrand)
670
671  ! rannumb                 field of normally distributed random numbers
672
673
674end module com_mod
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG