You can start Fluent in Server Mode in either of two ways:
from the Fluent Launcher by specifying particular environment variables.
from the command line by passing specific options to the Fluent executable. This is useful if you intend to create a script or batch file to launch Fluent in Server mode.
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.
The startup and behavior of Fluent as a Server can be controlled by several command line options and environment variables.
Environment Variables
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.
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.
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
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
instructs Fluent to start in server mode. See Steps to Start Fluent in Server Mode From the Command Line.
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.
To start Fluent as a Server from the Fluent Launcher, perform the following steps:
Start Fluent Launcher and configure dimensionality and options as you normally would (see Starting and Executing ANSYS Fluent in the Getting Started Guide).
Click the Show More Options button to expand the Launcher settings (if necessary).
Open the Environment tab in the expanded Fluent Launcher window.
Set the FLUENT_AAS and, optionally, AAS_HOST and FLUENT_AAS_KEY_FILE environment variables.

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.
Optionally enter AAS_HOST=<IP Address> in the Other Environment
Variables field (see Startup Options).
Optionally enter FLUENT_AAS_KEY_FILE=<keyfile-name> in the Other
Environment Variables field (see Startup Options).
Click .
To start Fluent as a Server from the command line, perform the following steps:
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).
Use the following commands to start Fluent in Server Mode:
On Windows platforms:
C:\> fluent.exe <options> -aasOn Linux platforms:
> fluent <options> -aasThese 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.