CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

wall distance definition

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By sbaffini
  • 2 Post By arjun
  • 1 Post By sbaffini

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2017, 14:54
Default wall distance definition
  #1
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12
mostanad is on a distinguished road
Hello
I am very confused about wall distance definition in turbulence models for a grid in a domain. I attached a picture. Can anybody draw the wall distance from upper wall on it?
thank you
Attached Images
File Type: jpg Capture1.JPG (15.4 KB, 92 views)
mostanad is offline   Reply With Quote

Old   July 24, 2017, 15:35
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
You should consider the distance in normal direction to the wall. However, if the botton side is also a wall, it makes no sense to measure the distance from the upper wall.
FMDenaro is offline   Reply With Quote

Old   July 24, 2017, 15:48
Default
  #3
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12
mostanad is on a distinguished road
thank you Prof. Denaro
absolutely, it is true that for a node near the lower wall, I do not need to upper wall distance but I want to know how I can wall distance for an arbitrary node in a CFD code. As I found from your reply, Is the sketched distance in attached file true?
thanks a lot.
Attached Images
File Type: jpg Capture1.JPG (26.1 KB, 59 views)
mostanad is offline   Reply With Quote

Old   July 24, 2017, 15:53
Default
  #4
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,290
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by mostanad View Post
thank you Prof. Denaro
absolutely, it is true that for a node near the lower wall, I do not need to upper wall distance but I want to know how I can wall distance for an arbitrary node in a CFD code. As I found from your reply, Is the sketched distance in attached file true?
thanks a lot.

https://www.cfd-online.com/Wiki/Tran...ce_calculation
arjun is offline   Reply With Quote

Old   July 24, 2017, 15:55
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
My opinion is that if the upper wall ends as shown in the figure, the node is quite far from wall to define the distance along the normal direction to the wall. If conversely the wall continues you can trace the normal that intercepts the node.
FMDenaro is offline   Reply With Quote

Old   July 24, 2017, 16:24
Default
  #6
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12
mostanad is on a distinguished road
This is exactly true Prof. Denaro. But I want to calculate the distance of each node from all walls and compare them for finding the minimum value. As you mentioned, for shown node in the figure, the lower wall has the minimum value. So I want to find all of the distances.
mostanad is offline   Reply With Quote

Old   July 24, 2017, 16:34
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
This is a classical geometrical issue: https://en.wikipedia.org/wiki/Distan...oint_to_a_line
FMDenaro is offline   Reply With Quote

Old   July 25, 2017, 05:06
Default
  #8
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Dear mohammad, for a given point in a fluid, the wall distance used in CFD codes is usually computed as the minimum distance between the given point and any of the points on the wall boundaries of the domain, irrespective of the angle formed between the wall and the line connecting the two points.

The method suggested by arjun, even if not geometrically exact, is among the most used as it is relatively simple to implement using elements already present in the code.

In contrast, exact geometrical methods become quite complex in parallel and I don't know a single classical code using it.

However, the main point to highlight is that such wall distance is basically only used in turbulence models and all the functions based on it saturate within few viscous distances from the wall, so exact calculation away from the wall (e.g., in the middle of the domain) is not even required. Moreover, where the distance is important it actually tends to be also along the normal to the wall.
arjun likes this.
sbaffini is offline   Reply With Quote

Old   July 25, 2017, 10:42
Default
  #9
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Just to give a complete picture:

Differential equation based method
https://www.researchgate.net/publica...tial_Equations
http://enu.kz/repository/2010/AIAA-2010-1082.pdf

A possible geometric method
http://www.iccfd.org/iccfd7/assets/p...1204_paper.pdf

Note the complexity of the second one and consider that the parallel distribution of the surface mesh is not even considered as would make things even worst.

I programmed a simpler variant of the latter and I can confirm that there is no free lunch in geometric point-surface distance calculation.
sbaffini is offline   Reply With Quote

Old   July 25, 2017, 11:03
Default
  #10
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,290
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by sbaffini View Post
Just to give a complete picture:

Differential equation based method
https://www.researchgate.net/publica...tial_Equations
http://enu.kz/repository/2010/AIAA-2010-1082.pdf

A possible geometric method
http://www.iccfd.org/iccfd7/assets/p...1204_paper.pdf

Note the complexity of the second one and consider that the parallel distribution of the surface mesh is not even considered as would make things even worst.

I programmed a simpler variant of the latter and I can confirm that there is no free lunch in geometric point-surface distance calculation.

If he really clicked that link he would know that it presented to something that he really wanted to do ie to find the closest distance to wall.

That transport method also shows the direction of that wall. (wall distance vector). Even if he wants exact wall distance, he could do predictor corrector method, where transport eqn tells the approximate distance and the vector where that wall exists. He could then go in that direction and find the exact distance in much less efforts.

All it takes is to click the link. :-)
sbaffini and mostanad like this.
arjun is offline   Reply With Quote

Old   July 25, 2017, 11:14
Default
  #11
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by arjun View Post
All it takes is to click the link. :-)
Which is what I actually did (busy in boring stuff, in need of some distraction here) and then got into the geometric paper. I liked the idea of directly showing (vs just referencing) the difference in complexity among the two approaches... also, I want to reach 750 posts, so I'm also quite verbose these days
sbaffini is offline   Reply With Quote

Old   July 25, 2017, 11:48
Default
  #12
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12
mostanad is on a distinguished road
Thank you, friends, for your replies
I have one method for calculation of wall distance and also direction. but I can not understand it. I found that this method marches along all nodes in the wall and find the maximum value of "inverse x (1/dsx) and y (1/dsy) distance from the wall". Then it obtains inverse(radical((1/dsx)^2+(1/dsy)^2)) and determines this value as the distance from the wall. My problem is in the inverse procedure an I believe this method has some problem. Is this method familiar for anybody?
mostanad is offline   Reply With Quote

Old   July 25, 2017, 12:20
Default
  #13
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,195
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Uhmmm... not really. From what you describe it looks like a brute force search with some fancy (and far from cheap) distance function. I actually use just the squared distance as it only involves two squares.

Might it be related to some hardcoding of your underlying grid? Maybe some algebraic parameter related to its definition?

EDIT: If you define a right triangle whose legs are respectively dsx and dsy, and the hypotenuse is the actual distance between the point and the wall, that formula actually defines the height (to the hypotenuse) of the triangle. Does this make sense to you?
mostanad likes this.
sbaffini 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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 01:04
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
problem with cyclicAMI and wall distance Maff OpenFOAM Bugs 5 August 14, 2014 15:41
Radiation interface hinca CFX 15 January 26, 2014 18:11


All times are GMT -4. The time now is 20:47.