calpuff_11_chem_params: Set the CALPUFF chemistry parameters

Description Usage Arguments

Description

This function validates and writes CALPUFF parameters for atmospheric chemistry.

Usage

1
2
3
4
5
6
7
calpuff_11_chem_params(calpuff_inp = "calpuff_template.txt", moz = 1,
  bcko3 = c(40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40), mnh3 = 0,
  mavgnh3 = 1, bcknh3 = c(10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10),
  rnite1 = 0.2, rnite2 = 2, rnite3 = 2, mh2o2 = 1, bckh2o2 = c(1, 1,
  1, 1, 1, 1, 1, 1, 1, 1, 1, 1), bckpmf = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  1), ofrac = c(0.15, 0.15, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2,
  0.15), vcnx = c(50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50))

Arguments

calpuff_inp

the absolute path and filename for the working CALPUFF input file.

moz

the choice of ozone data input (ignored unless mchem is 1, 3, 4, 6, or 7): (0) use a monthly background ozone option, or (1) read hourly ozone concentrations from an OZONE.DAT file.

bcko3

monthly ozone concentrations as ppbV values (ignored unless mchem is 1, 3, 4, 6, or 7, and, moz is 0 or 1).

mnh3

the choice of ammonia data input (ignored unless mchem is 6 or 7): (0) use monthly background ammonia values, or (1) read hourly ammonia concentrations for each vertical layer from a NH3Z.DAT file.

mavgnh3

the choice of ammonia vertical averaging method (ignored unless mchem is 6 or 7, and, mnh3 is 1): (0) do not calculate averages and use NH3 at puff center height, or (1) average NH3 values over vertical extent of puff.

bcknh3

monthly ammonia concentrations as ppbV values (ignored unless mchem is 1 or 3, or, mchem is 6 or 7 and mnh3 is 0).

rnite1

the nighttime SO2 loss rate in percent per hour. This rate is used only at night for when mchem is set to 1. This rate is added to the computed rate both day and night when mchem is either 6 or 7 for heterogeneous reaction chemistry.

rnite2

the nighttime NOx loss rate in percent per hour (ignored unless mchem is set to 1).

rnite3

the nighttime HNO3 formation rate in percent per hour (ignored unless mchem is set to 1).

mh2o2

the choice of ammonia data input (ignored unless mchem is 6 or 7): (0) use a monthly background H2O2 option, or (1) read hourly H2O2 concentrations from an H2O2.DAT file.

bckh2o2

monthly H2O2 concentrations as ppbV values (ignored unless mchem is 1 and either mh2o2 is 0 or mh2o2 is 1 and all hourly H2O2 data is missing).

bckpmf

the average background fine particulate concentration, in units of ug/m3, for each month of the year (ignored unless mchem is 4 or 7).

ofrac

the average organic fraction of fine particulate matter for each month of the year (ignored unless mchem is 4 or 7).

vcnx

the average VOC to NOx ratio (after reaction) for each month of the year (ignored unless mchem is 4 or 7).


rich-iannone/PuffR documentation built on May 27, 2019, 7:46 a.m.