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

How to calcl cell temperature

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By blackmask

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 17, 2013, 06:46
Default How to calcl cell temperature
  #1
New Member
 
Mindaugas
Join Date: Jun 2012
Posts: 25
Rep Power: 13
newminde is on a distinguished road
Hay.
I want to ask how I can access data about single cell.
for example I want to use macro for cell C_T(c,t). The question is how to define cell index as pointer, if I want to calculate temperature at every iteration in {0.0025, 0.00025} cell coordinate.
newminde is offline   Reply With Quote

Old   July 2, 2013, 21:05
Default
  #2
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 21
blackmask will become famous soon enough
The function
Code:
CX_Find_Cell_With_Point
could be what you required, however its prototype varies among FLUENT versions.

Since you only need to find the corresponding cell index and thread once for all, instead of the aforementioned function you could appeal to the brutal force. You could use
Code:
thread_loop_c
looping over the domain to pinpoint the cell and thread indices at some stage, say
Code:
DEFINE_EXECUTE_AFTER_CASE
then store such values in file scope variables for late use.
yashganatra likes this.
blackmask 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
Problem with zeroGradient wall BC for temperature - Total temperature loss cboss OpenFOAM 12 October 1, 2018 06:36
temperature limited warning in 1 cell Shamoon Jamshed FLUENT 1 April 3, 2014 04:00
temperature limited to 1 in only one cell ??!!! pipin FLUENT 5 July 21, 2009 10:58
Finding the node temperature (not cell) Parsa Zamankhan FLUENT 4 August 22, 2007 15:38
drastic increase of temperature in one cell ravi FLUENT 7 August 30, 2004 22:58


All times are GMT -4. The time now is 16:18.