1 | c***************************************************************** |
---|
2 | c |
---|
3 | c Photochemical routine |
---|
4 | c |
---|
5 | c Author: Franck Lefevre |
---|
6 | c ------ |
---|
7 | c |
---|
8 | c Version: 17/03/2011 |
---|
9 | c |
---|
10 | c***************************************************************** |
---|
11 | c |
---|
12 | subroutine photochemistry(lswitch, zycol, sza, ptimestep, |
---|
13 | $ press,temp, dens, dist_sol, surfdust1d, |
---|
14 | $ surfice1d, jo3, tau) |
---|
15 | c |
---|
16 | use tracer_mod, only: nqmx |
---|
17 | implicit none |
---|
18 | c |
---|
19 | #include "dimensions.h" |
---|
20 | #include "dimphys.h" |
---|
21 | #include "chimiedata.h" |
---|
22 | #include "callkeys.h" |
---|
23 | !#include "tracer.h" |
---|
24 | c |
---|
25 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
26 | c input/output: |
---|
27 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
28 | c |
---|
29 | real zycol(nlayermx,nqmx) ! chemical species volume mixing ratio |
---|
30 | c |
---|
31 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
32 | c inputs: |
---|
33 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
34 | c |
---|
35 | real sza ! solar zenith angle (deg) |
---|
36 | real ptimestep ! physics timestep (s) |
---|
37 | real press(nlayermx) ! pressure (hpa) |
---|
38 | real temp(nlayermx) ! temperature (k) |
---|
39 | real dens(nlayermx) ! density (cm-3) |
---|
40 | real dist_sol ! sun distance (au) |
---|
41 | real surfdust1d(nlayermx) ! dust surface area (cm2/cm3) |
---|
42 | real surfice1d(nlayermx) ! ice surface area (cm2/cm3) |
---|
43 | real tau ! optical depth at 7 hpa |
---|
44 | c |
---|
45 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
46 | c output: |
---|
47 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
48 | c |
---|
49 | real jo3(nlayermx) ! photodissociation rate o3 -> o1d |
---|
50 | c |
---|
51 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
52 | c local: |
---|
53 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
54 | c |
---|
55 | integer phychemrat ! ratio physics timestep/chemistry timestep |
---|
56 | integer istep |
---|
57 | integer i_co2,i_o3,j_o3_o1d,lev |
---|
58 | integer nesp |
---|
59 | integer lswitch |
---|
60 | c |
---|
61 | parameter (nesp = 16) ! number of species in the chemistry |
---|
62 | c |
---|
63 | real stimestep ! standard timestep for the chemistry (s) |
---|
64 | real ctimestep ! real timestep for the chemistry (s) |
---|
65 | real rm(nlayermx,nesp) ! species volume mixing ratio |
---|
66 | real j(nlayermx,nd) ! interpolated photolysis rates (s-1) |
---|
67 | real rmco2(nlayermx) ! co2 mixing ratio |
---|
68 | real rmo3(nlayermx) ! ozone mixing ratio |
---|
69 | c |
---|
70 | c reaction rates |
---|
71 | c |
---|
72 | real a001(nlayermx), a002(nlayermx), a003(nlayermx) |
---|
73 | real b001(nlayermx), b002(nlayermx), b003(nlayermx), |
---|
74 | $ b004(nlayermx), b005(nlayermx), b006(nlayermx), |
---|
75 | $ b007(nlayermx), b008(nlayermx), b009(nlayermx) |
---|
76 | real c001(nlayermx), c002(nlayermx), c003(nlayermx), |
---|
77 | $ c004(nlayermx), c005(nlayermx), c006(nlayermx), |
---|
78 | $ c007(nlayermx), c008(nlayermx), c009(nlayermx), |
---|
79 | $ c010(nlayermx), c011(nlayermx), c012(nlayermx), |
---|
80 | $ c013(nlayermx), c014(nlayermx), c015(nlayermx), |
---|
81 | $ c016(nlayermx), c017(nlayermx), c018(nlayermx) |
---|
82 | real d001(nlayermx), d002(nlayermx), d003(nlayermx) |
---|
83 | real e001(nlayermx), e002(nlayermx), e003(nlayermx) |
---|
84 | real h001(nlayermx), h002(nlayermx), h003(nlayermx), |
---|
85 | $ h004(nlayermx), h005(nlayermx) |
---|
86 | real t001(nlayermx), t002(nlayermx), t003(nlayermx) |
---|
87 | c |
---|
88 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
89 | c stimestep : standard timestep for the chemistry (s) c |
---|
90 | c ctimestep : real timestep for the chemistry (s) c |
---|
91 | c phychemrat : ratio physical/chemical timestep c |
---|
92 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
93 | c |
---|
94 | stimestep = 600. ! standard value : 10 mn |
---|
95 | c |
---|
96 | phychemrat = nint(ptimestep/stimestep) |
---|
97 | c |
---|
98 | ctimestep = ptimestep/real(phychemrat) |
---|
99 | c |
---|
100 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
101 | c initialisation of chemical species and families c |
---|
102 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
103 | c |
---|
104 | call gcmtochim(zycol, lswitch, nesp, rm) |
---|
105 | c |
---|
106 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
107 | c compute reaction rates c |
---|
108 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
109 | c |
---|
110 | call chemrates(lswitch, dens, press, temp, |
---|
111 | $ surfdust1d, surfice1d, |
---|
112 | $ a001, a002, a003, |
---|
113 | $ b001, b002, b003, b004, b005, b006, |
---|
114 | $ b007, b008, b009, |
---|
115 | $ c001, c002, c003, c004, c005, c006, |
---|
116 | $ c007, c008, c009, c010, c011, c012, |
---|
117 | $ c013, c014, c015, c016, c017, c018, |
---|
118 | $ d001, d002, d003, |
---|
119 | $ e001, e002, e003, |
---|
120 | $ h001, h002, h003, h004, h005, |
---|
121 | $ t001, t002, t003, tau) |
---|
122 | c |
---|
123 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
124 | c interpolation of photolysis rates in the lookup table c |
---|
125 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
126 | c |
---|
127 | i_co2 = 1 |
---|
128 | i_o3 = 6 |
---|
129 | c |
---|
130 | do lev = 1,lswitch-1 |
---|
131 | rmco2(lev) = rm(lev,i_co2) |
---|
132 | rmo3(lev) = rm(lev, i_o3) |
---|
133 | end do |
---|
134 | c |
---|
135 | call phot(lswitch, press, temp, sza, tau, dist_sol, |
---|
136 | $ rmco2, rmo3, j) |
---|
137 | c |
---|
138 | j_o3_o1d = 5 |
---|
139 | c |
---|
140 | do lev = 1,lswitch-1 |
---|
141 | jo3(lev) = j(lev,j_o3_o1d) |
---|
142 | end do |
---|
143 | c |
---|
144 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
145 | c loop over time within the physical timestep c |
---|
146 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
147 | c |
---|
148 | do istep = 1,phychemrat |
---|
149 | call chimie(lswitch,nesp, rm, j, dens, ctimestep, |
---|
150 | $ press, temp, sza, dist_sol, |
---|
151 | $ a001, a002, a003, |
---|
152 | $ b001, b002, b003, b004, b005, b006, |
---|
153 | $ b007, b008, b009, |
---|
154 | $ c001, c002, c003, c004, c005, c006, |
---|
155 | $ c007, c008, c009, c010, c011, c012, |
---|
156 | $ c013, c014, c015, c016, c017, c018, |
---|
157 | $ d001, d002, d003, |
---|
158 | $ e001, e002, e003, |
---|
159 | $ h001, h002, h003, h004, h005, |
---|
160 | $ t001, t002, t003) |
---|
161 | end do |
---|
162 | c |
---|
163 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
164 | c save chemical species for the gcm c |
---|
165 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
166 | c |
---|
167 | call chimtogcm(zycol, lswitch, nesp, rm) |
---|
168 | c |
---|
169 | return |
---|
170 | end |
---|
171 | c |
---|
172 | c***************************************************************** |
---|
173 | c |
---|
174 | subroutine chimie(lswitch, nesp, rm, j, dens, dt, |
---|
175 | $ press, t, sza, dist_sol, |
---|
176 | $ a001, a002, a003, |
---|
177 | $ b001, b002, b003, b004, b005, b006, |
---|
178 | $ b007, b008, b009, |
---|
179 | $ c001, c002, c003, c004, c005, c006, |
---|
180 | $ c007, c008, c009, c010, c011, c012, |
---|
181 | $ c013, c014, c015, c016, c017, c018, |
---|
182 | $ d001, d002, d003, |
---|
183 | $ e001, e002, e003, |
---|
184 | $ h001, h002, h003, h004, h005, |
---|
185 | $ t001, t002, t003) |
---|
186 | c |
---|
187 | c***************************************************************** |
---|
188 | c |
---|
189 | implicit none |
---|
190 | c |
---|
191 | #include "dimensions.h" |
---|
192 | #include "dimphys.h" |
---|
193 | #include "chimiedata.h" |
---|
194 | #include "callkeys.h" |
---|
195 | c |
---|
196 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
197 | c input/output: |
---|
198 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
199 | c |
---|
200 | integer lswitch ! interface level between chemistries |
---|
201 | integer nesp ! number of species |
---|
202 | c |
---|
203 | real rm(nlayermx,nesp) ! volume mixing ratios |
---|
204 | c |
---|
205 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
206 | c inputs: |
---|
207 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
208 | c |
---|
209 | real dens(nlayermx) ! density (cm-3) |
---|
210 | real dt ! chemistry timestep (s) |
---|
211 | real j(nlayermx,nd) ! interpolated photolysis rates (s-1) |
---|
212 | real press(nlayermx) ! pressure (hpa) |
---|
213 | real t(nlayermx) ! temperature (k) |
---|
214 | real sza ! solar zenith angle (deg) |
---|
215 | real dist_sol ! sun distance (au) |
---|
216 | c |
---|
217 | c reaction rates |
---|
218 | c |
---|
219 | real a001(nlayermx), a002(nlayermx), a003(nlayermx) |
---|
220 | real b001(nlayermx), b002(nlayermx), b003(nlayermx), |
---|
221 | $ b004(nlayermx), b005(nlayermx), b006(nlayermx), |
---|
222 | $ b007(nlayermx), b008(nlayermx), b009(nlayermx) |
---|
223 | real c001(nlayermx), c002(nlayermx), c003(nlayermx), |
---|
224 | $ c004(nlayermx), c005(nlayermx), c006(nlayermx), |
---|
225 | $ c007(nlayermx), c008(nlayermx), c009(nlayermx), |
---|
226 | $ c010(nlayermx), c011(nlayermx), c012(nlayermx), |
---|
227 | $ c013(nlayermx), c014(nlayermx), c015(nlayermx), |
---|
228 | $ c016(nlayermx), c017(nlayermx), c018(nlayermx) |
---|
229 | real d001(nlayermx), d002(nlayermx), d003(nlayermx) |
---|
230 | real e001(nlayermx), e002(nlayermx), e003(nlayermx) |
---|
231 | real h001(nlayermx), h002(nlayermx), h003(nlayermx), |
---|
232 | $ h004(nlayermx), h005(nlayermx) |
---|
233 | real t001(nlayermx), t002(nlayermx), t003(nlayermx) |
---|
234 | c |
---|
235 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
236 | c local: |
---|
237 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
238 | c |
---|
239 | real hetero_ice, hetero_dust |
---|
240 | c |
---|
241 | integer iesp, iter, l, niter |
---|
242 | integer i_co2, i_co, i_o2, i_h2, i_h2o, i_h2o2, i_hox, i_ox, |
---|
243 | $ i_o1d, i_o, i_o3, i_h, i_oh, i_ho2, i_ch4, i_n2 |
---|
244 | integer j_o2_o, j_o2_o1d, j_co2_o, j_co2_o1d, |
---|
245 | $ j_o3_o1d, j_o3_o, j_h2o, j_hdo, j_h2o2, |
---|
246 | $ j_ho2, j_no2, j_ch4_ch3_h, j_ch4_1ch2_h2, |
---|
247 | $ j_ch4_3ch2_h_h, j_ch4_ch_h2_h, j_ch3o2h, |
---|
248 | $ j_ch2o_co, j_ch2o_hco, j_ch3oh, j_c2h6, j_hcl, |
---|
249 | $ j_hocl, j_clo, j_so2, j_so, j_h2s, j_so3, |
---|
250 | $ j_hno3, j_hno4 |
---|
251 | c |
---|
252 | parameter (hetero_ice = 1.) ! switch for het. chem. on ice clouds |
---|
253 | parameter (hetero_dust = 0.) ! switch for het. chem. on dust |
---|
254 | ! hetero_dust = 0. advised for the moment |
---|
255 | c |
---|
256 | parameter (niter = 5) ! iterations in the chemical scheme |
---|
257 | c |
---|
258 | real cc0(nlayermx,nesp) ! initial number density (cm-3) |
---|
259 | real cc(nlayermx,nesp) ! final number density (cm-3) |
---|
260 | real nox(nlayermx) ! nox number density (cm-3) |
---|
261 | real no(nlayermx) ! no number density (cm-3) |
---|
262 | real no2(nlayermx) ! no2 number density (cm-3) |
---|
263 | real production(nlayermx,nesp) ! production rate |
---|
264 | real loss(nlayermx,nesp) ! loss rate |
---|
265 | c |
---|
266 | real ro_o3, rh_ho2, roh_ho2, rno2_no |
---|
267 | c |
---|
268 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
269 | c tracer numbering in the chemistry |
---|
270 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
271 | c |
---|
272 | i_co2 = 1 |
---|
273 | i_co = 2 |
---|
274 | i_o = 3 |
---|
275 | i_o1d = 4 |
---|
276 | i_o2 = 5 |
---|
277 | i_o3 = 6 |
---|
278 | i_h = 7 |
---|
279 | i_h2 = 8 |
---|
280 | i_oh = 9 |
---|
281 | i_ho2 = 10 |
---|
282 | i_h2o2 = 11 |
---|
283 | i_ch4 = 12 |
---|
284 | i_h2o = 13 |
---|
285 | i_n2 = 14 |
---|
286 | i_hox = 15 |
---|
287 | i_ox = 16 |
---|
288 | c |
---|
289 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
290 | c numbering of photolysis rates |
---|
291 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
292 | c |
---|
293 | j_o2_o = 1 ! o2 + hv -> o + o |
---|
294 | j_o2_o1d = 2 ! o2 + hv -> o + o(1d) |
---|
295 | j_co2_o = 3 ! co2 + hv -> co + o |
---|
296 | j_co2_o1d = 4 ! co2 + hv -> co + o(1d) |
---|
297 | j_o3_o1d = 5 ! o3 + hv -> o2 + o(1d) |
---|
298 | j_o3_o = 6 ! o3 + hv -> o2 + o |
---|
299 | j_h2o = 7 ! h2o + hv -> h + oh |
---|
300 | j_hdo = 8 ! hdo + hv -> d + oh |
---|
301 | j_h2o2 = 9 ! h2o2 + hv -> oh + oh |
---|
302 | j_ho2 = 10 ! ho2 + hv -> oh + o |
---|
303 | j_no2 = 11 ! no2 + hv -> no + o |
---|
304 | j_ch4_ch3_h = 12 ! ch4 + hv -> ch3 + h |
---|
305 | j_ch4_1ch2_h2 = 13 ! ch4 + hv -> 1ch2 + h2 |
---|
306 | j_ch4_3ch2_h_h = 14 ! ch4 + hv -> 3ch2 + h + h |
---|
307 | j_ch4_ch_h2_h = 15 ! ch4 + hv -> ch + h2 + h |
---|
308 | j_ch3o2h = 16 ! ch3o2h + hv -> ch3o + oh |
---|
309 | j_ch2o_hco = 17 ! ch2o + hv -> h + hco |
---|
310 | j_ch2o_co = 18 ! ch2o + hv -> h2 + co |
---|
311 | j_ch3oh = 19 ! ch3oh + hv -> ch3o + h |
---|
312 | j_c2h6 = 20 ! c2h6 + hv -> products |
---|
313 | j_hcl = 21 ! hcl + hv -> h + cl |
---|
314 | j_hocl = 22 ! hocl + hv -> oh + cl |
---|
315 | j_clo = 23 ! clo + hv -> cl + o |
---|
316 | j_so2 = 24 ! so2 + hv -> so + o |
---|
317 | j_so = 25 ! so + hv -> s + o |
---|
318 | j_h2s = 26 ! h2s + hv -> hs + s |
---|
319 | j_so3 = 27 ! so2 + hv -> so2 + o |
---|
320 | j_hno3 = 28 ! hno3 + hv -> oh + no2 |
---|
321 | j_hno4 = 29 ! hno4 + hv -> ho2 + no2 |
---|
322 | c |
---|
323 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
324 | c volume mixing ratio -> density conversion |
---|
325 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
326 | c |
---|
327 | do iesp = 1,nesp |
---|
328 | do l = 1,lswitch-1 |
---|
329 | cc0(l,iesp) = rm(l,iesp)*dens(l) |
---|
330 | cc(l,iesp) = cc0(l,iesp) |
---|
331 | end do |
---|
332 | end do |
---|
333 | c |
---|
334 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
335 | c co2 and nox number densities (cm-3) |
---|
336 | c |
---|
337 | c nox mixing ratio: 6.e-10 (yung and demore, 1999) |
---|
338 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
339 | c |
---|
340 | do l = 1,lswitch-1 |
---|
341 | nox(l) = 6.e-10*dens(l) |
---|
342 | end do |
---|
343 | c |
---|
344 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
345 | c loop over iterations in the chemical scheme |
---|
346 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
347 | c |
---|
348 | do iter = 1,niter |
---|
349 | c |
---|
350 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
351 | c nox species |
---|
352 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
353 | c no2/no |
---|
354 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
355 | c |
---|
356 | do l = 1,lswitch-1 |
---|
357 | c |
---|
358 | rno2_no = (d002(l)*cc(l,i_o3) + d003(l)*cc(l,i_ho2)) |
---|
359 | $ /(j(l,j_no2) + |
---|
360 | $ d001(l)*max(cc(l,i_o),1.e-30*dens(l))) |
---|
361 | c |
---|
362 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
363 | c no |
---|
364 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
365 | c |
---|
366 | no(l) = nox(l)/(1. + rno2_no) |
---|
367 | c |
---|
368 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
369 | c no2 |
---|
370 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
371 | c |
---|
372 | no2(l) = no(l)*rno2_no |
---|
373 | c |
---|
374 | end do |
---|
375 | c |
---|
376 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
377 | c hox species |
---|
378 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
379 | c photochemical equilibrium for oh and ho2 |
---|
380 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
381 | c h/ho2 |
---|
382 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
383 | c |
---|
384 | do l = 1,lswitch-1 |
---|
385 | c |
---|
386 | rh_ho2 = (c001(l)*cc(l,i_o) |
---|
387 | $ + c004(l)*cc(l,i_h) |
---|
388 | $ + c005(l)*cc(l,i_h) |
---|
389 | $ + c006(l)*cc(l,i_h) |
---|
390 | $ + c007(l)*cc(l,i_oh) |
---|
391 | $ + 2.*c008(l)*cc(l,i_ho2) |
---|
392 | $ + c015(l)*cc(l,i_o3) |
---|
393 | $ + 2.*c016(l)*cc(l,i_ho2) |
---|
394 | $ + d003(l)*no(l) ! ajout 20090401 |
---|
395 | $ + j(l,j_ho2) |
---|
396 | $ + h001(l)*hetero_ice |
---|
397 | $ + h003(l)*hetero_dust) |
---|
398 | $ /( c011(l)*cc(l,i_o2) |
---|
399 | $ + t001(l)*cc(l,i_h2o) |
---|
400 | $ /max(cc(l,i_h),dens(l)*1.e-30) ! ajout 20090401 |
---|
401 | $ ) |
---|
402 | c |
---|
403 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
404 | c oh/ho2 |
---|
405 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
406 | c |
---|
407 | roh_ho2 = (c001(l)*cc(l,i_o) |
---|
408 | $ + c003(l)*cc(l,i_o3)*rh_ho2 |
---|
409 | $ + 2.*c004(l)*cc(l,i_h) |
---|
410 | $ + 2.*c008(l)*cc(l,i_ho2) |
---|
411 | $ + c015(l)*cc(l,i_o3) |
---|
412 | $ + d003(l)*no(l) |
---|
413 | $ + j(l,j_ho2) |
---|
414 | $ + 2.*b002(l)*cc(l,i_o1d)*cc(l,i_h2o) ! ajout 20101210 |
---|
415 | $ /max(cc(l,i_ho2),dens(l)*1.e-30) ! ajout 20101210 |
---|
416 | $ + b003(l)*cc(l,i_o1d)*cc(l,i_h2) ! ajout 20101210 |
---|
417 | $ /max(cc(l,i_ho2),dens(l)*1.e-30) ! ajout 20101210 |
---|
418 | $ + j(l,j_h2o)*cc(l,i_h2o) |
---|
419 | $ /max(cc(l,i_ho2),dens(l)*1.e-30) |
---|
420 | $ + t001(l)*cc(l,i_h2o) ! suppression 20090401 |
---|
421 | $ /max(cc(l,i_ho2),dens(l)*1.e-30) ! suppression 20090401 |
---|
422 | $ ) |
---|
423 | $ /(c002(l)*cc(l,i_o) |
---|
424 | $ + c007(l)*cc(l,i_ho2) |
---|
425 | $ + c009(l)*cc(l,i_h2o2) ! ajout 20090401 |
---|
426 | $ + 2.*c013(l)*cc(l,i_oh) ! ajout 20090401 |
---|
427 | $ + 2.*c017(l)*cc(l,i_oh) ! ajout 20090401 |
---|
428 | $ + e001(l)*cc(l,i_co) |
---|
429 | $ + h002(l)*hetero_ice) |
---|
430 | c |
---|
431 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
432 | c h |
---|
433 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
434 | c |
---|
435 | cc(l,i_h) = cc(l,i_hox) |
---|
436 | $ /(1. + (1. + roh_ho2)/rh_ho2) |
---|
437 | c |
---|
438 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
439 | c ho2 |
---|
440 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
441 | c |
---|
442 | cc(l,i_ho2) = cc(l,i_h)/rh_ho2 |
---|
443 | c |
---|
444 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
445 | c oh |
---|
446 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
447 | c |
---|
448 | cc(l,i_oh) = cc(l,i_ho2)*roh_ho2 |
---|
449 | c |
---|
450 | end do |
---|
451 | c |
---|
452 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
453 | c ox species |
---|
454 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
455 | c day: |
---|
456 | c - o1d at photochemical equilibrium |
---|
457 | c - o3 at photochemical equilibrium |
---|
458 | c - continuity equation for ox |
---|
459 | c night: |
---|
460 | c - o1d = 0 |
---|
461 | c - continuity equation for o3 |
---|
462 | c - continuity equation for o |
---|
463 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
464 | c |
---|
465 | if (sza .le. 95.) then |
---|
466 | c |
---|
467 | do l = 1,lswitch-1 |
---|
468 | c |
---|
469 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
470 | c o(1d) |
---|
471 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
472 | c |
---|
473 | cc(l,i_o1d) = (j(l,j_co2_o1d)*cc(l,i_co2) |
---|
474 | $ + j(l,j_o2_o1d)*cc(l,i_o2) |
---|
475 | $ + j(l,j_o3_o1d)*cc(l,i_o3)) |
---|
476 | $ /(b001(l)*cc(l,i_co2) |
---|
477 | $ + b002(l)*cc(l,i_h2o) |
---|
478 | $ + b003(l)*cc(l,i_h2) |
---|
479 | $ + b004(l)*cc(l,i_o2) |
---|
480 | $ + b005(l)*cc(l,i_o3) |
---|
481 | $ + b006(l)*cc(l,i_o3)) |
---|
482 | c |
---|
483 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
484 | c o/o3 |
---|
485 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
486 | c |
---|
487 | ro_o3 = (j(l,j_o3_o1d) + j(l,j_o3_o) |
---|
488 | $ + a003(l)*cc(l,i_o) |
---|
489 | $ + c003(l)*cc(l,i_h) |
---|
490 | $ + c014(l)*cc(l,i_oh) |
---|
491 | $ + c015(l)*cc(l,i_ho2) |
---|
492 | $ ) |
---|
493 | $ /(a001(l)*cc(l,i_o2)) |
---|
494 | c |
---|
495 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
496 | c o3 |
---|
497 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
498 | c |
---|
499 | cc(l,i_o3) = cc(l,i_ox)/(1. + ro_o3) |
---|
500 | c |
---|
501 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
502 | c o |
---|
503 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
504 | c |
---|
505 | cc(l,i_o) = cc(l,i_o3)*ro_o3 |
---|
506 | c |
---|
507 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
508 | c ox = o + o3 |
---|
509 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
510 | c |
---|
511 | production(l,i_ox) = |
---|
512 | $ + j(l,j_co2_o)*cc(l,i_co2) |
---|
513 | $ + j(l,j_co2_o1d)*cc(l,i_co2) |
---|
514 | $ + j(l,j_ho2)*cc(l,i_ho2) |
---|
515 | $ + 2.*j(l,j_o2_o)*cc(l,i_o2) |
---|
516 | $ + 2.*j(l,j_o2_o1d)*cc(l,i_o2) |
---|
517 | $ + c006(l)*cc(l,i_h)*cc(l,i_ho2) |
---|
518 | $ + c013(l)*cc(l,i_oh)*cc(l,i_oh) |
---|
519 | $ + d003(l)*cc(l,i_ho2)*no(l) |
---|
520 | c |
---|
521 | loss(l,i_ox) = 2.*a002(l)*cc(l,i_o)*cc(l,i_o) |
---|
522 | $ + 2.*a003(l)*cc(l,i_o)*cc(l,i_o3) |
---|
523 | $ + c001(l)*cc(l,i_ho2)*cc(l,i_o) |
---|
524 | $ + c002(l)*cc(l,i_oh)*cc(l,i_o) |
---|
525 | $ + c003(l)*cc(l,i_h)*cc(l,i_o3) |
---|
526 | $ + c012(l)*cc(l,i_o)*cc(l,i_h2o2) |
---|
527 | $ + c014(l)*cc(l,i_o3)*cc(l,i_oh) |
---|
528 | $ + c015(l)*cc(l,i_o3)*cc(l,i_ho2) |
---|
529 | $ + d001(l)*cc(l,i_o)*no2(l) |
---|
530 | $ + e002(l)*cc(l,i_o)*cc(l,i_co) |
---|
531 | c |
---|
532 | loss(l,i_ox) = loss(l,i_ox)/cc(l,i_ox) |
---|
533 | c |
---|
534 | end do |
---|
535 | c |
---|
536 | else |
---|
537 | c |
---|
538 | do l = 1,lswitch-1 |
---|
539 | c |
---|
540 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
541 | c o(1d) |
---|
542 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
543 | c |
---|
544 | cc(l,i_o1d) = 0. |
---|
545 | c |
---|
546 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
547 | c o3 |
---|
548 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
549 | c |
---|
550 | production(l,i_o3) = a001(l)*cc(l,i_o2)*cc(l,i_o) |
---|
551 | c |
---|
552 | loss(l,i_o3) = a003(l)*cc(l,i_o) |
---|
553 | $ + c003(l)*cc(l,i_h) |
---|
554 | $ + c014(l)*cc(l,i_oh) |
---|
555 | $ + c015(l)*cc(l,i_ho2) |
---|
556 | c |
---|
557 | |
---|
558 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
559 | c o |
---|
560 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
561 | c |
---|
562 | production(l,i_o) = c006(l)*cc(l,i_h)*cc(l,i_ho2) |
---|
563 | $ + c013(l)*cc(l,i_oh)*cc(l,i_oh) |
---|
564 | c |
---|
565 | loss(l,i_o) = a001(l)*cc(l,i_o2) |
---|
566 | $ + 2.*a002(l)*cc(l,i_o) |
---|
567 | $ + a003(l)*cc(l,i_o3) |
---|
568 | $ + c001(l)*cc(l,i_ho2) |
---|
569 | $ + c002(l)*cc(l,i_oh) |
---|
570 | $ + c012(l)*cc(l,i_h2o2) |
---|
571 | $ + e002(l)*cc(l,i_co) |
---|
572 | c |
---|
573 | end do |
---|
574 | end if |
---|
575 | c |
---|
576 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
577 | c other species |
---|
578 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
579 | c |
---|
580 | do l = 1,lswitch-1 |
---|
581 | c |
---|
582 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
583 | c co2 |
---|
584 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
585 | c |
---|
586 | production(l,i_co2) = e001(l)*cc(l,i_oh)*cc(l,i_co) |
---|
587 | $ + e002(l)*cc(l,i_o)*cc(l,i_co) |
---|
588 | $ + t002(l)*cc(l,i_ch4)*16./44. ! ajout 20090401 |
---|
589 | $ + t003(l)*cc(l,i_co2)*8./44. ! ajout 20090401 |
---|
590 | c |
---|
591 | loss(l,i_co2) = j(l,j_co2_o) |
---|
592 | $ + j(l,j_co2_o1d) |
---|
593 | $ + t003(l) |
---|
594 | c |
---|
595 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
596 | c co |
---|
597 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
598 | c |
---|
599 | production(l,i_co) = j(l,j_co2_o)*cc(l,i_co2) |
---|
600 | $ + j(l,j_co2_o1d)*cc(l,i_co2) |
---|
601 | $ + t003(l)*cc(l,i_co2) |
---|
602 | c |
---|
603 | loss(l,i_co) = e001(l)*cc(l,i_oh) |
---|
604 | $ + e002(l)*cc(l,i_o) |
---|
605 | c |
---|
606 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
607 | c o2 |
---|
608 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
609 | c |
---|
610 | production(l,i_o2) = |
---|
611 | $ j(l,j_o3_o)*cc(l,i_o3) |
---|
612 | $ + j(l,j_o3_o1d)*cc(l,i_o3) |
---|
613 | $ + a002(l)*cc(l,i_o)*cc(l,i_o) |
---|
614 | $ + 2.*a003(l)*cc(l,i_o)*cc(l,i_o3) |
---|
615 | $ + 2.*b005(l)*cc(l,i_o1d)*cc(l,i_o3) |
---|
616 | $ + b006(l)*cc(l,i_o1d)*cc(l,i_o3) |
---|
617 | $ + c001(l)*cc(l,i_o)*cc(l,i_ho2) |
---|
618 | $ + c002(l)*cc(l,i_o)*cc(l,i_oh) |
---|
619 | $ + c003(l)*cc(l,i_h)*cc(l,i_o3) |
---|
620 | $ + c005(l)*cc(l,i_h)*cc(l,i_ho2) |
---|
621 | $ + c007(l)*cc(l,i_oh)*cc(l,i_ho2) |
---|
622 | $ + c008(l)*cc(l,i_ho2)*cc(l,i_ho2) |
---|
623 | $ + c014(l)*cc(l,i_o3)*cc(l,i_oh) |
---|
624 | $ + 2.*c015(l)*cc(l,i_o3)*cc(l,i_ho2) |
---|
625 | $ + c016(l)*cc(l,i_ho2)*cc(l,i_ho2) |
---|
626 | $ + d001(l)*cc(l,i_o)*no2(l) |
---|
627 | c |
---|
628 | loss(l,i_o2) = j(l,j_o2_o) |
---|
629 | $ + j(l,j_o2_o1d) |
---|
630 | $ + a001(l)*cc(l,i_o) |
---|
631 | $ + c011(l)*cc(l,i_h) |
---|
632 | c |
---|
633 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
634 | c h2 |
---|
635 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
636 | c |
---|
637 | production(l,i_h2) = c005(l)*cc(l,i_h)*cc(l,i_ho2) |
---|
638 | $ + c018(l)*cc(l,i_h)*cc(l,i_h) |
---|
639 | c |
---|
640 | loss(l,i_h2) = b003(l)*cc(l,i_o1d) |
---|
641 | $ + c010(l)*cc(l,i_oh) |
---|
642 | c |
---|
643 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
644 | c h2o |
---|
645 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
646 | c |
---|
647 | production(l,i_h2o) = |
---|
648 | $ c006(l)*cc(l,i_h)*cc(l,i_ho2) |
---|
649 | $ + c007(l)*cc(l,i_oh)*cc(l,i_ho2) |
---|
650 | $ + c009(l)*cc(l,i_oh)*cc(l,i_h2o2) |
---|
651 | $ + c010(l)*cc(l,i_oh)*cc(l,i_h2) |
---|
652 | $ + c013(l)*cc(l,i_oh)*cc(l,i_oh) |
---|
653 | $ + h004(l)*cc(l,i_h2o2)*hetero_ice |
---|
654 | c |
---|
655 | loss(l,i_h2o) = j(l,j_h2o) |
---|
656 | $ + b002(l)*cc(l,i_o1d) |
---|
657 | $ + t001(l) |
---|
658 | c |
---|
659 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
660 | c h2o2 |
---|
661 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
662 | c |
---|
663 | production(l,i_h2o2) = |
---|
664 | $ c008(l)*cc(l,i_ho2)*cc(l,i_ho2) |
---|
665 | $ + c016(l)*cc(l,i_ho2)*cc(l,i_ho2) |
---|
666 | $ + c017(l)*cc(l,i_oh)*cc(l,i_oh) |
---|
667 | c $ + 0.5*h001(l)*cc(l,i_ho2)*hetero_ice |
---|
668 | c $ + 0.5*h002(l)*cc(l,i_oh)*hetero_ice |
---|
669 | c |
---|
670 | loss(l,i_h2o2) = j(l,j_h2o2) |
---|
671 | $ + c009(l)*cc(l,i_oh) |
---|
672 | $ + c012(l)*cc(l,i_o) |
---|
673 | $ + h004(l)*hetero_ice |
---|
674 | $ + h005(l)*hetero_dust |
---|
675 | c |
---|
676 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
677 | c hox = h + oh + ho2 |
---|
678 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
679 | c |
---|
680 | production(l,i_hox) = |
---|
681 | $ 2.*j(l,j_h2o)*cc(l,i_h2o) |
---|
682 | $ + 2.*j(l,j_h2o2)*cc(l,i_h2o2) |
---|
683 | $ + 2.*b002(l)*cc(l,i_o1d)*cc(l,i_h2o) |
---|
684 | $ + 2.*b003(l)*cc(l,i_o1d)*cc(l,i_h2) |
---|
685 | $ + 2.*c012(l)*cc(l,i_o)*cc(l,i_h2o2) |
---|
686 | $ + 2.*t001(l)*cc(l,i_h2o) |
---|
687 | c |
---|
688 | loss(l,i_hox) = 2.*c005(l)*cc(l,i_h)*cc(l,i_ho2) |
---|
689 | $ + 2.*c006(l)*cc(l,i_h)*cc(l,i_ho2) |
---|
690 | $ + 2.*c007(l)*cc(l,i_oh)*cc(l,i_ho2) |
---|
691 | $ + 2.*c008(l)*cc(l,i_ho2)*cc(l,i_ho2) |
---|
692 | $ + 2.*c013(l)*cc(l,i_oh)*cc(l,i_oh) |
---|
693 | $ + 2.*c016(l)*cc(l,i_ho2)*cc(l,i_ho2) |
---|
694 | $ + 2.*c017(l)*cc(l,i_oh)*cc(l,i_oh) |
---|
695 | $ + 2.*c018(l)*cc(l,i_h)*cc(l,i_h) |
---|
696 | $ + h001(l)*cc(l,i_ho2)*hetero_ice |
---|
697 | $ + h002(l)*cc(l,i_oh)*hetero_ice |
---|
698 | $ + h003(l)*cc(l,i_ho2)*hetero_dust |
---|
699 | c |
---|
700 | loss(l,i_hox) = loss(l,i_hox)/cc(l,i_hox) |
---|
701 | c |
---|
702 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
703 | c ch4 |
---|
704 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
705 | c |
---|
706 | production(l,i_ch4) = 0. |
---|
707 | c |
---|
708 | loss(l,i_ch4) = j(l,j_ch4_ch3_h) |
---|
709 | $ + j(l,j_ch4_1ch2_h2) |
---|
710 | $ + j(l,j_ch4_3ch2_h_h) |
---|
711 | $ + j(l,j_ch4_ch_h2_h) |
---|
712 | $ + b007(l)*cc(l,i_o1d) |
---|
713 | $ + b008(l)*cc(l,i_o1d) |
---|
714 | $ + b009(l)*cc(l,i_o1d) |
---|
715 | $ + e003(l)*cc(l,i_oh) |
---|
716 | c |
---|
717 | end do |
---|
718 | c |
---|
719 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
720 | c update number densities |
---|
721 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
722 | c |
---|
723 | c long-lived species |
---|
724 | c |
---|
725 | do l = 1,lswitch-1 |
---|
726 | cc(l,i_co2) = (cc0(l,i_co2) + production(l,i_co2)*dt) |
---|
727 | $ /(1. + loss(l,i_co2)*dt) |
---|
728 | cc(l,i_co) = (cc0(l,i_co) + production(l,i_co)*dt) |
---|
729 | $ /(1. + loss(l,i_co)*dt) |
---|
730 | cc(l,i_o2) = (cc0(l,i_o2) + production(l,i_o2)*dt) |
---|
731 | $ /(1. + loss(l,i_o2)*dt) |
---|
732 | cc(l,i_h2) = (cc0(l,i_h2) + production(l,i_h2)*dt) |
---|
733 | $ /(1. + loss(l,i_h2)*dt) |
---|
734 | cc(l,i_h2o2)= (cc0(l,i_h2o2) + production(l,i_h2o2)*dt) |
---|
735 | $ /(1. + loss(l,i_h2o2)*dt) |
---|
736 | cc(l,i_h2o) = (cc0(l,i_h2o) + production(l,i_h2o)*dt) |
---|
737 | $ /(1. + loss(l,i_h2o)*dt) |
---|
738 | cc(l,i_hox) = (cc0(l,i_hox) + production(l,i_hox)*dt) |
---|
739 | $ /(1. + loss(l,i_hox)*dt) |
---|
740 | cc(l,i_ch4) = (cc0(l,i_ch4) + production(l,i_ch4)*dt) |
---|
741 | $ /(1. + loss(l,i_ch4)*dt) |
---|
742 | end do |
---|
743 | c |
---|
744 | c ox species |
---|
745 | c |
---|
746 | if (sza .le. 95.) then |
---|
747 | do l = 1,lswitch-1 |
---|
748 | cc(l,i_ox) = (cc0(l,i_ox) + production(l,i_ox)*dt) |
---|
749 | $ /(1. + loss(l,i_ox)*dt) |
---|
750 | end do |
---|
751 | else |
---|
752 | do l = 1,lswitch-1 |
---|
753 | cc(l,i_o) = (cc0(l,i_o) + production(l,i_o)*dt) |
---|
754 | $ /(1. + loss(l,i_o)*dt) |
---|
755 | cc(l,i_o3) = (cc0(l,i_o3) + production(l,i_o3)*dt) |
---|
756 | $ /(1. + loss(l,i_o3)*dt) |
---|
757 | cc(l,i_ox) = cc(l,i_o) + cc(l,i_o3) |
---|
758 | end do |
---|
759 | end if |
---|
760 | c |
---|
761 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
762 | c end of loop over iterations |
---|
763 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
764 | c |
---|
765 | end do |
---|
766 | c |
---|
767 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
768 | c density -> volume mixing ratio conversion |
---|
769 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
770 | c |
---|
771 | do iesp = 1,nesp |
---|
772 | do l = 1,lswitch-1 |
---|
773 | rm(l,iesp) = max(cc(l,iesp)/dens(l), 1.e-30) |
---|
774 | end do |
---|
775 | end do |
---|
776 | c |
---|
777 | return |
---|
778 | end |
---|
779 | c |
---|
780 | c***************************************************************** |
---|
781 | c |
---|
782 | subroutine phot(lswitch, press, temp, sza, tauref, dist_sol, |
---|
783 | $ rmco2, rmo3, j) |
---|
784 | c |
---|
785 | c***************************************************************** |
---|
786 | c |
---|
787 | implicit none |
---|
788 | c |
---|
789 | #include "dimensions.h" |
---|
790 | #include "dimphys.h" |
---|
791 | #include "chimiedata.h" |
---|
792 | #include "comcstfi.h" |
---|
793 | c |
---|
794 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
795 | c inputs: |
---|
796 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
797 | c |
---|
798 | integer lswitch ! interface level between chemistries |
---|
799 | real press(nlayermx) ! pressure (hPa) |
---|
800 | real temp(nlayermx) ! temperature (K) |
---|
801 | real sza ! solar zenith angle (deg) |
---|
802 | real tauref ! optical depth at 7 hpa |
---|
803 | real dist_sol ! sun distance (AU) |
---|
804 | real rmco2(nlayermx) ! co2 mixing ratio |
---|
805 | real rmo3(nlayermx) ! ozone mixing ratio |
---|
806 | c |
---|
807 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
808 | c output: |
---|
809 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
810 | c |
---|
811 | real j(nlayermx,nd) ! interpolated photolysis rates (s-1) |
---|
812 | c |
---|
813 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
814 | c local: |
---|
815 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
816 | c |
---|
817 | integer icol, ij, indsza, indtau, indcol, indozo, indtemp, |
---|
818 | $ iozo, isza, itau, it, l |
---|
819 | c |
---|
820 | real col(nlayermx) ! overhead air column (molecule cm-2) |
---|
821 | real colo3(nlayermx) ! overhead ozone column (molecule cm-2) |
---|
822 | real poids(2,2,2,2,2) ! 5D interpolation weights |
---|
823 | real tref ! temperature at 1.9 hPa in the gcm (K) |
---|
824 | real table_temp(ntemp) ! temperatures at 1.9 hPa in jmars (K) |
---|
825 | real cinf, csup, cicol, |
---|
826 | $ ciozo, cisza, citemp, citau |
---|
827 | real colo3min, dp, coef |
---|
828 | real ratio_o3(nlayermx) |
---|
829 | real tau |
---|
830 | c |
---|
831 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
832 | c day/night criterion |
---|
833 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
834 | c |
---|
835 | if (sza .le. 95.) then |
---|
836 | c |
---|
837 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
838 | c temperatures at 1.9 hPa in lookup table |
---|
839 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
840 | c |
---|
841 | table_temp(1) = 226.2 |
---|
842 | table_temp(2) = 206.2 |
---|
843 | table_temp(3) = 186.2 |
---|
844 | table_temp(4) = 169.8 |
---|
845 | c |
---|
846 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
847 | c interpolation in solar zenith angle |
---|
848 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
849 | c |
---|
850 | indsza = nsza - 1 |
---|
851 | do isza = 1,nsza |
---|
852 | if (szatab(isza) .ge. sza) then |
---|
853 | indsza = min(indsza,isza - 1) |
---|
854 | indsza = max(indsza, 1) |
---|
855 | end if |
---|
856 | end do |
---|
857 | cisza = (sza - szatab(indsza)) |
---|
858 | $ /(szatab(indsza + 1) - szatab(indsza)) |
---|
859 | c |
---|
860 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
861 | c interpolation in dust (tau) |
---|
862 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
863 | c |
---|
864 | tau = min(tauref, tautab(ntau)) |
---|
865 | tau = max(tau, tautab(1)) |
---|
866 | c |
---|
867 | indtau = ntau - 1 |
---|
868 | do itau = 1,ntau |
---|
869 | if (tautab(itau) .ge. tau) then |
---|
870 | indtau = min(indtau,itau - 1) |
---|
871 | indtau = max(indtau, 1) |
---|
872 | end if |
---|
873 | end do |
---|
874 | citau = (tau - tautab(indtau)) |
---|
875 | $ /(tautab(indtau + 1) - tautab(indtau)) |
---|
876 | c |
---|
877 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
878 | c co2 and ozone columns |
---|
879 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
880 | c |
---|
881 | c co2 column at model top (molecule.cm-2) |
---|
882 | c |
---|
883 | col(lswitch-1) = 6.022e22*rmco2(lswitch-1)*press(lswitch-1)*100. |
---|
884 | $ /(mugaz*g) |
---|
885 | c |
---|
886 | c ozone column at model top |
---|
887 | c |
---|
888 | colo3(lswitch-1) = 0. |
---|
889 | c |
---|
890 | c co2 and ozone columns for other levels (molecule.cm-2) |
---|
891 | c |
---|
892 | do l = lswitch-2,1,-1 |
---|
893 | dp = (press(l) - press(l+1))*100. |
---|
894 | col(l) = col(l+1) |
---|
895 | $ + (rmco2(l+1) + rmco2(l))*0.5 |
---|
896 | $ *6.022e22*dp/(mugaz*g) |
---|
897 | col(l) = min(col(l), colairtab(0)) |
---|
898 | colo3(l) = colo3(l+1) |
---|
899 | $ + (rmo3(l+1) + rmo3(l))*0.5 |
---|
900 | $ *6.022e22*dp/(mugaz*g) |
---|
901 | end do |
---|
902 | c |
---|
903 | c ratio ozone column/minimal theoretical column (0.1 micron-atm) |
---|
904 | c |
---|
905 | c ro3 = 7.171e-10 is the o3 mixing ratio for a uniform |
---|
906 | c profile giving a column 0.1 micron-atmosphere at |
---|
907 | c a surface pressure of 10 hpa. |
---|
908 | c |
---|
909 | do l = 1,lswitch-1 |
---|
910 | colo3min = col(l)*7.171e-10 |
---|
911 | ratio_o3(l) = colo3(l)/colo3min |
---|
912 | ratio_o3(l) = min(ratio_o3(l), table_ozo(nozo)*10.) |
---|
913 | ratio_o3(l) = max(ratio_o3(l), 1.) |
---|
914 | end do |
---|
915 | c |
---|
916 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
917 | c temperature dependence |
---|
918 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
919 | c |
---|
920 | c 1) search for temperature at 1.9 hPa (tref): vertical interpolation |
---|
921 | c |
---|
922 | tref = temp(1) |
---|
923 | do l = (lswitch-1)-1,1,-1 |
---|
924 | if (press(l) .gt. 1.9) then |
---|
925 | cinf = (press(l) - 1.9) |
---|
926 | $ /(press(l) - press(l+1)) |
---|
927 | csup = 1. - cinf |
---|
928 | tref = cinf*temp(l+1) + csup*temp(l) |
---|
929 | go to 10 |
---|
930 | end if |
---|
931 | end do |
---|
932 | 10 continue |
---|
933 | c |
---|
934 | c 2) interpolation in temperature |
---|
935 | c |
---|
936 | tref = min(tref,table_temp(1)) |
---|
937 | tref = max(tref,table_temp(ntemp)) |
---|
938 | c |
---|
939 | do it = 2, ntemp |
---|
940 | if (table_temp(it) .le. tref) then |
---|
941 | citemp = (log(tref) - log(table_temp(it))) |
---|
942 | $ /(log(table_temp(it-1)) - log(table_temp(it))) |
---|
943 | indtemp = it - 1 |
---|
944 | goto 20 |
---|
945 | end if |
---|
946 | end do |
---|
947 | 20 continue |
---|
948 | c |
---|
949 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
950 | c loop over vertical levels |
---|
951 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
952 | c |
---|
953 | do l = 1,lswitch-1 |
---|
954 | c |
---|
955 | c interpolation in air column |
---|
956 | c |
---|
957 | do icol = 0,200 |
---|
958 | if (colairtab(icol) .lt. col(l)) then |
---|
959 | cicol = (log(col(l)) - log(colairtab(icol))) |
---|
960 | $ /(log(colairtab(icol-1)) - log(colairtab(icol))) |
---|
961 | indcol = icol - 1 |
---|
962 | goto 30 |
---|
963 | end if |
---|
964 | end do |
---|
965 | 30 continue |
---|
966 | c |
---|
967 | cc interpolation in ozone column |
---|
968 | c |
---|
969 | indozo = nozo - 1 |
---|
970 | do iozo = 1,nozo |
---|
971 | if (table_ozo(iozo)*10. .ge. ratio_o3(l)) then |
---|
972 | indozo = min(indozo, iozo - 1) |
---|
973 | indozo = max(indozo, 1) |
---|
974 | end if |
---|
975 | end do |
---|
976 | ciozo = (ratio_o3(l) - table_ozo(indozo)*10.) |
---|
977 | $ /(table_ozo(indozo + 1)*10. - table_ozo(indozo)*10.) |
---|
978 | c |
---|
979 | cc 4-dimensional interpolation weights |
---|
980 | c |
---|
981 | c poids(temp,sza,co2,o3,tau) |
---|
982 | c |
---|
983 | poids(1,1,1,1,1) = citemp |
---|
984 | $ *(1.-cisza)*cicol*(1.-ciozo)*(1.-citau) |
---|
985 | poids(1,1,1,2,1) = citemp |
---|
986 | $ *(1.-cisza)*cicol*ciozo*(1.-citau) |
---|
987 | poids(1,1,2,1,1) = citemp |
---|
988 | $ *(1.-cisza)*(1.-cicol)*(1.-ciozo)*(1.-citau) |
---|
989 | poids(1,1,2,2,1) = citemp |
---|
990 | $ *(1.-cisza)*(1.-cicol)*ciozo*(1.-citau) |
---|
991 | poids(1,2,1,1,1) = citemp |
---|
992 | $ *cisza*cicol*(1.-ciozo)*(1.-citau) |
---|
993 | poids(1,2,1,2,1) = citemp |
---|
994 | $ *cisza*cicol*ciozo*(1.-citau) |
---|
995 | poids(1,2,2,1,1) = citemp |
---|
996 | $ *cisza*(1.-cicol)*(1.-ciozo)*(1.-citau) |
---|
997 | poids(1,2,2,2,1) = citemp |
---|
998 | $ *cisza*(1.-cicol)*ciozo*(1.-citau) |
---|
999 | poids(2,1,1,1,1) = (1.-citemp) |
---|
1000 | $ *(1.-cisza)*cicol*(1.-ciozo)*(1.-citau) |
---|
1001 | poids(2,1,1,2,1) = (1.-citemp) |
---|
1002 | $ *(1.-cisza)*cicol*ciozo*(1.-citau) |
---|
1003 | poids(2,1,2,1,1) = (1.-citemp) |
---|
1004 | $ *(1.-cisza)*(1.-cicol)*(1.-ciozo)*(1.-citau) |
---|
1005 | poids(2,1,2,2,1) = (1.-citemp) |
---|
1006 | $ *(1.-cisza)*(1.-cicol)*ciozo*(1.-citau) |
---|
1007 | poids(2,2,1,1,1) = (1.-citemp) |
---|
1008 | $ *cisza*cicol*(1.-ciozo)*(1.-citau) |
---|
1009 | poids(2,2,1,2,1) = (1.-citemp) |
---|
1010 | $ *cisza*cicol*ciozo*(1.-citau) |
---|
1011 | poids(2,2,2,1,1) = (1.-citemp) |
---|
1012 | $ *cisza*(1.-cicol)*(1.-ciozo)*(1.-citau) |
---|
1013 | poids(2,2,2,2,1) = (1.-citemp) |
---|
1014 | $ *cisza*(1.-cicol)*ciozo*(1.-citau) |
---|
1015 | c |
---|
1016 | poids(1,1,1,1,2) = citemp |
---|
1017 | $ *(1.-cisza)*cicol*(1.-ciozo)*citau |
---|
1018 | poids(1,1,1,2,2) = citemp |
---|
1019 | $ *(1.-cisza)*cicol*ciozo*citau |
---|
1020 | poids(1,1,2,1,2) = citemp |
---|
1021 | $ *(1.-cisza)*(1.-cicol)*(1.-ciozo)*citau |
---|
1022 | poids(1,1,2,2,2) = citemp |
---|
1023 | $ *(1.-cisza)*(1.-cicol)*ciozo*citau |
---|
1024 | poids(1,2,1,1,2) = citemp |
---|
1025 | $ *cisza*cicol*(1.-ciozo)*citau |
---|
1026 | poids(1,2,1,2,2) = citemp |
---|
1027 | $ *cisza*cicol*ciozo*citau |
---|
1028 | poids(1,2,2,1,2) = citemp |
---|
1029 | $ *cisza*(1.-cicol)*(1.-ciozo)*citau |
---|
1030 | poids(1,2,2,2,2) = citemp |
---|
1031 | $ *cisza*(1.-cicol)*ciozo*citau |
---|
1032 | poids(2,1,1,1,2) = (1.-citemp) |
---|
1033 | $ *(1.-cisza)*cicol*(1.-ciozo)*citau |
---|
1034 | poids(2,1,1,2,2) = (1.-citemp) |
---|
1035 | $ *(1.-cisza)*cicol*ciozo*citau |
---|
1036 | poids(2,1,2,1,2) = (1.-citemp) |
---|
1037 | $ *(1.-cisza)*(1.-cicol)*(1.-ciozo)*citau |
---|
1038 | poids(2,1,2,2,2) = (1.-citemp) |
---|
1039 | $ *(1.-cisza)*(1.-cicol)*ciozo*citau |
---|
1040 | poids(2,2,1,1,2) = (1.-citemp) |
---|
1041 | $ *cisza*cicol*(1.-ciozo)*citau |
---|
1042 | poids(2,2,1,2,2) = (1.-citemp) |
---|
1043 | $ *cisza*cicol*ciozo*citau |
---|
1044 | poids(2,2,2,1,2) = (1.-citemp) |
---|
1045 | $ *cisza*(1.-cicol)*(1.-ciozo)*citau |
---|
1046 | poids(2,2,2,2,2) = (1.-citemp) |
---|
1047 | $ *cisza*(1.-cicol)*ciozo*citau |
---|
1048 | c |
---|
1049 | cc 4-dimensional interpolation in the lookup table |
---|
1050 | c |
---|
1051 | do ij = 1,nd |
---|
1052 | j(l,ij) = |
---|
1053 | $ poids(1,1,1,1,1) |
---|
1054 | $ *jphot(indtemp,indsza,indcol,indozo,indtau,ij) |
---|
1055 | $ + poids(1,1,1,2,1) |
---|
1056 | $ *jphot(indtemp,indsza,indcol,indozo+1,indtau,ij) |
---|
1057 | $ + poids(1,1,2,1,1) |
---|
1058 | $ *jphot(indtemp,indsza,indcol+1,indozo,indtau,ij) |
---|
1059 | $ + poids(1,1,2,2,1) |
---|
1060 | $ *jphot(indtemp,indsza,indcol+1,indozo+1,indtau,ij) |
---|
1061 | $ + poids(1,2,1,1,1) |
---|
1062 | $ *jphot(indtemp,indsza+1,indcol,indozo,indtau,ij) |
---|
1063 | $ + poids(1,2,1,2,1) |
---|
1064 | $ *jphot(indtemp,indsza+1,indcol,indozo+1,indtau,ij) |
---|
1065 | $ + poids(1,2,2,1,1) |
---|
1066 | $ *jphot(indtemp,indsza+1,indcol+1,indozo,indtau,ij) |
---|
1067 | $ + poids(1,2,2,2,1) |
---|
1068 | $ *jphot(indtemp,indsza+1,indcol+1,indozo+1,indtau,ij) |
---|
1069 | $ + poids(2,1,1,1,1) |
---|
1070 | $ *jphot(indtemp+1,indsza,indcol,indozo,indtau,ij) |
---|
1071 | $ + poids(2,1,1,2,1) |
---|
1072 | $ *jphot(indtemp+1,indsza,indcol,indozo+1,indtau,ij) |
---|
1073 | $ + poids(2,1,2,1,1) |
---|
1074 | $ *jphot(indtemp+1,indsza,indcol+1,indozo,indtau,ij) |
---|
1075 | $ + poids(2,1,2,2,1) |
---|
1076 | $ *jphot(indtemp+1,indsza,indcol+1,indozo+1,indtau,ij) |
---|
1077 | $ + poids(2,2,1,1,1) |
---|
1078 | $ *jphot(indtemp+1,indsza+1,indcol,indozo,indtau,ij) |
---|
1079 | $ + poids(2,2,1,2,1) |
---|
1080 | $ *jphot(indtemp+1,indsza+1,indcol,indozo+1,indtau,ij) |
---|
1081 | $ + poids(2,2,2,1,1) |
---|
1082 | $ *jphot(indtemp+1,indsza+1,indcol+1,indozo,indtau,ij) |
---|
1083 | $ + poids(2,2,2,2,1) |
---|
1084 | $ *jphot(indtemp+1,indsza+1,indcol+1,indozo+1,indtau,ij) |
---|
1085 | c |
---|
1086 | $ + poids(1,1,1,1,2) |
---|
1087 | $ *jphot(indtemp,indsza,indcol,indozo,indtau+1,ij) |
---|
1088 | $ + poids(1,1,1,2,2) |
---|
1089 | $ *jphot(indtemp,indsza,indcol,indozo+1,indtau+1,ij) |
---|
1090 | $ + poids(1,1,2,1,2) |
---|
1091 | $ *jphot(indtemp,indsza,indcol+1,indozo,indtau+1,ij) |
---|
1092 | $ + poids(1,1,2,2,2) |
---|
1093 | $ *jphot(indtemp,indsza,indcol+1,indozo+1,indtau+1,ij) |
---|
1094 | $ + poids(1,2,1,1,2) |
---|
1095 | $ *jphot(indtemp,indsza+1,indcol,indozo,indtau+1,ij) |
---|
1096 | $ + poids(1,2,1,2,2) |
---|
1097 | $ *jphot(indtemp,indsza+1,indcol,indozo+1,indtau+1,ij) |
---|
1098 | $ + poids(1,2,2,1,2) |
---|
1099 | $ *jphot(indtemp,indsza+1,indcol+1,indozo,indtau+1,ij) |
---|
1100 | $ + poids(1,2,2,2,2) |
---|
1101 | $ *jphot(indtemp,indsza+1,indcol+1,indozo+1,indtau+1,ij) |
---|
1102 | $ + poids(2,1,1,1,2) |
---|
1103 | $ *jphot(indtemp+1,indsza,indcol,indozo,indtau+1,ij) |
---|
1104 | $ + poids(2,1,1,2,2) |
---|
1105 | $ *jphot(indtemp+1,indsza,indcol,indozo+1,indtau+1,ij) |
---|
1106 | $ + poids(2,1,2,1,2) |
---|
1107 | $ *jphot(indtemp+1,indsza,indcol+1,indozo,indtau+1,ij) |
---|
1108 | $ + poids(2,1,2,2,2) |
---|
1109 | $ *jphot(indtemp+1,indsza,indcol+1,indozo+1,indtau+1,ij) |
---|
1110 | $ + poids(2,2,1,1,2) |
---|
1111 | $ *jphot(indtemp+1,indsza+1,indcol,indozo,indtau+1,ij) |
---|
1112 | $ + poids(2,2,1,2,2) |
---|
1113 | $ *jphot(indtemp+1,indsza+1,indcol,indozo+1,indtau+1,ij) |
---|
1114 | $ + poids(2,2,2,1,2) |
---|
1115 | $ *jphot(indtemp+1,indsza+1,indcol+1,indozo,indtau+1,ij) |
---|
1116 | $ + poids(2,2,2,2,2) |
---|
1117 | $ *jphot(indtemp+1,indsza+1,indcol+1,indozo+1,indtau+1,ij) |
---|
1118 | end do |
---|
1119 | c |
---|
1120 | cc correction for sun distance |
---|
1121 | c |
---|
1122 | do ij = 1,nd |
---|
1123 | j(l,ij) = j(l,ij)*(1.52/dist_sol)**2. |
---|
1124 | end do |
---|
1125 | c |
---|
1126 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1127 | c end of loop over vertical levels |
---|
1128 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1129 | c |
---|
1130 | end do |
---|
1131 | c |
---|
1132 | else |
---|
1133 | c |
---|
1134 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1135 | c night |
---|
1136 | ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1137 | c |
---|
1138 | do ij = 1,nd |
---|
1139 | do l = 1,lswitch-1 |
---|
1140 | j(l,ij) = 0. |
---|
1141 | end do |
---|
1142 | end do |
---|
1143 | c |
---|
1144 | end if |
---|
1145 | c |
---|
1146 | return |
---|
1147 | end |
---|
1148 | c |
---|
1149 | c***************************************************************** |
---|
1150 | c |
---|
1151 | subroutine gcmtochim(zycol, lswitch, nesp, rm) |
---|
1152 | c |
---|
1153 | c***************************************************************** |
---|
1154 | c |
---|
1155 | use tracer_mod, only: nqmx, igcm_co2, igcm_co, igcm_o, igcm_o1d, |
---|
1156 | & igcm_o2, igcm_o3, igcm_h, igcm_h2, igcm_oh, |
---|
1157 | & igcm_ho2, igcm_h2o2, igcm_n2, igcm_h2o_vap, |
---|
1158 | & igcm_ch4 |
---|
1159 | implicit none |
---|
1160 | c |
---|
1161 | #include "dimensions.h" |
---|
1162 | #include "dimphys.h" |
---|
1163 | #include "callkeys.h" |
---|
1164 | !#include "tracer.h" |
---|
1165 | c |
---|
1166 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1167 | c inputs: |
---|
1168 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1169 | c |
---|
1170 | real zycol(nlayermx,nqmx)! species volume mixing ratio in the gcm |
---|
1171 | c |
---|
1172 | integer nesp ! number of species in the chemistry |
---|
1173 | integer lswitch ! interface level between chemistries |
---|
1174 | c |
---|
1175 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1176 | c outputs: |
---|
1177 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1178 | c |
---|
1179 | real rm(nlayermx,nesp) ! species volume mixing ratio |
---|
1180 | c |
---|
1181 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1182 | c local: |
---|
1183 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1184 | c |
---|
1185 | integer l,iq |
---|
1186 | |
---|
1187 | c tracer indexes in the chemistry: |
---|
1188 | |
---|
1189 | integer,parameter :: i_co2 = 1 |
---|
1190 | integer,parameter :: i_co = 2 |
---|
1191 | integer,parameter :: i_o = 3 |
---|
1192 | integer,parameter :: i_o1d = 4 |
---|
1193 | integer,parameter :: i_o2 = 5 |
---|
1194 | integer,parameter :: i_o3 = 6 |
---|
1195 | integer,parameter :: i_h = 7 |
---|
1196 | integer,parameter :: i_h2 = 8 |
---|
1197 | integer,parameter :: i_oh = 9 |
---|
1198 | integer,parameter :: i_ho2 = 10 |
---|
1199 | integer,parameter :: i_h2o2 = 11 |
---|
1200 | integer,parameter :: i_ch4 = 12 |
---|
1201 | integer,parameter :: i_h2o = 13 |
---|
1202 | integer,parameter :: i_n2 = 14 |
---|
1203 | integer,parameter :: i_hox = 15 |
---|
1204 | integer,parameter :: i_ox = 16 |
---|
1205 | c |
---|
1206 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1207 | c initialise chemical species |
---|
1208 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1209 | c |
---|
1210 | do l = 1,lswitch-1 |
---|
1211 | rm(l,i_co2) = max(zycol(l, igcm_co2), 1.e-30) |
---|
1212 | rm(l,i_co) = max(zycol(l, igcm_co), 1.e-30) |
---|
1213 | rm(l,i_o) = max(zycol(l, igcm_o), 1.e-30) |
---|
1214 | rm(l,i_o1d) = max(zycol(l, igcm_o1d), 1.e-30) |
---|
1215 | rm(l,i_o2) = max(zycol(l, igcm_o2), 1.e-30) |
---|
1216 | rm(l,i_o3) = max(zycol(l, igcm_o3), 1.e-30) |
---|
1217 | rm(l,i_h) = max(zycol(l, igcm_h), 1.e-30) |
---|
1218 | rm(l,i_h2) = max(zycol(l, igcm_h2), 1.e-30) |
---|
1219 | rm(l,i_oh) = max(zycol(l, igcm_oh), 1.e-30) |
---|
1220 | rm(l,i_ho2) = max(zycol(l, igcm_ho2), 1.e-30) |
---|
1221 | rm(l,i_h2o2) = max(zycol(l, igcm_h2o2), 1.e-30) |
---|
1222 | rm(l,i_n2) = max(zycol(l, igcm_n2), 1.e-30) |
---|
1223 | rm(l,i_h2o) = max(zycol(l, igcm_h2o_vap), 1.e-30) |
---|
1224 | end do |
---|
1225 | |
---|
1226 | if (igcm_ch4 .eq. 0) then |
---|
1227 | do l = 1,lswitch-1 |
---|
1228 | rm(l,i_ch4) = 0. |
---|
1229 | end do |
---|
1230 | else |
---|
1231 | do l = 1,lswitch-1 |
---|
1232 | rm(l,i_ch4) = max(zycol(l,igcm_ch4), 1.e-30) |
---|
1233 | end do |
---|
1234 | end if |
---|
1235 | c |
---|
1236 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1237 | c initialise chemical families c |
---|
1238 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1239 | c |
---|
1240 | do l = 1,lswitch-1 |
---|
1241 | rm(l,i_hox) = rm(l,i_h) |
---|
1242 | $ + rm(l,i_oh) |
---|
1243 | $ + rm(l,i_ho2) |
---|
1244 | rm(l,i_ox) = rm(l,i_o) |
---|
1245 | $ + rm(l,i_o3) |
---|
1246 | end do |
---|
1247 | c |
---|
1248 | return |
---|
1249 | end |
---|
1250 | c |
---|
1251 | c***************************************************************** |
---|
1252 | c |
---|
1253 | subroutine chimtogcm(zycol, lswitch, nesp, rm) |
---|
1254 | c |
---|
1255 | c***************************************************************** |
---|
1256 | c |
---|
1257 | use tracer_mod, only: nqmx, igcm_co2, igcm_co, igcm_o, igcm_o1d, |
---|
1258 | & igcm_o2, igcm_o3, igcm_h, igcm_h2, igcm_oh, |
---|
1259 | & igcm_ho2, igcm_h2o2, igcm_n2, igcm_h2o_vap, |
---|
1260 | & igcm_ch4 |
---|
1261 | implicit none |
---|
1262 | c |
---|
1263 | #include "dimensions.h" |
---|
1264 | #include "dimphys.h" |
---|
1265 | #include "callkeys.h" |
---|
1266 | !#include "tracer.h" |
---|
1267 | c |
---|
1268 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1269 | c inputs: |
---|
1270 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1271 | c |
---|
1272 | integer nesp ! number of species in the chemistry |
---|
1273 | integer lswitch ! interface level between chemistries |
---|
1274 | c |
---|
1275 | real rm(nlayermx,nesp) ! species volume mixing ratio |
---|
1276 | c |
---|
1277 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1278 | c output: |
---|
1279 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1280 | c |
---|
1281 | real zycol(nlayermx,nqmx) ! species volume mixing ratio in the gcm |
---|
1282 | c |
---|
1283 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1284 | c local: |
---|
1285 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1286 | c |
---|
1287 | integer l,iq |
---|
1288 | |
---|
1289 | c tracer indexes in the chemistry: |
---|
1290 | |
---|
1291 | integer,parameter :: i_co2 = 1 |
---|
1292 | integer,parameter :: i_co = 2 |
---|
1293 | integer,parameter :: i_o = 3 |
---|
1294 | integer,parameter :: i_o1d = 4 |
---|
1295 | integer,parameter :: i_o2 = 5 |
---|
1296 | integer,parameter :: i_o3 = 6 |
---|
1297 | integer,parameter :: i_h = 7 |
---|
1298 | integer,parameter :: i_h2 = 8 |
---|
1299 | integer,parameter :: i_oh = 9 |
---|
1300 | integer,parameter :: i_ho2 = 10 |
---|
1301 | integer,parameter :: i_h2o2 = 11 |
---|
1302 | integer,parameter :: i_ch4 = 12 |
---|
1303 | integer,parameter :: i_h2o = 13 |
---|
1304 | integer,parameter :: i_n2 = 14 |
---|
1305 | integer,parameter :: i_hox = 15 |
---|
1306 | integer,parameter :: i_ox = 16 |
---|
1307 | c |
---|
1308 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1309 | c save mixing ratios for the gcm |
---|
1310 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1311 | c |
---|
1312 | do l = 1,lswitch-1 |
---|
1313 | zycol(l, igcm_co2) = rm(l,i_co2) |
---|
1314 | zycol(l, igcm_co) = rm(l,i_co) |
---|
1315 | zycol(l, igcm_o) = rm(l,i_o) |
---|
1316 | zycol(l, igcm_o1d) = rm(l,i_o1d) |
---|
1317 | zycol(l, igcm_o2) = rm(l,i_o2) |
---|
1318 | zycol(l, igcm_o3) = rm(l,i_o3) |
---|
1319 | zycol(l, igcm_h) = rm(l,i_h) |
---|
1320 | zycol(l, igcm_h2) = rm(l,i_h2) |
---|
1321 | zycol(l, igcm_oh) = rm(l,i_oh) |
---|
1322 | zycol(l, igcm_ho2) = rm(l,i_ho2) |
---|
1323 | zycol(l, igcm_h2o2) = rm(l,i_h2o2) |
---|
1324 | zycol(l, igcm_n2) = rm(l,i_n2) |
---|
1325 | zycol(l, igcm_h2o_vap) = rm(l,i_h2o) |
---|
1326 | end do |
---|
1327 | |
---|
1328 | if (igcm_ch4 .ne. 0) then |
---|
1329 | do l = 1,lswitch-1 |
---|
1330 | zycol(l,igcm_ch4) = rm(l,i_ch4) |
---|
1331 | end do |
---|
1332 | end if |
---|
1333 | c |
---|
1334 | return |
---|
1335 | end |
---|
1336 | c |
---|
1337 | c***************************************************************** |
---|
1338 | c |
---|
1339 | subroutine chemrates(lswitch, dens, press, t, |
---|
1340 | $ surfdust1d, surfice1d, |
---|
1341 | $ a001, a002, a003, |
---|
1342 | $ b001, b002, b003, b004, b005, b006, |
---|
1343 | $ b007, b008, b009, |
---|
1344 | $ c001, c002, c003, c004, c005, c006, |
---|
1345 | $ c007, c008, c009, c010, c011, c012, |
---|
1346 | $ c013, c014, c015, c016, c017, c018, |
---|
1347 | $ d001, d002, d003, |
---|
1348 | $ e001, e002, e003, |
---|
1349 | $ h001, h002, h003, h004, h005, |
---|
1350 | $ t001, t002, t003, tau) |
---|
1351 | c |
---|
1352 | c***************************************************************** |
---|
1353 | c |
---|
1354 | implicit none |
---|
1355 | c |
---|
1356 | #include "dimensions.h" |
---|
1357 | #include "dimphys.h" |
---|
1358 | #include "comcstfi.h" |
---|
1359 | c |
---|
1360 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1361 | c inputs: c |
---|
1362 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1363 | c |
---|
1364 | integer lswitch ! interface level between chemistries |
---|
1365 | |
---|
1366 | real dens(nlayermx) ! density (cm-3) |
---|
1367 | real press(nlayermx) ! pressure (hpa) |
---|
1368 | real t(nlayermx) ! temperature (k) |
---|
1369 | real surfdust1d(nlayermx) ! dust surface area (cm^2/cm^3) |
---|
1370 | real surfice1d(nlayermx) ! ice surface area (cm^2/cm^3) |
---|
1371 | real tribo ! switch for triboelectricity |
---|
1372 | real tau ! dust opacity at 7 hpa |
---|
1373 | c |
---|
1374 | parameter (tribo = 0.) ! switch for triboelectricity |
---|
1375 | c |
---|
1376 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1377 | c outputs: c |
---|
1378 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1379 | c |
---|
1380 | real a001(nlayermx), a002(nlayermx), a003(nlayermx) |
---|
1381 | real b001(nlayermx), b002(nlayermx), b003(nlayermx), |
---|
1382 | $ b004(nlayermx), b005(nlayermx), b006(nlayermx), |
---|
1383 | $ b007(nlayermx), b008(nlayermx), b009(nlayermx) |
---|
1384 | real c001(nlayermx), c002(nlayermx), c003(nlayermx), |
---|
1385 | $ c004(nlayermx), c005(nlayermx), c006(nlayermx), |
---|
1386 | $ c007(nlayermx), c008(nlayermx), c009(nlayermx), |
---|
1387 | $ c010(nlayermx), c011(nlayermx), c012(nlayermx), |
---|
1388 | $ c013(nlayermx), c014(nlayermx), c015(nlayermx), |
---|
1389 | $ c016(nlayermx), c017(nlayermx), c018(nlayermx) |
---|
1390 | real d001(nlayermx), d002(nlayermx), d003(nlayermx) |
---|
1391 | real e001(nlayermx), e002(nlayermx), e003(nlayermx) |
---|
1392 | real h001(nlayermx), h002(nlayermx), h003(nlayermx), |
---|
1393 | $ h004(nlayermx), h005(nlayermx) |
---|
1394 | real t001(nlayermx), t002(nlayermx), t003(nlayermx) |
---|
1395 | c |
---|
1396 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1397 | c local: c |
---|
1398 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1399 | c |
---|
1400 | real ak0, ak1, rate, rate1, rate2, xpo, xpo1, xpo2 |
---|
1401 | real ef, efmax, lossh2o, lossch4, lossco2 |
---|
1402 | c |
---|
1403 | integer l |
---|
1404 | real k1a, k1b, k1a0, k1b0, k1ainf |
---|
1405 | real x, y, fc, fx |
---|
1406 | c |
---|
1407 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1408 | c compute reaction rates |
---|
1409 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1410 | c |
---|
1411 | do l = 1,lswitch-1 |
---|
1412 | c |
---|
1413 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1414 | c oxygen compounds |
---|
1415 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1416 | c |
---|
1417 | ccc a001: o + o2 + co2 -> o3 + co2 |
---|
1418 | c |
---|
1419 | c jpl 2003 |
---|
1420 | c |
---|
1421 | c co2 efficiency as a third body (2.075) |
---|
1422 | c from sehested et al., j. geophys. res., 100, 1995. |
---|
1423 | c |
---|
1424 | a001(l) = 2.075 |
---|
1425 | $ *6.0e-34*(t(l)/300.)**(-2.4)*dens(l) |
---|
1426 | c |
---|
1427 | c mulcahy and williams, 1968 |
---|
1428 | c |
---|
1429 | c a001(l) = 2.68e-33*(t(l)/298.)**(-2.4)*dens(l) |
---|
1430 | c |
---|
1431 | c nair et al., 1994 |
---|
1432 | c |
---|
1433 | c a001(l) = 1.3e-34*exp(724./t(l))*dens(l) |
---|
1434 | c |
---|
1435 | ccc a002: o + o + co2 -> o2 + co2 |
---|
1436 | c |
---|
1437 | c Tsang and Hampson, J. Chem. Phys. Ref. Data, 15, 1087, 1986 |
---|
1438 | c |
---|
1439 | c a002(l) = 2.5*5.2e-35*exp(900./t(l))*dens(l) |
---|
1440 | c |
---|
1441 | c Campbell and Gray, Chem. Phys. Lett., 18, 607, 1973 |
---|
1442 | c |
---|
1443 | c a002(l) = 1.2e-32*(300./t(l))**(2.0)*dens(l) ! yung expression |
---|
1444 | c |
---|
1445 | a002(l) = 2.5*9.46e-34*exp(485./t(l))*dens(l) ! nist expression |
---|
1446 | c |
---|
1447 | c baulch et al., 1976 confirmed by smith and robertson, 2008 |
---|
1448 | c |
---|
1449 | c a002(l) = 2.5*2.76e-34*exp(720./t(l))*dens(l) |
---|
1450 | c |
---|
1451 | ccc a003: o + o3 -> o2 + o2 |
---|
1452 | c |
---|
1453 | c jpl 2003 |
---|
1454 | c |
---|
1455 | a003(l) = 8.0e-12*exp(-2060./t(l)) |
---|
1456 | c |
---|
1457 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1458 | c reactions with o(1d) |
---|
1459 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1460 | c |
---|
1461 | ccc b001: o(1d) + co2 -> o + co2 |
---|
1462 | c |
---|
1463 | c jpl 2003 |
---|
1464 | c |
---|
1465 | c b001(l) = 7.4e-11*exp(120./t(l)) |
---|
1466 | c |
---|
1467 | c jpl 2006 |
---|
1468 | c |
---|
1469 | b001(l) = 7.5e-11*exp(115./t(l)) |
---|
1470 | c |
---|
1471 | ccc b002: o(1d) + h2o -> oh + oh |
---|
1472 | c |
---|
1473 | c jpl 2003 |
---|
1474 | c |
---|
1475 | c b002(l) = 2.2e-10 |
---|
1476 | c |
---|
1477 | c jpl 2006 |
---|
1478 | c |
---|
1479 | b002(l) = 1.63e-10*exp(60./t(l)) |
---|
1480 | c |
---|
1481 | ccc b003: o(1d) + h2 -> oh + h |
---|
1482 | c |
---|
1483 | c jpl 2011 |
---|
1484 | c |
---|
1485 | b003(l) = 1.2e-10 |
---|
1486 | c |
---|
1487 | ccc b004: o(1d) + o2 -> o + o2 |
---|
1488 | c |
---|
1489 | c jpl 2003 |
---|
1490 | c |
---|
1491 | c b004(l) = 3.2e-11*exp(70./t(l)) |
---|
1492 | c |
---|
1493 | c jpl 2006 |
---|
1494 | c |
---|
1495 | b004(l) = 3.3e-11*exp(55./t(l)) |
---|
1496 | c |
---|
1497 | ccc b005: o(1d) + o3 -> o2 + o2 |
---|
1498 | c |
---|
1499 | c jpl 2003 |
---|
1500 | c |
---|
1501 | b005(l) = 1.2e-10 |
---|
1502 | c |
---|
1503 | ccc b006: o(1d) + o3 -> o2 + o + o |
---|
1504 | c |
---|
1505 | c jpl 2003 |
---|
1506 | c |
---|
1507 | b006(l) = 1.2e-10 |
---|
1508 | c |
---|
1509 | ccc b007: o(1d) + ch4 -> ch3 + oh |
---|
1510 | c |
---|
1511 | c jpl 2003 |
---|
1512 | c |
---|
1513 | b007(l) = 1.5e-10*0.75 |
---|
1514 | c |
---|
1515 | ccc b008: o(1d) + ch4 -> ch3o + h |
---|
1516 | c |
---|
1517 | c jpl 2003 |
---|
1518 | c |
---|
1519 | b008(l) = 1.5e-10*0.20 |
---|
1520 | c |
---|
1521 | ccc b009: o(1d) + ch4 -> ch2o + h2 |
---|
1522 | c |
---|
1523 | c jpl 2003 |
---|
1524 | c |
---|
1525 | b009(l) = 1.5e-10*0.05 |
---|
1526 | c |
---|
1527 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1528 | c hydrogen compounds |
---|
1529 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1530 | c |
---|
1531 | ccc c001: o + ho2 -> oh + o2 |
---|
1532 | c |
---|
1533 | c jpl 2003 |
---|
1534 | c |
---|
1535 | c001(l) = 3.0e-11*exp(200./t(l)) |
---|
1536 | c |
---|
1537 | ccc c002: o + oh -> o2 + h |
---|
1538 | c |
---|
1539 | c jpl 2011 |
---|
1540 | c |
---|
1541 | c002(l) = 1.8e-11*exp(180./t(l)) |
---|
1542 | c |
---|
1543 | c robertson and smith, j. chem. phys. a 110, 6673, 2006 |
---|
1544 | c |
---|
1545 | c c002(l) = 11.2e-11*t(l)**(-0.32)*exp(177./t(l)) |
---|
1546 | c |
---|
1547 | ccc c003: h + o3 -> oh + o2 |
---|
1548 | c |
---|
1549 | c jpl 2003 |
---|
1550 | c |
---|
1551 | c003(l) = 1.4e-10*exp(-470./t(l)) |
---|
1552 | c |
---|
1553 | ccc c004: h + ho2 -> oh + oh |
---|
1554 | c |
---|
1555 | c jpl 2003 |
---|
1556 | c |
---|
1557 | c c004(l) = 8.1e-11*0.90 |
---|
1558 | c |
---|
1559 | c jpl 2006 |
---|
1560 | c |
---|
1561 | c004(l) = 7.2e-11 |
---|
1562 | c |
---|
1563 | ccc c005: h + ho2 -> h2 + o2 |
---|
1564 | c |
---|
1565 | c jpl 2003 |
---|
1566 | c |
---|
1567 | c c005(l) = 8.1e-11*0.08 |
---|
1568 | c |
---|
1569 | c jpl 2006 |
---|
1570 | c |
---|
1571 | c005(l) = 6.9e-12 |
---|
1572 | c |
---|
1573 | ccc c006: h + ho2 -> h2o + o |
---|
1574 | c |
---|
1575 | c jpl 2003 |
---|
1576 | c |
---|
1577 | c c006(l) = 8.1e-11*0.02 |
---|
1578 | c |
---|
1579 | c jpl 2006 |
---|
1580 | c |
---|
1581 | c006(l) = 1.6e-12 |
---|
1582 | c |
---|
1583 | ccc c007: oh + ho2 -> h2o + o2 |
---|
1584 | c |
---|
1585 | c jpl 2003 |
---|
1586 | c |
---|
1587 | c007(l) = 4.8e-11*exp(250./t(l)) |
---|
1588 | c |
---|
1589 | c jpl 2003 +20% d'apres canty et al., grl, 2006 |
---|
1590 | c |
---|
1591 | c c007(l) = 4.8e-11*exp(250./t(l))*1.2 |
---|
1592 | c |
---|
1593 | ccc c008: ho2 + ho2 -> h2o2 + o2 |
---|
1594 | c |
---|
1595 | c jpl 2003 |
---|
1596 | c |
---|
1597 | c c008(l) = 2.3e-13*exp(600./t(l)) |
---|
1598 | c |
---|
1599 | c christensen et al., grl, 13, 2002 |
---|
1600 | c |
---|
1601 | c008(l) = 1.5e-12*exp(19./t(l)) |
---|
1602 | c |
---|
1603 | ccc c009: oh + h2o2 -> h2o + ho2 |
---|
1604 | c |
---|
1605 | c jpl 2003 |
---|
1606 | c |
---|
1607 | c c009(l) = 2.9e-12*exp(-160./t(l)) |
---|
1608 | c |
---|
1609 | c jpl 2006 |
---|
1610 | c |
---|
1611 | c009(l) = 1.8e-12 |
---|
1612 | c |
---|
1613 | ccc c010: oh + h2 -> h2o + h |
---|
1614 | c |
---|
1615 | c jpl 2003 |
---|
1616 | c |
---|
1617 | c c010(l) = 5.5e-12*exp(-2000./t(l)) |
---|
1618 | c |
---|
1619 | c jpl 2006 |
---|
1620 | c |
---|
1621 | c010(l) = 2.8e-12*exp(-1800./t(l)) |
---|
1622 | c |
---|
1623 | ccc c011: h + o2 + co2 -> ho2 + co2 |
---|
1624 | c |
---|
1625 | c jpl 2011 |
---|
1626 | c |
---|
1627 | ak0 = 2.5*4.4e-32*(t(l)/300.)**(-1.3) |
---|
1628 | ak1 = 7.5e-11*(t(l)/300.)**(0.2) |
---|
1629 | c |
---|
1630 | rate = (ak0*dens(l))/(1. + ak0*dens(l)/ak1) |
---|
1631 | xpo = 1./(1. + alog10((ak0*dens(l))/ak1)**2) |
---|
1632 | c011(l) = rate*0.6**xpo |
---|
1633 | c |
---|
1634 | ccc c012: o + h2o2 -> oh + ho2 |
---|
1635 | c |
---|
1636 | c jpl 2003 |
---|
1637 | c |
---|
1638 | c012(l) = 1.4e-12*exp(-2000./t(l)) |
---|
1639 | c |
---|
1640 | ccc c013: oh + oh -> h2o + o |
---|
1641 | c |
---|
1642 | c jpl 2003 |
---|
1643 | c |
---|
1644 | c c013(l) = 4.2e-12*exp(-240./t(l)) |
---|
1645 | c |
---|
1646 | c jpl 2006 |
---|
1647 | c |
---|
1648 | c013(l) = 1.8e-12 |
---|
1649 | c |
---|
1650 | ccc c014: oh + o3 -> ho2 + o2 |
---|
1651 | c |
---|
1652 | c jpl 2003 |
---|
1653 | c |
---|
1654 | c014(l) = 1.7e-12*exp(-940./t(l)) |
---|
1655 | c |
---|
1656 | c jpl 2000 |
---|
1657 | c |
---|
1658 | c c014(l) = 1.5e-12*exp(-880./t(l)) |
---|
1659 | c |
---|
1660 | c nair et al., 1994 (jpl 1997) |
---|
1661 | c |
---|
1662 | c c014(l) = 1.6e-12*exp(-940./t(l)) |
---|
1663 | c |
---|
1664 | ccc c015: ho2 + o3 -> oh + o2 + o2 |
---|
1665 | c |
---|
1666 | c jpl 2003 |
---|
1667 | c |
---|
1668 | c015(l) = 1.0e-14*exp(-490./t(l)) |
---|
1669 | c |
---|
1670 | c jpl 2000 |
---|
1671 | c |
---|
1672 | c c015(l) = 2.0e-14*exp(-680./t(l)) |
---|
1673 | c |
---|
1674 | c nair et al., 1994 (jpl 1997) |
---|
1675 | c |
---|
1676 | c c015(l) = 1.1e-14*exp(-500./t(l)) |
---|
1677 | c |
---|
1678 | ccc c016: ho2 + ho2 + co2 -> h2o2 + o2 + co2 |
---|
1679 | c |
---|
1680 | c jpl 2011 |
---|
1681 | c |
---|
1682 | c016(l) = 2.5*2.1e-33 |
---|
1683 | $ *exp(920./t(l))*dens(l) |
---|
1684 | c |
---|
1685 | ccc c017: oh + oh + co2 -> h2o2 + co2 |
---|
1686 | c |
---|
1687 | c jpl 2003 |
---|
1688 | c |
---|
1689 | ak0 = 2.5*6.9e-31*(t(l)/300.)**(-1.0) |
---|
1690 | ak1 = 2.6e-11*(t(l)/300.)**(0.0) |
---|
1691 | c |
---|
1692 | c jpl 1997 |
---|
1693 | c |
---|
1694 | c ak0 = 2.5*6.2e-31*(t(l)/300.)**(-1.0) |
---|
1695 | c ak1 = 2.6e-11*(t(l)/300.)**(0.0) |
---|
1696 | c |
---|
1697 | c nair et al., 1994 |
---|
1698 | c |
---|
1699 | c ak0 = 2.5*7.1e-31*(t(l)/300.)**(-0.8) |
---|
1700 | c ak1 = 1.5e-11*(t(l)/300.)**(0.0) |
---|
1701 | c |
---|
1702 | rate = (ak0*dens(l))/(1. + ak0*dens(l)/ak1) |
---|
1703 | xpo = 1./(1. + alog10((ak0*dens(l))/ak1)**2) |
---|
1704 | c017(l) = rate*0.6**xpo |
---|
1705 | c |
---|
1706 | ccc c018: h + h + co2 -> h2 + co2 |
---|
1707 | c |
---|
1708 | c baulch et al., 1992 |
---|
1709 | c |
---|
1710 | c c018(l) = 2.5*8.85e-33*(t(l)/298.)**(-0.6)*dens(l) |
---|
1711 | c |
---|
1712 | c baulch et al., 2005 |
---|
1713 | c |
---|
1714 | c018(l) = 2.5*1.8e-30*(t(l)**(-1.0))*dens(l) |
---|
1715 | c |
---|
1716 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1717 | c nitrogen compounds |
---|
1718 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1719 | c |
---|
1720 | ccc d001: no2 + o -> no + o2 |
---|
1721 | c |
---|
1722 | c jpl 2003 |
---|
1723 | c |
---|
1724 | c d001(l) = 5.6e-12*exp(180./t(l)) |
---|
1725 | c |
---|
1726 | ccc jpl 2006 |
---|
1727 | c |
---|
1728 | d001(l) = 5.1e-12*exp(210./t(l)) |
---|
1729 | c |
---|
1730 | ccc d002: no + o3 -> no2 + o2 |
---|
1731 | c |
---|
1732 | c jpl 2003 |
---|
1733 | c |
---|
1734 | d002(l) = 3.0e-12*exp(-1500./t(l)) |
---|
1735 | c |
---|
1736 | ccc d003: no + ho2 -> no2 + oh |
---|
1737 | c |
---|
1738 | c jpl 2011 |
---|
1739 | c |
---|
1740 | d003(l) = 3.3e-12*exp(270./t(l)) |
---|
1741 | c |
---|
1742 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1743 | c carbon compounds |
---|
1744 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1745 | c |
---|
1746 | ccc e001: oh + co -> co2 + h |
---|
1747 | c |
---|
1748 | c jpl 2003 |
---|
1749 | c |
---|
1750 | c e001(l) = 1.5e-13*(1 + 0.6*press(l)/1013.) |
---|
1751 | c |
---|
1752 | c mccabe et al., grl, 28, 3135, 2001 |
---|
1753 | c |
---|
1754 | c e001(l) = 1.57e-13 + 3.54e-33*dens(l) |
---|
1755 | c |
---|
1756 | c atkinson et al. 2006 |
---|
1757 | c |
---|
1758 | c e001(l) = 1.44e-13 + 3.43e-33*dens(l) |
---|
1759 | c |
---|
1760 | c joshi et al., 2006 |
---|
1761 | c |
---|
1762 | k1a0 = 1.34*2.5*dens(l) |
---|
1763 | $ *1/(1/(3.62e-26*t(l)**(-2.739)*exp(-20./t(l))) |
---|
1764 | $ + 1/(6.48e-33*t(l)**(0.14)*exp(-57./t(l)))) ! corrige de l'erreur publi |
---|
1765 | k1b0 = 1.17e-19*t(l)**(2.053)*exp(139./t(l)) |
---|
1766 | $ + 9.56e-12*t(l)**(-0.664)*exp(-167./t(l)) |
---|
1767 | k1ainf = 1.52e-17*t(l)**(1.858)*exp(28.8/t(l)) |
---|
1768 | $ + 4.78e-8*t(l)**(-1.851)*exp(-318./t(l)) |
---|
1769 | x = k1a0/(k1ainf - k1b0) |
---|
1770 | y = k1b0/(k1ainf - k1b0) |
---|
1771 | fc = 0.628*exp(-1223./t(l)) + (1. - 0.628)*exp(-39./t(l)) |
---|
1772 | $ + exp(-t(l)/255.) |
---|
1773 | fx = fc**(1./(1. + (alog(x))**2)) ! corrige de l'erreur publi |
---|
1774 | k1a = k1a0*((1. + y)/(1. + x))*fx |
---|
1775 | k1b = k1b0*(1./(1.+x))*fx |
---|
1776 | c |
---|
1777 | e001(l) = k1a + k1b |
---|
1778 | c |
---|
1779 | ccc e002: o + co + m -> co2 + m |
---|
1780 | c |
---|
1781 | c tsang and hampson, 1986. |
---|
1782 | c |
---|
1783 | e002(l) = 2.5*6.5e-33*exp(-2184./t(l))*dens(l) |
---|
1784 | c |
---|
1785 | c baulch et al., butterworths, 1976. |
---|
1786 | c |
---|
1787 | c e002(l) = 1.6e-32*exp(-2184./t(l))*dens(l) |
---|
1788 | c |
---|
1789 | ccc e003: ch4 + oh -> ch3 + h2o |
---|
1790 | c |
---|
1791 | c jpl 2003 |
---|
1792 | c |
---|
1793 | c e003(l) = 2.45e-12*exp(-1775./t(l)) |
---|
1794 | c |
---|
1795 | c jpl 2003, three-parameter expression |
---|
1796 | c |
---|
1797 | e003(l) = 2.80e-14*(t(l)**0.667)*exp(-1575./t(l)) |
---|
1798 | c |
---|
1799 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1800 | c heterogenous chemistry |
---|
1801 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
1802 | c |
---|
1803 | c k = (surface*v*gamma)/4 (s-1) |
---|
1804 | c v = 100*sqrt(8rt/(pi*m)) (cm s-1) |
---|
1805 | c |
---|
1806 | ccc h001: ho2 + ice -> products |
---|
1807 | c |
---|
1808 | c cooper and abbatt, 1996: gamma = 0.025 |
---|
1809 | c |
---|
1810 | h001(l) = surfice1d(l) |
---|
1811 | $ *100.*sqrt(8.*8.31*t(l)/(33.e-3*pi))*0.025/4. |
---|
1812 | c |
---|
1813 | c h002: oh + ice -> products |
---|
1814 | c |
---|
1815 | c cooper and abbatt, 1996: gamma = 0.03 |
---|
1816 | c |
---|
1817 | h002(l) = surfice1d(l) |
---|
1818 | $ *100.*sqrt(8.*8.31*t(l)/(17.e-3*pi))*0.03/4. |
---|
1819 | c |
---|
1820 | c h003: ho2 + dust -> products |
---|
1821 | c |
---|
1822 | c jacob, 2000: gamma = 0.2 |
---|
1823 | c see dereus et al., atm. chem. phys., 2005 |
---|
1824 | c |
---|
1825 | c h003(l) = surfdust1d(l) |
---|
1826 | c $ *100.*sqrt(8.*8.31*t(l)/(33.e-3*pi))*0.2/4. |
---|
1827 | h003(l) = 0. ! advised |
---|
1828 | c |
---|
1829 | ccc h004: h2o2 + ice -> products |
---|
1830 | c |
---|
1831 | c gamma = 1.e-3 test value |
---|
1832 | c |
---|
1833 | c h004(l) = surfice1d(l) |
---|
1834 | c $ *100.*sqrt(8.*8.31*t(l)/(34.e-3*pi))*0.001/4. |
---|
1835 | h004(l) = 0. ! advised |
---|
1836 | c |
---|
1837 | c h005: h2o2 + dust -> products |
---|
1838 | c |
---|
1839 | c gamma = 5.e-4 |
---|
1840 | c see dereus et al., atm. chem. phys., 2005 |
---|
1841 | c |
---|
1842 | h005(l) = surfdust1d(l) |
---|
1843 | $ *100.*sqrt(8.*8.31*t(l)/(34.e-3*pi))*5.e-4/4. |
---|
1844 | h005(l) = 0. ! advised |
---|
1845 | c |
---|
1846 | end do |
---|
1847 | c |
---|
1848 | if (tribo .eq. 1.) then |
---|
1849 | c |
---|
1850 | c electrochemical reactions |
---|
1851 | c |
---|
1852 | c efmax: maximum electric field (kv.m-1) |
---|
1853 | c |
---|
1854 | efmax = 23.3 |
---|
1855 | c |
---|
1856 | c ef: actual electric field, scaled by tau. |
---|
1857 | c |
---|
1858 | c if (tau .ge. 1.) then |
---|
1859 | c ef = efmax |
---|
1860 | c else |
---|
1861 | c ef = 0. |
---|
1862 | c end if |
---|
1863 | c ef = min(efmax,efmax*tau/1.0) |
---|
1864 | c |
---|
1865 | ef = (efmax/0.5)*tau - (efmax/0.5)*0.5 |
---|
1866 | c |
---|
1867 | ef = max(ef, 0.) |
---|
1868 | ef = min(ef, efmax) |
---|
1869 | c |
---|
1870 | ccc t001: h2o + e -> oh + h- |
---|
1871 | c |
---|
1872 | c lossh2o: fit of oh/h- production rates |
---|
1873 | c given by delory et al., astrobiology, 6, 451, 2006 |
---|
1874 | c |
---|
1875 | if (ef .eq. 0.) then |
---|
1876 | lossh2o = 0. |
---|
1877 | else if (ef .lt. 10.) then |
---|
1878 | lossh2o = 0.054136*exp(1.0978*ef) |
---|
1879 | else if (ef .lt. 16.) then |
---|
1880 | lossh2o = 64.85*exp(0.38894*ef) |
---|
1881 | else if (ef .le. 20.) then |
---|
1882 | lossh2o = 0.2466*exp(0.73719*ef) |
---|
1883 | else |
---|
1884 | lossh2o = 2.3269e-8*exp(1.546*ef) |
---|
1885 | end if |
---|
1886 | c |
---|
1887 | c production rates are given for h2o = 20 prec. microns. |
---|
1888 | c t001 is converted to first-order reaction rate |
---|
1889 | c assuming h2o number density at the surface = 5e13 mol cm-3 |
---|
1890 | c |
---|
1891 | do l = 1,21 ! 70 km |
---|
1892 | t001(l) = lossh2o/5.e13 ! s-1 |
---|
1893 | end do |
---|
1894 | do l = 22,lswitch-1 |
---|
1895 | t001(l) = 0. |
---|
1896 | end do |
---|
1897 | c |
---|
1898 | ccc t002: ch4 + e -> products |
---|
1899 | c |
---|
1900 | c lossch4: fit of ch4 loss rates |
---|
1901 | c given by farrell et al., grl, 33, 2006 |
---|
1902 | c |
---|
1903 | if (ef .eq. 0.) then |
---|
1904 | lossch4 = 0. |
---|
1905 | else if (ef .gt. 20.) then |
---|
1906 | lossch4 = 1.113e-21*exp(1.6065*ef) |
---|
1907 | else if (ef .gt. 17.5) then |
---|
1908 | lossch4 = 1.e-15*exp(0.92103*ef) |
---|
1909 | else if (ef .gt. 14.) then |
---|
1910 | lossch4 = 1.e-13*exp(0.65788*ef) |
---|
1911 | else |
---|
1912 | lossch4 = 8.9238e-15*exp(0.835*ef) |
---|
1913 | end if |
---|
1914 | c |
---|
1915 | do l = 1,21 ! 70 km |
---|
1916 | t002(l) = lossch4 ! s-1 |
---|
1917 | end do |
---|
1918 | do l = 22,lswitch-1 |
---|
1919 | t002(l) = 0. |
---|
1920 | end do |
---|
1921 | c |
---|
1922 | ccc t003: co2 + e -> co + o- |
---|
1923 | c |
---|
1924 | c lossco2: fit of co/o- production rates |
---|
1925 | c given by delory et al., astrobiology, 6, 451, 2006 |
---|
1926 | c |
---|
1927 | if (ef .eq. 0.) then |
---|
1928 | lossco2 = 0. |
---|
1929 | else if (ef .lt. 10.) then |
---|
1930 | lossco2 = 22.437*exp(1.045*ef) |
---|
1931 | else if (ef .lt. 16.) then |
---|
1932 | lossco2 = 17518.*exp(0.37896*ef) |
---|
1933 | else if (ef .lt. 20.) then |
---|
1934 | lossco2 = 54.765*exp(0.73946*ef) |
---|
1935 | else |
---|
1936 | lossco2 = 4.911e-6*exp(1.5508*ef) |
---|
1937 | end if |
---|
1938 | c |
---|
1939 | c production rates are assumed to be given for p = 6 hPa |
---|
1940 | c lossco2 is converted to first-order reaction rate |
---|
1941 | c assuming co2 number density at the surface = 2e17 mol cm-3 |
---|
1942 | c |
---|
1943 | do l = 1,21 ! 70 km |
---|
1944 | t003(l) = lossco2/2.e17 ! s-1 |
---|
1945 | end do |
---|
1946 | do l = 22,lswitch-1 |
---|
1947 | t003(l) = 0. |
---|
1948 | end do |
---|
1949 | else |
---|
1950 | do l = 1,lswitch-1 |
---|
1951 | t001(l) = 0. |
---|
1952 | t002(l) = 0. |
---|
1953 | t003(l) = 0. |
---|
1954 | end do |
---|
1955 | end if |
---|
1956 | c |
---|
1957 | return |
---|
1958 | end |
---|