|
[Sponsors] |
June 16, 2016, 11:27 |
Setting atmopheric boundary layer for inlet
|
#1 | |
Member
Almond Wong
Join Date: May 2016
Posts: 68
Rep Power: 10 |
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:
|
||
June 23, 2016, 06:39 |
|
#2 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
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. |
|
June 24, 2016, 08:16 |
|
#3 |
Member
Almond Wong
Join Date: May 2016
Posts: 68
Rep Power: 10 |
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; // ************************************************************************* // 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" } // ************************************************************************* // 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; } // ************************************************************************* // |
|
June 24, 2016, 08:20 |
|
#4 |
Member
Almond Wong
Join Date: May 2016
Posts: 68
Rep Power: 10 |
this is the velocity profile that came out
|
|
June 24, 2016, 12:40 |
|
#5 |
Member
Almond Wong
Join Date: May 2016
Posts: 68
Rep Power: 10 |
this is the velocity profile that i got. the profile is good until it drops suddenly to zero as it reaches the top.
|
|
September 28, 2016, 05:36 |
|
#6 |
New Member
Ruby Qian
Join Date: Aug 2013
Location: Nanjing,Jiangsu,PRC
Posts: 13
Rep Power: 13 |
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.
|
|
October 21, 2016, 01:47 |
|
#7 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
I agree with ruby_nuaa. Maybe upload your files and I will have a look.
|
|
January 6, 2024, 05:26 |
|
#8 | |
Member
Marķa Rosales
Join Date: Mar 2023
Location: Spain
Posts: 48
Rep Power: 3 |
Quote:
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 |
||
Tags |
abl |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3D Windturbine simulation in SU2 | k.vimalakanthan | SU2 | 15 | October 12, 2023 06:53 |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 08:30 |
Divide Prismatic Boundary Layer Mesh causes overlapping faces | SilentRunner42 | enGrid | 4 | May 4, 2015 04:37 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 08:00 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |