|
[Sponsors] |
How to access particle diameter in DPM_BC macro |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 14, 2020, 09:23 |
How to access particle diameter in DPM_BC macro
|
#1 |
Member
Alexandre M S Costa
Join Date: Apr 2009
Posts: 31
Rep Power: 17 |
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. |
|
Tags |
dpm boundary condition |
|
|
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 |