CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to calculate y-plus?

Register Blogs Community New Posts Updated Threads Search

Like Tree68Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2013, 14:11
Default How to calculate y-plus?
  #1
New Member
 
Derek2580
Join Date: Nov 2012
Posts: 8
Rep Power: 13
rogerliu is on a distinguished road
My case is unsteady flow past a cylinder using LES. Re=3900
How can I calculate the y-plus?
does y-plus refer the distance from the first grid to the wall? Is it the smaller, the better?

Thanks!
rogerliu is offline   Reply With Quote

Old   April 17, 2013, 17:41
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
hi
Type yPlusRAS or yPlusLES
If you have ras or les turbulency.
mj20 and EddySouth like this.

Last edited by immortality; April 18, 2013 at 06:29.
immortality is offline   Reply With Quote

Old   April 18, 2013, 04:21
Default
  #3
Senior Member
 
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 16
fredo490 is on a distinguished road
Hello, y+ refers to the size of the mesh next to the wall compared to the fluid behavior. This number helps you to know where is your first cell center compared to the boundary layer thickness.

If you didn't study any boundary layer theory, you have to know that a boundary layer is composed of different parts. The one very close to the wall is dominated by viscous effects (= the viscous layer) and a bit outer you have the log layer.

To get an accurate simulation, your first cell center must be inside the viscous layer. We usually consider that a y+ smaller than 4 is required. Ideally, you should have a y+ smaller than 1 on all your surface. But there is no need to go to 1e-3 !

Be careful, the size of your first cell must correspond to your turbulence model. For example a RAS k-omega SST requires a y+ smaller than 1 but a k-epsilon standard requires a y+ between 30 and 60. I don't know about LES simulation but I guess it should be smaller than 1.

To get the yPlus, you can only do it as a post treatment (because you need to compute the velocity first). To get it, simply type "yPlusRas" or "yPlusLes" depending of your turbulence model. You can also write "yPlusLes -h" to get some help.

For example: yPlusRas -latestTime -compressible will only compute the yplus for your last export and it will apply a compressible correction (only use it with a compressible solver).

To get a rough estimation of the cell size you need next to the wall, you can use this tool:
http://www.cfd-online.com/Tools/yplus.php
fredo490 is offline   Reply With Quote

Old   April 18, 2013, 06:49
Default
  #4
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
I wonder how we can calculate y+ at a laminar flow without any turbulent model? is it possible?
Hughtong likes this.
immortality is offline   Reply With Quote

Old   April 18, 2013, 07:01
Default
  #5
Senior Member
 
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 16
fredo490 is on a distinguished road
At first the y+ has nothing to do with CFD but it has to do with the boundary layer theory (this number was created in the 1930's). The definition is here : http://www.cfd-online.com/Wiki/Dimen...stance_(y_plus)

Yes this number has a meaning for a laminar flow but we don't really care for CFD cases. It is mainly used for turbulent flow because the models we use are based on some assumptions that need to be verified.
fredo490 is offline   Reply With Quote

Old   July 1, 2013, 09:34
Default
  #6
Member
 
VS
Join Date: Nov 2012
Posts: 86
Rep Power: 13
VSass is on a distinguished road
I have some problems calculating y+ during a compressible flow. I use Spalart-Allmaras model and the output in the results files is mut, not nut, which is prerequisite for the calculation of y+. Any ideas?
VSass is offline   Reply With Quote

Old   July 1, 2013, 09:44
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
hi
search this site.there are some good threads with y+ for compressible flows.
do you use low-Re or high-Re?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   July 1, 2013, 10:15
Default
  #8
Member
 
VS
Join Date: Nov 2012
Posts: 86
Rep Power: 13
VSass is on a distinguished road
I use high Re.
VSass is offline   Reply With Quote

Old   July 1, 2013, 11:18
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
then use yPlusRAS -compressible its for high-Re models Vasilios.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   July 1, 2013, 12:10
Default
  #10
Member
 
VS
Join Date: Nov 2012
Posts: 86
Rep Power: 13
VSass is on a distinguished road
I use yPlusRAS but it needs the "nut" values for each time step. My solution outputs "mut" files. That's the problem.
VSass is offline   Reply With Quote

Old   July 1, 2013, 12:21
Default
  #11
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
type: "yPlusRAS -compressible" not only yPlusRAS
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   July 1, 2013, 12:25
Default
  #12
Member
 
VS
Join Date: Nov 2012
Posts: 86
Rep Power: 13
VSass is on a distinguished road
Honestly,thanks!
VSass is offline   Reply With Quote

Old   July 3, 2013, 05:27
Default
  #13
Member
 
VS
Join Date: Nov 2012
Posts: 86
Rep Power: 13
VSass is on a distinguished road
Well, using yPlusRAS -compressible works, but it plots a value of "0" in the field. Mut has an accepted distribution , but how come the distribution of yPlus is zero?
caoyinyue likes this.
VSass is offline   Reply With Quote

Old   July 3, 2013, 08:23
Default
  #14
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
where in the field? whats your case? if its something like shockTube maybe the flow has not reached there.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   February 26, 2014, 21:23
Default
  #15
New Member
 
caoyong
Join Date: Oct 2013
Location: Tokyo, Japan
Posts: 3
Rep Power: 12
caoyinyue is on a distinguished road
Quote:
Originally Posted by VSass View Post
Well, using yPlusRAS -compressible works, but it plots a value of "0" in the field. Mut has an accepted distribution , but how come the distribution of yPlus is zero?
Hello, I used the yPlusLES for calculating the incompressible flow field. the distribution of yplus is alos zero. It is very strange. Have you found any solution? Could you give me some hint? Thanks very much
caoyinyue is offline   Reply With Quote

Old   March 18, 2015, 09:21
Default
  #16
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
Quote:
Originally Posted by immortality View Post
hi
search this site.there are some good threads with y+ for compressible flows.
do you use low-Re or high-Re?
Hi
I use LowRe model. When I type in ''yPlusRAS -compressible'', y+ is zero in all cells.
I noticed that you mentioned that this command was for HighRe model.
What can I do when I use LowRe model?
JasonWang3 is offline   Reply With Quote

Old   March 18, 2015, 10:48
Default
  #17
Senior Member
 
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17
Blanco is on a distinguished road
yPlusRAS works both for HighRe and LowRe turbulence models, the only difference is that it uses nut for incompressible flow while it uses mut for compressible flow.

There should be some other problem that gives you y+=0 in your cells...how do you check y+ value?
Blanco is offline   Reply With Quote

Old   March 18, 2015, 12:05
Default
  #18
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
Quote:
Originally Posted by Blanco View Post
yPlusRAS works both for HighRe and LowRe turbulence models, the only difference is that it uses nut for incompressible flow while it uses mut for compressible flow.

There should be some other problem that gives you y+=0 in your cells...how do you check y+ value?
I noticed that there is no rho file in the folders. When I look into the file '' yPlusRAS.C ''

IOobject rhoHeader
(
"rho",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
);

if (!rhoHeader.headerOk())
{
Info<< " no rho field" << endl;
return;
}

Info<< "Reading field rho\n" << endl;
volScalarField rho(rhoHeader, mesh);

This probably means that the rho file must be required when using yPlusRAS.
And I am using sonicFoam, there is phi instead of rho.
So this is the reason why all the plus values is zero.
But still have no idea how to obtain the yPlus value, maybe rho from the state equation and then use yPlusRAS.

Do you have other suggestions? And thanks for your replying.
JasonWang3 is offline   Reply With Quote

Old   March 23, 2015, 02:43
Default
  #19
Senior Member
 
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17
Blanco is on a distinguished road
Hi Xinguang,

I don't have experience with sonicFoam, but I think for sure you need to define mu and mut -> cinematic viscosity with varying density, laminar and turbulent, in order to perform your compressible simulation. In the results you will get the rho field and it will be used by yPlusRAS to calculate y+ values.
Blanco is offline   Reply With Quote

Old   March 23, 2015, 07:15
Default
  #20
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
Hi Andrea

As you said, yPlusRAS could give the yplus at the wall after I generate the rho fields. But the value is quite small than I expected, since I calculate yplus using the yplus calculator:
http://geolab.larc.nasa.gov/APPS/YPlus/
yPlusRAS give the value of 0.03 compare with 1 of the yplus calculator.

But in the website, there is no information about the calculation. So I think I should calculate the yplus by hand to compare with the results of OF.

Thanks for your reply.
JasonWang3 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
[swak4Foam] Problem to calculate grad(U) using swak4Foam Hugoles OpenFOAM Community Contributions 12 November 24, 2020 10:28
how to calculate flow properties along the first grid point near to the wall kiran OpenFOAM Post-Processing 2 September 12, 2010 12:59
calculate values for eps and k from Re or u????? sbar OpenFOAM Pre-Processing 5 August 16, 2010 04:10
How to calculate Torque for francis turbine manish CFX 4 March 15, 2007 02:57
How to calculate density of solid phase zhou Main CFD Forum 0 December 17, 1999 19:06


All times are GMT -4. The time now is 13:57.