CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

DPM BC Trap or Reflect

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2008, 09:33
Default DPM BC Trap or Reflect
  #1
RIK
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.
  Reply With Quote

Old   October 24, 2008, 00:45
Default Re: DPM BC Trap or Reflect
  #2
romans
Guest
 
Posts: n/a
HI, it depend on your particle, if it is liquid, choose Trap,if it is solid, choose Reflect.

  Reply With Quote

Old   October 24, 2008, 05:17
Default Re: DPM BC Trap or Reflect
  #3
RIK
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?
  Reply With Quote

Old   October 24, 2008, 13:42
Default Re: DPM BC Trap or Reflect
  #4
Allan Walsh
Guest
 
Posts: n/a
DEFINE_DPM_BC. The usage is described fairly well in the manual.
  Reply With Quote

Old   October 24, 2008, 14:06
Default Re: DPM BC Trap or Reflect
  #5
RIK
Guest
 
Posts: n/a
That don't tell me about trap or reflect.

  Reply With Quote

Old   October 24, 2008, 15:37
Default Re: DPM BC Trap or Reflect
  #6
RIK
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???
  Reply With Quote

Old   October 27, 2008, 13:04
Default Re: DPM BC Trap or Reflect *NM*
  #7
Allan Walsh
Guest
 
Posts: n/a
  Reply With Quote

Old   October 27, 2008, 13:06
Default Re: DPM BC Trap or Reflect
  #8
Allan Walsh
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.
  Reply With Quote

Old   October 28, 2008, 07:09
Default Re: DPM BC Trap or Reflect
  #9
RIK
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?
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:14.