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.
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:
<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 (change to the assigns directory)
source (set up for the nctox case)
Next, you’ll run the base-year nctox scripts. These scripts process the stationary area, biogenic, nonroad mobile, and point emissions for the base year. The commands to run the scripts are below:
cd (change to the run scripts directory)
(invoke the stationary area run script)
(invoke the BEIS3 biogenic run script)
(invoke the nonroad mobile run script)
(invoke the point run script)
(invoke the MOVES mobile sources on-roadway rate-per-distance (RPD) run script for all processes)
(invoke the MOVES mobile sources off-network rate-per-vehicle (RPV) run script)
(invoke the MOVES mobile sources off-network rate-per-profile (RPP) run script)
(invoke the MOVES mobile sources off-network rate-per-hour (RPH) run script)
(invoke the all-sources merge script)
To verify that the nctox scripts have run correctly, go to the log file directory and look for errors by using:
cd (change to the log file directory for the test case)
grep ERROR *
If there are no errors, the next step is to run a QA script to be sure that the answers match.
cd (change to the install directory)
(invoke the smoke install quality assurance script)