|
[Sponsors] |
July 10, 2007, 02:56 |
Query regarding macros defined in f_wall.h
|
#1 |
Guest
Posts: n/a
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] How can I define different zones in ICEM? | llrr | ANSYS Meshing & Geometry | 14 | February 12, 2017 13:44 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 12:21 |
OpenFOAM13 for Mac OSX Darwin 104 | hjasak | OpenFOAM Installation | 70 | September 24, 2010 05:06 |
What are UDF macros C_T_S , C_T_AP,...???? | Asghari | FLUENT | 0 | January 28, 2007 10:54 |
User Defined Scalars - Returning Values | Carlos V. | FLUENT | 0 | April 19, 2006 18:18 |