Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
doku:ansys [2021/10/22 10:19] – [Input file] sfrankdoku:ansys [2021/12/09 07:32] – [Job script] jz
Line 96: Line 96:
 fi fi
  
 +</code>
 +
 +A script for running Ansys/Fluent on multiple nodes on VSC-4:
 +
 +<code>
 +#!/bin/sh
 +#SBATCH -J fluent_1 # Job name
 +#SBATCH -N 2 # Number of nodes
 +#SBATCH --partition=mem_0096 # mem_0096, mem_0384, mem_0768
 +#SBATCH --qos=mem_0096       # devel_0096, mem_0096, mem_0384, mem_0768
 +#SBATCH --ntasks-per-node=48 # number of cores
 +#SBATCH --threads-per-core=1 # disable hyperthreading
 +
 +
 +module purge
 +module load ANSYS/2021R1 # or whichever ANSYS version you prefer
 +
 +unset SLURM_JOBID
 +export FLUENT_AFFINITY=0
 +export SLURM_ENABLED=1
 +export SCHEDULER_TIGHT_COUPLING=1
 +FL_SCHEDULER_HOST_FILE=slurm.${SLURM_JOB_ID}.hosts
 +/bin/rm -rf ${FL_SCHEDULER_HOST_FILE}
 +scontrol show hostnames "$SLURM_JOB_NODELIST" >> $FL_SCHEDULER_HOST_FILE
 +
 +JOURNALFILE=fluent_transient # .jou file
 +
 +if [ $SLURM_NNODES -eq 1 ]; then
 +    # Single node with shared memory
 +    fluent 3ddp -g -t $SLURM_NTASKS -i $JOURNALFILE.jou > $JOURNALFILE.log
 +else
 +    # Multi-node
 +    fluent 3ddp -platform=intel -g -t $SLURM_NTASKS -pib.ofed -mpi=intel -cnf=${FL_SCHEDULER_HOST_FILE} -i $JOURNALFILE.jou > $JOURNALFILE.log
 +fi
 </code> </code>
  
  • doku/ansys.txt
  • Last modified: 2024/04/25 08:14
  • by amelic