CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Unit vector from cell centroid to the boundary face

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2020, 04:00
Default Unit vector from cell centroid to the boundary face
  #1
Member
 
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 5
Achini is on a distinguished road
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 04:00. Reason: fluent, udf, vector, loop, position vector
Achini is offline   Reply With Quote

Old   October 12, 2020, 06:39
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
the macro is
Code:
DEFINE_DPM_BODY_FORCE
the adjacent cell’s variables values could be found using F_C0(f,t),THREAD_T0(t) and F_C1(f,t),THREAD_T1(t) macros (c1 t1 in case the face is interior)

not sure what is unit vector

i recommend you to read Ansys Fluent Customization manual, you may find some examples there
Achini likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   October 12, 2020, 10:26
Default
  #3
Member
 
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 5
Achini is on a distinguished road
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!
Achini is offline   Reply With Quote

Reply


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
[snappyHexMesh] Boundary face cell does not match with cell face of internal mesh leonardo13 OpenFOAM Meshing & Mesh Conversion 0 May 20, 2020 15:46
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 10:20
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15


All times are GMT -4. The time now is 19:37.