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 Tree70Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2015, 03:43
Default
  #41
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, 08:15
Default
  #42
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

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

yes you can check at a wall what is the y+ value "by hand", but I'm pretty sure you will find that OF is using the right formula. Check my post #37

HTML Code:
http://www.cfd-online.com/Forums/openfoam-solving/116358-how-calculate-y-plus-2.html#post530569
and check your wall boundary. The y+ formula in OF is exactly the one used in every calculator.

Best,

Andrea
Blanco is offline   Reply With Quote

Old   September 8, 2015, 05:22
Default yPlusRAS error
  #44
New Member
 
jaydeep
Join Date: Sep 2015
Location: Pune, Maharashtra, India
Posts: 7
Rep Power: 11
jaydeepKhajure is on a distinguished road
Hello,

Currently I am running the case in OpenFOAM 2.3.0. I am having a problem calculating the y plus value. My case is in sonicfoam having Re 3e6 and I am using K-Epsilon RAS model. However, after post processing I type the command yPlusRAS in terminal, I get following error message,

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Create time

Create mesh for time = 0

Time = 0
Calculating wall distance

Writing wall distance to field y

Reading field U

Reading/calculating face flux field phi



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/cae/OpenFOAM/cae-2.3.0/run/jaydeep/Pen_3D_4.5/constant/transportProperties at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 87.

FOAM exiting

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Can anybody suggest a possible solution to overcome this error message ?

Thanks and Regards
jaydeep
jaydeepKhajure is offline   Reply With Quote

Old   September 8, 2015, 05:51
Default
  #45
Senior Member
 
Blanco
Join Date: Mar 2009
Location: Torino, Italy
Posts: 193
Rep Power: 17
Blanco is on a distinguished road
OF doesn't find the transportProperties file inside the correct path. Check if it's there, OF needs to check what RANS model you are using and what are the nu or mu values.
Blanco is offline   Reply With Quote

Old   September 8, 2015, 06:45
Default
  #46
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
Quote:
Originally Posted by jaydeepKhajure View Post
Hello,

Currently I am running the case in OpenFOAM 2.3.0. I am having a problem calculating the y plus value. My case is in sonicfoam having Re 3e6 and I am using K-Epsilon RAS model. However, after post processing I type the command yPlusRAS in terminal, I get following error message,

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Create time

Create mesh for time = 0

Time = 0
Calculating wall distance

Writing wall distance to field y

Reading field U

Reading/calculating face flux field phi



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/cae/OpenFOAM/cae-2.3.0/run/jaydeep/Pen_3D_4.5/constant/transportProperties at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 87.

FOAM exiting

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Can anybody suggest a possible solution to overcome this error message ?

Thanks and Regards
jaydeep
copy a transportProperties file to the constant folder

try yPlusRAS -compressible -time [time folder]

Before this, change the mut wall bc to mutLowReWallfunction, which is used to calculate the yPlus value.
JasonWang3 is offline   Reply With Quote

Old   December 8, 2015, 04:34
Default
  #47
New Member
 
hamide hayati
Join Date: Oct 2015
Posts: 28
Rep Power: 11
hamide is on a distinguished road
hello friends
i'm new in openFoam. i want to calculate y-plus in openFoam. i don't know how!!!
it's turbulent duct flow with Re=3e+5
would you please help me?
hamide is offline   Reply With Quote

Old   December 8, 2015, 05:39
Default
  #48
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
change wall bc in the mut file as mutLowReWallFunction, and in the terminal 'yPlusRAS (-compressible) (-time)'.

Hope it is helpful.
JasonWang3 is offline   Reply With Quote

Old   December 8, 2015, 05:46
Default
  #49
New Member
 
hamide hayati
Join Date: Oct 2015
Posts: 28
Rep Power: 11
hamide is on a distinguished road
Quote:
Originally Posted by JasonWang3 View Post
change wall bc in the mut file as mutLowReWallFunction, and in the terminal 'yPlusRAS (-compressible) (-time)'.

Hope it is helpful.



i don't have mut file!!!!
i have p,u,nut,k and epsilon File
hamide is offline   Reply With Quote

Old   December 8, 2015, 07:50
Default
  #50
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
In the nut file, nutLowReWallFunction, then type in yPlusRAS
elham usefi likes this.
JasonWang3 is offline   Reply With Quote

Old   June 16, 2016, 00:56
Default yPlusLES is very small
  #51
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17
Elham is on a distinguished road
Hi,

I am doing simulaion inside a channel with Re=4900 based on channel half width. The channel is 10mm*60mm*10mm. The mesh is 50*300*50. The flow direction is in y-direction. I use yPlusLES utility but I get weird results. the yPlus in all over the domain, near or far from the wall, is very small, let's say maximum 3.
I also calculated
UPlus=U_mean/Utau
Utau=sqrt(gardP*h)
h=half channel width
I put gradp in respect to spanwise direction. I am not pretty sure that this gradP is correct. I got it by adding gradP in controlDict.

Thanks for any comment.
Elham is offline   Reply With Quote

Old   December 17, 2016, 13:01
Default
  #52
Member
 
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11
Bashar is on a distinguished road
Hi,
I am little confused! So, I am running an LES simulation flow past plate with Re=50000. If I use the yPlusLES will this give me ystar or yplus? I am using pimpleFoam.Also if I want to comput the y+ around the plate and not the full domain , how can I do that?


Sent from my iPhone using CFD Online Forum mobile app
Bashar is offline   Reply With Quote

Old   December 19, 2016, 15:40
Default
  #53
Member
 
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11
Bashar is on a distinguished road
Thanks , I found the answer.
In my version , 3.0.1, I used yPlus command to get it.
Thanks a lot.
Bashar is offline   Reply With Quote

Old   May 23, 2017, 12:46
Default How can I calculate y+ without any SGS model in LES?
  #54
Member
 
Mohamed Elghorab
Join Date: May 2016
Location: Coventry, Engalnd
Posts: 41
Rep Power: 10
crazzy.pirate43 is on a distinguished road
Hi everybody,

So now, How can I calculate y+ without any SGS model in LES? as I have no nuEff
crazzy.pirate43 is offline   Reply With Quote

Old   May 23, 2017, 14:29
Default
  #55
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
Quote:
Originally Posted by crazzy.pirate43 View Post
Hi everybody,

So now, How can I calculate y+ without any SGS model in LES? as I have no nuEff
You only need the wall shear stress for that. Calculate the wall forces, and analyse the shear stress over your surface. With that you may get your y+ coordinate by

y^{+}={\frac {y\,u_{\tau }}{\nu }}

You get the friction velocity using the wall shear stress.
u_{\tau }={\sqrt {\frac {\tau _{w}}{\rho }}}

With this calculated for a point you may express the y-value of the first cell center. This is the y+ values the tools in OF give.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   May 23, 2017, 15:59
Default
  #56
Member
 
Mohamed Elghorab
Join Date: May 2016
Location: Coventry, Engalnd
Posts: 41
Rep Power: 10
crazzy.pirate43 is on a distinguished road
Dear Uwe,
thanks a lot for the quick reply. I think I managed to get it by put turbulenceProperties file as a laminar in the studied case after the run and just put the utility command yPlus

Thanks
crazzy.pirate43 is offline   Reply With Quote

Old   July 10, 2017, 08:31
Default
  #57
Member
 
Join Date: May 2017
Posts: 47
Rep Power: 9
LThomes is on a distinguished road
Hello everyone,
I'm simulating the flow past a sphere using k-omega SST model and I'm trying to calculate the yPlus on the sphere. I tried to type "yPlusRAS" in the terminal, as you said, but it gives me the following message:
Code:
[ofuser@default c9]$ yPlusRAS
bash: yPlusRAS: command not found
I'm using OpenFOAM v1612+ for Windows.
Can anybody help me?
LThomes is offline   Reply With Quote

Old   July 10, 2017, 09:07
Default
  #58
Member
 
Join Date: May 2017
Posts: 47
Rep Power: 9
LThomes is on a distinguished road
Quote:
Originally Posted by LThomes View Post
Hello everyone,
I'm simulating the flow past a sphere using k-omega SST model and I'm trying to calculate the yPlus on the sphere. I tried to type "yPlusRAS" in the terminal, as you said, but it gives me the following message:
Code:
[ofuser@default c9]$ yPlusRAS
bash: yPlusRAS: command not found
I'm using OpenFOAM v1612+ for Windows.
Can anybody help me?
In my OpenFOAM version I have to type pimpleFoam -postProcess -func yPlus
chathuranga likes this.
LThomes is offline   Reply With Quote

Old   August 20, 2017, 07:05
Default
  #59
New Member
 
Join Date: Jul 2017
Posts: 14
Rep Power: 9
kooki_13 is on a distinguished road
hi
I am doing open channel for simulating atmospheric boundary layer with openFoam. my solver is pimple and the LES model is oneEqEddy. and I do not know how can I calculate y+. domain size is 1400,1000,100 m and thats whye the first y+ became so large!
kooki_13 is offline   Reply With Quote

Old   August 23, 2017, 06:13
Default
  #60
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Quote:
Originally Posted by kooki_13 View Post
and I do not know how can I calculate y+.
Take a look at post #55.
You can get the wall shear stress by using the wallShearStress postProcessing functionality and calculating its magnitude. Remember that OpenFOAM uses kinematic pressure and that you have to multiply your wallShearStress by the density of your fluid.

For your mesh size, try to use mesh grading or snappyHexMesh to refine the section of your mesh close to the wall.
kooki_13 likes this.
RobertHB 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 11:28
how to calculate flow properties along the first grid point near to the wall kiran OpenFOAM Post-Processing 2 September 12, 2010 13:59
calculate values for eps and k from Re or u????? sbar OpenFOAM Pre-Processing 5 August 16, 2010 05:10
How to calculate Torque for francis turbine manish CFX 4 March 15, 2007 03:57
How to calculate density of solid phase zhou Main CFD Forum 0 December 17, 1999 20:06


All times are GMT -4. The time now is 04:37.