1 | |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | |
---|
12 | !$Id: setcol.F90 123 2009-03-27 10:38:52Z acosce $ |
---|
13 | !! ========================================================================= |
---|
14 | !! INCA - INteraction with Chemistry and Aerosols |
---|
15 | !! |
---|
16 | !! Copyright Laboratoire des Sciences du Climat et de l'Environnement (LSCE) |
---|
17 | !! Unite mixte CEA-CNRS-UVSQ |
---|
18 | !! |
---|
19 | !! Contributors to this INCA subroutine: |
---|
20 | !! |
---|
21 | !! Didier Hauglustaine, LSCE, hauglustaine@cea.fr |
---|
22 | !! Stacy Walters, NCAR, stacy@ucar.edu |
---|
23 | !! |
---|
24 | !! Anne Cozic, LSCE, anne.cozic@cea.fr |
---|
25 | !! Yann Meurdesoif, LSCE, yann.meurdesoif@cea.fr |
---|
26 | !! |
---|
27 | !! This software is a computer program whose purpose is to simulate the |
---|
28 | !! atmospheric gas phase and aerosol composition. The model is designed to be |
---|
29 | !! used within a transport model or a general circulation model. This version |
---|
30 | !! of INCA was designed to be coupled to the LMDz GCM. LMDz-INCA accounts |
---|
31 | !! for emissions, transport (resolved and sub-grid scale), photochemical |
---|
32 | !! transformations, and scavenging (dry deposition and washout) of chemical |
---|
33 | !! species and aerosols interactively in the GCM. Several versions of the INCA |
---|
34 | !! model are currently used depending on the envisaged applications with the |
---|
35 | !! chemistry-climate model. |
---|
36 | !! |
---|
37 | !! This software is governed by the CeCILL license under French law and |
---|
38 | !! abiding by the rules of distribution of free software. You can use, |
---|
39 | !! modify and/ or redistribute the software under the terms of the CeCILL |
---|
40 | !! license as circulated by CEA, CNRS and INRIA at the following URL |
---|
41 | !! "http://www.cecill.info". |
---|
42 | !! |
---|
43 | !! As a counterpart to the access to the source code and rights to copy, |
---|
44 | !! modify and redistribute granted by the license, users are provided only |
---|
45 | !! with a limited warranty and the software's author, the holder of the |
---|
46 | !! economic rights, and the successive licensors have only limited |
---|
47 | !! liability. |
---|
48 | !! |
---|
49 | !! In this respect, the user's attention is drawn to the risks associated |
---|
50 | !! with loading, using, modifying and/or developing or reproducing the |
---|
51 | !! software by the user in light of its specific status of free software, |
---|
52 | !! that may mean that it is complicated to manipulate, and that also |
---|
53 | !! therefore means that it is reserved for developers and experienced |
---|
54 | !! professionals having in-depth computer knowledge. Users are therefore |
---|
55 | !! encouraged to load and test the software's suitability as regards their |
---|
56 | !! requirements in conditions enabling the security of their systems and/or |
---|
57 | !! data to be ensured and, more generally, to use and operate it in the |
---|
58 | !! same conditions as regards security. |
---|
59 | !! |
---|
60 | !! The fact that you are presently reading this means that you have had |
---|
61 | !! knowledge of the CeCILL license and that you accept its terms. |
---|
62 | !! ========================================================================= |
---|
63 | |
---|
64 | SUBROUTINE SETCOL( & |
---|
65 | col_dens , & |
---|
66 | vmr , & |
---|
67 | invariants , & |
---|
68 | pdel ) |
---|
69 | !--------------------------------------------------------------- |
---|
70 | ! ... Set the column densities |
---|
71 | ! Stacy Walters, NCAR, 1998. |
---|
72 | ! Modified by Didier Hauglustaine, IPSL, for LMDZ/INCA, 1999. |
---|
73 | !--------------------------------------------------------------- |
---|
74 | USE SPECIES_NAMES |
---|
75 | USE O3CLIM_COM, ONLY: o3clim |
---|
76 | USE CHEM_MODS, ONLY : o3_col, co_col, ch4_col, no2_col, ch2o_col, hno2_col, nh3_col, so2_col, oh_col, o3l_col, o3tot_col |
---|
77 | USE AIRPLANE_SRC, ONLY : itrop, ptrop |
---|
78 | USE INCA_DIM |
---|
79 | USE PARAM_CHEM |
---|
80 | USE RATE_INDEX_MOD |
---|
81 | |
---|
82 | IMPLICIT NONE |
---|
83 | |
---|
84 | !--------------------------------------------------------------- |
---|
85 | ! ... Dummy arguments |
---|
86 | !--------------------------------------------------------------- |
---|
87 | REAL, INTENT(in) :: vmr(PLON,PLEV,8) ! xported species vmr |
---|
88 | REAL, INTENT(in) :: pdel(PLON,PLEV) ! delta about midpoints |
---|
89 | REAL, INTENT(in) :: invariants(PLON,PLEV,12) ! invariants density |
---|
90 | REAL, INTENT(out) :: col_dens(PLON,PLEV,2) ! column densities ( /cm**2 ) |
---|
91 | |
---|
92 | !--------------------------------------------------------------- |
---|
93 | ! The local variables |
---|
94 | !--------------------------------------------------------------- |
---|
95 | INTEGER :: i, k ! long, alt indicies |
---|
96 | INTEGER :: ktrop |
---|
97 | REAL, PARAMETER :: rma = 28./48. |
---|
98 | !--------------------------------------------------------------- |
---|
99 | ! NOTE: xfactor = 10.*R/(K*g) in cgs units. |
---|
100 | ! The factor 10. is to convert pdel |
---|
101 | ! from pascals to dyne/cm**2. |
---|
102 | !--------------------------------------------------------------- |
---|
103 | REAL, PARAMETER :: xfactor = 2.8704e21/(9.80616*1.38044) |
---|
104 | |
---|
105 | !--------------------------------------------------------------- |
---|
106 | ! ... Compute column densities down to the |
---|
107 | ! current eta index in the calling routine. |
---|
108 | ! The first column is O3, the second is O2, |
---|
109 | ! and the third is O3L. |
---|
110 | !--------------------------------------------------------------- |
---|
111 | DO k = PLEV-1,1,-1 |
---|
112 | col_dens(:,k,1) = col_dens(:,k+1,1) + xfactor * pdel(:PLON,k) * invariants(:,k,inv_O3)/invariants(:,k,inv_M) |
---|
113 | col_dens(:,k,2) = col_dens(:,k+1,2) + xfactor * pdel(:PLON,k) * .21e0 |
---|
114 | END DO |
---|
115 | |
---|
116 | !--------------------------------------------------------------- |
---|
117 | ! ... Columns of selected species |
---|
118 | !--------------------------------------------------------------- |
---|
119 | o3_col = 0. |
---|
120 | co_col = 0. |
---|
121 | so2_col = 0. |
---|
122 | oh_col = 0. |
---|
123 | ch4_col = 0. |
---|
124 | no2_col = 0. |
---|
125 | ch2o_col = 0. |
---|
126 | hno2_col = 0. |
---|
127 | IF (trim(flag_o3) .EQ. 'o3lin') o3l_col = 0. |
---|
128 | o3tot_col= 0. |
---|
129 | nh3_col = 0. |
---|
130 | |
---|
131 | |
---|
132 | |
---|
133 | DO k = PLEV,1,-1 |
---|
134 | co_col(:) = co_col(:) + xfactor * pdel(:,k) * vmr(:,k,id_CO) |
---|
135 | ch4_col(:) = ch4_col(:) + xfactor * pdel(:,k) * vmr(:,k,id_CH4) |
---|
136 | |
---|
137 | |
---|
138 | END DO |
---|
139 | |
---|
140 | ! Change units |
---|
141 | ch4_col = ch4_col * 1.e-19 |
---|
142 | co_col = co_col * 1.e-18 |
---|
143 | so2_col = so2_col* 1.e-15 |
---|
144 | oh_col = oh_col * 1 |
---|
145 | o3_col = o3_col / 2.69e16 !DU |
---|
146 | o3tot_col = o3tot_col / 2.69e16 !DU |
---|
147 | no2_col = no2_col * 1.e-15 |
---|
148 | ch2o_col = ch2o_col * 1.e-15 |
---|
149 | |
---|
150 | |
---|
151 | END SUBROUTINE SETCOL |
---|
152 | |
---|