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

wall resolution for finite volume

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2023, 00:37
Default wall resolution for finite volume
  #1
Senior Member
 
Join Date: Oct 2017
Location: United States
Posts: 233
Blog Entries: 1
Rep Power: 9
TurbJet is on a distinguished road
Greetings,

I've been wondering, for a cell-center based finite volume, how is the wall resolution determined?

To be more specific, consider this figure with a cell at the wall

Screenshot 2023-07-17 at 21.38.14.jpg

Suppose all the values are stored at the cell center (the cross). Usually, finite volume codes will interpolate the cell-center data to nodal points when exporting solutions. Then, which grid spacings should one choose as the wall resolution? The distance from cell center to wall, \Delta y_c, or the distance from the nodal points to wall, \Delta y_n?
TurbJet is offline   Reply With Quote

Old   July 18, 2023, 00:49
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Who even cares? If you want the distance from the cell center to the wall, then you have it. If you want the distance from the face to the wall, then you have it. Btw the distance from the face to the wall is equal to the sum of the distance from the face to the cell center plus the distance from the cell center to the wall.

Most finite volume codes export cell-centered data when it is requested as cell centered data.

Maybe explain the motivation for your question or I would feel bad since you made such a pretty picture. Without using the words wall resolution, what do you need to know about the grid?
LuckyTran is offline   Reply With Quote

Old   July 18, 2023, 11:34
Default
  #3
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,151
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
dy_c is what most typically enters, for example, in a wall function or in the one sided differences typically used for the wall stress in such case. dy_n is your actual resolution that will affect your schemes.

As mentioned by LuckyTran, you need to specify in relation to what, otherwise it's difficult to understand without context.
sbaffini is offline   Reply With Quote

Old   July 18, 2023, 11:44
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,775
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
To be honest, I don't think is relevant the difference in terms of magnitude order. It is different if you have to insert the value in some law but, especially close to the wall, the dy_c/2 of difference is small.
FMDenaro is offline   Reply With Quote

Old   July 18, 2023, 12:30
Default
  #5
Senior Member
 
Join Date: Oct 2017
Location: United States
Posts: 233
Blog Entries: 1
Rep Power: 9
TurbJet is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
To be honest, I don't think is relevant the difference in terms of magnitude order. It is different if you have to insert the value in some law but, especially close to the wall, the dy_c/2 of difference is small.
But when it comes to reporting the wall resolution, \Delta y^+_c and \Delta y^+_n, they will be differ by a factor of 2. This difference could be unacceptable for DNS.
TurbJet is offline   Reply With Quote

Old   July 18, 2023, 12:31
Default
  #6
Senior Member
 
Join Date: Oct 2017
Location: United States
Posts: 233
Blog Entries: 1
Rep Power: 9
TurbJet is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
dy_c is what most typically enters, for example, in a wall function or in the one sided differences typically used for the wall stress in such case. dy_n is your actual resolution that will affect your schemes.

As mentioned by LuckyTran, you need to specify in relation to what, otherwise it's difficult to understand without context.
I was referring to reporting the resolution, i.e., \Delta y^+_c vs \Delta y^+_n. They will differ by a factor of 2.
TurbJet is offline   Reply With Quote

Old   July 18, 2023, 12:54
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,775
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by TurbJet View Post
But when it comes to reporting the wall resolution, \Delta y^+_c and \Delta y^+_n, they will be differ by a factor of 2. This difference could be unacceptable for DNS.



Why? In a DNS, your first node must be much lower than 1. Both evaluation would lie in the viscous sub-layer.
FMDenaro is offline   Reply With Quote

Old   July 18, 2023, 16:29
Default
  #8
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Cell to wall distance matters only for the wall adjacent nodes for your wall "function." If you are reporting wall adjacent y+, then that would be the cell to wall distance.

Resolution is the cell to cell distance (or node to node distance) typically in the core mesh far away from walls where again the original question doesn't even apply because you asked about cell to wall versus node to wall, resolution is node to node or cell to cell.

Neither have anything to do with how data is exporting in cell centers or nodes.
LuckyTran is offline   Reply With Quote

Old   July 19, 2023, 04:13
Default
  #9
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,151
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 TurbJet View Post
I was referring to reporting the resolution, i.e., \Delta y^+_c vs \Delta y^+_n. They will differ by a factor of 2.
In my LES cases with a cell centered fv code I always ensured that both dy_c and dy_n were in my required range (which is typically the case, given they just differ by a factor of 2). In practice, you can't go above dy_c+ = 1 without being, somehow, underresolved.

When I reported those resolutions, I must admit, I don't remember what I used. For uniformity, I possibly used dy_n. The important thing is, however, to clarify what you are referring to.
sbaffini is offline   Reply With Quote

Old   July 19, 2023, 08:41
Default
  #10
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Typically we report the y+ of the wall adjacent cell. Since the wall+ will be 1 or much much less and also since it most likely the smallest dimension in the entire mesh, it makes no sense to quote this number as a mesh resolution. One typically then gives the dy of the largest cell so that you know, okay, here is my lowest resolution, and there is (for sure) smaller cells as you approach the wall. So you give two numbers, wall y+~1 and dy+~10


The factor of 2 is not a problem because as mentioned by everyone already, you would have multiple cells inside the viscous layer. Mesh resolution is more related to # of cells you have at y+ < 5 than say, what is the exact y+ of that one cell next to the wall. If you have y+ of 1 or 2 and not multiple cells in the viscous layer then what you have is a bad mesh.
LuckyTran 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
Calculating source term total cell-zone volume parallel computation RobV Fluent UDF and Scheme Programming 2 May 30, 2022 03:46
multiphaseEulerFoam FOAM FATAL IO ERROR qutadah.r OpenFOAM Running, Solving & CFD 11 December 10, 2021 20:18
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? EternalSeekerX SU2 3 October 9, 2020 18:28
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56


All times are GMT -4. The time now is 12:05.