|
[Sponsors] |
January 27, 2011, 08:49 |
urgent help parabolic velocity profile in 3D
|
#1 |
New Member
Angie
Join Date: Nov 2010
Posts: 17
Rep Power: 16 |
Hi guys ,
i need one urgent help. i want to write the UDF for parabolic velocity profile for a flow in pipe. Z-is the axis. I define the profile in x and y direction. It doesn't work. Please read it and help out. #include "udf.h" DEFINE_PROFILE(inlet_z_velocity, thread, position) { real z[ND_ND]; real x,y; face_t f; begin_f_loop(f, thread) { F_CENTROID(z,f,thread); x = z[1]; y = z[2]; F_PROFILE(f, thread, position) = 10*pow(1-(x/0.15),1/7); F_PROFILE(f, thread, position) = 10*pow(1-(y/0.15),1/7); } end_f_loop(f, thread) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[UDF] Relative coordinates in logarithmic velocity profile | cfdworker | Fluent UDF and Scheme Programming | 25 | July 13, 2017 04:44 |
velocity and temperature profile | vickrenz | FLUENT | 0 | August 31, 2009 00:58 |
Logarithmic velocity profile | cfdworker | Fluent UDF and Scheme Programming | 0 | April 23, 2009 20:09 |
[boundary condition] logarithmic velocity profile | cfdworker | FLUENT | 2 | April 18, 2009 00:36 |
problem with velocity inlet profile file | Duncan | FLUENT | 3 | November 21, 2005 08:28 |