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

Question about the way to calculate the maximum wall cell width

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2012, 20:33
Question Question about the way to calculate the maximum wall cell width
  #1
Senior Member
 
Anna Tian's Avatar
 
Meimei Wang
Join Date: Jul 2012
Posts: 494
Rep Power: 16
Anna Tian is on a distinguished road
Hi,

For CFD case simulation, we need a relatively small wall cell width to catch the near wall fluid behavior. I don't have any experience to my new simulation case. So I have no idea about how to choose that value. May I ask if there's a way to estimate the wall cell width shall I set in my simulation? (of course, I will do the grid independence study later. But need a good initial guess.) If yes, how?

Thank you very much!
__________________
Best regards,
Meimei
Anna Tian is offline   Reply With Quote

Old   October 1, 2012, 13:37
Default
  #2
ski
New Member
 
AS
Join Date: Jul 2009
Posts: 16
Rep Power: 17
ski is on a distinguished road
http://www.cfd-online.com/Tools/yplus.php

You specify the fluid properties, characteristic velocity and length scales, and the desired y+ value, and it will give an estimate on where to place the near wall cell.
ski is offline   Reply With Quote

Old   October 2, 2012, 08:23
Question
  #3
Senior Member
 
Anna Tian's Avatar
 
Meimei Wang
Join Date: Jul 2012
Posts: 494
Rep Power: 16
Anna Tian is on a distinguished road
Quote:
Originally Posted by ski View Post
http://www.cfd-online.com/Tools/yplus.php

You specify the fluid properties, characteristic velocity and length scales, and the desired y+ value, and it will give an estimate on where to place the near wall cell.
Thanks. But how do I choose the desired y+ value? Shall I always set it to 1?
__________________
Best regards,
Meimei
Anna Tian is offline   Reply With Quote

Old   October 2, 2012, 08:55
Default
  #4
Member
 
SergeAS's Avatar
 
Serge A. Suchkov
Join Date: Oct 2011
Location: Moscow, Russia
Posts: 74
Blog Entries: 5
Rep Power: 15
SergeAS is on a distinguished road
Send a message via Skype™ to SergeAS
Quote:
Originally Posted by Anna Tian View Post
Thanks. But how do I choose the desired y+ value? Shall I always set it to 1?
It depends on the nature of your problem (such as tasks related to the heat transfer at the wall require small values ​​of y+) and the chosen turbulence model (each turbulence model has its own range of y+ where it is applicable)
__________________
OpenHyperFLOW2D Project
SergeAS is offline   Reply With Quote

Old   October 3, 2012, 08:57
Question
  #5
Senior Member
 
Anna Tian's Avatar
 
Meimei Wang
Join Date: Jul 2012
Posts: 494
Rep Power: 16
Anna Tian is on a distinguished road
Quote:
Originally Posted by SergeAS View Post
It depends on the nature of your problem (such as tasks related to the heat transfer at the wall require small values ​​of y+) and the chosen turbulence model (each turbulence model has its own range of y+ where it is applicable)
Thanks. I use K-Omega turbulent model. And I only care about the pressure drop. May I ask what y+ shall I choose? I'm still quite fresh to CFD. Is there any good tutorial on the choosing method of y+?
__________________
Best regards,
Meimei
Anna Tian is offline   Reply With Quote

Old   October 3, 2012, 10:24
Default
  #6
ski
New Member
 
AS
Join Date: Jul 2009
Posts: 16
Rep Power: 17
ski is on a distinguished road
Ok, you'll need to work out if you're turbulence model is going to try to resolve the very near wall region, or is going to apply an empirical relation (a "wall function").

If you are not using a wall function, then y+<~1 is what you want. If you are using a wall function, then the very near wall region is not solved for (an emperical profile is applied instead). In this case, you'll need to check the documentation to see the y+ you'll need as it can differ depending on the type of wall function. Generally though, the 1st cell should be in the log law region at 30 < y+ < 300. Use y+=30 for best results. Some codes (most?) will give an option to use any y+ value by blending the wall function approach with a low Re model. This can be useful.

If you're not sure if you are using wall functions or not, then you'll need to check the documentation of the particular solver. If you have a choice, I'd recommend avoiding wall function unless CPU costs are a big concern.
ski is offline   Reply With Quote

Old   October 4, 2012, 07:30
Question
  #7
lnk
Senior Member
 
lnk
Join Date: Feb 2011
Location: Switzerland
Posts: 118
Rep Power: 15
lnk is on a distinguished road
The CPU cost is always a big problem for me. May I ask what's the largest y+ could I use? If the first cell only need to be in the log law region, could I use like y+=290?

By the way, the first cell width shall also depend what value want to obtain, right? Like if for heat transfer, we will need much smaller wall cell width. I'm wondering is there also any theory about that dependency?


Quote:
Originally Posted by ski View Post
Ok, you'll need to work out if you're turbulence model is going to try to resolve the very near wall region, or is going to apply an empirical relation (a "wall function").

If you are not using a wall function, then y+<~1 is what you want. If you are using a wall function, then the very near wall region is not solved for (an emperical profile is applied instead). In this case, you'll need to check the documentation to see the y+ you'll need as it can differ depending on the type of wall function. Generally though, the 1st cell should be in the log law region at 30 < y+ < 300. Use y+=30 for best results. Some codes (most?) will give an option to use any y+ value by blending the wall function approach with a low Re model. This can be useful.

If you're not sure if you are using wall functions or not, then you'll need to check the documentation of the particular solver. If you have a choice, I'd recommend avoiding wall function unless CPU costs are a big concern.

Last edited by lnk; October 4, 2012 at 08:52.
lnk is offline   Reply With Quote

Old   October 4, 2012, 07:45
Default
  #8
ski
New Member
 
AS
Join Date: Jul 2009
Posts: 16
Rep Power: 17
ski is on a distinguished road
Quote:
Originally Posted by lnk View Post
Thanks for your answer. The CPU cost is always a big problem for me. May I ask what's the largest y+ could I use? If the first cell only need to be in the log law region, could I use like y+=290?

By the way, the first cell width shall also depend what value want to obtain, right? Like if for heat transfer, we will need much smaller wall cell width. I'm wondering is there also any theory about that dependency?
In theory, your wall function will probably be applicable to such a large y+, but that dosen't mean that the results will be grid independent - they probably won't be. I'd recommend y+ around 30 if using wall functions (but check the documentation). Better still, resolve the whole boundary layer (without wall functions) and use y+ = 1. Either way, always do grid sensitivity tests!!

Wall functions are usually based on flow over a flat plate, so if your flow near the wall looks vastly different to this, then dont expect good results (e.g. for impingement). In this case, you shouldn't use wall functions and expect good results.
ski is offline   Reply With Quote

Old   October 4, 2012, 08:31
Question
  #9
lnk
Senior Member
 
lnk
Join Date: Feb 2011
Location: Switzerland
Posts: 118
Rep Power: 15
lnk is on a distinguished road
Thanks. I'll always do the grid independence study. But I'd like to have a good starting point firstly. Some parts of my geometry are perfectly flat. I'll try quite large y+ there. Thanks for your hint.

By the way, if I more care about heat transfer, shall I use a smaller y+ than the case I only care about pressure? How small shall y+ in that case be?


Quote:
Originally Posted by ski View Post
In theory, your wall function will probably be applicable to such a large y+, but that dosen't mean that the results will be grid independent - they probably won't be. I'd recommend y+ around 30 if using wall functions (but check the documentation). Better still, resolve the whole boundary layer (without wall functions) and use y+ = 1. Either way, always do grid sensitivity tests!!

Wall functions are usually based on flow over a flat plate, so if your flow near the wall looks vastly different to this, then dont expect good results (e.g. for impingement). In this case, you shouldn't use wall functions and expect good results.
lnk is offline   Reply With Quote

Old   October 23, 2012, 19:05
Question
  #10
Senior Member
 
Anna Tian's Avatar
 
Meimei Wang
Join Date: Jul 2012
Posts: 494
Rep Power: 16
Anna Tian is on a distinguished road
Quote:
Originally Posted by ski View Post
http://www.cfd-online.com/Tools/yplus.php

You specify the fluid properties, characteristic velocity and length scales, and the desired y+ value, and it will give an estimate on where to place the near wall cell.
Is the Re calculated here http://www.cfd-online.com/Tools/yplus.php the same as the Re we use to detect the flow regime?

What's L_{boundarylayer} in that formula to calculate Re? Is that characteristic length? Boundary layer length? Sometimes characteristic length can be quite different from the boundary layer length.
__________________
Best regards,
Meimei
Anna Tian 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
calculate y+ and u+ -how to get wall shear stress? Ralf Schmidt Main CFD Forum 18 September 17, 2019 04:23
how to calculate forces on the wall with free surface? phsieh2005 Main CFD Forum 2 July 13, 2010 09:11
one question about nearest wall distance Hellen Main CFD Forum 1 July 20, 2005 03:32
Warning 097- AB Siemens 6 November 15, 2004 05:41
Quick Question - Wall Function D.Tandra Main CFD Forum 2 March 16, 2004 05:29


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