|
[Sponsors] |
June 13, 2020, 23:42 |
ANSYS Fluent UDFs in Batch mode
|
#1 |
New Member
Hanli Wu
Join Date: Jun 2020
Posts: 1
Rep Power: 0 |
Recently, I am doing the numerical simulation using the HPC cluster at our university. I have some problems using the ANSYS Fluent in batch mode running on multiple nodes. Here is the information I got from a website. The batch file was submitted by using Slurm.
https://docs.rescale.com/articles/an...-in-batch-mode --------------------------------------------------------------------------------- Running on Multiple Nodes Another thing to note is that due to the nature of UDF function calls, all nodes need access to the compiled UDF libraries. By default, ANSYS Fluent jobs are set to run in the ~/work directory which is local to the head node. Depending on the behavior of the function, the slave node processes may need to access a common file or library. In this case, the job should be run out of the NFS mounted directory, ~/work/shared. So simply prepend move and change directory commands on the "Software Settings" page before you launch Fluent (not in the journal file): mv * shared cd shared fluent 3ddp -gu -ssh -cnf=$FLUENT_HOSTS -t$RESCALE_CORES_PER_SLOT -i example.jou So again, if you are running on multiple cores on a single node, this step is unnecessary since the local file system can be accessed by all the cores on that node. --------------------------------------------------------------------------------- The tutorial may help to solve my problem. However, I am not familiar with the command. I have tried the command “mv * share” and “cd share” but it didn’t work. Would you please provide me an example code or tutorials to solve this problem? Here is my batch file code -------------------------------------------------------------------------------- #!/bin/bash #SBATCH --job-name=Permafrost.sbatch #SBATCH --nodes=2 #SBATCH --ntasks=8 #SBATCH --time=50:00:00 #SBATCH --mail-type=BEGIN #SBATCH --mail-type=END #SBATCH --mail-type=FAIL #SBATCH --mail-user=XXX@gmail.com #SBATCH --out=Forge-%j.out #SBATCH --error=Forge-%j.err #generate a node file export PBS_NODEFILE=`generate_pbs_nodefile` mv shared cd shared #run fluent in parallel. module load ansys fluent 2ddp -g \ -t$SLURM_NTASKS \ -pinfiniband \ -cnf=$PBS_NODEFILE \ -ssh < /home/hwvfn/Permafrost_command.txt -------------------------------------------------------------------------------------- |
|
July 14, 2022, 11:03 |
Same issue
|
#2 |
Member
PENANG
Join Date: Aug 2017
Location: Malaysia
Posts: 40
Rep Power: 9 |
Hi, did you manage to solve the issue? I am facing the same problem. Can you please provide some info? Thank you.
|
|
Tags |
fluent - parallel, slurm, udf code |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluent Batch Mode error: No error handler available | hahs | FLUENT | 0 | September 14, 2018 02:29 |
Monitor Fluent Jobs - Batch mode | archeoptyrx | FLUENT | 11 | December 12, 2017 12:04 |
Ansys SIG$ILL error | loth | ANSYS | 3 | December 24, 2015 06:31 |
Fluent Batch Mode - TUI | Diane | FLUENT | 13 | June 3, 2014 06:11 |
multiple simulation in FLUENT in Batch mode | Anonymized_JL1 | FLUENT | 0 | October 19, 2010 09:47 |