CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Cell Variable Macro Names (C_x_x...) for UDFs

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

Like Tree1Likes
  • 1 Post By marialhm

LinkBack Thread Tools Search this Thread Display Modes
Old   July 8, 2015, 21:18
Default Cell Variable Macro Names (C_x_x...) for UDFs
Join Date: Jun 2009
Posts: 98
Rep Power: 15
meangreen is on a distinguished road
Hi All,

I am trying to write several UDFs and I found there is a serious lack of "cell variable macro names" in the UDF manuals (and almost anywhere I can look). For example, a cell variable for x-velocity is C_U(c,t). I was hoping someone could help me with the following properties I want to pull OUT of fluent in order to write a UDF. I am using the Eulerian multiphase option.

The properties I am looking for currently are constants, I just want to make sure the UDF can take the information out of Fluent so the user doesn't have to go in and change the UDF every time they want to run a different particle type (i.e. I want it idiot proof).

1. Particle diameter
2. Coefficient of Restitution

I would be happy to start compiling a list of cell variable macro names and posting on updating on the forum.

I have found the granular temperature is C_GT(c,t).

meangreen is offline   Reply With Quote

Old   January 17, 2016, 06:48
Join Date: Jul 2013
Posts: 84
Rep Power: 11
marialhm is on a distinguished road
Hey, do you know how to get the size of the cell using udf, like the length and the width of the cell, if in a 2d simulation. thanks.
Sachin Zanje likes this.
marialhm is offline   Reply With Quote

Old   January 15, 2021, 02:48
New Member
Join Date: Dec 2017
Posts: 13
Rep Power: 7
Sachin Zanje is on a distinguished road
There is no macro available for calculating length and width of cell in fluent.
Sachin Zanje is offline   Reply With Quote

Old   January 15, 2021, 04:44
Senior Member
Join Date: Apr 2013
Posts: 2,256
Rep Power: 32
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
there are macros to get faces area of cell:
from this you can calculate length and width
C_VOLUME(c,t) gives you a volume of cell
best regards

press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote


cell values, cell variables, eulerian multiphase model, 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
emag beta feature: charge density charlotte CFX 4 March 22, 2011 10:14
Cell ID macro ?!?!?!?!?! bohis FLUENT 1 November 14, 2008 09:26
How to pass a variable from a define macro... Padian FLUENT 2 May 30, 2008 06:22
field variable macro of the mean-x-velocity? zt xie FLUENT 2 November 15, 2005 06:48
Macro for velocity on the face of the cell Dragos FLUENT 0 April 7, 2005 12:12

All times are GMT -4. The time now is 14:41.