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

How to calcl cell temperature

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

Like Tree1Likes
  • 1 Post By blackmask

Reply
 
LinkBack Thread Tools 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: 5
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: 315
Rep Power: 11
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

Thread Tools
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 On
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 10 March 5, 2015 07:57
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 03:06.