|
[Sponsors] |
Wall y+ fucntion or Courant Number Criteria. Which one is more important? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 8, 2019, 09:27 |
Wall y+ fucntion or Courant Number Criteria. Which one is more important?
|
#1 |
New Member
gemxx
Join Date: Feb 2015
Posts: 28
Rep Power: 11 |
Hi everyone,
My question is about wall y+ function and courant number stabilization criteria. I analyze turbulent flow past over a submerged body. Because of high velocity and sharp edges, I have to use very small sized grid for the first cell near the body surface to obtain below 1 of y+ value. The first cell size is about 1.5x10^-6 m. When I use this size for the first cell, it is necessary to use too small time step size to obtain about 1 of Courant Number. Flow velocity is 7.15 m/sn. For this situation, the time step size should be about 2.0x10^-7 to obtain Courant number(CL) =1. But I have limited computer sources. Therefore, it seems impossible for me. As I understand, I have two options now. 1-I'll select a bigger first cell size. In such a case, the wall y+ value will be bigger than 1. But I can obtain CL value of 1 by using a bigger time step. This means shorter analyze time for me. 2-I'll select a bigger time step. In such a case, the courant number will be bigger than 1. But I can obtain wall y+ value of 1. This means shorter analyze time for me, as well. I tried two options. The convergence is better for the first option. I use implicit unsteady and detached eddy simulation for analyses. Do you think which one I should choose? |
|
January 8, 2019, 10:47 |
|
#2 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Quote:
You are considering two different things. The number of cells within y+1 says how good is the resolution of the boundary layer, while the cfl is a ratio between the numerical time step and the physical time in which a particle cross the cell with the proper convective cell velocity. Often in simulation of turbulence we accomplish both constraints |
||
January 10, 2019, 06:11 |
|
#3 |
New Member
gemxx
Join Date: Feb 2015
Posts: 28
Rep Power: 11 |
Thank you @FMDenaro for your reply.
I know it is better for me to accomplish both constraints. But I have to choose one of them because of my computer's computational capacity. Which one is the most important for the accuracy of results? |
|
January 10, 2019, 06:40 |
|
#4 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Quote:
You cannot in general make a choice, the numerical stability constraint is in general a function of the cfl and the cell Re number, this latter being strictly related to the value of y+ close to the wall. Therefore, you can relax the time step only if you enlarge the grid size. When you do that you will see that the BL is no longer resolved and you need to use a different approach in setting the BCs, that is using wall-modelled BCs. But doing this way you can no longer think to compute some quantities as the viscous drag. This is a general framework valid especially for DNS/LES/URANS, however you can approach directly a RANS formulation, in this case the time step has no physical meaning as you solve for the steady state and you can just focus on the y+ values to resolve the BL. |
||
January 10, 2019, 08:46 |
|
#5 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65 |
Quote:
There is no general rule for all scenarios, you need to choose. If you don't care about resolving boundary layers, you can even run a y+ ~100. The question is, do you care about resolving the boundary layers? No one here knows what criteria you are using to determine accuracy to help you. You mention accuracy of results, but what are the results you are aiming to achieve? Still, we can't predict what will happen. Do the sensitivity study if you need to know! |
||
January 14, 2019, 11:56 |
|
#6 | |
New Member
gemxx
Join Date: Feb 2015
Posts: 28
Rep Power: 11 |
Quote:
The wall y+ is about 30. I avoid to select wall y+ between 5 and 30 (buffer layer). Could you tell me the important points related to wall y+? I use "all wall y+" module of Star ccm+ and it is written in tutorial that wall y+ from 5 to 30 can be used for all wall y+ module and blended approach creates a reasonable solutions for 5<y+<30. What is the meaning of this? Courant number is important for me and I have to select smaller time step size as soon as possible to capture vortex structures. Thats why, I decided to relax the grid size. Do you think that I am on the right road? Thank you very much. |
||
January 14, 2019, 12:33 |
|
#7 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
As I wrote above, such high value for the first node close to the wall requires to prescribe wall-modelled BCs., you cannot prescribe the no-slip condition. If you are doing that, the results behind the body can be reasonable. Of course, you cannot predict the drag due to the stress
|
|
January 14, 2019, 14:51 |
|
#8 | ||
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65 |
Quote:
There is a high y+ wall function valid only for high y+ and low y+ wall function valid only for low y+. For general purpose CFD these wall functions are crap since it requires the user to supply grids that globally satisfy wall y+ > 30 or globally satisfy wall y+ < 5. People don't like to do CFD this way. The all wally+ wall function uses a cute elliptic blending function to smooth these wall functions into one wall function so that you can use it on any mesh. Quote:
The Courant number less than some arbitrary number criteria is for stability, not necessarily accuracy. Going to a coaser grid gives you a smaller Courant number, but you lose spatial resolution. It is unclear without testing whether the improved numerical stability due to having a smaller Courant number gives you any better or worse results. Of course you won't find any vortex that close to a wall if that is the only region where the grid is being coarsened. You are also using implicit time-stepping, which is much more robust against these numerical oscillations (due to the application of under-relaxation). What is more important is the time-step size. So probably you made a reasonable choice by accident. |
|||
January 16, 2019, 09:40 |
|
#9 |
New Member
Aykut Kucuk
Join Date: Nov 2018
Posts: 4
Rep Power: 7 |
I might not be the right person to answer your question because im a newbie in CFD. So i hope expert people will correct me if i'm wrong.
Why do you calculate the courant number from the first cell? Doesnt the first cell supposed to have less velocity due to its y+ value. Im not really sure about what im saying but if i were you i would calculate courant number for the freestream part of the mesh. Aykut |
|
January 16, 2019, 11:17 |
|
#10 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Quote:
Indeed the cfl number is local and is required to control it everywhere. But in a viscous problem, depending on the type of expòicit discretization a complex relation cfl(Re_h) could be involved and, generally, such constraint region requires the cfl to be quite smaller than 1 when the value Reh is small. |
||
January 16, 2019, 12:49 |
|
#11 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65 |
Quote:
You have the right idea. But given the amount of time that has passed and that results have already been obtained, I just assumed that the actual Courant number field was available and there's no longer any need to guess what it is. So I assumed that mesh coarsening was done where the Courant number was small. |
||
January 17, 2019, 01:14 |
|
#12 | |
New Member
Aykut Kucuk
Join Date: Nov 2018
Posts: 4
Rep Power: 7 |
Quote:
I also doubt that if you calculate courant number for the outer region(referring to y+ graph) it should be larger than inner layer of mesh because the velocities are always less in inner layer than the outer layer. Or at least it could be a nice approach to guess the whole cfl condition in my humble opinion. |
||
January 17, 2019, 03:16 |
|
#13 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Quote:
The velocity should be scaled by U* to get u+ (in the viscous sublayer proportionla to y+). However, the cfl number is actually a multidimensional parameter, it is not correct to control separately the cfl in each direction separately. And, finally, the viscous stability parameter can be dominant, especially if the turbulence model is of eddy viscosity type. |
||
January 17, 2019, 07:18 |
|
#14 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65 |
Quote:
It's very common that people use the bigger velocity and smaller cell size to calculate a bigger Courant number, i.e. to get a conservative estimate. Anyway, at this point they should be using the actual courant number calculated from local cell size and local velocity and we shouldn't be wondering how they estimated it the first time. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Extracting ParaView Data into Python Arrays | Jeffzda | ParaView | 30 | November 6, 2023 21:00 |
decomposePar -allRegions | stru | OpenFOAM Pre-Processing | 2 | August 25, 2015 03:58 |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 18:45 |
Cluster ID's not contiguous in compute-nodes domain. ??? | Shogan | FLUENT | 1 | May 28, 2014 15:03 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 03:32 |