Figure 5.2 shows the input and output files for BCON. A distinction is made between the inputs that are invoked at compilation versus those invoked at execution of the program. When compiling BCON, the user specifies a chemical mechanism to determine the gas-phase chemistry and aerosol mechanism to calculate chemical boundary conditions for. Setting the Mechanism variable in the BCON compile script configures the program to use a specific set of mechanism include files to build an executable. Seperate BCON executables are hard-wired to a specific mechanism configuration.
At execution the user provides a data file of chemical conditions that BCON will convert to boundary conditions on a predefined model grid. Depending on how the user compiled the model, through the specification of the ModInpt variable, BCON will input either an ASCII vertical profile file (BC_PROFILE) or an existing CCTM concentration file (CTM_CONC_1). If the input file is not in the same chemical speciation as the simulation that the user is creating boundary conditions for, it is necessary to specify a chemical conversion option by setting the ModMech variable at compilation. The default conversion profiles in BCON are set up to convert from RADM2 speciation to either CB-IV, CB05, or SAPRC99 chemistry. It is possible to create a custom conversion file (MECH_CONV_FILE) and input this file to BCON by setting the ModMech variable to “user_defined” at compilation.
The horizontal grid and vertical layer structures for BCON are defined at execution through the input of a grid description (GRIDDESC) file and a meteorology cross-point 3-d (MET_CRO_3D) file, respectively. BCON interpolates between the input vertical layer structure and output layer structure if they are different.
Table 5.1. BCON input files
| File Name | Format | Description |
|---|---|---|
| BC_PROFILE | ASCI | Vertical chemical profiles from which to derive boundary conditions; this file is created by the user; only used when BC is set to “profile” |
| MECH_CONV_FILE | ASCII | Mapping factors for converting between chemical mechanisms; this file is created by the user; only used when BCON is compiled with the ModMech configuration set to “user_defined” |
| CTM_CONC_1 | GRDDED3 | CMAQ concentration file from which to derive boundary conditions; this file is output from the CCTM; only used when BC is set to “m3conc” |
| CTM_PING_1 | GRDDED3 | Name and location of the plume-in-grid concentration file for the coarse domain; this file is output from the CCTM; only used when BCON_PING is set to “Y” |
| PING_PDM_1 | GRDDED3 | Name and location of the plume-in-grid plume dynamics file for the coarse domain; this file output from the PDM; only used when BCON_PING is set to “Y” |
| MET_CRO_3D_CRS | GRDDED3 | Name and location of the course grid MET_CRO_3D file that is required for creating either plume-in-grid boundary conditions or if the vertical grid structure changes between nested simulations; this file is output by MCIP |
| MET_CRO_3D_FIN | GRDDED3 | Name and location of the fine grid MET_CRO_3D file that is required if the vertical grid structure changes between nested simulations; this file is output by MCIP |
| GRIDDESC | ASCII | Horizontal grid description file for defining the model grid; this file is output by MCIP or can be created by the user |
| MET_CRO_3D | GRDDED3 | 3-D cross point meteorology file for defining the vertical layer structure of the model grid; this file is output by MCIP |
The configuration options listed here are set during compilation of the BCON executable. When these options are invoked they create a binary executable that is fixed to the specified configuration. To change these options it is necessary to recompile BCON and create a new executable.
MakeOpt:
Uncomment to build a Makfile to compile the executable.
ModInpt:
Defines the format of the boundary conditions input files to be used by BCON.
ModMech:
Defines if the input boundary conditions data need to be converted from one chemical mechanism to another.
Mechanism:
Specifies the gas-phase, aerosol, and aqueous phase chemical mechanisms to create boundary conditions for. The choices for the
Mechanism variable are the mechanism directory names under the $M3MODEL/include/release directory. Examples include:
Section 3.3 provides an overview of how to install and compile the CMAQ programs for the benchmark simulation. Follow the steps outlined in Section 3.3 to compile new versions of BCON:
./bldit.bcon.pgf
The environment variables listed here are invoked during execution of the program and are set in the BCON run script.
EXEC: [default: BCON_${CFG}]
Executable to use for the simulation
NPCOL_NPROW: [default: 1 1]
Domain decomposition for parallel mode; BCON is normally run in a single processor environment, so this setting should always be “1 1”
GRIDDESC: [default: ../GRIDDESC1]
Grid description file for setting the horizontal grid definition
GRID_NAME:
Name of the grid definition contained in the GRIDDESC file that specifies the horizontal grid for the current application of the model
LAYER_FILE:
Name and location of a MET_CRO_3D file for specifying the vertical layer structure for the current application of the model
OUTDIR: [default: $M3DATA/bcon]
Output data directory
BC:
Sets the input file type. The setting of this variable determines how the input and output environment variables are set by the run script.
DATE:
Sets the Julian date to use for tagging the BCON output file for nested runs.
BCON_PING:
Flag controlling the creation of boundary conditions for a plume-in-grid simulation.
SDATE:
Julian start date for extracting boundary conditions from a CCTM CONC file for a nested simulation. If SDATE is not set, it will be set automatically from the CTM_CONC_1 file.
STIME
Start time for extracting boundary conditions from a CCTM CONC file for a nested simulation. If STIME is not set, it will be set automatically from the CTM_CONC_1 file.
RUNLEN
Number of hours of boundary conditions to extract from a CCTM CONC file for a nested simulation. If RUNLEN is not set, it will be set automatically from the CTM_CONC_1 file.
Table 5.2. BCON output files
| File Name | Format | Description |
|---|---|---|
| BNDY_CONC_1 | BNDARY3 | Name and location of the gridded boundary conditions data output on the model grid defined by GRID_NAME |
The default location of the BCON output files is the $M3DATA/bcon directory, controlled by the OUTDIR variable in the run script. The default naming convention for all BCON output files uses the APPL and GRID_NAME environment variables in the file name. For boundary conditions created from existing CCTM CONC files, the Julian date is also used in the file name through the DATE environment variable. All of the file naming variables for BCON outputs are set in the run script.