|
[Sponsors] |
October 23, 2008, 09:33 |
DPM BC Trap or Reflect
|
#1 |
Guest
Posts: n/a
|
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. |
|
October 24, 2008, 00:45 |
Re: DPM BC Trap or Reflect
|
#2 |
Guest
Posts: n/a
|
HI, it depend on your particle, if it is liquid, choose Trap,if it is solid, choose Reflect.
|
|
October 24, 2008, 05:17 |
Re: DPM BC Trap or Reflect
|
#3 |
Guest
Posts: n/a
|
The particle is solid. I need an UDF to do it, with an IF condition. Anyone knows the Trap and Reflect macro?
|
|
October 24, 2008, 13:42 |
Re: DPM BC Trap or Reflect
|
#4 |
Guest
Posts: n/a
|
DEFINE_DPM_BC. The usage is described fairly well in the manual.
|
|
October 24, 2008, 14:06 |
Re: DPM BC Trap or Reflect
|
#5 |
Guest
Posts: n/a
|
That don't tell me about trap or reflect.
|
|
October 24, 2008, 15:37 |
Re: DPM BC Trap or Reflect
|
#6 |
Guest
Posts: n/a
|
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??? |
|
October 27, 2008, 13:04 |
Re: DPM BC Trap or Reflect *NM*
|
#7 |
Guest
Posts: n/a
|
|
|
October 27, 2008, 13:06 |
Re: DPM BC Trap or Reflect
|
#8 |
Guest
Posts: n/a
|
For trapped, use return PATH_END and increase the variable for the number of particles trapped. For reflect, return PATH_ACTIVE.
|
|
October 28, 2008, 07:09 |
Re: DPM BC Trap or Reflect
|
#9 |
Guest
Posts: n/a
|
Thanks for your help. But when i use PATH_ACTIVE that don't let me choose the reflection parameters, there is other function?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for trap of dpm | HK | FLUENT | 2 | November 8, 2016 10:43 |
Reflect in TGrid | Vivek Vasudevan | Main CFD Forum | 0 | March 16, 2007 09:58 |
Reflect in TGrid | Vivek Vasudevan | FLUENT | 0 | March 15, 2007 23:02 |
DPM, B.C.--reflect, escape, trap. Any else? | zhang | FLUENT | 1 | February 27, 2004 14:57 |
Gambit copy/reflect operation | Laurence Wallian | FLUENT | 3 | October 8, 2003 05:29 |