|
[Sponsors] |
June 9, 2011, 07:15 |
UDF for discrete phase model
|
#1 |
New Member
Simone
Join Date: Jun 2011
Posts: 2
Rep 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: #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! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Discrete phase or two phase model in Fluent? | andrea panizza | FLUENT | 14 | September 6, 2015 17: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 08:57 |
UDF error : DEFINE_PROPERTY with PDF Model | Abhilash Chandy | FLUENT | 0 | June 2, 2006 18:07 |
two phase model - pressure | marcel | Main CFD Forum | 3 | September 8, 2003 10:25 |