|June 8, 2011, 09:16||
UDF for Discrete Phase Model
Join Date: Jun 2011
Posts: 2Rep Power: 0
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)
if ( P_POS (p)  >= -P_DIAM (p))
P_VEL (p)  = -P_VEL (p) ;
for (i=0; i<3; i++)
P_VEL0 (p) [i] = P_VEL (p) [i];
Thank you very much!
|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|