|
[Sponsors] |
September 23, 2009, 22:51 |
Parabolic Velocity UDF
|
#1 |
New Member
Join Date: Sep 2009
Posts: 2
Rep Power: 0 |
Hey guys,
trying to make a UDF for a parabolic velocity profile (that varies in x-direction). But im not sure if this is correct: #include "udf.h" DEFINE_PROFILE(inlet_y_velocity, thread, position) { real y[ND_ND]; /* this will hold the position vector */ real x; face_t f; begin_f_loop(f, thread) { F_CENTROID(y,f,thread); x = y[1]; F_PROFILE(f, thread, position) = "parabolic profile eqn in terms of x"; } end_f_loop(f, thread) } |
|
October 23, 2009, 12:15 |
|
#2 |
New Member
dhahbi
Join Date: Apr 2009
Posts: 2
Rep Power: 0 |
hi, i thik that this udf is correct so you must try it.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to make a UDF to have a velocity profile in a square channel | Gigis | Fluent UDF and Scheme Programming | 8 | January 13, 2013 23:20 |
Velocity of Fluid @ different positions of Particle in DPM using UDF | pmghadge | FLUENT | 1 | June 16, 2009 20:11 |
Editing a UDF for a velocity boundary in a multiphase | rubenk | FLUENT | 0 | May 7, 2009 16:48 |
UDF problem : inlet velocity in cyl. coord. system | Jongdae Kim | FLUENT | 0 | June 15, 2004 12:21 |
UDF component in Cyliderical Velocity? | Hongchan Kim | FLUENT | 3 | April 24, 2001 13:20 |