CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   DPM BC Trap or Reflect (http://www.cfd-online.com/Forums/fluent/49597-dpm-bc-trap-reflect.html)

RIK October 23, 2008 08:33

DPM BC Trap or Reflect
 
I'm trying to make a UDF to define if a particle with a diameter > then X, when hit the wall, get Trapped or Reflect. I don't know which are the functions to say Trap or Reflect to the particle. Anyone can help me with this?

Thx in advance.

romans October 23, 2008 23:45

Re: DPM BC Trap or Reflect
 
HI, it depend on your particle, if it is liquid, choose Trap,if it is solid, choose Reflect.


RIK October 24, 2008 04:17

Re: DPM BC Trap or Reflect
 
The particle is solid. I need an UDF to do it, with an IF condition. Anyone knows the Trap and Reflect macro?

Allan Walsh October 24, 2008 12:42

Re: DPM BC Trap or Reflect
 
DEFINE_DPM_BC. The usage is described fairly well in the manual.

RIK October 24, 2008 13:06

Re: DPM BC Trap or Reflect
 
That don't tell me about trap or reflect.


RIK October 24, 2008 14:37

Re: DPM BC Trap or Reflect
 
DEFINE_DPM_BC (dpm_collision,p,t,f,f_normal,dim) {

if (P_DIAM(p)<5e-6)

{

X

}

else

{

Y

} }

I already had this...but where is X and Y should be 2 functions that tell the program to make the particle REFLECT or TRAP. Is just that info i need. I found in dpm.h this: #define DPM_BC_REFLECT 2 #define DPM_BC_TRAP 3

Don't know how to use them, i tried all ways i could remember and the FLUENT still not trap particles.

Anyone knows how to solve this???

Allan Walsh October 27, 2008 13:04

Re: DPM BC Trap or Reflect *NM*
 

Allan Walsh October 27, 2008 13:06

Re: DPM BC Trap or Reflect
 
For trapped, use return PATH_END and increase the variable for the number of particles trapped. For reflect, return PATH_ACTIVE.

RIK October 28, 2008 07:09

Re: DPM BC Trap or Reflect
 
Thanks for your help. But when i use PATH_ACTIVE that don't let me choose the reflection parameters, there is other function?


All times are GMT -4. The time now is 23:34.