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

yPlus Calculation for Spalart Allmaras RANS Simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By cnsidero

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2017, 04:01
Default yPlus Calculation for Spalart Allmaras RANS Simulation
  #1
New Member
 
JD
Join Date: May 2017
Posts: 24
Rep Power: 9
dickcruz is on a distinguished road
Hello All,

I've been trying to use the y+ calculation option on a transient external flow case using pimpleFoam -postProcess to make sure that my mesh resolution is sufficient closer to the flow surfaces.

Unfortunately, I get zeros for all my surfaces as my min, max and average. I've found that if I run an LES on the same case, I'm able to get some numbers. Similarly, if after I run the RAS simulation, I change up my turbulence model to LES before I run the yPlus utility, I'm able to get non-zero numbers for the RAS. I'm uncertain how trustworthy this number is. But, more fundamentally, I don't understand what I'm doing wrong with the model.

Please let me know what data needs to be analyzed to figure this out.
dickcruz is offline   Reply With Quote

Old   November 19, 2017, 15:28
Default Having a similar issue!
  #2
New Member
 
Join Date: Oct 2017
Posts: 4
Rep Power: 8
vdeschuy is on a distinguished road
Hey,

I think I'm dealing with a similar issue!
Are you also using OF version 5?
Do you mean with 'zeros' a very low number or actually zero?

I'm having the problem where even for very coarse meshes my y+ is always smaller than 1. As in your case, when I change to LES before I postprocess yPlus, I get numbers above 1, but I'm also not sure these are trustworthy.

Maybe you or someone else has found a solution already?
vdeschuy is offline   Reply With Quote

Old   November 19, 2017, 21:40
Default
  #3
New Member
 
JD
Join Date: May 2017
Posts: 24
Rep Power: 9
dickcruz is on a distinguished road
Quote:
Originally Posted by vdeschuy View Post
Hey,

I think I'm dealing with a similar issue!
Are you also using OF version 5?
Do you mean with 'zeros' a very low number or actually zero?

I'm having the problem where even for very coarse meshes my y+ is always smaller than 1. As in your case, when I change to LES before I postprocess yPlus, I get numbers above 1, but I'm also not sure these are trustworthy.

Maybe you or someone else has found a solution already?
Hello, could you paste the contents of your nut file here, please?
dickcruz is offline   Reply With Quote

Old   November 20, 2017, 04:43
Default nut file
  #4
New Member
 
Join Date: Oct 2017
Posts: 4
Rep Power: 8
vdeschuy is on a distinguished road
Here you go!

This is for a case were I used a very coarse mesh, wall functions, and here I expected to see a high y+ value.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.0                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            calculated;
        value           uniform 0;
    }
    outlet
    {
        type            calculated;
        value           uniform 0;
    }
    top
    {
        type            slip;
    }
    bottom
    {
        type            slip;
    }
    cylinder
    {
        type            nutkWallFunction;
        value           uniform 0;
    }
    side1
    {
        type            empty;
    }
    side2
    {
        type            empty;
    }
}

// ************************************************************************* //
vdeschuy is offline   Reply With Quote

Old   November 20, 2017, 09:41
Default
  #5
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
The nutkWallFunction requires k to compute y+. Checkout out the source code for that BC:

https://github.com/OpenFOAM/OpenFOAM...arField.C#L157

The SA turbulence model has no ability to compute k so it returns a value of zero for k. Checkout the source code:

https://github.com/OpenFOAM/OpenFOAM...llmaras.C#L302

Instead use the nutUWallFunction which uses a velocity instead of k to compute y+.

-Chris
hellodd and hulli like this.
cnsidero is offline   Reply With Quote

Reply

Tags
post procesing, spalart allamaras, yplusras


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
Simulation RANS Explode fredicenci OpenFOAM Running, Solving & CFD 4 May 23, 2017 13:29
Wrong yPlus calculation in OF 3.0.1? Kina OpenFOAM Post-Processing 9 April 30, 2017 12:00
Yplus for Multiphase Simulation Mitch CFX 0 October 31, 2007 04:10
Do RANS simulation overpredict maximum Cp? Sergio Rossi Main CFD Forum 0 May 15, 2007 09:23
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 16:08.