|
[Sponsors] |
October 18, 2008, 08:52 |
UDF problem- DEFINE_PROFILE
|
#1 |
Guest
Posts: n/a
|
Dear Friends,
I realize that under the UDF example given for "Parabolic Velocity Inlet Profile in a Turbine Vane", the calculation of velocity boundary profile starts from the center of the "inlet" edge. I am trying to write an UDF for boundary profile using power law profile but it doesn't seem to work. I noticed that Fluent again treat the center of the inlet as 0.0 and resulted a symmetrical boundary profile at the inlet. The following is my code: The domain I am simulating is simply a 3D rectangular cube with the left and right faces as inlet and outlet flow while the rest are walls. /*================================================= ========*/ #include "udf.h" #define A1 0.728 #define B2 2 DEFINE_PROFILE(x_velocity,thread,index) { real x[ND_ND]; real y; face_t f; begin_f_loop(f,thread) { F_CENTROID(x,f,thread); F_PROFILE(f,thread,index) = A1*pow(x[2],B2); } end_f_loop(f,thread) } /*================================================= =====*/ Does this happened due to the use of Macro F_CENTROID? Please help me. Thanks in advance for any of your kind help to fine tune my UDF. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
define_profile | ape | FLUENT | 1 | February 2, 2017 05:25 |
UDF DEFINE_PROFILE | manu | FLUENT | 1 | February 25, 2008 06:16 |
DEFINE_PROFILE | Vishal | FLUENT | 1 | February 25, 2006 23:57 |
DEFINE_PROFILE | Tong | FLUENT | 0 | February 17, 2006 09:18 |
DEFINE_PROFILE problem | Giordano Bruno | FLUENT | 5 | February 2, 2005 07:03 |