2.1.1. Starting Fluent In Server Mode

You can start Fluent in Server Mode in either of two ways:

In either case, the Fluent as a Server session creates a keyfile in the session working directory with the information necessary for a client to connect to the session. See Fluent as a Server Keyfile and Connecting to Fluent In Server Mode for details.


Important:  While it is technically possible to start multiple Fluent as a Server sessions in the same working directory, this is not recommended as it could lead to inadvertent user file conflicts or corruption. For instance, two users, each running their own simulations, could both attempt to write out contour plots titled pressure_contours.png leading to one user inadvertently overwriting the other’s file.


2.1.1.1. Startup Options

The startup and behavior of Fluent as a Server can be controlled by several command line options and environment variables.

Environment Variables

FLUENT_AAS

controls whether to start Fluent in Server mode. If FLUENT_AAS is set to 1, the Fluent session will be started in Server mode.


Note:  FLUENT_AAS is observed only in the Environment tab of the Fluent Launcher.


AAS_HOST

can be set to an IP address on the server machine to allow connection only from clients with network access to the specified IP. Connections can be restricted to being from the local machine only by setting AAS_HOST=localhost. If AAS_HOST is not set, any client with access to at least one IP address can access the Fluent as a Server session (this is equivalent to having all possible IPs in the DNS of the server in the AAS_HOST variable). This behavior is useful when starting Fluent as a Server session using SGE where the IP address of the host machine is not known in advance.

AAS_PORTS

can be set to a port number or a range of port numbers on which to listen for connections. If set to a single port number, Fluent will attempt to use that port to listen for connections. You can specify a range of ports by using the format:

<startport>/portspan=<num>

In this case, Fluent will use the first available in the range of <num> ports beginning with <startport>. For example, to specify that Fluent should use a port in the range of 1000–1009 you would use:

AAS_PORTS=1000/portspan=10
FLUENT_AAS_KEY_FILE

specifies a name for the keyfile generated when Fluent as a Server is started. This name will only be used if no name is specified with the —aas_key_file command line option. See Fluent as a Server Keyfile for details.

Command Line Options

—aas

instructs Fluent to start in server mode. See Steps to Start Fluent in Server Mode From the Command Line.

—aas_key_file

can be used to specify the name of the key file generated by Fluent as a Server containing connection information for the session. See Fluent as a Server Keyfile.

2.1.1.2. Steps To Start Server Mode From Fluent Launcher

To start Fluent as a Server from the Fluent Launcher, perform the following steps:

  1. Start Fluent Launcher and configure dimensionality and options as you normally would (see Starting and Executing ANSYS Fluent in the Getting Started Guide).

  2. Click the Show More Options button to expand the Launcher settings (if necessary).

  3. Open the Environment tab in the expanded Fluent Launcher window.

  4. Set the FLUENT_AAS and, optionally, AAS_HOST and FLUENT_AAS_KEY_FILE environment variables.

    1. Enter FLUENT_AAS=1 in the Other Environment Variables field.

      Setting FLUENT_AAS=1 instructs Fluent to start in Server Mode. If FLUENT_AAS is omitted or is set to 0, Fluent will start without entering Server Mode and the Fluent as a Server IIOP interface will not be available.


      Important:  The FLUENT_AAS environment variable is only respected when specified inside Fluent Launcher. Setting FLUENT_AAS as a shell environment variable will have no effect.


    2. Optionally enter AAS_HOST=<IP Address> in the Other Environment Variables field (see Startup Options).

    3. Optionally enter FLUENT_AAS_KEY_FILE=<keyfile-name> in the Other Environment Variables field (see Startup Options).

  5. Click OK.

2.1.1.3. Steps to Start Fluent in Server Mode From the Command Line

To start Fluent as a Server from the command line, perform the following steps:

  1. Optionally set the shell environment variable AAS_HOST to an IP address on the server machine on which Fluent should listen for client connections (see Startup Options).

  2. Use the following commands to start Fluent in Server Mode:

    • On Windows platforms:

      C:\> fluent.exe <options> -aas
    • On Linux platforms:

      > fluent <options> -aas

      These command lines assume that the fluent executable is in your path. You may use any <options> you normally would to specify which solver to load (for example 2d, 2ddp, 3d, 3ddp), the number of processors to use, and so on. For details on available command line options, see Command Line Startup Options in the Fluent Getting Started Guide.


Release 18.2 - © ANSYS, Inc. All rights reserved.