1 | subroutine deposition(ngrid, nlayer, nq, |
---|
2 | & ig, ig_vl1, pplay, pplev, zzlay, zzlev, |
---|
3 | $ zu, zv, zt, zycol, ptimestep, co2ice) |
---|
4 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
5 | c |
---|
6 | c dry deposition of chemical species |
---|
7 | c |
---|
8 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
9 | c |
---|
10 | use surfdat_h, only: z0 ! surface roughness |
---|
11 | use conc_mod, only: rnew ! specific gas constant |
---|
12 | implicit none |
---|
13 | c |
---|
14 | !#include "dimensions.h" |
---|
15 | !#include "dimphys.h" |
---|
16 | !#include "chimiedata.h" |
---|
17 | !#include "conc.h" |
---|
18 | !#include "surfdat.h" |
---|
19 | c |
---|
20 | c input |
---|
21 | c |
---|
22 | integer,intent(in) :: ngrid ! number of atmospheric columns |
---|
23 | integer,intent(in) :: nlayer ! number of atmospheric layers |
---|
24 | integer,intent(in) :: nq ! number of tracers |
---|
25 | integer ig ! grid point index |
---|
26 | integer ig_vl1 ! viking 1 grid point |
---|
27 | real pplay(ngrid,nlayer) ! pressure at the middle of the layers (pa) |
---|
28 | real pplev(ngrid,nlayer+1) ! pressure at layer boundaries (pa) |
---|
29 | real zzlay(ngrid,nlayer) ! altitude at the middle of the layers (m) |
---|
30 | real zzlev(ngrid,nlayer+1) ! altitude at layer boundaries (m) |
---|
31 | real zu(ngrid,nlayer) ! u component of the wind (m.s-1) |
---|
32 | real zv(ngrid,nlayer) ! v component of the wind (m.s-1) |
---|
33 | real zt(ngrid,nlayer) ! temperature (k) |
---|
34 | real zycol(nlayer,nq) ! composition (volume mixing ratio) |
---|
35 | real ptimestep ! physical timestep (s) |
---|
36 | real co2ice(ngrid) ! co2 ice surface layer (kg.m-2) |
---|
37 | c |
---|
38 | c local |
---|
39 | c |
---|
40 | real ubar ! wind module (m.s-1) |
---|
41 | real ustar ! friction velocity (m.s-1) |
---|
42 | real karman ! von karman constant |
---|
43 | real ra ! aerodynamic resistance (s.m-1) |
---|
44 | real rb ! quasi-laminar layer resistance (s.m-1) |
---|
45 | real vd ! dry deposition velocity (cm.s-1) |
---|
46 | real deltaz ! thickness of first layer (m) |
---|
47 | real mu0 ! dynamic viscosity of co2 at 293.15 k (pa.s) |
---|
48 | real mu ! dynamic viscosity of co2 (pa.s) |
---|
49 | real nu ! kinematic viscosity of co2 (cm2.s-1) |
---|
50 | real rho ! density |
---|
51 | real d ! molecular diffusivity of methane (cm2.s-1) |
---|
52 | real schmidt ! schmidt number |
---|
53 | real prandtl ! prandtl number |
---|
54 | real p0 ! reference pressure (pa) |
---|
55 | real loss ! loss rate (s-1) |
---|
56 | integer iq |
---|
57 | c |
---|
58 | real nuch4 |
---|
59 | real tau |
---|
60 | real gravity |
---|
61 | real gam |
---|
62 | real dp |
---|
63 | real cd |
---|
64 | c |
---|
65 | data karman / 0.4 / |
---|
66 | data prandtl / 0.72 / |
---|
67 | data mu0 / 14.8e-6 / |
---|
68 | data p0 /1.e5/ |
---|
69 | c |
---|
70 | c deposition is only active on surface uncovered by ice |
---|
71 | c |
---|
72 | c if ((.not. watercaptag(ig)) .and. (co2ice(ig) .eq. 0.)) then |
---|
73 | c |
---|
74 | c wind module (m.s-1) |
---|
75 | c |
---|
76 | ubar = (zu(ig,1)**2. + zv(ig,1)**2.)**0.5 |
---|
77 | c |
---|
78 | c friction velocity (m.s-1) |
---|
79 | c |
---|
80 | ustar = ubar*karman/log(zzlay(ig,1)/z0(ig)) |
---|
81 | c |
---|
82 | c aerodynamic resistance (s.m-1) |
---|
83 | c |
---|
84 | ra = 1./(karman*ustar)*log(zzlay(ig,1)/z0(ig)) |
---|
85 | c |
---|
86 | c molecular diffusivity of methane in *air* (cm2.s-1) |
---|
87 | c massman, atmospheric environment, 32, 1111-1127, 1998 |
---|
88 | c |
---|
89 | d = 0.1952*(p0/pplay(ig,1))*(zt(ig,1)/273.15)**1.81 |
---|
90 | c |
---|
91 | c dynamic viscosity: temperature dependance (pa.s) |
---|
92 | c sutherland's formula |
---|
93 | c |
---|
94 | mu = mu0*(293.15 + 240.)/(zt(ig,1) + 240.) |
---|
95 | $ *(zt(ig,1)/293.15)**(3./2.) |
---|
96 | c |
---|
97 | c density (kg.m-3) |
---|
98 | c |
---|
99 | rho = pplay(ig,1)/(rnew(ig,1)*zt(ig,1)) |
---|
100 | c |
---|
101 | c kinematic viscosity (cm2.s-1) |
---|
102 | c |
---|
103 | nu = mu/rho*1.e4 |
---|
104 | c |
---|
105 | c schmidt number |
---|
106 | c |
---|
107 | schmidt = nu/d |
---|
108 | c |
---|
109 | c quasi-laminar layer resistance (s.m-1) |
---|
110 | c |
---|
111 | rb = (2./(karman*ustar))*(schmidt/prandtl)**2./3. |
---|
112 | c |
---|
113 | c dry deposition velocity (m.s-1) |
---|
114 | c |
---|
115 | vd = 1./(ra + rb) |
---|
116 | c |
---|
117 | c thickness of first layer (m) |
---|
118 | c |
---|
119 | deltaz = zzlev(ig,2) - zzlev(ig,1) |
---|
120 | c |
---|
121 | c loss rate (s-1) |
---|
122 | c |
---|
123 | loss = vd/deltaz |
---|
124 | c |
---|
125 | c test |
---|
126 | c |
---|
127 | c loss = 1./(3600.*6.) |
---|
128 | c vd = loss*deltaz |
---|
129 | c |
---|
130 | nuch4 = sqrt(8.*8.31*zt(ig,1) |
---|
131 | $ /(3.1416*16.e-3)) |
---|
132 | tau = 6.*3600. |
---|
133 | gravity = 3.7 |
---|
134 | dp = pplev(ig,1) - pplev(ig,2) |
---|
135 | cd = (karman/log(zzlay(ig,1)/z0(ig)))**2. |
---|
136 | c |
---|
137 | gam = (4./nuch4)*dp |
---|
138 | $ /(tau*gravity*rho - 1./(cd*ubar)) |
---|
139 | c |
---|
140 | c methane index |
---|
141 | c |
---|
142 | iq = 12 |
---|
143 | c |
---|
144 | c update methane in first layer |
---|
145 | c |
---|
146 | c zycol(1,iq) = zycol(1,iq)*exp(-loss*ptimestep) |
---|
147 | c |
---|
148 | if (ig .eq. ig_vl1) then |
---|
149 | print*,'**** deposition ****' |
---|
150 | print*,'z0 = ', z0(ig), 'm' |
---|
151 | print*,'deltaz = ', deltaz, ' m' |
---|
152 | print*,'deltap = ', dp, 'pa' |
---|
153 | print*,'zzlay = ', zzlay(ig, 1), ' m' |
---|
154 | print*,'pplay = ', pplay(ig, 1), ' pa' |
---|
155 | print*,'t = ', zt(ig,1), ' k' |
---|
156 | print*,'u = ', zu(ig,1), ' m.s-1' |
---|
157 | print*,'v = ', zv(ig,1), ' m.s-1' |
---|
158 | print*,'rho = ', rho, ' kg.m-3' |
---|
159 | print*,'ubar = ', ubar, ' m.s-1' |
---|
160 | print*,'d = ', d, ' cm2.s-1' |
---|
161 | print*,'mu = ', mu, ' pa.s' |
---|
162 | print*,'nu = ', nu, ' cm2.s-1' |
---|
163 | print*,'schmi = ', schmidt |
---|
164 | print*,'Ra = ', ra, ' s.m-1' |
---|
165 | print*,'Rb = ', rb, ' s.m-1' |
---|
166 | print*,'vd = ', vd*100., 'cm.s-1' |
---|
167 | print*,'tau dep= ', 1./loss, 's' |
---|
168 | print*,'R = ', rnew(ig,1) |
---|
169 | print*,'nuch4 = ', nuch4, 'm.s-1' |
---|
170 | print*,'tau = ', tau, ' s' |
---|
171 | print*,'gamma = ', gam |
---|
172 | print*,'taugrho= ',tau*gravity*rho |
---|
173 | print*,'1surcdu= ', 1./(cd*ubar) |
---|
174 | |
---|
175 | print*,'********************' |
---|
176 | end if |
---|
177 | c |
---|
178 | c end if |
---|
179 | c |
---|
180 | return |
---|
181 | end |
---|