udf error
Quote:
/************************************************** ********************* udfexample.c UDF for specifying volume profile boundary condition ************************************************** **********************/ #include "udf.h" DEFINE_PROFILE(inlet_volume, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real y, h; face_t f; h = -0.0009; /* inlet height in m */ begin_f_loop(f,thread) { F_CENTROID(x, f, thread); y = x[1]; if (y<h) { F_PROFILE(f, thread, position) =1; } else { F_PROFILE(f, thread, position) =0; } end_f_loop(f, thread) } |
Try the fluent forum.
|
All times are GMT -4. The time now is 23:31. |