CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF for trap of dpm

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   January 31, 2007, 15:44
Default UDF for trap of dpm
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
Allan Walsh
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


Thread Tools
Display Modes

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 On
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 03:09
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT subhankar_bhandari FLUENT 0 August 19, 2010 03:01
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 01:29
DPM with UDF - Step-by-Step Procedure???? Prashanth FLUENT 3 April 3, 2009 17:45
DPM - UDF for fluctuating bubble size Jaroslav Kotara FLUENT 1 April 19, 2006 09:02

All times are GMT -4. The time now is 05:44.