CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   get temperature in the fixed point (https://www.cfd-online.com/Forums/fluent-udf/144712-get-temperature-fixed-point.html)

shuangshuang_liu November 19, 2014 21:52

get temperature in the fixed point
 
hello guys:
i need get temperature in the fixed point(0.023,0.015). i take this way
if((sqrt(ND_SUM(pow(xc[0]-0.023,2.),pow(xc[1]-0.015,2.),0)))<.000000000001)
{ temp=C_T(c,t);
Message("temp=%1f\n",temp);
}
but this code doesn't work, the temperature is none. if the code is as follows:

temp=C_T(c,t);
Message("temp=%1f\n",temp);
if((sqrt(ND_SUM(pow(xc[0]-0.023,2.),pow(xc[1]-0.015,2.),0)))<.000000000001)
{
}
then i can get the temp ,but the temp is not correct.
please help me .i have no idea.


All times are GMT -4. The time now is 04:52.