Skip to main content

Fluent

Fluent is currently one of the most powerful computational fluid dynamics (CFD) software tools available, enabling you to optimize product performance more deeply and quickly. Fluent includes thoroughly validated physical modeling capabilities that provide fast and accurate results for a wide range of CFD and multiphysics applications.

License required

Please purchase, download, and install the Fluent license independently. For assistance with installation or usage, contact us and provide proof that your research group holds a Fluent license.


1. Script Template

submit.sh
#!/bin/bash
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks-per-node=56 # Number of cores per node
#SBATCH --ntasks=56 # Total number of cores
#SBATCH --partition=g1_share # Queue partition; must specify the correct partition
#SBATCH --job-name=hello # Job name
#SBATCH --output=hello_%j.out # Normal log output (%j parameter value is jobId)
#SBATCH --error=hello_%j.err # Error log output (%j parameter value is jobId)

##############################################
# Software Envrironment #
##############################################
unset I_MPI_PMI_LIBRARY # Unset default MPI library, use Intel's built-in
export I_MPI_JOB_RESPECT_PROCESS_PLACEMENT=0 # Parameter modification required for Intel multi-node jobs
module load intel/2022 intelmpi/2022 # Load Intel environment

##############################################
# Run job #
##############################################
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";

srun hostname -s |sort -V > $(pwd)/slurmhosts.$SLURM_JOB_ID.txt

# run fluent in batch on the allocated node(s)
fluent 3ddp -g -slurm -t $SLURM_NTASKS -pib.ofed -cnf=slurmhosts.$SLURM_JOB_ID.txt -mpi=intel -ssh -i pipe.jou

2. Meaning of Command-Line Parameters:

  • -g: Indicates launching Fluent with a graphical user interface.
  • -slurm: Indicates using Slurm as the job scheduler.
  • -t $SLURM_NTASKS: Indicates using $SLURM_NTASKS processes to run Fluent.
  • -pib.ibv: Indicates using the InfiniBand network protocol.
  • -cnf=slurmhosts.$SLURM_JOB_ID.txt: Indicates using the Slurm job ID to name the Fluent host file.
  • -mpi=intel: Indicates using the Intel MPI library.
  • -ssh: Indicates using the SSH protocol for communication.
  • -i pipe.jou: Indicates using the pipe.jou file as the Fluent input file.

3. Case Run Error Issues

## Error details as follows

Error: eval: unbound variabl
ErrorObject: pipe/case.2.cas

### Error message as above:
### Job behavior: The job fails after submission but Slurm does not kill it. Investigation revealed the input file is case.2.cas and the job path contains special characters and spaces.
### Resolution: Use the TUI version .jou file as the input file, and modify the job path to remove special characters and spaces.