CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Wrong yPlus calculation in OF 3.0.1?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2016, 09:16
Default Wrong yPlus calculation in OF 3.0.1?
  #1
Senior Member
 
Alex
Join Date: Jan 2014
Posts: 126
Rep Power: 12
Kina is on a distinguished road
Hi there,
I am currently investigating the flow around a flatback airfoil and I have built a script that calculates the flow and mesh data for me and puts it into a usable BlockMeshDict file. My calculated first cell layer height correlates well to the CFD Online yPlus calculator so the mistake should not be in my formulas. When I view the mesh in ParaFoam and take the ruler to measure my first cell height it also correlates well to the input data.
However, when I use the yPlus command, I get values of 3 to 3.5 whereas my input y+ is 1 or lower.
Also, the wall shear stress calculated by OF is about 70 times higher than the shear calculated by the Schlichting formula.

Does anyone know the physics behind the OF yPlus calculation?
I am using the yPlus command for t=0 so the values should match my estimation with the initial conditions.

I am using incompressible pisoFoam with kOmegaSST model.

Cheers
Alex
Kina is offline   Reply With Quote

Old   March 7, 2016, 05:01
Default yStar value instead of yPlus
  #2
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
Hi

OpenFOAM is actually calculating a yStar value instead of yPlus. This can lead to different values.
Check this link:
http://www.cfd-online.com/Forums/ope...lus-ystar.html

Cheers

Fabian
fabian_roesler is offline   Reply With Quote

Old   March 7, 2016, 05:41
Default
  #3
Senior Member
 
Alex
Join Date: Jan 2014
Posts: 126
Rep Power: 12
Kina is on a distinguished road
Hi Fabian,

thanks for you reply! So even if OF is saying 'yPlus', it's just the y* value?
That's still a little confusing.
I thought they would have sorted that out by v3.0.1.

Cheers
Alex
Kina is offline   Reply With Quote

Old   May 18, 2016, 05:22
Default
  #4
Member
 
Paul Palladium
Join Date: Jan 2016
Posts: 94
Rep Power: 10
Fauster is on a distinguished road
Hi !

I am a bit lost (I am a beginners with OF). I read all these threads about yplus calculation with openfoam but I still don't know how to calcul y+.

I understand that the command yPlus compute y* and not y+. Then I download the utility of Mojtaba.a on post 8. But how it works ? What do I need to do ? I try to replace in

openfoam30/src/postProcessing/functionObjects/utilities/yplus but without success

I guess I need to recompile openfoam. How can I do that ?

Thanks for your help !
Fauster is offline   Reply With Quote

Old   September 7, 2016, 06:19
Default
  #5
Member
 
Paul Palladium
Join Date: Jan 2016
Posts: 94
Rep Power: 10
Fauster is on a distinguished road
Still any idea about how to use this utility ?
Fauster is offline   Reply With Quote

Old   September 8, 2016, 10:31
Default
  #6
Member
 
Paul Palladium
Join Date: Jan 2016
Posts: 94
Rep Power: 10
Fauster is on a distinguished road
I guess I found out how to install/compile this application.

1. replace the old directory "yPlus" (locate at openFoam30/applications/utilities/postProcessing/wall) by the new one :

https://github.com/OpenFOAM/OpenFOAM...ing/wall/yPlus

2. go in the directory "make" (openFoam30/applications/utilities/postProcessing/wall/yPlus) and type
Quote:
wmake
Maybe it's better to recompile all the applications by lauching Allwmake in the directory applications. I can't tell you.
Fauster is offline   Reply With Quote

Old   December 17, 2016, 09:40
Default
  #7
Member
 
Bashar
Join Date: Jul 2015
Posts: 74
Rep Power: 11
Bashar is on a distinguished road
Thanks for the information.


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

Old   January 27, 2017, 11:53
Default Help with Y+ openfoam 4.0
  #8
Member
 
Fredi Cenci
Join Date: Dec 2016
Posts: 38
Rep Power: 10
fredicenci is on a distinguished road
Hey guys, I've been trying to simulate the flow over a 3-D cylinder. I am using wall functions and it is known that Y+ should be 30 < y+ <100 not over 300. I used this calculator http://www.pointwise.com/yplus/ to estimate my first cell hight.

Well, I used the function yPlus in Openfoam 4.0 and seems like the results are different from what I calculated. I've taken a look over this issue, seems like y+ in older versions of openfoam is actually y* and I believe that this is my problem.

How can i get out of this? should I stick with y* and control the y* of my mesh instead y+? which is the ideal value of y* for wall functions?

Thanks a lot.
fredicenci is offline   Reply With Quote

Old   February 1, 2017, 23:04
Default File
  #9
Member
 
Fredi Cenci
Join Date: Dec 2016
Posts: 38
Rep Power: 10
fredicenci is on a distinguished road
Quote:
Originally Posted by Fauster View Post
I guess I found out how to install/compile this application.

1. replace the old directory "yPlus" (locate at openFoam30/applications/utilities/postProcessing/wall) by the new one :

https://github.com/OpenFOAM/OpenFOAM...ing/wall/yPlus

2. go in the directory "make" (openFoam30/applications/utilities/postProcessing/wall/yPlus) and type


Maybe it's better to recompile all the applications by lauching Allwmake in the directory applications. I can't tell you.
Hey guys, I couldn't find the directory (openFoam30/applications/utilities/postProcessing/wall/yPlus). I guess I can't find it because i am using OpenFoam 4.. Do you know where is the directory of the file that I should replace?

Thanks a lot!
fredicenci is offline   Reply With Quote

Old   April 30, 2017, 13:00
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

I'm late to the following questions, but since I did some research into this, here are the answers:
Quote:
Originally Posted by fredicenci View Post
How can i get out of this? should I stick with y* and control the y* of my mesh instead y+? which is the ideal value of y* for wall functions?
In this thread: y+ and y* issue - is mostly explained what is y+ and y* for.

From what I can figure out, the y* is the approximation made to y+ based on the wall function values. This also means that it your cell on the wall is large enough and has a y* or y+ high enough, the wall function has to approximate the result either way. But if the cell is small enough, the layer being modelled is for the laminar sub-layer, in which case the y+ calculation is more appropriate, i.e. based on the wall shear stress.

The possible reason that OpenFOAM does not provide the y+ definition, is most likely because the wallShearStress application (OpenFOAM version 2.4.x and older) or function object (as of OpenFOAM 3.0.0, if I'm not mistaken) provides a more accurate depiction of the context in which is should be used, i.e. laminar flow, at least as far as I can figure out (please correct me if I'm wrong).


Quote:
Originally Posted by fredicenci View Post
Hey guys, I couldn't find the directory (openFoam30/applications/utilities/postProcessing/wall/yPlus). I guess I can't find it because i am using OpenFoam 4.. Do you know where is the directory of the file that I should replace?
You don't need to place it inside OpenFOAM's source code folder. You can place it in the OpenFOAM-assigned user folder and build it there. If you don't know where the user folder is located, run:
Code:
echo $FOAM_RUN
and it's the parent folder of the "run" sub-folder.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
komega sst model, openfoam, wall shear stress, y+ value, yplus


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
Wrong calculation of y+ in flow over backward facing step hedi-72 OpenFOAM Post-Processing 0 January 26, 2016 12:02
Wrong interface curvature capturing and contact line calculation at low capillary nu Mahmoud_aboukhedr OpenFOAM Running, Solving & CFD 0 April 14, 2015 15:04
Increase in CPU number during the FIRE calculation amin_u50 AVL FIRE 0 August 6, 2014 09:34
Solver Yplus of Automatic wall treatment justjhy CFX 2 May 4, 2013 08:19
X-Y plot of Yplus in Fluent 5.3 Luo FLUENT 24 April 11, 2000 07:07


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