|
[Sponsors] |
April 27, 2008, 01:21 |
udf help
|
#1 |
Guest
Posts: n/a
|
hello
i tried to interpret this udf but it gives parse error?can any one give me some sujjestion?this program is in udf manuel fluent 6.2. #include "udf.h" DEFINE_INIT(my_init_function, domain) { cell_t c; Thread *thread; real xc[ND_ND]; thread_loop_c (thread,domain) { begin_c_loop_all (c,thread) { C_CENTROID(xc,c,thread); if (sqrt(ND_SUM(pow(xc[0] - 0.5,2.), pow(xc[1] - 0.5,2.), pow(xc[2] - 0.5,2.))) < 0.25) C_T(c,thread) = 400.; else C_T(c,thread) = 300.; } end_c_loop_all (c,thread) } } thank you |
|
|
|