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

Setting atmopheric boundary layer for inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2016, 10:27
Default Setting atmopheric boundary layer for inlet
  #1
Member
 
Almond Wong
Join Date: May 2016
Posts: 68
Rep Power: 9
BakedAlmonds is on a distinguished road
Hi,

How can I set up an atmospheric inlet velocity profile?
I am very new to both CFD and OpenFOAM, so a step by step explanation would really be appreciated.

Do I just add this in the 0/U file:
Quote:
inlet
{
type atmBoundaryLayerInletVelocity;
Uref 10.0;
Zref 500;
zDir (0 0 1);
flowDir (1 0 0);
z0 uniform 0.1;
zGround uniform 0.0;
value $internalField;
}
And the surround walls and top wall set to either slip or symmetry?
BakedAlmonds is offline   Reply With Quote

Old   June 23, 2016, 05:39
Default
  #2
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
You can check the turbine siting tutorial. There the atmospheric boundary layer is used. The values that you need to define should be pretty self explanatory. In an earlier version I had two issues with the atmBoundaryLayerInletVelocity:
1. There was a minimum roughness length and any z0 below this value was set to this min value.
2. The reference velocity was set to be equal the gradient velocity. (velocity profile became constant after the height zref)

IDK if this has changed in the recent versions but maybe keep it in mind if the results look weird.
Bazinga is offline   Reply With Quote

Old   June 24, 2016, 07:16
Default
  #3
Member
 
Almond Wong
Join Date: May 2016
Posts: 68
Rep Power: 9
BakedAlmonds is on a distinguished road
hi bazinga, thanks for the reply!!! Can I ask a few question regarding this?

I set up my profile as in the tutorial and BC as slip/symmetry. However, in the horizontal axis (z axis) there seem to be a built up of a velocity profile as well where it reduces to 0 at the wall. Do you know why??

my ABLCondition file:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

Uref                 10.0;
Zref                 500;
zDir                 (0 0 1);
flowDir              (1 0 0);
z0                   uniform 0.1;
zGround              uniform 0.0;
value                $internalField;

// ************************************************************************* //
0/U file:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    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
{
    outlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           $internalField;
    }

    inlet
    {
        type            atmBoundaryLayerInletVelocity;
        #include        "include/ABLConditions"
    }

    obstacles   
    {
        type            uniformFixedValue;
        uniformValue    (0 0 0);
        value           uniform (0 0 0);
    } 

    ground
    {
        type            uniformFixedValue;
        value           uniform (0 0 0);
        uniformValue    constant (0 0 0);
    }

    #include "include/sideAndTopPatches"
}


// ************************************************************************* //
include/sideAndTopPatches file:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  dev                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

top
{
    type symmetry;
}

sides
{
    type symmetry;
}

"proc.*"
{
    type            processor;
}

// ************************************************************************* //
BakedAlmonds is offline   Reply With Quote

Old   June 24, 2016, 07:20
Default
  #4
Member
 
Almond Wong
Join Date: May 2016
Posts: 68
Rep Power: 9
BakedAlmonds is on a distinguished road
this is the velocity profile that came out
Attached Images
File Type: png Untitled.png (40.9 KB, 58 views)
BakedAlmonds is offline   Reply With Quote

Old   June 24, 2016, 11:40
Default
  #5
Member
 
Almond Wong
Join Date: May 2016
Posts: 68
Rep Power: 9
BakedAlmonds is on a distinguished road
this is the velocity profile that i got. the profile is good until it drops suddenly to zero as it reaches the top.
Attached Images
File Type: png ssssss.png (6.2 KB, 69 views)
BakedAlmonds is offline   Reply With Quote

Old   September 28, 2016, 04:36
Default
  #6
New Member
 
Ruby Qian
Join Date: Aug 2013
Location: Nanjing,Jiangsu,PRC
Posts: 13
Rep Power: 12
ruby_nuaa is on a distinguished road
don't know if this problem has been solved. From the pic you attached, it seems like the side faces and the top are treated like wall type.maybe check your boundary file in polymesh.
ruby_nuaa is offline   Reply With Quote

Old   October 21, 2016, 00:47
Default
  #7
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15
Bazinga is on a distinguished road
I agree with ruby_nuaa. Maybe upload your files and I will have a look.
Bazinga is offline   Reply With Quote

Old   January 6, 2024, 04:26
Default
  #8
Member
 
Marķa Rosales
Join Date: Mar 2023
Location: Spain
Posts: 35
Rep Power: 3
MMRC is on a distinguished road
Quote:
Originally Posted by ruby_nuaa View Post
don't know if this problem has been solved. From the pic you attached, it seems like the side faces and the top are treated like wall type.maybe check your boundary file in polymesh.

Hi ruby_nuaa, maybe you find already your solution (its been some years after!). I prefer to use as top BC the fixed value that comes from solving the formula of inlet BC at that top height. Hope this helps new foamers if they read this thread
MMRC is offline   Reply With Quote

Reply

Tags
abl


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
3D Windturbine simulation in SU2 k.vimalakanthan SU2 15 October 12, 2023 05:53
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
Divide Prismatic Boundary Layer Mesh causes overlapping faces SilentRunner42 enGrid 4 May 4, 2015 03:37
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55


All times are GMT -4. The time now is 07:53.