4.4. Running the nctox test case

As mentioned in Section 4.1, “Introduction”, the first step in working with SMOKE is invoking the Assigns file. In this section, we will go beyond that first step to actually running the scripts for the nctox case. But first, we will review the essential steps for running SMOKE each and every time you start to work with the SMOKE system.

First, the SMK_HOME environment variable needs to be defined. In Section 12.3, “Installing SMOKE”, we explain that you can configure your UNIX system to set this automatically each time you log into your computer. If you have not done that, then you will need to set the SMK_HOME variable manually before invoking an Assigns file:

setenv SMK_HOME <directory in which you installed SMOKE>

Second, you must invoke the Assigns file for the case that you want to run. This will make available all of the environment variables that you can use to navigate through the SMOKE directory structure. There is a different Assigns file for each case, so we provide this instruction with the case-specific documentation below. Of course, when you develop an Assigns file for your case, you will use that instead.

NOTE: All of the SMOKE scripts assume that you are running a variant of the C-shell (either csh or tcsh). The scripts will not work with other shells such as bash. If your shell is not csh or tcsh, you will need to change into an appropriate shell before running any SMOKE scripts.

To run the nctox test case, you must first source the Assigns file using the commands below:

cd $SMK_HOME/subsys/smoke/assigns (change to the assigns directory)

source ASSIGNS.nctox.cmaq.cb4p25_wtox.us12-nc (set up for the nctox case)

Next, you’ll run the base-year nctox scripts. These scripts process the stationary area, biogenic, on-road mobile, nonroad mobile, and point emissions for the base year. The commands to run the scripts are below:

cd $SCRIPTS/run (change to the run scripts directory)

smk_ar_nctox.csh (invoke the stationary area run script)

smk_bg_nctox.csh (invoke the BEIS3 biogenic run script)

smk_mb_nctox.csh (invoke the on-road mobile run script)

smk_nr_nctox.csh (invoke the nonroad mobile run script)

smk_pt_nctox.csh (invoke the point run script)

smk_mrgall_nctox.csh (invoke the all-sources merge script)

After running the base-year scripts, you will run the future-year scripts. These scripts will grow the base year emissions to a future year and the process the emissions. The commands to run the scripts are shown below:

smk_ar_nctox_18.csh (invoke the 2018 stationary area run script)

smk_mb_nctox_18.csh (invoke the 2018 on-road mobile run script)

smk_nr_nctox_18.csh (invoke the 2018 nonroad mobile run script)

smk_pt_nctox_18.csh (invoke the 2018 point run script)

smk_mrgall_nctox_18.csh (invoke the 2018 all-sources merge script)