|
[Sponsors] |
Unit vector from cell centroid to the boundary face |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 11, 2020, 05:00 |
Unit vector from cell centroid to the boundary face
|
#1 |
Member
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 6 |
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! Last edited by Achini; October 11, 2020 at 05:00. Reason: fluent, udf, vector, loop, position vector |
|
October 12, 2020, 07:39 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
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
__________________
best regards ****************************** press LIKE if this message was helpful |
|
October 12, 2020, 11:26 |
|
#3 |
Member
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 6 |
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! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
[snappyHexMesh] Boundary face cell does not match with cell face of internal mesh | leonardo13 | OpenFOAM Meshing & Mesh Conversion | 0 | May 20, 2020 16:46 |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 08:30 |
Out File does not show Imbalance in % | Mmaragann | CFX | 5 | January 20, 2017 11:20 |
Error - Solar absorber - Solar Thermal Radiation | MichaelK | CFX | 12 | September 1, 2016 06:15 |