Command Line Version
Command Line Version
Version 2019
OPTUM G2: Command Line Version
K Krabbenhoft (Editor)
⃝
c Optum Computational Engineering 2019
www.optumce.com
CONTENTS
Contents
iii
CONTENTS
iv
COMMAND LINE VERSION
All calculations in OPTUM G2 are processed by the calculation core OPTUM G2Cmd.exe. This
is in principle a stand-alone program that communicates with the graphical user interface (GUI) to
process input data and visualize results. It is therefore possible to bypass the GUI entirely and use
OPTUM G2 in command line mode. This is done by executing OPTUM G2Cmd.exe with the input
file and various settings as arguments.
To use the command line version of OPTUM G2, first open a Windows command prompt (cmd.exe).
Directions on the usage of OPTUM G2Cmd can be accessed at any time by executing OPTUM
G2Cmd without arguments (see Figure 1.1).
To process an OPTUM G2 project file, OPTUM G2Cmd should be executed with the filename as
argument:
If the input file is located in a folder different from the current one, the full path should be specified,
for example:
5
COMMAND LINE VERSION
As indicated in Figure 1.1, three additional optional arguments are possible. These regard results
output, log file output and the information shown in the command prompt upon execution.
Example 1:
This generates a project file, FileNameResults.g2x, containing results. The project file can opened
with OPTUM G2 as any other project file.
Example 2:
This generates a project file, FileNameResults.g2x, containing results and in addition a file, ResLog.txt,
containing the analysis log.
Example 3:
This is the same Example 2 except the analysis progress is written to the command line prompt as
shown in Figure 1.2. The argument /echo may be used on its own or with any of the other arguments.
6
COMMAND LINE VERSION
Finally, if more than one project file is to be processed, it is advised to use a batch file (a regular
text file with extension bat) to set up the runs. An example is shown in Figure 1.3. This file is then
executed via the command prompt by entering its name.