Changes between Version 1 and Version 2 of doc/tec/chem


Ignore:
Timestamp:
Jan 28, 2019 1:21:00 PM (6 years ago)
Author:
westbrink
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/tec/chem

    v1 v2  
    22
    33Main page of the chemistry model under construction. Click [wiki:doc/app/chempar here] for first information about capabilities and model steering.
     4
     5
     6= Chemistry model parameters =
     7[[TracNav(doc/app/partoc|nocollapse)]]
     8
     9== Overview ==
     10
     11
     12
     13Since Version 5.0 a chemistry model is available in PALM which computes chemical conversion and tranport of reactive trace gases. In addition, this module permits also the simulation of passive compounds in the gas phase and particulate matter.
     14
     15All parts of code that are related to chemistry start with `chem_`.
     16The main routines and the driver of the chemistry module is included in [[source:palm/trunk/SOURCE/chemistry_model_mod.f90|chemistry_model_mod.f90]], subroutines are in `chem_gasphase_mod.f90`, `chem_photolysis_mod.f90`, and `chem_emissions.f90`.
     17
     18The module `chem_gasphase_mod.f90`, where the gas phase chemistry rate equations are solved within PALM-4U depends on the chosen chemical mechanism. `chem_gasphase_mod.f90` is generated by a preprocessor that is based on the Kinetic Pre-Processor KPP (Damian et al. (2002), Sandu et al. (2006)), Release 2.2.3 from November 2012 (http://people.cs.vt.edu/asandu/Software/Kpp/, kpp-2.2.3.tar.gz) and an adapted version of the KPP postprocessor KP4 (Jöckel et al (2010)). This adapted Version of KP4 which converts the KPP-generated code to a PALM-4U module is named kpp4palm.
     19
     20The chemical preprocessor is located in the subdirectory `UTIL/chemistry/gasphase_preproc`.
     21
     22Currently PALM-4U includes the following sample of chemistry mechanisms:\\
     23  * cbm4: Carbon Bond Mechanism (Gery et al. (1989), 32 compounds, 81 reactions)\\
     24  * smog: Photochemical smog mechanism (13 compounds, 12 reactions)\\
     25  * simple: Simplified version of SMOG (9 compounds, 7 reactions)\\
     26  * simplep: 'simple' plus one tracer named PM10 (10 compounds, 7 real reactions plus one dummy 'reaction')\\
     27  * phstat: Photo-stationary state (3 compounds, 2 reactions)\\
     28  * phstatp: Photo-stationary state plus one passive tracer named PM10 (4 compounds, 2 real reactions plus one dummy 'reaction')\\
     29
     30Additional 'mechanisms' are available that describe the transport of one or two passive tracers, i.e. no chemical reactions are necessary:\\
     31  * passive1: Passive tracers (1 compound, 0 reactions)\\
     32  * passive: Passive tracers (2 compounds, 0 reactions)\\
     33This list will be extended further in the future.
     34
     35The standard mechanism which is in the SOURCE directory is 'phstatp'.
     36
     37In order to select and apply a certain mechanism from this sample, please copy the respective ready-to-use `chem_gasephase_mod.f90` from `UTIL/chemistry/gasphase_preproc/mechanisms/def_MECH` (where `MECH` stands for any of the available mechanisms) into the USER_CODE directory of the respective simulation Setup, i.e. .../JOBS/<run_identifier>/USER_CODE/chem_gasphase_mod.f90.
     38
     39Alternatively, the chemistry preprocessor can be executed also for the available machanism in order to create `chem_gasphase_mod.f90` (although for the available mechanisms this is not necessary because the `chem_gasphase_mod.f90` files are already existing) instead of copying `chem_gasphase_mod.f90`: Enter the directory `UTIL/chemistry/gasphase_preproc` and apply the run script, i.e. {{{run_kpp4palm.ksh -m MECH}}}, where `MECH` stands for any of the mechanisms listed above. The resulting `chem_gasphase_mod.f90` will be copied by the script directly into the SOURCE directory.
     40
     41In order to find out which reactions and compounds are included in the different mechanisms, please have a look into the files MECH.eqn and MECH.spc in `UTIL/chemistry/gasphase_preproc/mechanisms/def_MECH`.
     42
     43How to implement a new chemical mechanism or add further passive tracers see the [wiki:chempar#no1 Readme-File]. If more than two passive tracers or different names of the passive tracers are desired, a new 'mechanism' must be created as described in the Readme file. The Readme file is also available in the PALM-4U subdirectory `UTIL/chemistry/gasphase_preproc`.
     44
     45Currently, areosol compounds can be considered either as passive compounds or the sectional aerosol module [wiki:salsa SALSA]   (Kokkola et al. (2008)) can be used to simulate the aerosol particle concentrations, and size distributions.
     46
     47
     48Deposition processes are also taken into account in the chemistry model. The deposition of particles is derived following Zhang et al. (2001) while gases are deposited using the DEPAC model following van Zanten et al. (2010).
     49
     50A main factor influencing atmospheric chemistry are the emissions of reactive compounds. In PALM-4U emissions can be applied in three different ways:\\
     51  * PARAMETERIZED: Traffic emissions are parameterized depending on the the values of street_type in the static file. Emission values for each street type and chemical compound must be supplied in the namelist as described below. No other emissions are considered. street_type can be obtained from `OpenStreetMap`.\\
     52  * DEFAULT: Gridded yearly emissions must be supplied by the user as specified in the PIDS document (see sample emissions file). Typical temporal variations are apllied by PALM4U.\\
     53  * PRE-PROCESSED: Preprocessed hourly (other temporal intervals will be possible in later versions) 3-d emission fields must be supplied by the user.
     54
     55Importantly, for the DEFAULT and the PRE-PROCESSED mode of the emissions, the exact date of the start of the simulation must be indicated through the namelist parameter date_init of the date_and_time_mod module.   
     56
     57IMPORTANT: In the PRE-PROCESSED mode the initial date of the simulation has to coincide with the first day for which emission values are available.
     58
     59Find a more detailed description of the PALM-4U emission input in the corresponding attached document [wiki:chempar#no1 here].
     60
     61The chemistry model is automatically activated when a {{{chemistry_parameters}}} namelist is included in the parameter file ({{{<run_identifier>_p3d}}}).
     62
     63
     64
     65
     66
     67\\\\
     68== Parameter list ==
     69'''NAMELIST group name: [=#chempar {{{chemistry_parameters}}}''']
     70
     71||='''Parameter Name'''  =||='''[[../fortrantypes|FORTRAN]]\\[[../fortrantypes|Type]]'''  =||='''Default\\Value'''  =||='''Explanation'''  =||
     72|----------------
     73{{{#!td style="vertical-align:top; width: 150px"
     74[=#bc_cs_b '''bc_cs_b''']
     75}}}
     76{{{#!td style="vertical-align:top; width: 50px"
     77C*20
     78}}}
     79{{{#!td style="vertical-align:top; width: 75px"
     80'dirichlet'
     81}}}
     82{{{#!td
     83Bottom boundary condition of the chemical species (`cs`) concentration.
     84
     85Allowed values are  'dirichlet'  (cs(k=0) = const. = [#cs_surface cs_surface] + cs_surface_initial_change; When a constant surface concentration flux is used ([#surface_csflux surface_csflux]) or emissions are applied ([#do_emis do_emis] = .T.), '''bc_cs_b''' =  'neumann'  must be used.
     86}}}
     87|----------------
     88{{{#!td style="vertical-align:top; width: 150px"
     89[=#bc_cs_t '''bc_cs_t''']
     90}}}
     91{{{#!td style="vertical-align:top; width: 50px"
     92C*20
     93}}}
     94{{{#!td style="vertical-align:top; width: 75px"
     95'initial_gradient'
     96}}}
     97{{{#!td
     98Top boundary condition of the scalar concentration.
     99
     100Allowed are the values  'dirichlet'  (cs(k=nz+1) does not change during the run),  'neumann'  (cs(k=nz+1) = cs(k=nz)),
     101and  'initial_gradient' .
     102With the  'initial_gradient'  boundary condition the value of the scalar concentration gradient at the top is calculated from the initial scalar concentration profile (see [#cs_surface cs_surface], cs_vertical_gradient) by: bc_cs_t_val = (cs_init(k=nz) - ss_init(k=nz-1)) / dzu(nz). Using this value (assumed constant during the run) the concentration boundary values are calculated as
     103cs(k=nz+1) = cs(k=nz) + bc_cs_t_val * dzu(nz+1)
     104(up to k=nz the prognostic equation for the chemical species concentration is solved).
     105
     106When a constant cs flux is used at the top boundary (top_csflux), '''bc_cs_t''' = 'neumann' must be used, because otherwise the resolved scale may contribute to the top flux so that a constant value cannot be guaranteed.
     107}}}
     108|----------------
     109{{{#!td style="vertical-align:top; width: 150px"
     110[=#call_chem_at_all_substeps '''call_chem_at_all_substeps''']
     111}}}
     112{{{#!td style="vertical-align:top; width: 50px"
     113L
     114}}}
     115{{{#!td style="vertical-align:top; width: 75px"
     116.FALSE.
     117}}}
     118{{{#!td
     119Switch whether chemistry is called at each substep of the Runge-Kutta scheme or just at each full dynamical time step 'dt'. The latter will do since the chemistry solvers are using their own timestep steering.
     120}}}
     121|----------------
     122{{{#!td style="vertical-align:top; width: 150px"
     123[=#chem_debug0 '''chem_debug0 ''']
     124}}}
     125{{{#!td style="vertical-align:top; width: 50px"
     126L
     127}}}
     128{{{#!td style="vertical-align:top; width: 75px"
     129.FALSE.
     130}}}
     131{{{#!td
     132Extra print output of chemistry variables.
     133}}}
     134|----------------
     135{{{#!td style="vertical-align:top; width: 150px"
     136[=#chem_gasphase_on '''chem_gasphase_on''']
     137}}}
     138{{{#!td style="vertical-align:top; width: 50px"
     139L
     140}}}
     141{{{#!td style="vertical-align:top; width: 75px"
     142.TRUE.
     143}}}
     144{{{#!td
     145Switch for switching off the chemical reactions but still doing the transport for all chemical compounds. Useful for test purposes.
     146}}}
     147|----------------
     148{{{#!td style="vertical-align:top; width: 150px"
     149[=#chem_mechanism '''chem_mechanism''']
     150}}}
     151{{{#!td style="vertical-align:top; width: 50px"
     152C*30
     153}}}
     154{{{#!td style="vertical-align:top; width: 75px"
     155'phstatp'
     156}}}
     157{{{#!td
     158Parameter for check of chemistry mechanism: The Setting in the namelist must match with the mechanism in the code, i.e. in chem_gasphase_mod.f90. `chem_mechanism = 'phstatp'` matches with the chemistry mechanism in chem_gasphase_mod.f90 that comes with PALM-4U when it is downloaded.
     159}}}
     160|----------------
     161{{{#!td style="vertical-align:top; width: 150px"
     162[=#cs_heights '''cs_heights''']
     163}}}
     164{{{#!td style="vertical-align:top; width: 50px"
     165R(99,100)
     166}}}
     167{{{#!td style="vertical-align:top; width: 75px"
     1689999999.9
     169}}}
     170{{{#!td
     171Height levels above ground (in m) to go with [#cs_profile cs_profile] in order to define initial profiles of chemical species.
     172The first index refers to the chemical compound, the second to height level.
     173Example:\\
     174'''cs_heights'''(1,:)            =  0.0,   5.0,   15.0,   25.0,  35.0,  45.0,  55.0,  65.0,  75.0,  85.0, 95.0, (heights for profile of first chemical species)\\
     175'''cs_heights'''(2,:)            =  0.0,   5.0,   15.0,   25.0,  35.0,  45.0,  55.0,  65.0,  75.0,  85.0, 95.0,  (heights for profile of second chemical species)\\
     176}}}
     177|----------------
     178{{{#!td style="vertical-align:top; width: 150px"
     179[=#cs_name '''cs_name''']
     180}}}
     181{{{#!td style="vertical-align:top; width: 50px"
     182C*11(99)
     183}}}
     184{{{#!td style="vertical-align:top; width: 75px"
     185'novalue'
     186}}}
     187{{{#!td
     188Names of chemical species where surface concentrations or concentration profiles ([#cs_profile cs_profile]) are prescribed.
     189Example:\\
     190'''cs_name'''                    = 'O3',  'NO', 'NO2',  'CO', 'RCHO', 'PM10', 'PM25',\\
     191It is not necessary to specify '''cs_name''' (and [#cs_surface cs_surface] and [#cs_profile cs_profile]/[#cs_heights cs_heights]-pairs) for all compounds of the chosen chemical mechanism.
     192Names of compounds which do not occur mechanism are ignored.
     193}}}
     194|----------------
     195{{{#!td style="vertical-align:top; width: 150px"
     196[=#cs_profile '''cs_profile''']
     197}}}
     198{{{#!td style="vertical-align:top; width: 50px"
     199R(99,100)
     200}}}
     201{{{#!td style="vertical-align:top; width: 75px"
     2029999999.9
     203}}}
     204{{{#!td
     205Concentration values of chemical species (gases in ppm, particulate matter in kg m^-3^) at [#cs_heights cs_heights].\\\\
     206Example:\\
     207'''cs_profile'''(1,:)            =  0.020, 0.023, 0.026, 0.029, 0.032, 0.035, 0.038, 0.041, 0.044, 0.047, 0.050,    (Values for initial profile of first species)\\
     208'''cs_profile'''(2,:)            =  0.080, 0.073, 0.064, 0.057, 0.050, 0.043, 0.036, 0.029, 0.022, 0.015, 0.007,    (Values for initial profile of second species)\\
     209\\
     210The individual chemical species are identified using [#cs_name cs_name]. These initial profiles become only effective when {{{'set_constant_profiles'}}} is set for [#init initializing_actions]. 'set_constant_profiles' can be combined with 'inifor' if the file from inifor contails only meteorological variables and constant profiles are only set for chemistry.
     211}}}
     212|----------------
     213{{{#!td style="vertical-align:top; width: 150px"
     214[=#cs_surface '''cs_surface''']
     215}}}
     216{{{#!td style="vertical-align:top; width: 50px"
     217R
     218}}}
     219{{{#!td style="vertical-align:top; width: 75px"
     2200.0
     221}}}
     222{{{#!td
     223Concentration value for chemical species at the surface (gases in ppm, particulate matter in kg m^-3^).
     224
     225}}}
     226|----------------
     227{{{#!td style="vertical-align:top; width: 150px"
     228[=#daytype_mdh '''daytype_mdh''']
     229}}}
     230{{{#!td style="vertical-align:top; width: 50px"
     231C*80
     232}}}
     233{{{#!td style="vertical-align:top; width: 75px"
     234}}}
     235{{{#!td
     236Type of weekday required for the MDH (!MonthDayHour) case of the DEFAULT mode of the emissions module.
     237Possible values are: workday, weekend, holiday
     238}}}
     239|----------------
     240{{{#!td style="vertical-align:top; width: 150px"
     241[=#decycle_chem_lr '''decycle_chem_lr''']
     242}}}
     243{{{#!td style="vertical-align:top; width: 50px"
     244L
     245}}}
     246{{{#!td style="vertical-align:top; width: 75px"
     247.FALSE.
     248}}}
     249{{{#!td
     250Cyclic boundary conditions for chemistry may result in accumluation of chemical compounds. If '''decycle_chem_lr''' is set to true, initial concentration values are fixed at the left or right inflow boundary.
     251
     252}}}
     253|----------------
     254{{{#!td style="vertical-align:top; width: 150px"
     255[=#decycle_chem_ns '''decycle_chem_ns''']
     256}}}
     257{{{#!td style="vertical-align:top; width: 50px"
     258L
     259}}}
     260{{{#!td style="vertical-align:top; width: 75px"
     261.FALSE.
     262}}}
     263{{{#!td
     264Cyclic boundary conditions for chemistry may result in accumluation of chemical compounds. If '''decycle_chem_ns''' is set to true, initial concentration values are fixed at the southern or northern inflow boundary.
     265}}}
     266|----------------
     267{{{#!td style="vertical-align:top; width: 150px"
     268[=#decycle_method '''decycle_method''']
     269}}}
     270{{{#!td style="vertical-align:top; width: 50px"
     271C*20(4)
     272}}}
     273{{{#!td style="vertical-align:top; width: 75px"
     274'dirichlet'
     275}}}
     276{{{#!td
     277Decycling method at horizontal boundaries (1=left, 2=right, 3=south, 4=north)\\
     278 'dirichlet' = initial size distribution and chemical composition set for the ghost points and first three grid points \\
     279 'neumann' = zero gradient
     280}}}
     281|----------------
     282{{{#!td style="vertical-align:top; width: 150px"
     283[=#do_depo '''do_depo''']
     284}}}
     285{{{#!td style="vertical-align:top; width: 50px"
     286L
     287}}}
     288{{{#!td style="vertical-align:top; width: 75px"
     289.FALSE.
     290}}}
     291{{{#!td
     292Switches the deposition calculation for particles and gases ON (.TRUE.) or OFF (.FALSE.)
     293}}}
     294|----------------
     295{{{#!td style="vertical-align:top; width: 150px"
     296[=#do_emis '''do_emis''']
     297}}}
     298{{{#!td style="vertical-align:top; width: 50px"
     299L
     300}}}
     301{{{#!td style="vertical-align:top; width: 75px"
     302.FALSE.
     303}}}
     304{{{#!td
     305Switches the chem_emission module ON (.TRUE.) or OFF (.FALSE.)
     306}}}
     307|----------------
     308{{{#!td style="vertical-align:top; width: 150px"
     309[=#emiss_factor_main '''emiss_factor_main''']
     310}}}
     311{{{#!td style="vertical-align:top; width: 50px"
     312R(99)
     313}}}
     314{{{#!td style="vertical-align:top; width: 75px"
     315-9999.0
     316}}}
     317{{{#!td
     318Constant emission scaling factor for MAIN street types, used in the PARAMETERIZED mode of chem_emission module. The number and the order of the values has to correspond to the names of the emission species provided for [#surface_csflux_name surface_csflux_name].
     319}}}
     320|----------------
     321{{{#!td style="vertical-align:top; width: 150px"
     322[=#emiss_factor_side '''emiss_factor_side''']
     323}}}
     324{{{#!td style="vertical-align:top; width: 50px"
     325R(99)
     326}}}
     327{{{#!td style="vertical-align:top; width: 75px"
     328-9999.0
     329}}}
     330{{{#!td
     331Constant emission scaling factor for SIDE (secondary) street types, used in the PARAMETERIZED [#mode_emis mode] of chem_emission module. The number and the order of the values has to correspond to the names of the emission species provided for [#surface_csflux_name surface_csflux_name].
     332}}}
     333|----------------
     334{{{#!td style="vertical-align:top; width: 150px"
     335[=#icntrl '''icntrl''']
     336}}}
     337{{{#!td style="vertical-align:top; width: 50px"
     338I(20)
     339}}}
     340{{{#!td style="vertical-align:top; width: 75px"
     3410
     342}}}
     343{{{#!td
     344Selection and steering of the chemistry solver. In order to offer more control over the integrator, the KPP-generated Integrator subroutine (e.g. SUBROUTINE rosenbrock in chem_gasphase_mod.f90) provides the optional input parameters ICNTRL_U and RCNTRL_U. Each of them is an array of 20 elements that allow the fine-tuning of the integrator, e.g. by setting a particular Integrator method, tolerances, minimum and maximum step sizes, etc.
     345
     346Note: For input parameters equal to zero the default values of the corresponding variables are used.\\
     347
     348    '''ICNTRL'''(1) = 1: F = F(y)   Independent of T (AUTONOMOUS), = 0: F = F(t,y) Depends on T (NON-AUTONOMOUS)
     349
     350    '''ICNTRL'''(2) = 0: abstol, reltol are N-dimensional vectors, = 1: Abstol, Reltol are scalars
     351
     352    '''ICNTRL'''(3)  -> selection of a particular Rosenbrock method\\
     353         0 :    Rodas3 (Default from KPP)\\
     354         1 :    Ros2 (Simplest Rosenbrock solver, will also do)\\
     355         2 :    Ros3\\
     356         3 :    Ros4\\
     357         4 :    Rodas3\\
     358         5 :    Rodas4
     359
     360    ICNTRL(4)  -> maximum number of integration steps; For ICNTRL(4) =0) the default value of 100000 is used
     361
     362Example:\\
     363    '''icntrl'''(3)                  = 1,   ! ros2 (a bit less time consuming than the Rodas3 solver recommended by KPP) \\
     364    '''icntrl'''(4)                  = 500, ! berlin setup  max. number of chem-substeps\\
     365
     366See http://people.cs.vt.edu/asandu/Software/Kpp/
     367}}}
     368|----------------
     369{{{#!td style="vertical-align:top; width: 150px"
     370[=#main_street_id '''main_street_id''']
     371}}}
     372{{{#!td style="vertical-align:top; width: 50px"
     373I(99)
     374}}}
     375{{{#!td style="vertical-align:top; width: 75px"
     3760
     377}}}
     378{{{#!td
     379Index for identifying MAIN streets following street type classes from `OpenStreetMap`.
     380}}}
     381|----------------
     382{{{#!td style="vertical-align:top; width: 150px"
     383[=#max_street_id '''max_street_id''']
     384}}}
     385{{{#!td style="vertical-align:top; width: 50px"
     386I(99)
     387}}}
     388{{{#!td style="vertical-align:top; width: 75px"
     3890
     390}}}
     391{{{#!td
     392Maximum index value for identifying ALL (MAIN and SIDE) streets following street type classes from `OpenStreetMap`.
     393}}}
     394|----------------
     395{{{#!td style="vertical-align:top; width: 150px"
     396[=#mode_emis '''mode_emis''']
     397}}}
     398{{{#!td style="vertical-align:top; width: 50px"
     399C*80
     400}}}
     401{{{#!td style="vertical-align:top; width: 75px"
     402'PARAMETERIZED'
     403}}}
     404{{{#!td
     405Mode of chemistry emissions.\\
     406Possible values are:
     407   * 'DEFAULT'  Input of yearly gridded emissions and MDH courses.
     408   * 'PRE-PROCESSED' Input of fully preprocessed emissions at fixed time intervals (currently only hourly intervals)
     409   * 'PARAMETERIZED' Parameterized traffic emissions based on street types supplied '''additionally'''  in the [wiki:iofiles/pids#static_input _static] input file (e.g from `OpenStreetMap`).
     410At the moment the values have to be in capital letters.
     411}}}
     412|----------------
     413{{{#!td style="vertical-align:top; width: 150px"
     414[=#my_steps '''my_steps''']
     415}}}
     416{{{#!td style="vertical-align:top; width: 50px"
     417I(50)
     418}}}
     419{{{#!td style="vertical-align:top; width: 75px"
     4200
     421}}}
     422{{{#!td
     423List of fixed timesteps:   '''my_step'''(1) = 0.0 automatic stepping\\
     424Is ignored in scalar mode. \\
     425Only relvant for vector mode, i.e. the vectorized Rosenbrock solvers.
     426}}}
     427|----------------
     428{{{#!td style="vertical-align:top; width: 150px"
     429[=#nest_chemistry '''nest_chemistry''']
     430}}}
     431{{{#!td style="vertical-align:top; width: 50px"
     432L
     433}}}
     434{{{#!td style="vertical-align:top; width: 75px"
     435.TRUE.
     436}}}
     437{{{#!td
     438Flag for nesting mode of chemical species, independent on parent or not.
     439}}}
     440|----------------
     441{{{#!td style="vertical-align:top; width: 150px"
     442[=#photolysis_scheme '''photolysis_scheme''']
     443}}}
     444{{{#!td style="vertical-align:top; width: 50px"
     445C*10
     446}}}
     447{{{#!td style="vertical-align:top; width: 75px"
     448'simple'
     449}}}
     450{{{#!td
     451Currently two somple photolysis Options are available: 'constant' and 'simple'
     452
     453 'constant' uses photolysis frequencies at a zenith angle of 45 degrees.
     454
     455 'simple' describes parameterized time-dependent photolysis frequencies as supplied with MCM (http://mcm.leeds.ac.uk/MCM,  Saunders et al. (2003)). As the solar zenith angle must be available for this scheme, at least the [#../radpar simple clear sky] radiation scheme must be active.
     456
     457}}}
     458|----------------
     459{{{#!td style="vertical-align:top; width: 150px"
     460[=#rcntrl '''rcntrl''']
     461}}}
     462{{{#!td style="vertical-align:top; width: 50px"
     463R(20)
     464}}}
     465{{{#!td style="vertical-align:top; width: 75px"
     4660.0 and see below
     467}}}
     468{{{#!td
     469Steering of the chemistry solver.
     470
     471 '''RCNTRL'''(1)  -> Hmin, lower bound for the integration step size. It is strongly recommended to keep Hmin = ZERO
     472
     473 '''RCNTRL'''(2)  -> Hmax, upper bound for the integration step size
     474
     475 '''RCNTRL'''(3)  -> Hstart, starting value for the integration step size
     476
     477 '''RCNTRL'''(4)  -> Facmin (lower bound on step decrease factor, default=0.2)
     478
     479 '''RCNTRL'''(5)  -> Facmax (upper bound on step increase factor, default=6)
     480
     481 '''RCNTRL'''(6)  -> Facrej (step decrease factor after multiple rejections)
     482
     483 '''RCNTRL'''(7)  -> Facsafe (by which the new step is slightly smaller than the predicted value, default=0.9)
     484
     485See http://people.cs.vt.edu/asandu/Software/Kpp/
     486
     487Example:\\
     488    '''rcntrl'''(3)                  = 0.1, ! hstart in sec. Setting of hstart can result in savoings of computstinal time of 30% and more.
     489
     490}}}
     491|----------------
     492{{{#!td style="vertical-align:top; width: 150px"
     493[=#side_street_id '''side_street_id''']
     494}}}
     495{{{#!td style="vertical-align:top; width: 50px"
     496I(99)
     497}}}
     498{{{#!td style="vertical-align:top; width: 75px"
     4990
     500}}}
     501{{{#!td
     502Index for identifying SIDE streets following street type classes from 'OpenStreetMap'.
     503}}}
     504|----------------
     505{{{#!td style="vertical-align:top; width: 150px"
     506[=#surface_csflux '''surface_csflux''']
     507}}}
     508{{{#!td style="vertical-align:top; width: 50px"
     509R(99)
     510}}}
     511{{{#!td style="vertical-align:top; width: 75px"
     5120.0
     513}}}
     514{{{#!td
     515Values of surface fluxes of chemistry emissions to be used in the PARAMETERIZED mode. The number and the order of the values has to correspond to the names of the emission species provided to surface_csflux_name. Units of the input values differ between gases and PMs.
     516In the first case, emissions must be provided in micromole/m^2^*s,
     517while for PMs, input emission values have to be in kg/m^2^*s.
     518}}}
     519|----------------
     520{{{#!td style="vertical-align:top; width: 150px"
     521[=#surface_csflux_name '''surface_csflux_name''']
     522}}}
     523{{{#!td style="vertical-align:top; width: 50px"
     524C*11(99)
     525}}}
     526{{{#!td style="vertical-align:top; width: 75px"
     527'novalue'
     528
     529}}}
     530{{{#!td
     531Names of chemical species which are emitted. Required only for  [#mode_emis mode_emis]  = 'PARAMETERIZED'.\\\\
     532Example:\\
     533'''surface_csflux_name'''           = 'NO', 'NO2',  'CO', 'RCHO', 'PM10', 'PM25',\\
     534It is not necessary to specify surface_csflux_name for all compounds of the chosen chemical mechanism.
     535Names of compounds which do not occur in the mechanism are ignored.
     536}}}
     537|----------------
     538{{{#!td style="vertical-align:top; width: 150px"
     539[=#time_fac_type '''time_fac_type''']
     540}}}
     541{{{#!td style="vertical-align:top; width: 50px"
     542C*80
     543}}}
     544{{{#!td style="vertical-align:top; width: 75px"
     545MDH
     546}}}
     547{{{#!td
     548Type of time treatment for DEFAULT mode of the chem_emission module.
     549Possible values are: HOUR or MDH
     550}}}
     551
     552|----------------
     553
     554
     555\\
     556
     557== [=#output Output steering in `runtime_parameters`] ==
     558
     559Output of chemistry variables follows the usual output steering as described in [https://palm.muk.uni-hannover.de/trac/wiki/doc/app/d3par#output `Data Output`].
     560
     561Names of chemistry variables must be preceded by {{{kc_'}}}.
     562
     563Example:
     564{{{
     565    data_output = 'w',  'w_av',
     566                  'q',  'q_av',
     567                  'kc_PM10', 'kc_NO2', 'kc_NO', 'kc_O3', 'kc_PM10_av', 'kc_NO2_av',
     568}}}
     569
     570Possible output includes 2d cross section and/or 3d volume data (instantaneous and averaged) as well as instantaneous and averaged profiles.
     571
     572
     573''Note that time series output is not available yet!''
     574
     575
     576\\
     577
     578== [=#init Initialisation steering in `initialization_parameters`] ==
     579
     580If large-scale forcings from INIFOR are used only for meteorology, then user defined initial concentration and initial vertical [#cs_profiles profiles] can be activated by combining {{{set_constant_profiles}}} with {{{inifor}}} separated by a space only in the [wiki:inipar#initializing_actions initializing_parameters] namelist.
     581
     582Example:\\
     583 {{{initializing_actions = 'inifor set_constant_profiles', }}}
     584
     585\\
     586
     587== [=#testsetups Example setups] ==
     588
     589The PALM-4U subdirectory TESTS/cases contains some sample setups for different application types. An setup for a very small urban area with the 'phstatp' mechanism can be found in 'urban_environment' and 'urban_environment_restart'.
     590
     591An example setup with two passive tracers for the small test_urban model domain is attached to this page (Attachment test_urban_chem_passive.tar). 
     592
     593Further setups are attached for a 1km x 1km model domain with 10 m grid width, which is centered around the Ernst-Reuter-Platz in Berlin . For this domain, example input files are supplied for two chemistry settings:
     594 two passive compounds ('passive')\\
     595 the 'smog' mechanism\\
     596
     597Please note that PALM-4U comes by default with the code for the photostationay equilibrium between NO, NO2 and O3 plus one passive tracer, i.e. {{{chem_gashase_mod.f90}}} is prepared for 'phstatp'. In order to run PALM-4U e.g. with the 'smog' mechanism, copy the {{{chem_gashase_mod.f90}}}, which is supplied in {{{UTIL/chemistry/gasphase_preproc/mechanisms/def_smog}}} into {{{SOURCE}}} (or execute {{{run_kpp4palm.ksh -m smog}}}).
     598
     599So far, all example setups are supplied for 'PARAMETERIZED' emissions. Example emissions files for 'PREPROCESSED' and 'DEFAULT' emissions will be supplied here at a later time.
     600
     601\\
     602
     603== References ==
     604
     605Damian, V. et al (2002): The kinetic preprocessor KPP—A software environment for solving chemical kinetics, Computers & Chemical Engineering, 26, 1567-1579, https://doi.org/10.1016/S0098-1354(02)00128-X.\\
     606
     607Gery,  M.  W.,  Whitten,  G.  Z.,  Killus,  J.  P., Dodge,  M.  C. (1989): A  photochemical  kinetics  mechanism  for  urban  and  regional
     608scale computer modeling, J. Geophys. Res., 94, 12925–12956, https://doi.org/10.1029/JD094iD10p12925.\\
     609
     610Jöckel, P. et al (2010): Development cycle 2 of the Modular Earth Submodel System (MESSy2) , Geoscientific Model Development, 3, 717-752, https://doi.org/10.5194/gmd-3-717-2010.\\
     611
     612Kokkola, H., Korhonen, H., Lehtinen, K. E. J., Makkonen, R., Asmi, A., Järvenoja, S., Anttila, T., Partanen, A.-I., Kulmala, M., Järvinen, H., Laaksonen, A., and Kerminen, V.-M. (2008): SALSA - a Sectional Aerosol module for Large Scale Applications, Atmospheric Chemistry and Physics, 8, 2469–2483, ​https://doi.org/10.5194/acp-8-2469-2008.\\
     613
     614Sandu, A. and Sander, R. E. (2006): Technical Note: Simulating chemical systems in Fortran90 and Matlab with the Kinetic !PreProcessor KPP-2.1, Atmospheric Chemistry and Physics, 6, 187-195, https://doi.org/10.5194/acp-6-187-2006.\\
     615
     616Saunders, S. M., Jenkin, M. E., Derwent, R. G., Pilling, M. J. (2003): Protocol for the development of the Master Chemical Mechanism, MCM v3 (Part A): tropospheric degradation of non-aromatic volatile organic compounds , Atmospheric Chemistry and Physics, 3, 161-180, https://doi.org/10.5194/acp-3-161-2003.\\
     617
     618Van Zanten, M. C. et al (2010): Description of the DEPAC module. Dry deposition modelling with DEPAC_GCN2010, RIVM report 680180001/2010, Bilthoven, The Netherlands, 74 pp.\\
     619
     620Zhang, L., Gong, S., Padro, J., and Barrie, L. (2001): A size-segregated particle dry deposition scheme for an atmospheric aerosol module, Atmospheric Environment, 35, 549–560, ​https://doi.org/10.1016/S1352-2310(00)00326-5. \\