ANSYS Fluent

This software is not currently available.

Overview

ANSYS Fluent software contains the broad physical modeling capabilities needed to model flow, turbulence, heat transfer, and reactions for industrial applications ranging from airflow over an aircraft wing to combustion in a furnace, from bubble columns to oil platforms, from blood flow to semiconductor manufacturing, and from cleanroom design to wastewater treatment plants.

  • Description: ANSYS is a general-purpose software, used to simulate interactions of all disciplines of physics, structural, vibration, fluid dynamics, heat transfer and electromagnetic for engineers.

Using

Use the module name ansys to discover versions available and to load the application.

Creating a Fluent Journal File

The journal file is the definition file given to the fluent command. It is written in a dialect of Lisp called Scheme and contains all the instructions that are to be executed during the run. A basic form of this file is as follows:

# ----------------------------------------------------------- # SAMPLE JOURNAL FILE # # read case file (*.cas.gz) that had previously been prepared file/read-case mycase.cas.gz # initialize flowfield solve/initialize/initialize-flow # run 100 iterations solve/iterate 100 # write data file/write-data mycase.dat.gz # exit fluent exit #------------------------------------------------------------

Save the journal file to a file of your choice. In this simple example, we read in the maycase.cas.gz file, which we had previously prepared (includes all the boundary conditions and models). We then initialized the flowfield in order to start the iterations and we solved for 100 iterations. After 100 iterations had been performed, the data generated was written to the file mycase.dat.gz. We are assuming here that 100 iterations will suffice for a converged solution.

A script for running Ansys/Fluent on Teton is shown below.

Running Ansys/Fluent

Do not run Ansys/Fluent on a login node it will be killed.

Ansys/Fluent should be run from the /gscratch directory. The standard output, standard error, and by default all generated data from the job will be placed in the directory where the sbatch command was issued. Running Ansys/Fluent from the /home directory can quickly exhaust a users' home quota.

Interactive Ansys/Fluent

NOTE: This mode is best for testing your journal file.

You can run Ansys/Fluent from an interactive Slurm job as shown below. The following command starts an interactive job with the specified resources.

srun -A <Your project name> -p <Desire partitions> -t <Desired run time> --nodes=2 --ntasks-per-node=32 --pty /bin/bash

Change the above command to fit your needs. Once executed you will be placed on the head node of your job. You can then run the Ansys/Fluent as shown.

module load ansys/fluent

Run the Ansys/Fluent command as shown below, this will establish a connection to the rest of your compute nodes and drop you into the Ansys/Fluent interactive mode.

Not that without the "-i" option you are placed into an interactive fluent session. This will allow you to enter fluent commands and have them executed immediately.

Batch Ansys/Fluent

Here is an example batch script. For more information on submitting batch scripts, see the documentation on running jobs.

To run Ansys/Fluent in batch mode using an Ansys/Fluent, create a text file called fluent.sbatch or something to your liking containing:

Note that you must modify any information between the "< ... >" entries.

The "<journal file>" should be replaced with the file name of your journal file as outlined above. If you intend to use the Moran nodes you will need to remove the "-platform=intel" option.