Skip to main content

Ansys

Ansys is a computer-aided engineering (CAE) software suite that allows engineers and designers to simulate, analyze, and optimize designs from across multiple physics domains, predicting how products will perform in real-world environments before physical prototypes are built.

Ansys Support Policy

RCD does not provide support for Ansys. Because Clemson University does not have an active Ansys support contract, technical support from Ansys is not available.

For questions, and troubleshooting please use the Ansys Forum and other official Ansys community resources.

Graphical Interfaces

As a general rule of thumb, we do not encourage using the graphical interface of Ansys extensively on Palmetto 2. As such, we recommend that you use your own personal computer or a lab computer to do the initial project setup, then transfer to Palmetto 2 for analysis.

To run the various Ansys graphical programs, we recommend you use Palmetto Desktop through Open OnDemand with the following resource request:

  • Number of CPUs: 1
  • Memory: 8gb
  • GPUs: None (0)
  • Wall time: 03:00:00

Once the session begins on Palmetto Desktop, open the Terminal and run the following to load the Ansys module:

module load ansys/23.2

After loading the module, you can use the other Ansys commands below to run the desired program.

Ansys APDL

ansys232 -g

CFX

cfxlaunch

Ansys Workbench

runwb2

Fluent

fluent

Ansys Electromagnetics

ANS_IGNOREOS=1 ansysedt

Batch Mode

To run Ansys in batch mode on Palmetto 2, you can use the job script in the following example as a template. This example show how to run Ansys in parallel (using multiple cores/nodes). In this demonstration, we model the strain in a 2-D flat plate. You can download the three example files below.

The input.txt batch file is generated for the model using the Ansys APDL interface.

The input_script is the series of commands you wish to run in Ansys.

The batch script job.sh submits the batch job to the scheduler.

Please wait, retrieving job.sh from Globus...

What does job.sh do?

  1. Extract the nodes (machines) available for this job as well as the number of CPU cores allocated for each node:

    srun hostname > HOSTNAME
    machines=$(uniq -c HOSTNAME | awk '{print $2":"$1}' | tr '\n' :)
    machines=${machines::-1}
  2. Run the Ansys program, specifying the various options such as the path to the input.txt file, your scratch or project space to use, and so on.

    ansys232 \
    -mpi openmpi \
    -dir "$SCRATCH" \
    -j EXAMPLE \
    -s read -l en-us -b \
    -i input.txt -o output.txt \
    -dis -machines "$machines"

To submit the job:

sbatch job.sh

After the job successfully completes, you will see in the job submission directory (/scratch/$USER/ansys-test or /project/$USER/ansys-test) populated with various files :

$ ls

EXAMPLE0.err EXAMPLE1.esav EXAMPLE2.out EXAMPLE.DSP output.txt
EXAMPLE0.esav EXAMPLE1.full EXAMPLE2.rst EXAMPLE.esav slurm-1231122.out
EXAMPLE0.full EXAMPLE1.out EXAMPLE3.err EXAMPLE.mntr sub.sh
EXAMPLE0.log EXAMPLE1.rst EXAMPLE3.esav EXAMPLE.rst
EXAMPLE0.rst EXAMPLE2.err EXAMPLE3.full host.list
EXAMPLE0.stat EXAMPLE2.esav EXAMPLE3.out HOSTNAME
EXAMPLE1.err EXAMPLE2.full EXAMPLE3.rst input.txt

The results of the simulation are in the file EXAMPLE.rst.