Difference between revisions of "Applications/Ansys"
MSummerbell (talk | contribs) |
MSummerbell (talk | contribs) |
||
Line 62: | Line 62: | ||
</pre> | </pre> | ||
− | Details: | + | Details:<br/> |
− | Line 1 – Just a standard line that needs to be at the top of the file | + | Line 1 – Just a standard line that needs to be at the top of the file<br/> |
− | Line 2 – The -J sets the name of the job, in this case to ANSYS_FLUENT. This doesn’t impact on the job and doesn’t have to be unique. It helps distinguish tasks when looking in squeue (LINK) | + | Line 2 – The -J sets the name of the job, in this case to ANSYS_FLUENT. This doesn’t impact on the job and doesn’t have to be unique. It helps distinguish tasks when looking in squeue (LINK) <br/> |
− | Line 3 – This requests you are allocated 1 compute node. | + | Line 3 – This requests you are allocated 1 compute node. <br/> |
− | Line 4 – This requests 28 slots on the node. (the full compute node) | + | Line 4 – This requests 28 slots on the node. (the full compute node)<br/> |
− | Line 5 and 6 – These set the output and error files. The log file will contain Fluent console output, the error file will contain information that may be useful if things don’t work as expected (at a cluster level) | + | Line 5 and 6 – These set the output and error files. The log file will contain Fluent console output, the error file will contain information that may be useful if things don’t work as expected (at a cluster level)<br/> |
− | Line 7 – This requests the job runs on one of the compute nodes on the compute queue. | + | Line 7 – This requests the job runs on one of the compute nodes on the compute queue.<br/> |
− | Line 8 – this requests the job runs exclusively on a node i.e (no other jobs) | + | Line 8 – this requests the job runs exclusively on a node i.e (no other jobs)<br/> |
− | Line 9 – Comment | + | Line 9 – Comment<br/> |
− | Line 10 – Remove all currently running modules | + | Line 10 – Remove all currently running modules<br/> |
− | Line 11 – Load Intel MPI module | + | Line 11 – Load Intel MPI module<br/> |
− | Line 12- Load Ansys Version 17.2 | + | Line 12- Load Ansys Version 17.2<br/> |
− | Line 13 – Turns the Fluent GUI off | + | Line 13 – Turns the Fluent GUI off<br/> |
− | Line 14 – Tells fluent where Intel MPI is located | + | Line 14 – Tells fluent where Intel MPI is located<br/> |
− | Line 15 – Intel MPI level of error messages | + | Line 15 – Intel MPI level of error messages<br/> |
− | Line 16 – Sets the Omnipath interconnect message protocol | + | Line 16 – Sets the Omnipath interconnect message protocol<br/> |
− | Line 17 – Tells Intel MPI not to fallback to Ethernet | + | Line 17 – Tells Intel MPI not to fallback to Ethernet<br/> |
− | Line 18 - 20 – Checks number of tasks and sets number of processes | + | Line 18 - 20 – Checks number of tasks and sets number of processes<br/> |
− | Line 21 – Prints Node range to output file | + | Line 21 – Prints Node range to output file<br/> |
− | Line 22 – 23 – Prints number of processes to output file | + | Line 22 – 23 – Prints number of processes to output file<br/> |
− | Line 24 – Comment | + | Line 24 – Comment<br/> |
− | Line 25 – Produces a hostfile listing nodes to run on | + | Line 25 – Produces a hostfile listing nodes to run on<br/> |
− | Line 26 – Tells fluent the architecture of the CPU (in this case amd64) | + | Line 26 – Tells fluent the architecture of the CPU (in this case amd64)</br> |
− | Line 27 – Appends to the library path psm2 library file | + | Line 27 – Appends to the library path psm2 library file<br/> |
− | Line 28 – This is the run command. Note -i specifies the name of the input journal file | + | Line 28 – This is the run command. Note -i specifies the name of the input journal file<br/> |
===Job Submission=== | ===Job Submission=== |
Revision as of 11:30, 31 January 2017
Contents
Application Details
- Versions: V17.0, V17.2
- Module names: ansys/v170, ansys/v172
- License:
- Further information: Ansys
Ansys Fluent
Usage Examples
Interactive
[username@login01 ~]$ interactive salloc: Granted job allocation 296769 Job ID 296769 connecting to c170, please wait... Last login: Wed Jan 25 09:10:51 2017 from 10.254.5.246 [username@c170 ~]$ module add ansys/v172
[username@c170 ~]$ fluent
Job Submission Script
#!/bin/bash #SBATCH -J ANSYS_FLUENT # sensible name for the job #SBATCH -N 1 #SBATCH -n 28 #SBATCH -o %N.%j.%a.out #SBATCH -e %N.%j.%a.err #SBATCH -p compute #SBATCH --exclusive # load the relevant module files module purge module load intel/mpi/64/5.1.3.181 module load ansys/v172 export FLUENT_GUI=off export I_MPI_ROOT=/trinity/clustervision/CentOS/7/apps/intel/impi/5.1.3.181 export I_MPI_DEBUG=5 export I_MPI_FABRICS=shm:tmi export I_MPI_FALLBACK=no if [ -z "$SLURM_NPROCS" ]; then N=$(( $(echo $SLURM_TASKS_PER_NODE | sed -r 's/([0-9]+)\(x([0-9]+)\)/\1 * \2/') )) else N=$SLURM_NPROCS fi echo $SLURM_JOB_NODELIST echo $SLURM_NPROCS echo -e "N: $N\n"; # run fluent in batch on the allocated node(s) srun hostname -s > hostfile FLUENT_ARCH=lnamd64 export FLUENT_ARCH export LD_LIBRARY_PATH=/usr/lib64/psm2-compat:$LD_LIBRARY_PATH fluent -ssh 3ddp -g -t$N -mpi=intel -pib.infinipath -cnf=hostfile -i my_fluent_file
Details:
Line 1 – Just a standard line that needs to be at the top of the file
Line 2 – The -J sets the name of the job, in this case to ANSYS_FLUENT. This doesn’t impact on the job and doesn’t have to be unique. It helps distinguish tasks when looking in squeue (LINK)
Line 3 – This requests you are allocated 1 compute node.
Line 4 – This requests 28 slots on the node. (the full compute node)
Line 5 and 6 – These set the output and error files. The log file will contain Fluent console output, the error file will contain information that may be useful if things don’t work as expected (at a cluster level)
Line 7 – This requests the job runs on one of the compute nodes on the compute queue.
Line 8 – this requests the job runs exclusively on a node i.e (no other jobs)
Line 9 – Comment
Line 10 – Remove all currently running modules
Line 11 – Load Intel MPI module
Line 12- Load Ansys Version 17.2
Line 13 – Turns the Fluent GUI off
Line 14 – Tells fluent where Intel MPI is located
Line 15 – Intel MPI level of error messages
Line 16 – Sets the Omnipath interconnect message protocol
Line 17 – Tells Intel MPI not to fallback to Ethernet
Line 18 - 20 – Checks number of tasks and sets number of processes
Line 21 – Prints Node range to output file
Line 22 – 23 – Prints number of processes to output file
Line 24 – Comment
Line 25 – Produces a hostfile listing nodes to run on
Line 26 – Tells fluent the architecture of the CPU (in this case amd64)</br>
Line 27 – Appends to the library path psm2 library file
Line 28 – This is the run command. Note -i specifies the name of the input journal file
Job Submission
[username@login01 ~]$ sbatch fluent.job Submitted batch job 289535