13.1. Command-Line Use

CFX-Solver Manager and CFX-Solver can be launched, and command line help can be displayed, from the command line as follows:

  • To start CFX-Solver Manager, the basic command is:

    cfx5solve

    The general form of the command is:

    cfx5solve -interactive [-definition <file>] [-display <display>]

    where [ ] denotes a discretionary option, | separates mutually exclusive options, and < > denotes that substitution of a suitable value is required. All other options are keywords, some of which have a short form.

  • To start the CFX-Solver using a CFX-Solver input file (here, represented by <file>), the basic command is:

    cfx5solve -definition <file>

    The general form of the command is:

    cfx5solve -definition <file> [-initial <file>]
    [-double | -single]
    [-nosave|-save] [-name <name>] [-size <factor>]
    [-solver <executable>] [-partition <number of partitions>]
    [-parallel] [-parfile <file>] [-serial] [-verbose]
    

    where [ ] denotes a discretionary option, | separates mutually exclusive options, and < > denotes that substitution of a suitable value is required. All other options are keywords, some of which have a short form.

  • To display command line help, which shows descriptions for the available command line options, the command is:

    cfx5solve -help

How you invoke a command line depends on your operating system:

  • On Linux, you can run CFX-Solver Manager from a Linux shell.

  • On Windows, you can start a CFX command line from the Ansys CFX Launcher: Tools > Command Line. Alternatively, you can run CFX-Solver Manager from a Command Prompt. For details, see Command Line in the CFX Reference Guide.

The cfx5solve command-line options are described in the next section.