CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF:multiphase wall shear

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2003, 20:41
Default UDF:multiphase wall shear
  #1
littlestone
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
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 03:35.