UDF:multiphase wall shear
Hi all, i simuate two-phase flow, i want to modify second phase x direction wall shear. The udf is as follow:
#include "udf.h" DEFINE_PROFILE(wall_x_velocity, thread, position) { real x[ND_ND]; real y,mu_s,usx,xvel_s,fd; face_t f; cell_t c; int ID = 4; /*wall id=4 */ Domain *domain; domain = Get_Domain(3); Thread *thread = Lookup_Thread(domain,ID); fd = F_D(f,thread); mu_s = C_MU_L(c,thread); begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[0]; F_PROFILE(f, thread, position) = xvel_s *mu_s/(1.0E-5/pow(fd,0.3333)); } end_f_loop(f, thread) } when i interpret UDF, there is error: Error: cpp -ID:\FLUENT.INC\fluent6.0/src -ID:\FLUENT.INC\fluent6.0/cortex/src -ID:\FLUENT.INC\fluent6.0/client/src -ID:\FLUENT.INC\fluent6.0/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" d:\libudf\src\wall.cError: d:\libudf\src\wall.c: line 12: parse error. line 12 means this line "int ID = 4; /*wall id=4 */" i don't know this mean, ID=4 is gotten from boundary conditon panel, or i am wrong at some place. somebody may help me. If you've example about multiphase UDF, i would appreciate it very much. thanks in advance |
All times are GMT -4. The time now is 15:33. |