How to Run the Model for the First Time¶
This section provides a quick-start procedure for running CE-QUAL-W2 using one of the included example applications. The DeGray Reservoir example, which includes sediment diagenesis, is used here to demonstrate the basic workflow. For instructions on setting up a new model application from scratch, see How to Set Up and Run a Model Application.
Overview¶
Running CE-QUAL-W2 involves four steps:
- Copy the model executables into the example directory.
- Run the preprocessor to validate input files.
- Run the model to produce simulation output.
- Evaluate the output files to verify correct model behavior.
Step 1: Copy Executables to the Example Directory¶
The CE-QUAL-W2 distribution includes pre-compiled executables and a set of example applications. To get started, copy the following executables into the example directory:
- Copy the model executable (e.g.,
w2_v4_64.exe) from theexecutables/w2directory. - Copy the preprocessor executable (e.g.,
preW2-v4_64.exe) from theexecutables/w2 preprocessordirectory.
Place both files into the example directory examples/DeGray Reservoir with sediment diagenesis.
The figure below shows the contents of the DeGray Reservoir example directory before copying the executables. The directory contains the control file, bathymetry file, meteorological input files, and other required input files.
Step 2: Run the Preprocessor¶
The preprocessor reads the control file and all associated input files, checks for errors, and reports any warnings or problems before the full simulation is run.
- Double-click
preW2-v4_64.exeto launch the preprocessor. -
The preprocessor produces three output files:
File Description pre.optPreprocessor output summary pre.wrnWarning messages pre.errError messages -
Open
pre.errand verify that no errors are reported.
Check both warnings and errors
Always review pre.wrn in addition to pre.err. Warnings may indicate input values that are technically valid but physically unrealistic, such as unusually large Manning's friction coefficients or mismatched segment lengths. Addressing warnings before running the model can save significant troubleshooting time.
Resolve all errors before proceeding
If pre.err contains error messages, correct the corresponding input files and rerun the preprocessor. Do not proceed to running the model until the preprocessor reports no errors.
Step 3: Run the Model¶
Once the preprocessor completes without errors, run the full simulation.
- Double-click
w2_v4_64.exeto launch the model. - A dialog box appears showing simulation progress, including the current simulation day and elapsed run time.
- When the simulation finishes, the model produces output files in the same directory.
Step 4: Evaluate Output¶
After the simulation completes, review the output files to verify that the model ran correctly. The primary output file for initial review is snp.opt, which contains snapshot output of water surface elevations, velocities, temperatures, and constituent concentrations at user-specified intervals.
Use snp.opt and other output files for post-processing, visualization, and comparison with observed data. For details on output file formats, see the output files documentation.
Next Steps¶
For a detailed guide on setting up a new CE-QUAL-W2 application, including grid development, boundary condition specification, and calibration procedures, see How to Set Up and Run a Model Application.