Changes between Version 16 and Version 17 of doc/tec/chem


Ignore:
Timestamp:
Jan 29, 2019 2:12:22 PM (6 years ago)
Author:
westbrink
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/tec/chem

    v16 v17  
    33Main page of the chemistry model under construction. Click [wiki:doc/app/chempar here] for first information about capabilities and model steering.
    44
    5 
    6 = Chemistry model parameters =
    75[[TracNav(doc/app/partoc|nocollapse)]]
    86
     
    2927[[Image(Button_ExampleSetup.png,120px,link=wiki:doc/app/chemeg)]] 
    3028[[Image(Button_References.png,120px,link=wiki:doc/app/chemref)]]   \\\\\\\\   
    31 
    32 
    33 
    34 \\\\
    35 == Parameter list ==
    36 '''NAMELIST group name: [=#chempar {{{chemistry_parameters}}}''']
    37 
    38 ||='''Parameter Name'''  =||='''[[../fortrantypes|FORTRAN]]\\[[../fortrantypes|Type]]'''  =||='''Default\\Value'''  =||='''Explanation'''  =||
    39 |----------------
    40 {{{#!td style="vertical-align:top; width: 150px"
    41 [=#bc_cs_b '''bc_cs_b''']
    42 }}}
    43 {{{#!td style="vertical-align:top; width: 50px"
    44 C*20
    45 }}}
    46 {{{#!td style="vertical-align:top; width: 75px"
    47 'dirichlet'
    48 }}}
    49 {{{#!td
    50 Bottom boundary condition of the chemical species (`cs`) concentration.
    51 
    52 Allowed 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.
    53 }}}
    54 |----------------
    55 {{{#!td style="vertical-align:top; width: 150px"
    56 [=#bc_cs_t '''bc_cs_t''']
    57 }}}
    58 {{{#!td style="vertical-align:top; width: 50px"
    59 C*20
    60 }}}
    61 {{{#!td style="vertical-align:top; width: 75px"
    62 'initial_gradient'
    63 }}}
    64 {{{#!td
    65 Top boundary condition of the scalar concentration.
    66 
    67 Allowed are the values  'dirichlet'  (cs(k=nz+1) does not change during the run),  'neumann'  (cs(k=nz+1) = cs(k=nz)),
    68 and  'initial_gradient' .
    69 With 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
    70 cs(k=nz+1) = cs(k=nz) + bc_cs_t_val * dzu(nz+1)
    71 (up to k=nz the prognostic equation for the chemical species concentration is solved).
    72 
    73 When 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.
    74 }}}
    75 |----------------
    76 {{{#!td style="vertical-align:top; width: 150px"
    77 [=#call_chem_at_all_substeps '''call_chem_at_all_substeps''']
    78 }}}
    79 {{{#!td style="vertical-align:top; width: 50px"
    80 L
    81 }}}
    82 {{{#!td style="vertical-align:top; width: 75px"
    83 .FALSE.
    84 }}}
    85 {{{#!td
    86 Switch 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.
    87 }}}
    88 |----------------
    89 {{{#!td style="vertical-align:top; width: 150px"
    90 [=#chem_debug0 '''chem_debug0 ''']
    91 }}}
    92 {{{#!td style="vertical-align:top; width: 50px"
    93 L
    94 }}}
    95 {{{#!td style="vertical-align:top; width: 75px"
    96 .FALSE.
    97 }}}
    98 {{{#!td
    99 Extra print output of chemistry variables.
    100 }}}
    101 |----------------
    102 {{{#!td style="vertical-align:top; width: 150px"
    103 [=#chem_gasphase_on '''chem_gasphase_on''']
    104 }}}
    105 {{{#!td style="vertical-align:top; width: 50px"
    106 L
    107 }}}
    108 {{{#!td style="vertical-align:top; width: 75px"
    109 .TRUE.
    110 }}}
    111 {{{#!td
    112 Switch for switching off the chemical reactions but still doing the transport for all chemical compounds. Useful for test purposes.
    113 }}}
    114 |----------------
    115 {{{#!td style="vertical-align:top; width: 150px"
    116 [=#chem_mechanism '''chem_mechanism''']
    117 }}}
    118 {{{#!td style="vertical-align:top; width: 50px"
    119 C*30
    120 }}}
    121 {{{#!td style="vertical-align:top; width: 75px"
    122 'phstatp'
    123 }}}
    124 {{{#!td
    125 Parameter 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.
    126 }}}
    127 |----------------
    128 {{{#!td style="vertical-align:top; width: 150px"
    129 [=#cs_heights '''cs_heights''']
    130 }}}
    131 {{{#!td style="vertical-align:top; width: 50px"
    132 R(99,100)
    133 }}}
    134 {{{#!td style="vertical-align:top; width: 75px"
    135 9999999.9
    136 }}}
    137 {{{#!td
    138 Height levels above ground (in m) to go with [#cs_profile cs_profile] in order to define initial profiles of chemical species.
    139 The first index refers to the chemical compound, the second to height level.
    140 Example:\\
    141 '''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)\\
    142 '''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)\\
    143 }}}
    144 |----------------
    145 {{{#!td style="vertical-align:top; width: 150px"
    146 [=#cs_name '''cs_name''']
    147 }}}
    148 {{{#!td style="vertical-align:top; width: 50px"
    149 C*11(99)
    150 }}}
    151 {{{#!td style="vertical-align:top; width: 75px"
    152 'novalue'
    153 }}}
    154 {{{#!td
    155 Names of chemical species where surface concentrations or concentration profiles ([#cs_profile cs_profile]) are prescribed.
    156 Example:\\
    157 '''cs_name'''                    = 'O3',  'NO', 'NO2',  'CO', 'RCHO', 'PM10', 'PM25',\\
    158 It 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.
    159 Names of compounds which do not occur mechanism are ignored.
    160 }}}
    161 |----------------
    162 {{{#!td style="vertical-align:top; width: 150px"
    163 [=#cs_profile '''cs_profile''']
    164 }}}
    165 {{{#!td style="vertical-align:top; width: 50px"
    166 R(99,100)
    167 }}}
    168 {{{#!td style="vertical-align:top; width: 75px"
    169 9999999.9
    170 }}}
    171 {{{#!td
    172 Concentration values of chemical species (gases in ppm, particulate matter in kg m^-3^) at [#cs_heights cs_heights].\\\\
    173 Example:\\
    174 '''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)\\
    175 '''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)\\
    176 \\
    177 The 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.
    178 }}}
    179 |----------------
    180 {{{#!td style="vertical-align:top; width: 150px"
    181 [=#cs_surface '''cs_surface''']
    182 }}}
    183 {{{#!td style="vertical-align:top; width: 50px"
    184 R
    185 }}}
    186 {{{#!td style="vertical-align:top; width: 75px"
    187 0.0
    188 }}}
    189 {{{#!td
    190 Concentration value for chemical species at the surface (gases in ppm, particulate matter in kg m^-3^).
    191 
    192 }}}
    193 |----------------
    194 {{{#!td style="vertical-align:top; width: 150px"
    195 [=#daytype_mdh '''daytype_mdh''']
    196 }}}
    197 {{{#!td style="vertical-align:top; width: 50px"
    198 C*80
    199 }}}
    200 {{{#!td style="vertical-align:top; width: 75px"
    201 }}}
    202 {{{#!td
    203 Type of weekday required for the MDH (!MonthDayHour) case of the DEFAULT mode of the emissions module.
    204 Possible values are: workday, weekend, holiday
    205 }}}
    206 |----------------
    207 {{{#!td style="vertical-align:top; width: 150px"
    208 [=#decycle_chem_lr '''decycle_chem_lr''']
    209 }}}
    210 {{{#!td style="vertical-align:top; width: 50px"
    211 L
    212 }}}
    213 {{{#!td style="vertical-align:top; width: 75px"
    214 .FALSE.
    215 }}}
    216 {{{#!td
    217 Cyclic 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.
    218 
    219 }}}
    220 |----------------
    221 {{{#!td style="vertical-align:top; width: 150px"
    222 [=#decycle_chem_ns '''decycle_chem_ns''']
    223 }}}
    224 {{{#!td style="vertical-align:top; width: 50px"
    225 L
    226 }}}
    227 {{{#!td style="vertical-align:top; width: 75px"
    228 .FALSE.
    229 }}}
    230 {{{#!td
    231 Cyclic 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.
    232 }}}
    233 |----------------
    234 {{{#!td style="vertical-align:top; width: 150px"
    235 [=#decycle_method '''decycle_method''']
    236 }}}
    237 {{{#!td style="vertical-align:top; width: 50px"
    238 C*20(4)
    239 }}}
    240 {{{#!td style="vertical-align:top; width: 75px"
    241 'dirichlet'
    242 }}}
    243 {{{#!td
    244 Decycling method at horizontal boundaries (1=left, 2=right, 3=south, 4=north)\\
    245  'dirichlet' = initial size distribution and chemical composition set for the ghost points and first three grid points \\
    246  'neumann' = zero gradient
    247 }}}
    248 |----------------
    249 {{{#!td style="vertical-align:top; width: 150px"
    250 [=#do_depo '''do_depo''']
    251 }}}
    252 {{{#!td style="vertical-align:top; width: 50px"
    253 L
    254 }}}
    255 {{{#!td style="vertical-align:top; width: 75px"
    256 .FALSE.
    257 }}}
    258 {{{#!td
    259 Switches the deposition calculation for particles and gases ON (.TRUE.) or OFF (.FALSE.)
    260 }}}
    261 |----------------
    262 {{{#!td style="vertical-align:top; width: 150px"
    263 [=#do_emis '''do_emis''']
    264 }}}
    265 {{{#!td style="vertical-align:top; width: 50px"
    266 L
    267 }}}
    268 {{{#!td style="vertical-align:top; width: 75px"
    269 .FALSE.
    270 }}}
    271 {{{#!td
    272 Switches the chem_emission module ON (.TRUE.) or OFF (.FALSE.)
    273 }}}
    274 |----------------
    275 {{{#!td style="vertical-align:top; width: 150px"
    276 [=#emiss_factor_main '''emiss_factor_main''']
    277 }}}
    278 {{{#!td style="vertical-align:top; width: 50px"
    279 R(99)
    280 }}}
    281 {{{#!td style="vertical-align:top; width: 75px"
    282 -9999.0
    283 }}}
    284 {{{#!td
    285 Constant 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].
    286 }}}
    287 |----------------
    288 {{{#!td style="vertical-align:top; width: 150px"
    289 [=#emiss_factor_side '''emiss_factor_side''']
    290 }}}
    291 {{{#!td style="vertical-align:top; width: 50px"
    292 R(99)
    293 }}}
    294 {{{#!td style="vertical-align:top; width: 75px"
    295 -9999.0
    296 }}}
    297 {{{#!td
    298 Constant 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].
    299 }}}
    300 |----------------
    301 {{{#!td style="vertical-align:top; width: 150px"
    302 [=#icntrl '''icntrl''']
    303 }}}
    304 {{{#!td style="vertical-align:top; width: 50px"
    305 I(20)
    306 }}}
    307 {{{#!td style="vertical-align:top; width: 75px"
    308 0
    309 }}}
    310 {{{#!td
    311 Selection 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.
    312 
    313 Note: For input parameters equal to zero the default values of the corresponding variables are used.\\
    314 
    315     '''ICNTRL'''(1) = 1: F = F(y)   Independent of T (AUTONOMOUS), = 0: F = F(t,y) Depends on T (NON-AUTONOMOUS)
    316 
    317     '''ICNTRL'''(2) = 0: abstol, reltol are N-dimensional vectors, = 1: Abstol, Reltol are scalars
    318 
    319     '''ICNTRL'''(3)  -> selection of a particular Rosenbrock method\\
    320          0 :    Rodas3 (Default from KPP)\\
    321          1 :    Ros2 (Simplest Rosenbrock solver, will also do)\\
    322          2 :    Ros3\\
    323          3 :    Ros4\\
    324          4 :    Rodas3\\
    325          5 :    Rodas4
    326 
    327     ICNTRL(4)  -> maximum number of integration steps; For ICNTRL(4) =0) the default value of 100000 is used
    328 
    329 Example:\\
    330     '''icntrl'''(3)                  = 1,   ! ros2 (a bit less time consuming than the Rodas3 solver recommended by KPP) \\
    331     '''icntrl'''(4)                  = 500, ! berlin setup  max. number of chem-substeps\\
    332 
    333 See http://people.cs.vt.edu/asandu/Software/Kpp/
    334 }}}
    335 |----------------
    336 {{{#!td style="vertical-align:top; width: 150px"
    337 [=#main_street_id '''main_street_id''']
    338 }}}
    339 {{{#!td style="vertical-align:top; width: 50px"
    340 I(99)
    341 }}}
    342 {{{#!td style="vertical-align:top; width: 75px"
    343 0
    344 }}}
    345 {{{#!td
    346 Index for identifying MAIN streets following street type classes from `OpenStreetMap`.
    347 }}}
    348 |----------------
    349 {{{#!td style="vertical-align:top; width: 150px"
    350 [=#max_street_id '''max_street_id''']
    351 }}}
    352 {{{#!td style="vertical-align:top; width: 50px"
    353 I(99)
    354 }}}
    355 {{{#!td style="vertical-align:top; width: 75px"
    356 0
    357 }}}
    358 {{{#!td
    359 Maximum index value for identifying ALL (MAIN and SIDE) streets following street type classes from `OpenStreetMap`.
    360 }}}
    361 |----------------
    362 {{{#!td style="vertical-align:top; width: 150px"
    363 [=#mode_emis '''mode_emis''']
    364 }}}
    365 {{{#!td style="vertical-align:top; width: 50px"
    366 C*80
    367 }}}
    368 {{{#!td style="vertical-align:top; width: 75px"
    369 'PARAMETERIZED'
    370 }}}
    371 {{{#!td
    372 Mode of chemistry emissions.\\
    373 Possible values are:
    374    * 'DEFAULT'  Input of yearly gridded emissions and MDH courses.
    375    * 'PRE-PROCESSED' Input of fully preprocessed emissions at fixed time intervals (currently only hourly intervals)
    376    * 'PARAMETERIZED' Parameterized traffic emissions based on street types supplied '''additionally'''  in the [wiki:iofiles/pids#static_input _static] input file (e.g from `OpenStreetMap`).
    377 At the moment the values have to be in capital letters.
    378 }}}
    379 |----------------
    380 {{{#!td style="vertical-align:top; width: 150px"
    381 [=#my_steps '''my_steps''']
    382 }}}
    383 {{{#!td style="vertical-align:top; width: 50px"
    384 I(50)
    385 }}}
    386 {{{#!td style="vertical-align:top; width: 75px"
    387 0
    388 }}}
    389 {{{#!td
    390 List of fixed timesteps:   '''my_step'''(1) = 0.0 automatic stepping\\
    391 Is ignored in scalar mode. \\
    392 Only relvant for vector mode, i.e. the vectorized Rosenbrock solvers.
    393 }}}
    394 |----------------
    395 {{{#!td style="vertical-align:top; width: 150px"
    396 [=#nest_chemistry '''nest_chemistry''']
    397 }}}
    398 {{{#!td style="vertical-align:top; width: 50px"
    399 L
    400 }}}
    401 {{{#!td style="vertical-align:top; width: 75px"
    402 .TRUE.
    403 }}}
    404 {{{#!td
    405 Flag for nesting mode of chemical species, independent on parent or not.
    406 }}}
    407 |----------------
    408 {{{#!td style="vertical-align:top; width: 150px"
    409 [=#photolysis_scheme '''photolysis_scheme''']
    410 }}}
    411 {{{#!td style="vertical-align:top; width: 50px"
    412 C*10
    413 }}}
    414 {{{#!td style="vertical-align:top; width: 75px"
    415 'simple'
    416 }}}
    417 {{{#!td
    418 Currently two somple photolysis Options are available: 'constant' and 'simple'
    419 
    420  'constant' uses photolysis frequencies at a zenith angle of 45 degrees.
    421 
    422  '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.
    423 
    424 }}}
    425 |----------------
    426 {{{#!td style="vertical-align:top; width: 150px"
    427 [=#rcntrl '''rcntrl''']
    428 }}}
    429 {{{#!td style="vertical-align:top; width: 50px"
    430 R(20)
    431 }}}
    432 {{{#!td style="vertical-align:top; width: 75px"
    433 0.0 and see below
    434 }}}
    435 {{{#!td
    436 Steering of the chemistry solver.
    437 
    438  '''RCNTRL'''(1)  -> Hmin, lower bound for the integration step size. It is strongly recommended to keep Hmin = ZERO
    439 
    440  '''RCNTRL'''(2)  -> Hmax, upper bound for the integration step size
    441 
    442  '''RCNTRL'''(3)  -> Hstart, starting value for the integration step size
    443 
    444  '''RCNTRL'''(4)  -> Facmin (lower bound on step decrease factor, default=0.2)
    445 
    446  '''RCNTRL'''(5)  -> Facmax (upper bound on step increase factor, default=6)
    447 
    448  '''RCNTRL'''(6)  -> Facrej (step decrease factor after multiple rejections)
    449 
    450  '''RCNTRL'''(7)  -> Facsafe (by which the new step is slightly smaller than the predicted value, default=0.9)
    451 
    452 See http://people.cs.vt.edu/asandu/Software/Kpp/
    453 
    454 Example:\\
    455     '''rcntrl'''(3)                  = 0.1, ! hstart in sec. Setting of hstart can result in savoings of computstinal time of 30% and more.
    456 
    457 }}}
    458 |----------------
    459 {{{#!td style="vertical-align:top; width: 150px"
    460 [=#side_street_id '''side_street_id''']
    461 }}}
    462 {{{#!td style="vertical-align:top; width: 50px"
    463 I(99)
    464 }}}
    465 {{{#!td style="vertical-align:top; width: 75px"
    466 0
    467 }}}
    468 {{{#!td
    469 Index for identifying SIDE streets following street type classes from 'OpenStreetMap'.
    470 }}}
    471 |----------------
    472 {{{#!td style="vertical-align:top; width: 150px"
    473 [=#surface_csflux '''surface_csflux''']
    474 }}}
    475 {{{#!td style="vertical-align:top; width: 50px"
    476 R(99)
    477 }}}
    478 {{{#!td style="vertical-align:top; width: 75px"
    479 0.0
    480 }}}
    481 {{{#!td
    482 Values 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.
    483 In the first case, emissions must be provided in micromole/m^2^*s,
    484 while for PMs, input emission values have to be in kg/m^2^*s.
    485 }}}
    486 |----------------
    487 {{{#!td style="vertical-align:top; width: 150px"
    488 [=#surface_csflux_name '''surface_csflux_name''']
    489 }}}
    490 {{{#!td style="vertical-align:top; width: 50px"
    491 C*11(99)
    492 }}}
    493 {{{#!td style="vertical-align:top; width: 75px"
    494 'novalue'
    495 
    496 }}}
    497 {{{#!td
    498 Names of chemical species which are emitted. Required only for  [#mode_emis mode_emis]  = 'PARAMETERIZED'.\\\\
    499 Example:\\
    500 '''surface_csflux_name'''           = 'NO', 'NO2',  'CO', 'RCHO', 'PM10', 'PM25',\\
    501 It is not necessary to specify surface_csflux_name for all compounds of the chosen chemical mechanism.
    502 Names of compounds which do not occur in the mechanism are ignored.
    503 }}}
    504 |----------------
    505 {{{#!td style="vertical-align:top; width: 150px"
    506 [=#time_fac_type '''time_fac_type''']
    507 }}}
    508 {{{#!td style="vertical-align:top; width: 50px"
    509 C*80
    510 }}}
    511 {{{#!td style="vertical-align:top; width: 75px"
    512 MDH
    513 }}}
    514 {{{#!td
    515 Type of time treatment for DEFAULT mode of the chem_emission module.
    516 Possible values are: HOUR or MDH
    517 }}}
    518 
    519 |----------------