CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

ANSYS Fluent UDFs in Batch mode

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2020, 22:42
Default ANSYS Fluent UDFs in Batch mode
New Member
Hanli Wu
Join Date: Jun 2020
Posts: 1
Rep Power: 0
hwvfn is on a distinguished road
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.


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



#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 --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 \


-pinfiniband \


-ssh < /home/hwvfn/Permafrost_command.txt

hwvfn is offline   Reply With Quote

Old   July 14, 2022, 10:03
Default Same issue
Join Date: Aug 2017
Location: Malaysia
Posts: 40
Rep Power: 8
musa19 is on a distinguished road
Hi, did you manage to solve the issue? I am facing the same problem. Can you please provide some info? Thank you.
musa19 is offline   Reply With Quote


fluent - parallel, slurm, udf code

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent Batch Mode error: No error handler available hahs FLUENT 0 September 14, 2018 01:29
Monitor Fluent Jobs - Batch mode archeoptyrx FLUENT 11 December 12, 2017 11:04
Ansys SIG$ILL error loth ANSYS 3 December 24, 2015 05:31
Fluent Batch Mode - TUI Diane FLUENT 13 June 3, 2014 05:11
multiple simulation in FLUENT in Batch mode Anonymized_JL1 FLUENT 0 October 19, 2010 08:47

All times are GMT -4. The time now is 00:15.