CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   How to calcl cell temperature (

newminde June 17, 2013 06:46

How to calcl cell temperature
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.

blackmask July 2, 2013 21:05

The function

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

looping over the domain to pinpoint the cell and thread indices at some stage, say

then store such values in file scope variables for late use.

All times are GMT -4. The time now is 22:12.