CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Turbulent Boundary Conditions with Slip Walls

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By Yann
  • 1 Post By shock77

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2023, 10:59
Default Turbulent Boundary Conditions with Slip Walls
  #1
Senior Member
 
Join Date: Dec 2019
Posts: 215
Rep Power: 8
shock77 is on a distinguished road
Hi,


Usually I always had noSlip walls when running numerical simulations. Now, I have a case where I need to apply slip boundary conditions. I wonder what boundary condition I should use for k, omega and alphat when using the k-omega-SST model. Do I use zeroGradient or slip for those?


Kind regards,
Shock77
shock77 is offline   Reply With Quote

Old   November 7, 2023, 15:01
Default
  #2
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Quick answer:

I think the below condition is the answer, but I'm not sure:

Code:
	
    wall
    {   
        type            slip;
    }
this is true for K & omega.
saeed jamshidi is offline   Reply With Quote

Old   November 8, 2023, 04:27
Default
  #3
Senior Member
 
Join Date: Dec 2019
Posts: 215
Rep Power: 8
shock77 is on a distinguished road
Thank you for your reply and input!


I couldnt find anyone who uses slip in combination with turbulence models. It feels also kind of weird to be honest and counter intuitive. Have you ever used this combination?
shock77 is offline   Reply With Quote

Old   November 8, 2023, 06:01
Default
  #4
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Yes, I have.

When I want to simulate flow over cylinder (3D) I consider slip BC for the top & Bottom as well as for the front & Back with K-omega SST.

Besides, you can have a look at the motorbike tutorial in simpleFoam, just focus on BCs.

Code:
\\wsl.localhost\Ubuntu18.04\home\saeedfoam\OpenFOAM\tutorials\incompressible\simpleFoam\motorBike
Good luck.
saeed jamshidi is offline   Reply With Quote

Old   November 9, 2023, 05:26
Default
  #5
Senior Member
 
Join Date: Dec 2019
Posts: 215
Rep Power: 8
shock77 is on a distinguished road
Good to know, thank you!


In the tutorial they use wall functions. Do you mean another tutorial by any chance?
shock77 is offline   Reply With Quote

Old   November 9, 2023, 05:37
Default
  #6
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
I have read some materials and found that utilization of wall functions is a merit, because you set yplus abouve 30 and it reduces computational time cost. However, I'm looking for the tutorials without treating walls with wall functions to understand the boundary conditions of walls for k, omega and nut.
saeed jamshidi is offline   Reply With Quote

Old   November 9, 2023, 05:41
Default
  #7
Senior Member
 
Join Date: Dec 2019
Posts: 215
Rep Power: 8
shock77 is on a distinguished road
So is there any tutorial that uses slip for k, omega or epsilon?
shock77 is offline   Reply With Quote

Old   November 9, 2023, 05:58
Default
  #8
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Quote:
Originally Posted by shock77 View Post
So is there any tutorial that uses slip for k, omega or epsilon?
You can check the tutorials, for instance:
Code:
grep -r "slip" $FOAM_TUTORIALS | grep "/omega"
Cheers,
Yann
saeed jamshidi and shock77 like this.
Yann is offline   Reply With Quote

Old   November 9, 2023, 05:59
Default
  #9
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
As you can see from motorbike tutorial, upperWall was considered as slip:

Code:
upperWall
{
    type slip;
}

frontAndBack
{
    type slip;
}
for example, have a look at part of k :

Code:
    lowerWall
    {
        type            kqRWallFunction;
        value           $internalField;
    }

    motorBikeGroup
    {
        type            kqRWallFunction;
        value           $internalField;
    }

    #include "include/frontBackUpperPatches"
wall functions are used when we have noslip BC (such as on motorbike or lower wall), while in slip condition (upper wall) we assign slip for k (assigned by include command), omega or epsilon.

upper wall actually is not a real wall and in real world does not exist. we just consider it in our simulation.

So, you should consider this in all k, omega or epsilon dictionaries in zero folder:

Wall
{
type slip;
}
saeed jamshidi is offline   Reply With Quote

Old   November 9, 2023, 06:07
Default
  #10
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Quote:
Originally Posted by Yann View Post
You can check the tutorials, for instance:
Code:
grep -r "slip" $FOAM_TUTORIALS | grep "/omega"
Cheers,
Yann
Hi Yann,

Have you ever seen a tutorial without using wall functions on walls? specially for k-omega sst model.

Thanks
saeed jamshidi is offline   Reply With Quote

Old   November 14, 2023, 05:21
Default
  #11
Senior Member
 
Join Date: Dec 2019
Posts: 215
Rep Power: 8
shock77 is on a distinguished road
Quote:
Originally Posted by Yann View Post
You can check the tutorials, for instance:
Code:
grep -r "slip" $FOAM_TUTORIALS | grep "/omega"
Cheers,
Yann

Thank you very much! Seems like there is no usage of slip for omega or k in the tutorials.
shock77 is offline   Reply With Quote

Old   November 14, 2023, 05:24
Default
  #12
Senior Member
 
Join Date: Dec 2019
Posts: 215
Rep Power: 8
shock77 is on a distinguished road
Quote:
Originally Posted by saeed jamshidi View Post
As you can see from motorbike tutorial, upperWall was considered as slip:

Code:
upperWall
{
    type slip;
}

frontAndBack
{
    type slip;
}
for example, have a look at part of k :

Code:
    lowerWall
    {
        type            kqRWallFunction;
        value           $internalField;
    }

    motorBikeGroup
    {
        type            kqRWallFunction;
        value           $internalField;
    }

    #include "include/frontBackUpperPatches"
wall functions are used when we have noslip BC (such as on motorbike or lower wall), while in slip condition (upper wall) we assign slip for k (assigned by include command), omega or epsilon.

upper wall actually is not a real wall and in real world does not exist. we just consider it in our simulation.

So, you should consider this in all k, omega or epsilon dictionaries in zero folder:

Wall
{
type slip;
}



I cannot see a slip assigned to k in the tutorials or in the code you copied. Interestingly, my tutorial is different from yours (I am using Openfoam 5). For U I get:


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

#include        "include/initialConditions"

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

internalField   uniform $flowVelocity;

boundaryField
{
    //- Set patchGroups for constraint patches
    #includeEtc "caseDicts/setConstraintTypes"

    #include "include/fixedInlet"

    outlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           $internalField;
    }

    lowerWall
    {
        type            fixedValue;
        value           $internalField;
    }

    motorBikeGroup
    {
        type            noSlip;
    }

    #include "include/frontBackUpperPatches"
}


// ************************************************************************* //
For k:


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

#include        "include/initialConditions"

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

internalField   uniform $turbulentKE;

boundaryField
{
    //- Set patchGroups for constraint patches
    #includeEtc "caseDicts/setConstraintTypes"

    //- Define inlet conditions
    #include "include/fixedInlet"

    outlet
    {
        type            inletOutlet;
        inletValue      $internalField;
        value           $internalField;
    }

    lowerWall
    {
        type            kqRWallFunction;
        value           $internalField;
    }

    motorBikeGroup
    {
        type            kqRWallFunction;
        value           $internalField;
    }

    #include "include/frontBackUpperPatches"
}


// ************************************************************************* //
shock77 is offline   Reply With Quote

Old   November 14, 2023, 05:30
Default
  #13
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Please have a look at your 0/ include folder.

You will see some BCs there.

Allways they are included to your K or U .... by #include "include/frontBackUpperPatches".

I am using OpenFoam v2112.
saeed jamshidi is offline   Reply With Quote

Old   November 14, 2023, 05:34
Default
  #14
Senior Member
 
Join Date: Dec 2019
Posts: 215
Rep Power: 8
shock77 is on a distinguished road
Ohhh now I see it, thank your very much again!
saeed jamshidi likes this.
shock77 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
Wrong multiphase flow at rotating interface Sanyo CFX 14 February 7, 2017 18:19
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 06:15
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 07:18


All times are GMT -4. The time now is 13:56.