|
[Sponsors] |
July 14, 2003, 01:14 |
UDF for imposing a BC
|
#1 |
Guest
Posts: n/a
|
Hi All,
In a problem, I have to get average temperature from an outlet and impose it on another inlet. Following is a UDF, which is not complete, but, i think it is enough to explain my approach. I need your suggestions. ***************************************** # include "udf.h" real temp=0.0; DEFINE_ADJUST(get_temp,d) { Thread *t; face_t f; d = Get_Domain(17); (17 is zone ID of the outlet) temp = F_T(f,t);(will this give me avg. temp at the outlet) return temp; } DEFINE_PROFILE(temp_profile,t,i) { real x[ND_ND]; face_t f; begin_c_loop(c,t) { }end_c_loop(c,t) } ********************************** |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 07:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |