# DPM BC Trap or Reflect

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 October 23, 2008, 08:33 DPM BC Trap or Reflect #1 RIK Guest   Posts: n/a Sponsored Links 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 23, 2008, 23:45 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.

 October 24, 2008, 04:17 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?

 October 24, 2008, 12:42 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.

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

 October 24, 2008, 14:37 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???

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

 October 27, 2008, 13:06 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.

 October 28, 2008, 07:09 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?

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post HK FLUENT 2 November 8, 2016 10:43 Vivek Vasudevan Main CFD Forum 0 March 16, 2007 09:58 Vivek Vasudevan FLUENT 0 March 15, 2007 23:02 zhang FLUENT 1 February 27, 2004 14:57 Laurence Wallian FLUENT 3 October 8, 2003 04:29