|
[Sponsors] |
How to find the value of eqn in ANSYS Fluent UDF? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 3, 2022, 05:59 |
How to find the value of eqn in ANSYS Fluent UDF?
|
#1 |
Member
Thamilmani M
Join Date: Sep 2017
Location: IIT Bombay, Mumbai
Posts: 52
Rep Power: 9 |
ANSYS UDF Source terms has a variable called "eqn" being passed that denotes the Equation number. Is it possible to find the value of eqn for each equation that we solve?
DEFINE_SOURCE (cell_t c, Thread *t, dS, eqn) { }
__________________
Always Thedal |
|
January 3, 2022, 08:45 |
|
#2 |
Senior Member
|
I know for sure that:
IF eqn=EQ_X_MOM -> X momentum equation IF eqn=EQ_Y_MOM -> Y momentum equation IF eqn=EQ_Z_MOM -> Z momentum equation But I can't remember where I found it out, so I don't know about the other equations |
|
January 3, 2022, 08:53 |
|
#3 |
Senior Member
|
Ok, I found it. There is an enum in the file mem.h
For latest Fluent versions the file should be in fluent/fluentxx.y.z/src/storage Within your ansys installation folder. Just search it for, say, EQ_X_MOM and you will find the others |
|
Tags |
ansys, cfd, eqn, fluent, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What compilers can we use in Ansys Fluent to compile our UDF? | Roh | Fluent UDF and Scheme Programming | 19 | November 11, 2021 22:09 |
Running Fluent from Python: UDF Compilation problems | Ames | Fluent UDF and Scheme Programming | 5 | November 16, 2020 07:12 |
Radially varying heatflux UDF - Ansys Fluent | farhanjaved | Fluent UDF and Scheme Programming | 1 | October 25, 2020 03:38 |
How to plot UDF variables in Ansys fluent? | agarhaji | Fluent UDF and Scheme Programming | 5 | May 25, 2018 10:19 |
Ansys Fluent 17 UDF Velocity Profile Update. | Phil-M | ANSYS | 0 | October 14, 2016 09:48 |