CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Fluent modulefile question (https://www.cfd-online.com/Forums/fluent/242781-fluent-modulefile-question.html)

sakura006 May 11, 2022 01:55

Fluent modulefile question
 
Hello, I recently got a new HPC in our lab. The HPC is installed with environment module and Slurm. I need to create a module file for Fluent so that Fluent can be loaded in the Slurm script. I read through the official document, and below is the module file and Slurm script I create. After I submit the job, the module is loaded but it never runs. The error message is "fluent: command not found". I am scratching my head to figure out what goes wrong. Any help is appreciated.

modulefile

Code:

#%Module

proc ModulesHelp { } {
  puts stderr "This module adds Fluent2022R1 to your path"
}

module-whatis "Fluent2022R1\n"

set rootdir /ansys_inc/v221/fluent           
prepend-path PATH $rootdir/bin           
prepend-path LD_LIBRARY_PATH $rootdir/lib


Slurm script

Code:

#!/bin/bash
#SBATCH -N 2
#SBATCH --tasks-per-node=12
#SBATCH --exclusive
#SBATCH -o fluentP_%J.out
#SBATCH -e fluentP_%J.err

module purge
module load openmpi/4.1.1_gnu
module load ANSYS_Fluent/fluent2022R1

module list

fluent -r22.1.0 3ddp -gu -t24 -i "test.jou" $OptFile -cnf="$nodefile"



All times are GMT -4. The time now is 08:01.