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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
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

Old   December 14, 2020, 09:34
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
In such a case you just open the Fluent manual...

Look at "Data access macro's", more specific "Model-Specific Macros".
pakk is offline   Reply With Quote

Old   December 14, 2020, 10:15
Default
  #3
Member
 
Alexandre M S Costa
Join Date: Apr 2009
Posts: 31
Rep Power: 17
amscosta is on a distinguished road
Thanks. I am going try to dig the manual. In the meantime, I found a example
for "your condition" in the attached picture.
Attached Images
File Type: png Captura de tela de 2020-12-14 12-10-41.png (72.4 KB, 25 views)
amscosta is offline   Reply With Quote

Reply

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 13:35.