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

Boundary Layer (1/7)th power law Input in rhoCentralFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By RobertHB
  • 1 Post By RobertHB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2018, 00:00
Default Boundary Layer (1/7)th power law Input in rhoCentralFoam
  #1
Member
 
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 8
maddy11 is on a distinguished road
Hi all,

I'm an OpenFoam beginner. In the simulation of supersonic cavity, I'm trying to provide the boundary layer using Blasius 1/7th Power law at the walls ( 0 folder --> U)

So I have instead provided the following command in the Terminal

applyBoundaryLayer -ybl 0.0025

where 0.0025 is my boundary layer thickness. So, this calculates the velocity in the internalfield in the U file. Is my understanding correct? Could anyone kindly help please?
maddy11 is offline   Reply With Quote

Old   October 11, 2018, 23:53
Default
  #2
Member
 
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 8
maddy11 is on a distinguished road
Anyone? Kindly share information pls!
maddy11 is offline   Reply With Quote

Old   October 12, 2018, 03:45
Default
  #3
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 maddy11 View Post
Anyone? Kindly share information pls!
I gave the source code a quick read, and if i understand it correctly you need a velocity field beforehand. Not sure if only applying it to a empty dict with an internalField will work.
And you can not use wall functions for your turbulence parameters.
applyBoundaryLayer.C @ github
maddy11 likes this.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   October 12, 2018, 06:31
Default
  #4
Member
 
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 8
maddy11 is on a distinguished road
Hi Robert,

Thank you for your kind reply. I'm a beginner. I have placed my file for velocity field below ( from '0' folder ) . I write the above mentioned command after this. And values are initialized in the 'internal field' in the velocity file subsequently for all the cells.

Can you kindly have a look at it? I have also placed the turbulence parameter 'k'. Kindly correct my mistakes.


FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField uniform (516 0 0);

boundaryField
{
outlet
{
type zeroGradient;
}
inlet
{
type fixedValue;
value uniform (516 0 0);
}
wall
{
type fixedValue;
value uniform (0 0 0);
}
top
{
type zeroGradient;
}
frontAndBackPlanes
{
type empty;
}
}


// ************************************************** *********************** //


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

internalField uniform 10;

boundaryField
{
outlet
{
type zeroGradient;
}
inlet
{
type turbulentIntensityKineticEnergyInlet;
intensity 0.005;
value uniform 10;
}
wall
{
type kqRWallFunction;
value uniform 10;
}
top
{
type zeroGradient;
}
frontAndBackPlanes
{
type empty;
}
}
maddy11 is offline   Reply With Quote

Old   October 12, 2018, 07:23
Default
  #5
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 maddy11 View Post
Hi Robert,

Thank you for your kind reply. I'm a beginner. I have placed my file for velocity field below ( from '0' folder ) . I write the above mentioned command after this. And values are initialized in the 'internal field' in the velocity file subsequently for all the cells.
O.k., than forget my comment about needing a vel. field beforehand.


Quote:
Can you kindly have a look at it? I have also placed the turbulence parameter 'k'. Kindly correct my mistakes.

Code:
// ************************************************************************* //


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

internalField   uniform 10;

boundaryField
{
    outlet
    {
        type            zeroGradient;
    }
    inlet
    {
        type            turbulentIntensityKineticEnergyInlet;
    intensity       0.005;
        value           uniform 10;
    }
    wall
    {
        type            kqRWallFunction;
        value           uniform 10;
    }
    top
    {
        type            zeroGradient;
    }
    frontAndBackPlanes
    {
        type            empty;
    }
 }
From what i can figure from the source code, you are not supposed to use a wallfunction for k (and nut, epsilon, omega aswell). Might be a good idea to go with zeroGradient instead. But i'm guessing here.
maddy11 likes this.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   October 12, 2018, 07:29
Default
  #6
Member
 
madz
Join Date: Sep 2018
Posts: 34
Rep Power: 8
maddy11 is on a distinguished road
Okay Robert, I will change as per your suggestion. Thank you
maddy11 is offline   Reply With Quote

Old   September 30, 2021, 14:58
Default
  #7
Member
 
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9
Malkocoglu is on a distinguished road
Quote:
Originally Posted by maddy11 View Post
Okay Robert, I will change as per your suggestion. Thank you
Hello @maddy11

I am facing with similar situation. I wonder that if it worked to convert wall function into zeroGradient or fixedValue?

Thanks in advance, stay healthy,
Malkocoglu
Malkocoglu 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
y+ = 1 boundary layer mesh with snappyHexMesh Arzed23 OpenFOAM Running, Solving & CFD 6 November 23, 2022 15:15
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 01:44
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55


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