Skip to end of metadata
Go to start of metadata

Hyak User Wiki > Hyak Software > Hyak ANSYS

Note: In order to use ANSYS on Hyak, a license must be obtained via the College of Engineering. In some circumstances, free use is available to students for use on class assignments or capstone projects. Contact the College of Engineering for more details. Be sure to indicate that the license will be used on Hyak.

ANSYS Interactive Single Node

 login$ qsub -l nodes=1:ppn=16,walltime=4:00:00 -I -V
 node$ module load ansys_<version>
 node$ ansys<version> -np $PBS_NP

ANSYS Batch Jobs

Below you will find a sample parallel ANSYS job script. You will need to change the parameters which are bold and red in the job script below.

 #\!/bin/bash
 ##
 ## \!\! _NEVER_ remove # signs from in front of PBS or from the line above \!\!
 ##
 ## RENAME FOR YOUR JOB
 #PBS -N test-ansys
 ## Run the job on 32 cores.
 ##
 ## WALLTIME DEFAULTS TO ONE HOUR - ALWAYS SPECIFY FOR LONGER JOBS
 ## If the job doesn't finish in 30 minutes, cancel it
 #PBS -l *<font color=red>nodes=2:ppn=16,walltime=00:30:00</font>*
 ## EDIT FOR YOUR JOB
 ## Put the output from jobs into the below directory
 #PBS -o *<font color=red>/gscratch/MYGROUP/MYNETID</font>*
 ## Put both the stderr and stdout into a single file
 #PBS -j oe
 ## EDIT FOR YOUR JOB
 ## Sepcify the working directory for this job
 #PBS -d *<font color=red>/gscratch/MYGROUP/MYNETID</font>*
 module load ansys_*<font color=red><version></font>*
  
 MACHINES=`uniq -c $\{PBS_NODEFILE\} | awk '\{print $2 ":" $1\}' | paste -s -d ':'`
 ansys<version> -dis -machines $\{MACHINES\} *<font color=red>-dir $\{PBS_O_WORKDIR\} -b -j jobname -i inputfile.inp</font>*
  • No labels