|
[Sponsors] |
March 13, 2003, 20:41 |
UDF:multiphase wall shear
|
#1 |
Guest
Posts: n/a
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What does “Mean Wall Shear Stress” mean? | dfytanid | FLUENT | 4 | November 6, 2016 20:19 |
Measuring wall shear stress in bend pipe | liguifan | OpenFOAM | 70 | December 9, 2015 03:49 |
Wall Shear Stress | mtl40 | Main CFD Forum | 3 | January 23, 2010 02:08 |
Problems with wall shear stress. | xiexiehezuo | FLUENT | 1 | September 22, 2009 12:26 |
Macro to set Wall Shear Stress | Satish | FLUENT | 4 | November 26, 2003 14:46 |