Unit vector from cell centroid to the boundary face
Hello!
I am planning to model particle attractions with the channel wall. To get the force exerted by the channel wall to the particle, I'm planning to use DPM_BODYFORCE macro. In order to get the resultant force, I need to get the unit vector from a cell to the boundary. how can i find it? also how can i create a loop to loop over the cells in the boundary? I'd be greatful if anyone could help me with this. Thank you! |
the macro is
Code:
DEFINE_DPM_BODY_FORCE not sure what is unit vector i recommend you to read Ansys Fluent Customization manual, you may find some examples there |
Hello AlexanderZ,
Thank you for your reply. Do you know of a method to distinguish between particles injected via two separation injections (Injection 0 & Injection 1). Injected particles from both injections are identicle execpt for their surface properties. once a particle is located, I want to identify whethher it is from injection 0 or injection 1. I'd be greatful if you could help me with this. Thank you! |
All times are GMT -4. The time now is 15:47. |