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

Atmospheric boundary layer

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2020, 11:22
Default
  #41
nlc
Member
 
nlc's Avatar
 
Nicolas Lussier Clément
Join Date: Apr 2009
Location: Montréal, Qc, Canada
Posts: 61
Rep Power: 17
nlc is on a distinguished road
Jonathon Sumner Is the one that was working on log treatment at Bottom.




The link for my work at the time is there I did a short resume of part of Sumner work at the time (p. 14).


You can see (p. 19 ) the top BC I use and the reason why. One difficulty of using gradient at the top is that convergence is a lot slower. To fix that I would initialized the hole domain. I did a 1d simulation then initialize the domain with it. I did the same for inlet (use the 1d simulation for the inset).



http://espace.etsmtl.ca/id/eprint/1153/


Hope this help a little.


Bon confinement et n'oubli pas de t'amuser René.



Au plaisir de parler de vive voix un jours.
nlc is offline   Reply With Quote

Old   April 8, 2020, 09:03
Default
  #42
Senior Member
 
René Thibault
Join Date: Dec 2019
Location: Canada
Posts: 114
Rep Power: 6
Tibo99 is on a distinguished road
Hi Nic!

Thanks again for your guidance!

I followed the modification that I've seen in your thesis, read some papers including the same one that you pointed me out (Sumner J. & Masson C. k-e simulation of neutral atmospheric boundary layer: analysis....) and I still got this weird curve/shape(two peak) for "k".

The wind profile is not exactly the same also, worst at mid-length then at the Outlet.

I suspect couple of things:

1-Maybe the modification perform in "nutkWallFunction" and "epsilonWallFunction" file are not well done.

2-Maybe the constant Cs (use in "nutkWallFunction") is not right regarding the "z0" I use.

3-Maybe the gradient value I used for "du/dz" and "de/dz" are not right.


I'll keep trying to dig in and looking what go wrong........

Bon confinement aussi!! Héhé! On peut se parler de vive voix certainement et comparer comment vous vivez le confinement dans votre coin! Je vais essayer de te trouver sur FB! :P

Take care!

RT
Tibo99 is offline   Reply With Quote

Old   April 28, 2020, 12:13
Default
  #43
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Might the following be related:

ENH: Improve and verify atmBoundaryLayerInlet conditions including "tutorials/verificationAndValidation/atmosphericFlows/HargreavesWright_2007"
Tibo99 and Teresa Sun like this.
HPE is offline   Reply With Quote

Old   July 4, 2023, 04:51
Default Peak in k and turbulence intensity
  #44
New Member
 
Teresa Sun
Join Date: Jun 2021
Posts: 21
Rep Power: 5
Teresa Sun is on a distinguished road
Dear all,

I use OpenFOAM/v2106-foss-2021a to simulate the wind turbine with pimpleFoam using large-eddy simulation.

The boundary condition for the viscosity at the bottom wall is atmNutUWallFunction.
The inlet BC for velocity is atmBoundaryLayerInletVelocity.

The mean velocity matches experimental data quite well.
However, there is a spike close to the bottom wall in the turbulent kinetic energy profiles and the turbulence intensity. (The green line in the figure is OF results)

Any help would be appreciated.
Code:
0.org/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            fixedValue;
        //value           $internalField;
        type            atmBoundaryLayerInletVelocity;
        #include        "include/ABLConditions"
    }

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

    #include "include/sideAndTopPatches"
}
Code:
0.org/nut

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

internalField   uniform 0;

boundaryField
{
    #include "include/ABLConditions"

    inlet
    {
        type            fixedValue;
        value           $internalField;
    }

    outlet
    {
        type            fixedValue;
        value           $internalField;
    }
    ground
    {
         type            atmNutUWallFunction;
         //type          atmNutkWallFunction;
         boundNut        true;                  ///zero-bounda nut near wall
         z0              $z0;
         value           uniform 0.0;
         #include "include/ABLConditions"
         //Cmu           0.09;
         //kappa         0.41;
         //type            fixedValue;
         //value           uniform 0.0;
    }

    #include "include/sideAndTopPatches"
}
Code:
0.org/p

#include        "include/initialConditions"

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

internalField   uniform $pressure;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    outlet
    {
        type            fixedValue;
        value    uniform $pressure;
    }

    ground
    {
        type            zeroGradient;
    }

    #include "include/sideAndTopPatches"
}

Code:
0.orig/include/ABLConditions

Uref                 2.8;          //Reference mean streamwise flow speed at Zref being used in u* extimations [m/s]
Zref                 0.125;        //Reference height being used in u* estimations[m]
zDir                 (0 0 1);      //Ground-normal direction
flowDir              (1 0 0);      //flow direction
d                    uniform 0.0;  //Displacement height


// I = 1%, u* = 0.1377
z0                   uniform 0.03e-3;
Code:
0.orig/include/sideAndTopPatches

top
{
    type slip;
}

"(front|back)"
{
    type cyclic;
}

"proc.*"
{
    type            processor;
}
Attached Images
File Type: png turbulence intensity.png (24.7 KB, 19 views)

Last edited by Teresa Sun; July 4, 2023 at 06:08.
Teresa Sun is offline   Reply With Quote

Old   July 4, 2023, 05:51
Default Value in atmNutUWallFunction BC is missing
  #45
New Member
 
Teresa Sun
Join Date: Jun 2021
Posts: 21
Rep Power: 5
Teresa Sun is on a distinguished road
According to the merge request https://develop.openfoam.com/Develop...e_requests/354, the bug of value in atmNutUWallFunction and atmNutkWallFunction BC is fixed.
However in my case, the simulation is aborted while running on a single processor if I don't provide the value.


Code:
0.org/nut
dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    #include "include/ABLConditions"

    inlet
    {
        type            fixedValue;
        value           $internalField;
    }

    outlet
    {
        type            fixedValue;
        value           $internalField;
    }
    ground
    {
         type            atmNutUWallFunction;
         //type          atmNutkWallFunction;
         boundNut        true;                  ///zero-bounda nut near wall
         z0              $z0;
         //value                 uniform 0.0;
         //Cmu           0.09;
         //kappa         0.41;
         #include "include/ABLConditions"
        //type            fixedValue;
        //value           uniform 0.0;
    }

    #include "include/sideAndTopPatches"
}

--> FOAM FATAL IO ERROR: (openfoam-2106)
Essential entry 'value' missing on patch ground


file: /home/jingsun/input_windTurb/1WTM_25/0/nut.boundaryField.ground at line 38.

    From Foam::fvPatchField<Type>::fvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::dictionary&, bool) [with Type = double]
    in file /sw/arch/Centos8/EB_production/2021/software/OpenFOAM/v2106-foss-2021a/OpenFOAM-v2106/src/finiteVolume/lnInclude/fvPatchField.C at line 131.

FOAM exiting

#0  Foam::error::printStack(Foam::Ostream&)malloc_consolidate(): unaligned fastbin chunk detected
Aborted (core dumped)
Teresa Sun is offline   Reply With Quote

Old   July 4, 2023, 06:02
Default
  #46
New Member
 
Teresa Sun
Join Date: Jun 2021
Posts: 21
Rep Power: 5
Teresa Sun is on a distinguished road
According to this merge requesthttps://develop.openfoam.com/Develop...e_requests/354, the current ABL boundary conditions are limited to the Neutral-stratified situation.
Does anyone know if these BCs are extended to stable and unstable stratification?
Teresa Sun is offline   Reply With Quote

Old   July 4, 2023, 08:44
Default
  #47
Senior Member
 
René Thibault
Join Date: Dec 2019
Location: Canada
Posts: 114
Rep Power: 6
Tibo99 is on a distinguished road
Maybe you need to look at SOWFA on github.
Tibo99 is offline   Reply With Quote

Old   July 4, 2023, 10:43
Default
  #48
New Member
 
Teresa Sun
Join Date: Jun 2021
Posts: 21
Rep Power: 5
Teresa Sun is on a distinguished road
Hi Rene,

Thanks for your reply.
I studied SOWFA for a while but had to give it up.
Because the HPC that I have access to does not support the installation of OpenFOAM6, on which the newest version of SOWFA is implemented. Also, I need to implement my own spatial and time discretization methods and my own large eddy model, which takes a bit of effort but is endurable. I supposed it would be hard to reach for any help once I got stuck in SOWFA.

Please correct me if you think differently
Teresa Sun is offline   Reply With Quote

Old   July 4, 2023, 10:55
Default
  #49
Senior Member
 
René Thibault
Join Date: Dec 2019
Location: Canada
Posts: 114
Rep Power: 6
Tibo99 is on a distinguished road
Hi,

If you want to developp your own code, its probably the right thing to do.

Personnaly, I'm not skill enough to do something like that, but If you are, go for it.
nlc and Teresa Sun like this.
Tibo99 is offline   Reply With Quote

Old   July 5, 2023, 14:21
Default
  #50
nlc
Member
 
nlc's Avatar
 
Nicolas Lussier Clément
Join Date: Apr 2009
Location: Montréal, Qc, Canada
Posts: 61
Rep Power: 17
nlc is on a distinguished road
Indeed it should not be difficult. In our reach group we where many to have modified it. That is 10 years ago still this is not a complexe modification if you know the equation you want to implement.
Tibo99 likes this.
nlc is offline   Reply With Quote

Old   November 3, 2023, 04:22
Default
  #51
Member
 
María Rosales
Join Date: Mar 2023
Location: Spain
Posts: 48
Rep Power: 3
MMRC is on a distinguished road
Hello Teresa,

Did you solver your ABL? I have simulated some using BC's from openfoam, and also happen that K is not kept equal downwind, but looking to articles this happens a lot to other softwares. Even though for simulations R&h proposed this trick for numerical approach, the diffusion we get in k (and not the perfect profile as inlet) is casually similar what happen in nature...
One thing that most recent articles avoid to apply is the retarding shear on 1st cell centers that recommended R&H, also R&H recommended to apply face discretization in gradients, something that I have not tried yet
If you want to discuss any related to ABL or AD, I'm open to that!



Quote:
Originally Posted by Teresa Sun View Post
According to this merge requesthttps://develop.openfoam.com/Develop...e_requests/354, the current ABL boundary conditions are limited to the Neutral-stratified situation.
Does anyone know if these BCs are extended to stable and unstable stratification?
MMRC 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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
Turbulent Boundary Layer on a Flat Plate Hoshang Garda FLUENT 1 November 27, 2013 11:24
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
Combining BCs: wall - outlet. Boundary layer disappears MartinaF OpenFOAM Running, Solving & CFD 1 July 20, 2009 19:14
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55


All times are GMT -4. The time now is 01:30.