Parabolic Velocity UDF
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) } |
hi, i thik that this udf is correct so you must try it.:)
|
All times are GMT -4. The time now is 23:04. |