CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF question on getting value from a boundary (

tongx051 October 21, 2011 00:30

UDF question on getting value from a boundary
Hello everyone,
I'm very new to UDF. I was trying to write a UDF that can get surface temperature on a wall at the end of the calculation and store it to a UDMI.
Here is the code I wrote:


Domain *d;
Thread *t;
face_t f;
d = Get_Domain(1);
t = Lookup_Thread(d, 16); /*16 is boundary ID*/


F_UDMI(f,t,0) = F_T(f,t);

When I plot it, there is nothing showing. I guess there must be something wrong in my code, so the temperature is not stored into the UDMI yet. Could anybody help me figure out what I did wrong.

All times are GMT -4. The time now is 00:11.