source: CONFIG/publications/ICOLMDZORINCA_CO2_Transport_GMD_2023/INCA/src/INCA_SRC/gastoparticle.F90 @ 6610

Last change on this file since 6610 was 6610, checked in by acosce, 9 months ago

INCA used for ICOLMDZORINCA_CO2_Transport_GMD_2023

File size: 4.1 KB
Line 
1!$Id: gastoparticle.F90 72 2008-04-18 11:47:32Z acosce $
2!! =========================================================================
3!! INCA - INteraction with Chemistry and Aerosols
4!!
5!! Copyright Laboratoire des Sciences du Climat et de l'Environnement (LSCE)
6!!           Unite mixte CEA-CNRS-UVSQ
7!!
8!! Contributors to this INCA subroutine:
9!!
10!! Michael Schulz, LSCE, Michael.Schulz@cea.fr
11!! C. Textor, LSCE
12!! D. Hauglustaine, LSCE, 11/2013.
13!!
14!! Anne Cozic, LSCE, anne.cozic@cea.fr
15!! Yann Meurdesoif, LSCE, yann.meurdesoif@cea.fr
16!!
17!! This software is a computer program whose purpose is to simulate the
18!! atmospheric gas phase and aerosol composition. The model is designed to be
19!! used within a transport model or a general circulation model. This version
20!! of INCA was designed to be coupled to the LMDz GCM. LMDz-INCA accounts
21!! for emissions, transport (resolved and sub-grid scale), photochemical
22!! transformations, and scavenging (dry deposition and washout) of chemical
23!! species and aerosols interactively in the GCM. Several versions of the INCA
24!! model are currently used depending on the envisaged applications with the
25!! chemistry-climate model.
26!!
27!! This software is governed by the CeCILL  license under French law and
28!! abiding by the rules of distribution of free software.  You can  use,
29!! modify and/ or redistribute the software under the terms of the CeCILL
30!! license as circulated by CEA, CNRS and INRIA at the following URL
31!! "http://www.cecill.info".
32!!
33!! As a counterpart to the access to the source code and  rights to copy,
34!! modify and redistribute granted by the license, users are provided only
35!! with a limited warranty  and the software's author,  the holder of the
36!! economic rights,  and the successive licensors  have only  limited
37!! liability.
38!!
39!! In this respect, the user's attention is drawn to the risks associated
40!! with loading,  using,  modifying and/or developing or reproducing the
41!! software by the user in light of its specific status of free software,
42!! that may mean  that it is complicated to manipulate,  and  that  also
43!! therefore means  that it is reserved for developers  and  experienced
44!! professionals having in-depth computer knowledge. Users are therefore
45!! encouraged to load and test the software's suitability as regards their
46!! requirements in conditions enabling the security of their systems and/or
47!! data to be ensured and,  more generally, to use and operate it in the
48!! same conditions as regards security.
49!!
50!! The fact that you are presently reading this means that you have had
51!! knowledge of the CeCILL license and that you accept its terms.
52!! =========================================================================
53
54#include <inca_define.h>
55#ifndef DUSS
56#ifdef AER
57SUBROUTINE GASTOPARTICLE(delt,mmr,mbar,hnm)
58
59  USE SPECIES_NAMES
60#ifdef NMHC
61  USE CHEM_MODS, ONLY   : asso4m_p_so2oh,asmsam_p_dmsooh,adv_mass,asno3m_p_nh3hno3
62#else
63  USE CHEM_MODS, ONLY   : asso4m_p_so2oh,asmsam_p_dmsooh,adv_mass
64#endif
65  USE AEROSOL_MOD, ONLY : srcsigmaln,rop,asmode
66  USE CONST_MOD, ONLY   : pi
67  USE INCA_DIM
68
69
70  IMPLICIT NONE
71
72  REAL, INTENT(inout) :: mmr(PLON,PLEV,PCNST)   ! xported species ( mmr )
73  REAL, INTENT(in)    :: delt
74  REAL, INTENT(in)    :: mbar(PLON,PLEV)        ! mean wet atmospheric mass
75  REAL, INTENT(in)    :: hnm(PLON,PLEV)
76
77  ! local variables
78  REAL :: fdistSO4
79  REAL :: srcmmd_id_ASSO4M = 0.3e-6
80
81  REAL :: fdistNO3
82  REAL :: srcmmd_id_ASNO3M = 0.3e-6
83
84
85  ! convert it
86  fdistSO4= 1./pi*6./rop(id_ASSO4M)  &
87       /srcmmd_id_ASSO4M**3 *exp(4.5*srcsigmaln(asmode)**2)
88
89#ifdef NMHC
90  fdistNO3= 1./pi*6./rop(id_ASNO3M)  &
91       /srcmmd_id_ASNO3M**3 *exp(4.5*srcsigmaln(asmode)**2)
92#endif
93
94  mmr(:,:,id_ASN) = mmr(:,:,id_ASN) + asso4m_p_so2oh(:,:) *  &
95       adv_mass(id_ASSO4M) / mbar(:,:) * delt / hnm(:,:) * fdistSO4
96
97  mmr(:,:,id_ASN) = mmr(:,:,id_ASN) + asmsam_p_dmsooh(:,:) *  &
98       adv_mass(id_ASMSAM) / mbar(:,:) * delt / hnm(:,:) * fdistSO4
99
100#ifdef NMHC
101  mmr(:,:,id_ASN) = mmr(:,:,id_ASN) + asno3m_p_nh3hno3(:,:) * &
102       adv_mass(id_ASNO3M) / mbar(:,:) * delt / hnm(:,:) * fdistNO3
103#endif
104
105END SUBROUTINE GASTOPARTICLE
106#endif
107#endif
Note: See TracBrowser for help on using the repository browser.