CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Query regarding macros defined in f_wall.h (https://www.cfd-online.com/Forums/fluent/45318-query-regarding-macros-defined-f_wall-h.html)

Jack Martinez July 10, 2007 02:56

Query regarding macros defined in f_wall.h
 
Have someone tried the macros written in f_wall.h like

1) TEMPERATURE_WALL(t) 2)HEAT_FLUX_WALL(t) 3)WALL_Q(T0,r0,T1,r1,rw)(((T1) - (T0))/((r0)+(rw)+(r1)))

I tried to use it in this sample UDF but it doen#t seem to be working at all ..

WALL_Q(T0,r0,T1,r1,rw)(((T1) - (T0))/((r0)+(rw)+(r1)))

#include "udf.h"

#include "f_wall.h"

#include "dll.h"

DEFINE_EXECUTE_AT_END(my_function)

{

face_t f;

Thread *t;

Domain *d;

real temp=0;

d=Get_Domain(1);

t=Lookup_Thread(d,6);

begin_f_loop(f,t)

{

temp=TEMPERATURE_WALL(t);

Message(" \nThe temperature at the face %d is %f",f, temp);

}

end_f_loop(f,t)

}

Please have a look at it..

Regards Jack Martinez


All times are GMT -4. The time now is 08:50.