Executing ModelMuse from the Command Line

  • 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

It is possible to execute ModelMuse from the command line. This capability can be useful when testing ModelMuse after making changes to the source code or to automate the process of creating input files from ModelMuse when using an automatic calibration tool such as UCODE (Poeter and Hill, 1998). When executing ModelMuse from the command line, the first argument must be the name of the file to be opened. Subsequent arguments may be any of the following in any order.

-g FileName,

-p FileName,

-il FileName,

-ia FileName,

-e

-mte

-c.

In the -g, -p, -il, and -ia options, "FileName" is the name or path of a file. If FileName contains any spaces, it must be enclosed in double quotes.

The -g option will cause ModelMuse to read new values for global variables from a global variables file. See the Global Variables dialog box for a description of the global variables file.

The -p option will cause ModelMuse to read new paramter values from a MODFLOW .pval file.

The -il and -ia options are only available for MODFLOW models. FileName should be the name of a file from which ModelMuse can import model results. With the -il option, ModelMuse will read the last set of results from the file and import them. With the -ia option, ModelMuse will read all the results from the file and import them. It is recommended that these options not be used with the -e option because the model might not have finished running when the import command is executed. If the model has multiple stress periods, importing results from a binary file will be faster than importing from a text file. The MODFLOW Output Control dialog box can be used to instruct MODFLOW to generate head and drawdown results in binary format.

The -e option causes ModelMuse to export the model input input files with the default file name(s). If MODPATH, ZONEBUDGET or MT3DMS are selected in the model, their input files will be exported too.

The -mte option causes just the MT3DMS input files to be exported. If MT3DMS is not selected, this option is ignored.

The -c option causes ModelMuse to close

Example

ModelMuse ex1.gpt -g GlobalVar.txt -p Model.pval -e –c

This command would cause ModelMuse to open ex1.gpt, read new values for global variables from GlobalVar.txt, read new parameter values from Model.pval, export the model input files, and then close.