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. |
Re: DPM BC Trap or Reflect
HI, it depend on your particle, if it is liquid, choose Trap,if it is solid, choose Reflect.
|
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?
|
Re: DPM BC Trap or Reflect
DEFINE_DPM_BC. The usage is described fairly well in the manual.
|
Re: DPM BC Trap or Reflect
That don't tell me about trap or reflect.
|
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??? |
Re: DPM BC Trap or Reflect *NM*
|
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.
|
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 07:19. |