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

UDF for discrete phase model

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 9, 2011, 06:15
Default UDF for discrete phase model
  #1
New Member
 
Simone
Join Date: Jun 2011
Posts: 2
Rep Power: 0
simo11 is on a distinguished road
Hi, I want to set a particular boundary condition for the bottom of a channel so that particles can be reflected when they are near to the wall but they haven't touched it yet.
I'm new in writing UDF: I tried to use and modify the DEFINE_DPM_BC using a check on the z-coordinate of the particle (z=0 indicates the bottom of the channel, pointing outside it) to invert the z-velocity when necessary; when I try to compile this UDF, Fluent says that can't open the udf_library and it's impossible to find the specified file.

Please, can you help me?

This is the UDF text:

#include"udf.h"
DEFINE_DPM_BC (bc_reflect, p, t, f, f_normal, dim)

{
int i;
if ( P_POS (p) [2] >= -P_DIAM (p))
{

P_VEL (p) [2] = -P_VEL (p) [2];
for (i=0; i<3; i++)
P_VEL0 (p) [i] = P_VEL (p) [i];
}
return PATH_ACTIVE;
}

Thank you very much!
simo11 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Discrete phase or two phase model in Fluent? andrea panizza FLUENT 13 January 8, 2015 03:02
Flash Process / Problem with thermal phase change model Ridley CFX 0 July 21, 2010 07:57
UDF error : DEFINE_PROPERTY with PDF Model Abhilash Chandy FLUENT 0 June 2, 2006 17:07
two phase model - pressure marcel Main CFD Forum 3 September 8, 2003 09:25


All times are GMT -4. The time now is 22:02.