RmaMF6: Run PEST

  • Scroll to top of this topic Scroll to Top of Page

  • Print the current topic Print Topic

  • No expanding elements on this page Show/Hide Expanders

After making all the changes to the model, you must run the model from ModelMuse. Select File|Export|MODFLOW 6 Input Files. While creating the MODFLOW input files, ModelMuse will create and run a batch file that will create a covariance matrix file for the pilot point parameters. After all the input files have been created, ModelMuse will start a command line window that will in turn start ModelMonitor to run the model. ModelMonitor may display a warning that the model will continue even if convergence is not achieved. This warning may be ignored in this case. The warning appears because the “Continue even if no convergence” checkbox is check in the IMS package as described previously. When the model is done running, close ModelMonitor. Several more operations will be performed in the command line window and then the MODFLOW listing file will be opened in a text editor. The operations that are performed between ModelMonitor closing and the MODFLOW listing file being opened are described below.

The first thing that happens after ModelMonitor is closed is that Mf6ObsExtractor is run as illustrated below. It creates an instruction file that will be used by PEST to extract model results so that they can be compared to observed values. The second thing that happens is that PLPROC is run. It is a utility program that can be downloaded from the PEST homepage. It creates a file that will be used to populate the model grid among the pilot points.

Annotated screen capture identifying purposes of commands in the RunModflow.bat batchfile.

Annotated screen capture identifying purposes of commands in the RunModflow.bat batchfile.

In addition to creating the input files for MODFLOW, ModelMuse also created the PEST control file when it ran MODFLOW along with two batch files named RunPestChek.bat and RunPest.bat. PESTCHEK is a PEST utility program that checks the PEST input for errors. It is recommended to always run PESTCHEK before attempting to run PEST. You can run PESTCHEK by double clicking on the RunPestChek.bat file in Windows Explorer. It is normal for some warnings to be present with control files generated by ModelMuse. However, if it reports errors, you will need to fix them. If something is wrong with your parameters, observations, pilot points, or delimiters, you may need to run the model again after fixing them. Otherwise, you will probably just need to export the PEST control file again after fixing the problem in the PEST Properties dialog box. To export the PEST control file again, select “File|Export|PEST|Export PEST Control File.” The Save File dialog box will have options to run PESTCHEK, PEST, or not run anything. Choose the option you prefer. When PESTCHECK does not report any errors, you are ready to run PEST. Go ahead and run PEST. For this problem run on a standard desktop, PEST may take more than twenty minutes to finish but can be much faster depending on the characteristics of the computer and on how many other programs are running.  It is good practice to monitor PEST performance during the parameter estimation by opening and inspecting the PEST run record (.rec) file.

When PEST has finished running, you may wish to back up your model input and output files, so you do not accidentally overwrite them later if you run ModelMuse again.