ANSYS
Last Modified: 07/24 15:32
Description
ANSYS is an engineering package and support routine for general-purpose, finite-element analysis: statics, mode frequency, stability analysis, heat transfer, magnetostatics, coupled field analysis, and modeling. ANSYS was developed and is supported by ANSYS, Inc.
Version
- 12
Authorized Users
- circe account holders
Platforms
- circe cluster
Running Ansys Jobs on the Cluster
Modules
Before running a job, you must first set up your environment properly. Here are the required module files:
- apps/ansys/12
To run ANSYS on the cluster, ensure that you use module initadd to make the changes persistent. See Modules for more information.
How to Submit Jobs
Provided are batch scripts for running ANSYS as a single processor and multi-processor job. Most existing ANSYS scripts will run in parallel mode with no modification. These scripts can be copied into your work directory (the folder with your input files and database files) so that you can submit batch processes to the queue. For help on submitting jobs to the queue, see our GridEngine User's Guide
Serial Submit Script
#$ -N ansys_job_name #$ -l h_rt=hh:mm:ss #$ -l aa_r=1 #$ -cwd #$ -j y #$ -o output.$JOB_ID module add apps/ansys/12 ANSYS_OPTS="-p aa_r -dir `pwd` -b" time ansys120 $ANSYS_OPTS < $JOB_NAME
Multi-Threaded Parallel Submit Script
#$ -pe smp 4 #$ -N ansys_job_name #$ -l h_rt=hh:mm:ss #$ -l aa_r=1,aa_r_hpc=2 #$ -cwd #$ -j y #$ -o output.$JOB_ID module add apps/ansys/12 ANSYS_OPTS="-p aa_r -dir `pwd` -b -np $NSLOTS" time ansys120 $ANSYS_OPTS < $JOB_NAME
Distributed Parallel (MPI) Submit Script
#$ -pe hpmpi 8 #$ -N ansys_job_name #$ -l h_rt=hh:mm:ss #$ -l aa_r=2,aa_r_hpc=6 #$ -cwd #$ -j y #$ -o output.$JOB_ID module add apps/ansys/12 ANSYS_OPTS="-p aa_r -dir `pwd` -b -dis" time sge_mpirun ansys120 $ANSYS_OPTS < $JOB_NAME
Where $JOB_NAME is set on the line #$ -N ansys_job_name and is the name of the input file you are using.
Multiprocessor Graphical ANSYS
Specify the number of processors (typically 2-8) and time needed to run ANSYS. This example is two processors for 10 hours:
qlogin -l h_rt=10:00:00 -pe smp 2
Once you get dropped into an interactive shell on the execution host, run ANSYS with the corresponding options:
ansys120 -p aa_r -np 2 -g
Licensing
Since we have a limited number of ANSYS licenses, you'll need to specify some options when running your job. You can see how these options are set in the above sample scripts.
For 1-2 processor ANSYS jobs, the option aa_r is all you need to be concerned with. You can set this to one in either case. This will insure that your job does not try to run when there are no licenses available and thus failing (potentially after waiting for some time in the queue... this can be aggravating).
For 3-8 processor ANSYS jobs, you'll need to set aa_r to 2. You'll also need to set aa_r_hpc to ($NSLOTS-2) or the number of processors minus two. That figure, unfortunately, must be calculated and included before submitting your job as there is no automatic way to accomplish this. This will be fixed in the next release of GridEngine. You can determine feature from this table:
Figure 1.a: ANSYS License Features
| Feature | Description |
| aa_mcad | Academic Research |
| aa_r | Academic Research * |
| aa_hpc | HPC License |
Documentation
All ANSYS documentation can be accessed by running anshelp120 from the command line. You'll need to have XWin32 set up correctly to view it. See our XWin32 documentation for more details: XWin32