CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

How to find the value of eqn in ANSYS Fluent UDF?

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

Like Tree1Likes
  • 1 Post By sbaffini

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 3, 2022, 04:59
Lightbulb How to find the value of eqn in ANSYS Fluent UDF?
  #1
Member
 
thedal's Avatar
 
Thamilmani M
Join Date: Sep 2017
Location: IIT Bombay, Mumbai
Posts: 52
Rep Power: 9
thedal is on a distinguished road
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
thedal is offline   Reply With Quote

Old   January 3, 2022, 07:45
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,180
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
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
sbaffini is offline   Reply With Quote

Old   January 3, 2022, 07:53
Default
  #3
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,180
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
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
thedal likes this.
sbaffini is offline   Reply With Quote

Reply

Tags
ansys, cfd, eqn, fluent, udf

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
What compilers can we use in Ansys Fluent to compile our UDF? Roh Fluent UDF and Scheme Programming 19 November 11, 2021 21:09
Running Fluent from Python: UDF Compilation problems Ames Fluent UDF and Scheme Programming 5 November 16, 2020 06:12
Radially varying heatflux UDF - Ansys Fluent farhanjaved Fluent UDF and Scheme Programming 1 October 25, 2020 02:38
How to plot UDF variables in Ansys fluent? agarhaji Fluent UDF and Scheme Programming 5 May 25, 2018 09:19
Ansys Fluent 17 UDF Velocity Profile Update. Phil-M ANSYS 0 October 14, 2016 08:48


All times are GMT -4. The time now is 09:54.