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

Fluent UDF particle wall distance

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 22, 2020, 15:17
Default Fluent UDF particle wall distance
  #1
Member
 
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 6
Achini is on a distinguished road
Hello!

I am working on a problem where I need to calculate the particle wall distance from each particle position.
Can anyone please tell me how to find the distance from the particle position to the wall boundary?
Is there a specific macro I can use for that?

Thank you!
Achini is offline   Reply With Quote

Old   October 23, 2020, 05:06
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
I don't know any specific macros or approaches for that, but what you can do is:
1. make a loop over particles
2. get coordinate of each particle
3. calculate the distance to the wall (cause you know coordinates of wall)
hope this simple approach will work for you
Achini likes this.
__________________
best regards


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

Old   November 20, 2020, 12:34
Default
  #3
Member
 
L.A.Isanka
Join Date: Jul 2020
Posts: 55
Rep Power: 6
Achini is on a distinguished road
Thank you for your reply.

do you know how to get the minimum distance from particle to boundary wall?

I want to get particle wall distance inside a define_bodyforce macro, to calculate the body force.
Is there a direct command other than finding the minimum distance via coordinates?

Thank you!
Achini is offline   Reply With Quote

Reply

Tags
dpm bodyforce, dpm boundary condition, fluent udf


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
Fluent DPM UDF - Particle wall distance Achini Main CFD Forum 0 October 19, 2020 01:08
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 01:04
Ansys Fluent UDF, Wall Average Temperature Depend On Inlet Velocity ozgeozge Fluent UDF and Scheme Programming 1 April 15, 2019 02:31
UDF Wall functions in Fluent syler3321 Fluent UDF and Scheme Programming 2 September 20, 2014 13:37
UDF for wall slipping HFLUENT Fluent UDF and Scheme Programming 0 April 27, 2011 13:03


All times are GMT -4. The time now is 17:32.