source: flexpart.git/src/partdep.f90 @ 3481cc1

10.4.1_peseiGFS_025bugfixes+enhancementsdevrelease-10release-10.4.1scaling-bug
Last change on this file since 3481cc1 was 3481cc1, checked in by Ignacio Pisso <ip@…>, 4 years ago

move license from headers to a different file

  • Property mode set to 100644
File size: 5.3 KB
Line 
1subroutine partdep(nc,density,fract,schmi,vset,ra,ustar,nyl,vdep)
2  !                   i     i      i     i    i   i    i    i  i/o
3  !*****************************************************************************
4  !                                                                            *
5  !      Calculation of the dry deposition velocities of particles.            *
6  !      This routine is based on Stokes' law for considering settling and     *
7  !      assumes constant dynamic viscosity of the air.                        *
8  !                                                                            *
9  !     AUTHOR: Andreas Stohl, 12 November 1993                                *
10  !                            Update: 20 December 1996                        *
11  !                                                                            *
12  !     Literature:                                                            *
13  !     [1]  Hicks/Baldocchi/Meyers/Hosker/Matt (1987), A Preliminary          *
14  !             Multiple Resistance Routine for Deriving Dry Deposition        *
15  !             Velocities from Measured Quantities.                           *
16  !             Water, Air and Soil Pollution 36 (1987), pp.311-330.           *
17  !     [2]  Slinn (1982), Predictions for Particle Deposition to              *
18  !             Vegetative Canopies. Atm.Env.16-7 (1982), pp.1785-1794.        *
19  !     [3]  Slinn/Slinn (1980),  Predictions for Particle Deposition on       *
20  !             Natural Waters. Atm.Env.14 (1980), pp.1013-1016.               *
21  !     [4]  Scire/Yamartino/Carmichael/Chang (1989),                          *
22  !             CALGRID: A Mesoscale Photochemical Grid Model.                 *
23  !             Vol II: User's Guide. (Report No.A049-1, June, 1989)           *
24  !     [5]  Langer M. (1992): Ein einfaches Modell zur Abschaetzung der       *
25  !             Depositionsgeschwindigkeit von Teilchen und Gasen.             *
26  !             Internal report.                                               *
27  !                                                                            *
28  !*****************************************************************************
29  !                                                                            *
30  ! Variables:                                                                 *
31  ! alpha                help variable                                         *
32  ! fract(nc,ni)         mass fraction of each diameter interval               *
33  ! lpdep(nc)            1 for particle deposition, 0 else                     *
34  ! nc                   actual number of chemical components                  *
35  ! ni                   number of diameter intervals, for which vdepj is calc.*
36  ! rdp [s/m]            deposition layer resistance                           *
37  ! ra [s/m]             aerodynamical resistance                              *
38  ! schmi(nc,ni)         Schmidt number**2/3 of each diameter interval         *
39  ! stokes               Stokes number                                         *
40  ! ustar [m/s]          friction velocity                                     *
41  ! vdep(nc) [m/s]       deposition velocities of all components               *
42  ! vdepj [m/s]          help, deposition velocity of 1 interval               *
43  ! vset(nc,ni)          gravitational settling velocity of each interval      *
44  !                                                                            *
45  ! Constants:                                                                 *
46  ! nc                   number of chemical species                            *
47  ! ni                   number of diameter intervals, for which deposition    *
48  !                      is calculated                                         *
49  !                                                                            *
50  !*****************************************************************************
51
52  use par_mod
53  use com_mod, only: debug_mode
54
55  implicit none
56
57  real :: density(maxspec),schmi(maxspec,ni),fract(maxspec,ni)
58  real :: vset(maxspec,ni)
59  real :: vdep(maxspec),stokes,vdepj,rdp,ustar,alpha,ra,nyl
60  real,parameter :: eps=1.e-5
61  integer :: ic,j,nc
62
63
64  do ic=1,nc                  ! loop over all species
65    if (density(ic).gt.0.) then
66      do j=1,ni              ! loop over all diameter intervals
67        if (ustar.gt.eps) then
68
69  ! Stokes number for each diameter interval
70  !*****************************************
71
72          stokes=vset(ic,j)/ga*ustar*ustar/nyl
73          alpha=-3./stokes
74
75  ! Deposition layer resistance
76  !****************************
77
78          if (alpha.le.log10(eps)) then
79            rdp=1./(schmi(ic,j)*ustar)
80          else
81            rdp=1./((schmi(ic,j)+10.**alpha)*ustar)
82          endif
83          vdepj=vset(ic,j)+1./(ra+rdp+ra*rdp*vset(ic,j))
84        else
85          vdepj=vset(ic,j)
86        endif
87
88  ! deposition velocities of each interval are weighted with mass fraction
89  !***********************************************************************
90
91        vdep(ic)=vdep(ic)+vdepj*fract(ic,j)
92       
93        !print*, 'partdep:113: ic', ic, 'vdep', vdep
94        !stop
95      end do
96    endif
97
98
99  end do
100
101  !if (debug_mode) then
102  !  print*, 'partdep:122:'
103  !  write(*,*) (vdep(ic), ic=1,nc)
104    !stop
105  !endif
106
107end subroutine partdep
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG