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

UDF for trap of dpm

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2007, 15:44
Default UDF for trap of dpm
  #1
HK
Guest
 
Posts: n/a
Hello, I wanted to trap particles as soon as certain condition is fullfilled (not on wall). For example, trapping particles on dis=2e-3 m where dis= distance from the wall and particle centre.

regards, HK

  Reply With Quote

Old   February 1, 2007, 15:24
Default Re: UDF for trap of dpm
  #2
Allan Walsh
Guest
 
Posts: n/a
You should be able to use the variable P_POS(p)[i] which is the position of the particle, p. The variable, i is the direction, x=0, y=1, z=2. (This is for Fluent 6.2, it was different in v6.1).

If particle position > dis then return PATH_END.

You can even increment the variable for the number of particles trapped, gvr_trapped?. Look for it in the dpm.h header file, if it is of interest. Good luck.
  Reply With Quote

Old   November 8, 2016, 10:43
Default
  #3
New Member
 
raa
Join Date: Oct 2016
Posts: 3
Rep Power: 10
rdfing is on a distinguished road
Quote:
Originally Posted by Allan Walsh
;138801
You should be able to use the variable P_POS(p)[i] which is the position of the particle, p. The variable, i is the direction, x=0, y=1, z=2. (This is for Fluent 6.2, it was different in v6.1).

If particle position > dis then return PATH_END.

You can even increment the variable for the number of particles trapped, gvr_trapped?. Look for it in the dpm.h header file, if it is of interest. Good luck.
Isn't DPM boundary Macro only detect and point to those particle that touch the wall?
rdfing is offline   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
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT subhankar_bhandari Fluent UDF and Scheme Programming 0 August 19, 2010 04:09
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT subhankar_bhandari FLUENT 0 August 19, 2010 04:01
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 02:29
DPM with UDF - Step-by-Step Procedure???? Prashanth FLUENT 3 April 3, 2009 18:45
DPM - UDF for fluctuating bubble size Jaroslav Kotara FLUENT 1 April 19, 2006 10:02


All times are GMT -4. The time now is 20:59.