|
[Sponsors] |
|
April 17, 2013, 14:11 |
How to calculate y-plus?
|
#1 |
New Member
Derek2580
Join Date: Nov 2012
Posts: 8
Rep Power: 13 |
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! |
|
April 17, 2013, 17:41 |
|
#2 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
hi
Type yPlusRAS or yPlusLES If you have ras or les turbulency. Last edited by immortality; April 18, 2013 at 06:29. |
|
April 18, 2013, 04:21 |
|
#3 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 16 |
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 |
|
April 18, 2013, 06:49 |
|
#4 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
I wonder how we can calculate y+ at a laminar flow without any turbulent model? is it possible?
|
|
April 18, 2013, 07:01 |
|
#5 |
Senior Member
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 16 |
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. |
|
July 1, 2013, 09:34 |
|
#6 |
Member
VS
Join Date: Nov 2012
Posts: 86
Rep Power: 13 |
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?
|
|
July 1, 2013, 09:44 |
|
#7 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
July 1, 2013, 10:15 |
|
#8 |
Member
VS
Join Date: Nov 2012
Posts: 86
Rep Power: 13 |
I use high Re.
|
|
July 1, 2013, 11:18 |
|
#9 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
July 1, 2013, 12:10 |
|
#10 |
Member
VS
Join Date: Nov 2012
Posts: 86
Rep Power: 13 |
I use yPlusRAS but it needs the "nut" values for each time step. My solution outputs "mut" files. That's the problem.
|
|
July 1, 2013, 12:21 |
|
#11 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
July 1, 2013, 12:25 |
|
#12 |
Member
VS
Join Date: Nov 2012
Posts: 86
Rep Power: 13 |
Honestly,thanks!
|
|
July 3, 2013, 05:27 |
|
#13 |
Member
VS
Join Date: Nov 2012
Posts: 86
Rep Power: 13 |
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?
|
|
July 3, 2013, 08:23 |
|
#14 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
February 26, 2014, 21:23 |
|
#15 |
New Member
caoyong
Join Date: Oct 2013
Location: Tokyo, Japan
Posts: 3
Rep Power: 12 |
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
|
|
March 18, 2015, 09:21 |
|
#16 | |
Member
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11 |
Quote:
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? |
||
March 18, 2015, 10:48 |
|
#17 |
Senior Member
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17 |
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? |
|
March 18, 2015, 12:05 |
|
#18 | |
Member
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11 |
Quote:
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. |
||
March 23, 2015, 02:43 |
|
#19 |
Senior Member
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17 |
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. |
|
March 23, 2015, 07:15 |
|
#20 |
Member
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11 |
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. |
|
|
|
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 |