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

How to access particle diameter in DPM_BC macro

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 14, 2020, 09:23
Question How to access particle diameter in DPM_BC macro
  #1
Member
 
Alexandre M S Costa
Join Date: Apr 2009
Posts: 31
Rep Power: 17
amscosta is on a distinguished road
Hi All,
I want to trap particles at wall based on a given particle diameter.
How can I modify DPM_BC macro below for acquiring that :





DEFINE_DPM_BC(bc_trap,tp,t,f,f_normal,dim)
{
if (your condition)
{
if(TP_TYPE(tp) == DPM_TYPE_INERT)
{
tp->gvtp.n_trapped += 1;
tp->gvtp.n_escaped -=1 ;
return PATH_END ;
}
Trap_Particle (tp);
}
else
{
Your_rebound_function(tp);
return PATH_ACTIVE;
}
}


Note : the snippet above is from a solution provided somewhere else. I believe

the line "if (your condition)" is the solution, but I have no idea how to specify "your condition" properly, for instance, how to refer to a particle diameter in the dpm udf language.


Any comment from the skilled users is very welcome.
amscosta is offline   Reply With Quote

 

Tags
dpm boundary condition


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
What is the difference between pore diameter and particle diameter in porous media? Emara FLUENT 6 January 10, 2016 11:01
Access particle data from functionObject CedricVH OpenFOAM 10 July 21, 2011 12:03
Access to the particle position and velocity Christoph_84 OpenFOAM 0 September 30, 2010 09:58
Get direct access to a particle gruber OpenFOAM 3 November 3, 2009 05:26
UDF Data Access Macro Woo Meng Wai FLUENT 0 November 6, 2007 20:23


All times are GMT -4. The time now is 11:17.