CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

interchanging face information with cell information/ radiation flux UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2011, 20:48
Default interchanging face information with cell information/ radiation flux UDF
  #1
New Member
 
Join Date: May 2011
Posts: 18
Rep Power: 15
ximik is on a distinguished road
Hello all,

First, I would like to say hello to this community. I have discovered CFD a year or so ago, and believe I truly found my calling. I live for this stuff. I hope to learn much from you all, as well contribute my humble opinions and advice.

For my first question, I hope that someone can help me out with some FLUENT/C programming.

I am writing a UDF (my first one!) that uses the F_SOLAR_SOURCE(f,t), BOUNDARY_RAD_HEAT_FLUX(f,t), and BOUNDARY_HEAT_FLUX(f,t) functions within FLUENT. Since this was given to me by FLUENT support and there is no documentation on it, I was wondering if anyone has experience working with these functions. Particularly, I was wondering if there are cell equivalent functions, or do I have to use the face functions and then extract that information into my cell calculations? How would one couple the face to cell information? I was thinking about creating a global array and placing all the flux values there, but I am not well versed in FLUENT C yet and am not sure how to have the face's corresponding cell provide the information.

Any help is very appreciated!
ximik is offline   Reply With Quote

Old   May 4, 2011, 17:34
Default
  #2
New Member
 
Join Date: May 2011
Posts: 18
Rep Power: 15
ximik is on a distinguished road
So i think I figured out my mistake, just in case anyone is curious/may need to figure this out in the future.

The mistake originated from my (lack of) understanding of the cell/face difference. Even if there is a cell equivalent to the functions I was talking about, it would just be easier to rewrite my UDF portion that deals with the radiation in terms of the faces, rather than cells.

It should be still possible to store the face value information in an outside array somehow, but I don't think that would be as accurate.
ximik is offline   Reply With Quote

Reply


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
Loop over the faces of a cell in UDF Anthony Wachs Fluent UDF and Scheme Programming 6 April 2, 2024 11:10
How to Reference an Adjacent Cell in a UDF ? jeff8541 FLUENT 0 March 8, 2011 11:33
flux around one specific cell solefire FLUENT 0 October 7, 2010 18:25
how to access each cell of a face? (user fortran) Katariina CFX 3 January 28, 2008 10:16
Cell face values computation un unstructured grids Sergio Rossi Main CFD Forum 2 May 28, 2006 11:04


All times are GMT -4. The time now is 01:43.