CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   How to calcl cell temperature (http://www.cfd-online.com/Forums/fluent-udf/119418-how-calcl-cell-temperature.html)

newminde June 17, 2013 06:46

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

blackmask July 2, 2013 21:05

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.


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