How to access particle diameter in DPM_BC macro
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. |
In such a case you just open the Fluent manual...
Look at "Data access macro's", more specific "Model-Specific Macros". |
1 Attachment(s)
Thanks. I am going try to dig the manual. In the meantime, I found a example
for "your condition" in the attached picture. |
All times are GMT -4. The time now is 03:42. |