Fluent

Once the license and module have been set up correctly, Fluent can be run both in serial and in parallel.

Running Fluent in Serial mode

There are three ways in which to launch fluent in serial:

On the front end, running through an interactive shell, or via the batch queues. Note, when launching the Fluent GUI you must have an X-server running locally and have enabled X11 forwarding through your SSH client.

Launching on the front end

Once the fluent module is loaded, fluent can be run by entering its name at the command prompt. Please note that this method should not be used apart from for quick tests, i.e.:

Running interactively through the batch queues

To launch fluent in serial launch in an interactive shell, issue the following on the command line:

In the above command, hh:mm:ss is the length of real-time the shell will exist for, vmem is the amount of memory required, dim is the dimension/precision of the fluent process (e.g. 2d for two dimension, single precision).

For example, to launch the fluent GUI on a back end node to for 3D double precision, issue:

Running through the batch queues

When running through the batch queues, no interactive input is possible. It is possible to create a journal file which contains all of the commands that would normally be entered within fluent, e.g. file test.jou :

It is then necessary to construct a script that will run fluent. The script begins with a request for resources and then the executable is run, e.g. file fluent.sh :

In this case, the 3-dimensional, double precision module is launched, however this can be interchanged with any other modules. The -g option will suppress the GUI and -i specifies the name of the input journal file. The file can be submitted to Sun Grid Engine by typing:

The above script assumes that the ansys module is loaded and license is defined. If desired, the module command can be loaded into the batch script (removing the -V ):

Running in parallel

There are three ways of launching Fluent to work in parallel: interactively through an SGE shell, or through batch the batch queues.

Running via an interactive shell

To launch an interactive shell on many compute nodes type the following at the command prompt:

In the above commands hh:mm:ss is the length of real-time the shell will exist for and np is the number of processes requested. dim is the dimension/precision of the fluent process (e.g. 3ddp for 3-D double precision).

E.g. the to launch fluent for 6 hours on 16 processors:

Running a large mesh interactively

Occasionally, you will need to have interactive access to a large model that requires large amounts of memory and/or cores.
Whilst it might be possible to use a login node to do this for a short period of time, this is not a preferred option as the login nodes are a shared resource.

However, you can request an interactive session on the backend compute nodes to do this.

Remember that each compute node has 16 compute cores and 32GB memory. If you know that your model will require more memory than this, you will need to request multiple cores.

Running through the batch queues

Parallel execution via the batch queues is performed by combination of the techniques mentioned above. Firstly a journal file should be created to control the parallel run, without the aid of the GUI; file test_para.jou :

Then a job submission script should be created, that requests resources and executes the code; e.g. file fluent_para.csh

In this case, the 3-dimensional, double precision module is launched on 32 processors. The -g option will suppress the GUI and -i specifies the name of the input journal file. The file can be submitted to Sun Grid Engine by typing:

The job will be run once the requested resources become available.

Running Fluent v16 and above

When running Fluent v16 or above in parallel batch mode, additional parameters need to be added to the Fluent command line in the batch submission script.

Taking the script in the previous section as an example, the line:

needs to be changed to: