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/)
-   -   Temperature boundary condition at the pipe outlet (http://www.cfd-online.com/Forums/fluent-udf/90358-temperature-boundary-condition-pipe-outlet.html)

j. mcquire July 7, 2011 14:11

Temperature boundary condition at the pipe outlet
 
..................

Amir July 7, 2011 15:06

Hi,
your code needs some modifications:
Quote:

#include "udf.h"

DEFINE_PROFILE(out_temp, t, i)
{

real x[ND_ND];
face_t f;
Thread *t0;
begin_f_loop (f,t)

{

F_CENTROID(x,f,t);
F_PROFILE(f,t,i) = C_T(F_C0(f,t),THREAD_T0(t));

}
end_f_loop (f,t)
}
I didn't check that, it may have some syntax errors.

j. mcquire July 7, 2011 16:25

.................

Amir July 8, 2011 02:33

Dear Jerry,
I checked that and it was compiled without any error:
Quote:

#include "udf.h"

DEFINE_PROFILE(out_temp, t, i)
{

real x[ND_ND];
face_t f;
Thread *t0;
begin_f_loop (f,t)

{

F_CENTROID(x,f,t);
F_PROFILE(f,t,i) = C_T(F_C0(f,t),THREAD_T0(t));

}
end_f_loop (f,t)
}
you can see modifications if you compare it with your UDF!


All times are GMT -4. The time now is 14:09.