How to Submit an Ansys Job

To schedule a job, you will need to write a SLURM batch script for your job. See the example below. Save your script as jobname.sbatch. Once you have written your script you will need to run it.

Run a SLURM Batch Script:

[user@Head ~]$ sbatch jobname.sbatch

Example Ansys Serial Batch Script:

#!/bin/bash
#
#SBATCH –comment=ansys-serial-test
#SBATCH –ntasks=1
#SBATCH –job-name=ansys-serial-test
#SBATCH –output=output.%j.ansys-serial-test
#SBATCH –time=00:01:00

#### SLURM 1 processor Ansys test to run for 1 minute.

module add ansys182

>ansys < ansys-test.in

Example Ansys Distributed Parallel Batch Script:

#!/bin/bash
#
#SBATCH –comment=ansys-parallel-test #SBATCH –ntasks=4
#SBATCH –job-name=ansys-parallel-test
#SBATCH –output=output.%j.ansys-parallel-test
#SBATCH –time=00:10:00

#### SLURM 4 processor Ansys test to run for 10 minutes.

module add ansys182

ansys < ansys-test.in