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   August 31, 2017, 08:53
Default
  #61
New Member
 
Lucas Gasparino
Join Date: Jul 2017
Location: Swansea, UK
Posts: 23
Rep Power: 8
Lucas_Gasparino is on a distinguished road
There are ways of predicting yplus before meshing, but honestly they're very rough. After simulation, it's a standard, plottable value in CFD post or any other software. In general, you want to keep yplus between 0m1 and 1 for complex models; less than 0.1 is overkill and also starts producing some bad results as well due to bad aspect ratios and volumes close to zero. LES I'd a different beast however: your mesh near the walls should be able to capture large eddies in the layer itself, which will be small nonetheless. I'd advise you to use LES WALE or WMLES, which introduce a bit o Wallace modelling to correct mesh effects. From experience, I used smagorinsky model with a bad yplus and, although it works, you're going to lose a lot of information. For the cylinder however, focus on getting the wake modelled nicely: most of your turbulence will be happening downstream. Make sure to enable data statistics to get mean flow data as well, so later you can separate the fluctuation and verify the rate of dissipation.

Sent from my XT1635-02 using CFD Online Forum mobile app
kooki_13 likes this.
Lucas_Gasparino is offline   Reply With Quote

Old   April 21, 2019, 03:36
Default
  #62
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 7
calf.Z is on a distinguished road
Quote:
Originally Posted by Blanco View Post


Code:
tmp<scalarField> nutLowReWallFunctionFvPatchScalarField::yPlus() const
{
    const label patchi = patch().index();
    const turbulenceModel& turbModel =
        db().lookupObject<turbulenceModel>("turbulenceModel");
    const scalarField& y = turbModel.y()[patchi];
    const tmp<volScalarField> tnu = turbModel.nu();
    const volScalarField& nu = tnu();
    const scalarField& nuw = nu.boundaryField()[patchi];
    const fvPatchVectorField& Uw = turbModel.U().boundaryField()[patchi];

    return y*sqrt(nuw*mag(Uw.snGrad()))/nuw;
}
Andrea
I want to define y+ in my code, and there are yPlus defined in nutLowReWallFunction. So I want to quote them.

But there are some errors. How can I use the definition of yPlus in nutLowReWallFunction to apply it in my code? Thank you.
calf.Z is offline   Reply With Quote

Old   June 4, 2019, 01:35
Default
  #63
Member
 
Join Date: Aug 2018
Posts: 85
Rep Power: 7
esha is on a distinguished road
Quote:
Originally Posted by immortality View Post
I wonder how we can calculate y+ at a laminar flow without any turbulent model? is it possible?
I also want to calculate the value of Y+for laminar case. if you have calculated please let me know. thanks!
esha is offline   Reply With Quote

Old   November 7, 2021, 02:10
Default DNS yplus in OpenFoam
  #64
New Member
 
Yanjun Tong
Join Date: Jul 2020
Posts: 13
Rep Power: 5
Hughtong is on a distinguished road
Quote:
Originally Posted by fredo490 View Post
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.
But when doing DNS in OpenFoam, the turbulenproperties will be laminar, the yPlus also should be calculated.
Hughtong is offline   Reply With Quote

Old   November 7, 2021, 20:43
Default
  #65
Senior Member
 
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 16
fredo490 is on a distinguished road
Indeed, this is a very good comment and nice corner case

I would also say that if someone is going to run a DNS simulation, he should have at least the basic fundamentals of the theory and this question should not even exist in his mind.
fredo490 is offline   Reply With Quote

Old   November 7, 2021, 20:47
Default
  #66
Senior Member
 
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 16
fredo490 is on a distinguished road
By the way, if someone wants to learn more about this topic, I would highly recommend Fluid Mechanics 101 videos:
https://www.youtube.com/watch?v=nSdVaF3JnI0
https://www.youtube.com/watch?v=fJDYtEGMgzs
https://www.youtube.com/watch?v=1gSHN99I7L4
fredo490 is offline   Reply With Quote

Old   November 7, 2021, 21:22
Thumbs up
  #67
New Member
 
Yanjun Tong
Join Date: Jul 2020
Posts: 13
Rep Power: 5
Hughtong is on a distinguished road
Quote:
Originally Posted by fredo490 View Post
Indeed, this is a very good comment and nice corner case

I would also say that if someone is going to run a DNS simulation, he should have at least the basic fundamentals of the theory and this question should not even exist in his mind.
Thank you for sharing, the videos are very helpful for me! Recently i'm using OpenFoam to do channel DNS, but I can only calculate yplus after extracting U and the first mesh length, there's not a utility for the "turbulenceProperties -laminar". So I'm quite curious why OpenFoam don't consider this condition, and can only use the yPlus utility when using turburlence model.
Hughtong is offline   Reply With Quote

Old   November 10, 2021, 01:33
Default
  #68
New Member
 
Delhi
Join Date: Nov 2021
Posts: 2
Rep Power: 0
shail546 is on a distinguished road
Please tell me where to type yPlusRAS to know the y+ in openFoam?
I am typing in the terminal but its showing command not found.
shail546 is offline   Reply With Quote

Old   November 10, 2021, 01:37
Default
  #69
New Member
 
Delhi
Join Date: Nov 2021
Posts: 2
Rep Power: 0
shail546 is on a distinguished road
Quote:
Originally Posted by immortality View Post
hi
Type yPlusRAS or yPlusLES
If you have ras or les turbulency.
Please tell me where to type yPlusRAS to know the y+ in openFoam?
I am typing in the terminal but its showing command not found.
shail546 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 12:53.