Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
module load ansys/17.1

Example Submit

...

Scripts

Code Block
languagebash
titleFLUENT
collapsetrue
#!/bin/bash

#SBATCH --partition=lts
#SBATCH --job-name="MHKT"
#SBATCH -t 1:00:00
#SBATCH --ntasks-per-node=20
#SBATCH --nodes=2
#SBATCH --mem=40GB
#SBATCH --mail-type=ALL
#SBATCH --mail-user=youremailid@lehigh.edu
#SBATCH --output="fluent.%j.%N.out"

# The Journal file
JOURNALFILE=FLUENT.in

module load ansys/17.1
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 -e "N: $N\n";

# run fluent in batch on the allocated node(s)
/share/Apps/ansys/v171/fluent/bin/fluent 3ddp -g -slurm -t$N -mpi=pcmpi -pib -i $JOURNALFILE > log.fluent

...

Code Block
languagebash
titleANSYS
collapsetrue
#!/bin/bash

#SBATCH --partition=lts
#SBATCH --qos=nogpu
#SBATCH --job-name="CT08"
#SBATCH -t 12:00:00
#SBATCH --ntasks-per-node=10
#SBATCH --nodes=1
#SBATCH --mem=60GB
#SBATCH --mail-type=ALL
#SBATCH --mail-user=youremailid@lehigh.edu
#SBATCH --output="CT08.%j.%N.out"
#SBATCH --error="CT08.%j.%N.out"

module load ansys/17.1

ansys171 -dis -np 10 -b -i [input file] > [output file] 2>&1 &
wait

...