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

how to achieve homogeneous vertical profile for turbulence

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 1 Post By mAlletto
  • 1 Post By mAlletto
  • 1 Post By mAlletto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2021, 14:48
Default how to achieve homogeneous vertical profile for turbulence
  #1
New Member
 
Saugat Shrestha
Join Date: Dec 2019
Location: Thailand
Posts: 27
Rep Power: 7
saugatshr4 is on a distinguished road
Hello,

I am working on turbulence modeling of the Atmospheric Boundary Layer. Here I have been able to maintain a homogeneous wind velocity profile. However, I have been unable to maintain a homogeneous profile for tubrulence.

I have given a manual input for the Turbulent Kinetic energy (TKE). It seems that the TKE seems to dissipate very early in the domain and doesn't travel the domain. I have attached a picture of the TKE in the along wind direction of the domain.

FYI, I'm trying to implement a k-epsilon model.

Can anybody please help me. I have been stuck in this problem for a long time.

I will be very grateful for your help.

Thank You.

With best regards,
Saugat
Attached Images
File Type: png Capture.PNG (46.0 KB, 60 views)
saugatshr4 is offline   Reply With Quote

Old   August 16, 2021, 17:27
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
That's probably because the inflow tke is not a solution of the homogeneous equation. If you run a flat plate simulation with periodic boundary conditions in stream wise direction you will get your homogeneous solution.
tariq likes this.
mAlletto is offline   Reply With Quote

Old   August 17, 2021, 10:27
Default
  #3
New Member
 
Saugat Shrestha
Join Date: Dec 2019
Location: Thailand
Posts: 27
Rep Power: 7
saugatshr4 is on a distinguished road
Thank You mAlletto, for the response.

The advice you gave me did work and now I am able to conserve the turbulence in my model domain.

So, I gave the cyclic boundary layer inputs to the inlet and the outlet. Due to this I had to use fvOptions to give the velocity and turbulence input parameters. For the velocity I used the patchMeanVelocityForce function.

However, here I could only give the a fixed value. I require to give a profile here. I tried using the fixed profile function from a CSV here but could implement it.

Can you please help me give give a profile to those parameters?

Your help will be really valuable in my work.

Thank You.

With best regards,

Saugat

This is for the fixed value of velocity
Quote:
momentumSource
{
type patchMeanVelocityForce;
active yes;

patchMeanVelocityForceCoeffs
{
selectionMode all;
fields (U);
patch inlet;
Ubar (0 8 0);
relaxation 0.2;
}
}
I tried this it doesn't work (its more like a wild guess):
Quote:
momentumSource
{
type patchMeanVelocityForce;
active yes;

patchMeanVelocityForceCoeffs
{
selectionMode all;
fields (U);
patch inlet;
U
{
type fixedProfile;
profile csvFile;
profileCoeffs
{
nHeaderLine 0;
refColumn 0;
componentColumns (1);
separator ",";
mergeSeparators 0;
outOfBounds clamp;
file "C:\Program Files\blueCFD-Core-2017\ofuser-of5\run\manualK_20210812\0\Book2.csv";
}
direction (0 0 1);
origin 0;
}
relaxation 0.2;
}
}
saugatshr4 is offline   Reply With Quote

Old   August 17, 2021, 16:19
Default
  #4
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
I didn't understand your question. Can you be more precise
mAlletto is offline   Reply With Quote

Old   August 18, 2021, 09:36
Default
  #5
New Member
 
Saugat Shrestha
Join Date: Dec 2019
Location: Thailand
Posts: 27
Rep Power: 7
saugatshr4 is on a distinguished road
Hello mAlletto,

I implemented the periodic boundary condition but I don't get a homogeneous solution.
I have attached the profile of the TKE profile and epsilon profile. The TKE is for some reason getting attached to the top. Even in the epsilon profile, there are higher values at the top. However, for epsilon, the profile at the bottom is something that I want.
FYI, I am getting a homogeneous profile for the wind speed but turbulence is a big problem for me.
I am using a slip condition on the top layer. For the inlet and the outlet, I'm using cyclic boundary conditions. I have given a profile of wind speed, turbulence kinetic energy, and epsilon using the fvoption.

Can you suggest a solution for this?

With best regards,
Saugat
Attached Images
File Type: png Capture2.PNG (41.6 KB, 27 views)
File Type: png Capture.PNG (37.5 KB, 26 views)
saugatshr4 is offline   Reply With Quote

Old   August 18, 2021, 18:00
Default
  #6
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
Seems like you have a source term in the middle of the domain. To achieve a homogeneous solution only a few cells in stream wise direction are required. Can you also post the velocity
mAlletto is offline   Reply With Quote

Old   August 18, 2021, 18:05
Default
  #7
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
You find a tutorial how to achieve a homogeneous solution for an atmospheric boundary layer here https://develop.openfoam.com/Develop...atmFlatTerrain
allanZHONG likes this.
mAlletto is offline   Reply With Quote

Old   September 17, 2021, 01:11
Default
  #8
New Member
 
Saugat Shrestha
Join Date: Dec 2019
Location: Thailand
Posts: 27
Rep Power: 7
saugatshr4 is on a distinguished road
Sorry, mAlletto for the late response.
As request by you, I have attached the velocity profile.
Thank You.
Attached Images
File Type: png Capture.PNG (18.8 KB, 26 views)
saugatshr4 is offline   Reply With Quote

Old   January 24, 2022, 05:33
Default
  #9
DJF
New Member
 
Join Date: Jan 2019
Posts: 12
Rep Power: 7
DJF is on a distinguished road
Very interesting tutorial, mAlletto! I've been struggling with an ABL simulation of a complex terrain using LES and DFSEM. The velocity profile changes rapidly in streamwise direction, especially near the ground surface where I get much larger velocities compared to the reference profile.

I'm currently using pressureInletOutletVelocity at the top boundary for U. For nut at the ground surface I'm using atmNutUWallFunction.

What do you suggest for the BCs at the top boundary? fixedShearStress?
DJF is offline   Reply With Quote

Old   January 24, 2022, 05:44
Default
  #10
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
For a log profile fixedShear is ok. For a Eckman profile a slip condition is ok
Teresa Sun likes this.
mAlletto is offline   Reply With Quote

Reply

Tags
boundary layer, k-epsilon, openfoam, turbulent kinetic energy

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 UDF Paraboilc Velocity Profile (Can't Maintain) Sing FLUENT 12 August 7, 2017 07:25
problems orientating profile Ralf Schmidt FLUENT 1 March 30, 2014 11:00
problem with importing and exporting profile BC Gui CFX 2 July 26, 2007 09:50
Associating profile files for the UDS though a UDF Bharath FLUENT 0 December 1, 2006 16:58
Prescribed inflow velocity profile - how to? Alan Main CFD Forum 10 October 28, 2005 13:14


All times are GMT -4. The time now is 20:41.