This section explains how to run the Motion solver from a command line interface on Windows and Linux systems.
The Motion solver can be run from the command line in Windows using the following command:
<path to Motion>\Motion -option1 value1 -option2 value2
…
The default executable path for the Windows SMP solver is shown below:
C:\Program Files\ANSYS Inc\v251\Motion\Solver\Console\rundfs.bat
The default executable path for the Windows HPC solver is shown below:
C:\Program Files\ANSYS Inc\v251\Motion\Solver\HPC\rundfs.bat
On Linux systems, the Motion solver can be run as follows:
<path to Motion>/Motion -option1 value1 -option2 value2
…
The default executable path for the Linux solver is shown below:
/ansys_inc/v251/Motion/solver/rundfs.sh
On Linux systems, the number of processors specified will automatically determine which solver to use.
The following arguments are used for various solver options.
Option Name | Value | Description |
---|---|---|
-h | None | Displays help message |
-v | None | Displays solver version |
-t | Number | Sets the number of threads |
-i | File Path | Specifies the DFS file path (without extension) |
-o | File Path | Sets the result file path |
The following arguments are passed to the MPI program. These options are for control
process placement. If you are running the SMP solver or if the value for the
-n
option is set to 1
, these options will
be ignored. For more information about controlling processes and MPI options, see Controlling Process Placement.
Option Name | Value | Description |
---|---|---|
-n | Number | Sets the number of processors |
-f | File Path | The file path to the text file containing the host names. One host name should be specified per line. |
-hosts | String | Allows direct input of a comma-separated host list |
-ppn | Number | Sets the number of processes to launch on each node |
Rules for setting Number of Cores
The number of cores used is determined by the product of the values of the number of processors and the number of threads that you specify (see table above). The number of licenses checked out from the solver is the number of cores minus 2, and applies to the HPC solver only. For more information about HPC licenses, see Ansys HPC in the Ansys, Inc. Licensing Guide.
For Frontal Solver and Super Solver, the number of processors and threads should be set to 2^n.
Note:
If you do not define an input file using the
-i
option, you are prompted for a file path.If you do not define an output file using the
-o
option, the output file is created using the same location and name as the input file.