|
[Sponsors] |
July 10, 2007, 10:39 |
Macro information (undefined in f_wall.h)
|
#1 |
Guest
Posts: n/a
|
Have someone tried these macros mentioned 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 didn't give the desired ouput .. 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 |
Second Derivative Zero - Boundary Condition | fu-ki-pa | OpenFOAM | 11 | March 27, 2021 05:28 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 01:34 |
Building OpenFoAm on SGI Altix 64bits | anne | OpenFOAM Installation | 8 | June 15, 2006 10:27 |