CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF for Discrete Phase Model

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

LinkBack Thread Tools Display Modes
Old   June 8, 2011, 09:16
Default UDF for Discrete Phase Model
New Member
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:

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];

Thank you very much!
simo11 is offline   Reply With Quote


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
Discrete phase or two phase model in Fluent? andrea panizza FLUENT 14 September 6, 2015 16:18
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
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 04:48.