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

Question about k-epsilon turbulence model for a backward-facing step?

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 27, 2015, 03:06
Default Question about k-epsilon turbulence model for a backward-facing step?
  #1
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Hello All,

I am doing a validation study on a backward-facing step and trying to implement k-epsilon with proper boundary conditions. The dynamic viscosity for the problem is 1.96*10^-6 N.s/m2, Re 5100, density 1kg/m3, Ux=1m/s, Uy=0. I have made the proper mesh according to y+ NASA calculator. I have 29000 number of nodes for the mesh. Everything is being step properly. Now, I want to implement k-epsilon with a give value of k=0.015m2/s2 and turbulence intensity of 10%. The aim of the study is to compare my data with the reattachment point. I have tried to set up k and epsilon properly. However, the results do not seem reasonable. I am attaching both k and epsilon boundary conditions and would be more than happy if someone of you could help in this regards.

Boundary condtions.zip
tareqkh is offline   Reply With Quote

Old   March 27, 2015, 05:56
Default
  #2
Member
 
Icaro A. Accordi
Join Date: Oct 2010
Posts: 31
Rep Power: 15
icaroaccordi is on a distinguished road
First of all, it seems that you are using the standard k-e. Am I correct? However you are using bc's for lowRe k-e. If you are using y+ <= 1 you need to choose some low-Re model (e.g. LaunderSharma_ke). If your y+ is greater than 20 you can use standard k-e with the wall functions that you have commented.
icaroaccordi is offline   Reply With Quote

Old   March 27, 2015, 12:15
Default
  #3
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Thank you for your reply. My question is about whether or not boundary conditions at the top and bottom wall is being set up properly.
tareqkh is offline   Reply With Quote

Old   March 27, 2015, 12:27
Default
  #4
Member
 
Icaro A. Accordi
Join Date: Oct 2010
Posts: 31
Rep Power: 15
icaroaccordi is on a distinguished road
I only can reply if I know what kind of k-e you are using. If you are using standard k-e they are completely wrong because you are using low-Re bc's.
icaroaccordi is offline   Reply With Quote

Old   March 27, 2015, 12:32
Default
  #5
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
I am using the files that are provided in the pitzily example in the simplefoam. Since I am using y+, I need to change the top and bottom boundary to a fixed wall. If you could guid me in this regard, that would be nice.
tareqkh is offline   Reply With Quote

Old   March 27, 2015, 14:01
Default
  #6
Member
 
Icaro A. Accordi
Join Date: Oct 2010
Posts: 31
Rep Power: 15
icaroaccordi is on a distinguished road
Do you have a yPlus target?
icaroaccordi is offline   Reply With Quote

Old   March 27, 2015, 14:37
Default
  #7
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Yes, it is 0.0002529.
tareqkh is offline   Reply With Quote

Old   March 27, 2015, 14:55
Default
  #8
Member
 
Icaro A. Accordi
Join Date: Oct 2010
Posts: 31
Rep Power: 15
icaroaccordi is on a distinguished road
First of all you need to change to LaunderSharma k-e because the standard cannot work as a Low-Re model.
icaroaccordi is offline   Reply With Quote

Old   March 27, 2015, 15:01
Default
  #9
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Do you know any examples in the simplefoam uses this turbulence model. Or can you provide me the boundary for this type?
tareqkh is offline   Reply With Quote

Old   March 27, 2015, 17:09
Default
  #10
Member
 
Icaro A. Accordi
Join Date: Oct 2010
Posts: 31
Rep Power: 15
icaroaccordi is on a distinguished road
The only example that I know in OpenFoam is compressible and the Lunder Sharma is working as a high-Re model (you can use a low-Re model as a high-Re but not the oposite).
You can use at wall:
nut = 0;
k = 0;
e = zeroGradient;

But the best would be use the new bc's of 2.3.versions:

for k:
myWall
{
type kLowReWallFunction;
}

for e:
myWall
{
type epsilonLowReWallFunction;
}

for nut:
myWall
{
type nutLowReWallFunction;
}

These are good because they are automatic and can work as wall-functions or resolving the boundary layer in agreement with your mesh.

Why so litle y+. The target usualy is less than 1 but not so less.
icaroaccordi is offline   Reply With Quote

Old   March 27, 2015, 17:12
Default
  #11
Member
 
Icaro A. Accordi
Join Date: Oct 2010
Posts: 31
Rep Power: 15
icaroaccordi is on a distinguished road
If you want to take a look at the example is compressible/sonicFoam/RAS/nacaAirfoil.
Pleas do not use the bc's of this example.

If you want quick information about low-Re models pleas take a look at:
http://www.cfd-online.com/Wiki/Low-Re_k-epsilon_models
lpz456 likes this.
icaroaccordi is offline   Reply With Quote

Old   March 27, 2015, 17:17
Default
  #12
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Can you send me your 0 file for this turbulence if you could?
tareqkh is offline   Reply With Quote

Old   April 22, 2015, 12:12
Default
  #13
Member
 
Xinguang Wang
Join Date: Feb 2015
Posts: 45
Rep Power: 11
JasonWang3 is on a distinguished road
Quote:
Originally Posted by icaroaccordi View Post
If you want to take a look at the example is compressible/sonicFoam/RAS/nacaAirfoil.
Pleas do not use the bc's of this example.

If you want quick information about low-Re models pleas take a look at:
http://www.cfd-online.com/Wiki/Low-Re_k-epsilon_models
Hi

I generate two mesh, y+ near 1 and y+ near 20. When I use the y+=1 grid, I choose Lauder-sharma with kLowReWallFunction, while the coarse grid, use k-epsilon with kqRWallFunction.

My question is whether kLowReWallFunction is needing when applying Low-Re turbulent model? In most case, wall functions are designed for High-Re turbulence model. And what is the difference of this two wall functions?

Regards,
Jason
JasonWang3 is offline   Reply With Quote

Old   April 22, 2015, 12:35
Default
  #14
Member
 
Icaro A. Accordi
Join Date: Oct 2010
Posts: 31
Rep Power: 15
icaroaccordi is on a distinguished road
Actually you do not need the kLowReWallFunction but it is a good idea. kLowReWallFunction is a automatic function that uses different approaches to calculate the turbulent quantities according with the local y+. It can be used by low and high-Re models. Using it with a low-Re model you can have more flexibility when dealing with different y+.
How I have said before you can just use:
nut = 0;
k = 0;
e = zeroGradient;

nutLowReWallFunction is simpler than epsilonLowReWallFunction and kLowReWallFunction and only works in low-Re. It has only the function to gives you access to the y+ of your case. The yPlusRAS application do not work when you uses fixedValue nut=0. To have a completely automatic setting of wall functions it is better to use nutUSpaldingWallFunction instead of nutLowReWallFunction.
BlnPhoenix likes this.
icaroaccordi is offline   Reply With Quote

Old   April 22, 2015, 12:41
Default
  #15
Member
 
Icaro A. Accordi
Join Date: Oct 2010
Posts: 31
Rep Power: 15
icaroaccordi is on a distinguished road
omegaWallFunction is already a automatic wall function that is why there is no omegaLowReWallFunction.
icaroaccordi is offline   Reply With Quote

Old   August 12, 2015, 17:42
Default LaunderSharmaKE Model
  #16
New Member
 
Ricardo Ferreira
Join Date: May 2015
Posts: 16
Rep Power: 10
RLFerreira is on a distinguished road
Hello Foamers, I am using 2.2.2 openFoam version to simulate flow through radial diffuser with LaunderSharma k-epsilon model, because Reynolds number is close to 3000. The case files are attached below. All my attempts diverged before 5 iteractions. I used for domain walls (patch names: walls and reed-wall) nutLowReWallFunction, epsilonLowReFunction and kLowReWallFunctions for nut, epsilon and k, respectively. Besides of that, I did a lot of others attempts without success, including the model with wall functions disable.

I really appreciate your help!

Best Regards,
Ricardo.
Attached Files
File Type: zip LaunderSharmaKE.zip (35.1 KB, 18 views)
RLFerreira is offline   Reply With Quote

Old   August 13, 2015, 07:03
Default
  #17
Member
 
Icaro A. Accordi
Join Date: Oct 2010
Posts: 31
Rep Power: 15
icaroaccordi is on a distinguished road
Hi Ricardo,

There is a miss concept in your question. The use of low-Re model is not exactly about the Reynolds number of the flow but about the y+ of the first element near wall. Of course that for high-Re flows you are going to need a finer mesh owing to the narrow boundary layer. Please check if there is recirculation at the exit and make it longer if necessary.
checkMesh to see if everything is OK.
If the angle is grater than 80 it is a waste of time run it.
Change all divSchemes:
- bounded Gauss limitedLinearV 1;
- bounded Gauss limitedLinear 1;
to bounded Gauss upwind;
You can come back to the old settings after some iterations. I would use linearUpwind but limitedLinear is OK as well.
Change U outlet from zeroGradient to inletOutlet.

It should work.
icaroaccordi is offline   Reply With Quote

Old   October 21, 2015, 08:39
Default
  #18
New Member
 
Ricardo Ferreira
Join Date: May 2015
Posts: 16
Rep Power: 10
RLFerreira is on a distinguished road
Hi Icaro, thank you for your quick answer! I am grateful about your highlight in my error in concept in using low-Re model, as it made me study carefully about this subject.
Is well-known in the literature that RNG k-epsilon without wall functions is the best RANS model to deal with radial diffuser problem. So, I have some questions, if you can help me a little bit more.
1) Using RNG k-epsilon, I noted that convergence is easier using wall functions than without one. As it (wall functions) is implemented in OF, I would be missing to use it in flow regions where yPlus<1?
2) As wall boundary condition for nut, the "calculated" is the same of "nutLowReWallFunction"?
3) As wall boundary condition for k and epsilon, kLowReWallFunction and epsilonLowReWallFunction works for both low and high Reynolds setup? If yes, I prefer always use it.

Thank you very much!
RLFerreira is offline   Reply With Quote

Old   October 26, 2015, 04:59
Default kLowReWallFunction only v2f
  #19
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
Quote:
Originally Posted by icaroaccordi View Post
The only example that I know in OpenFoam is compressible and the Lunder Sharma is working as a high-Re model (you can use a low-Re model as a high-Re but not the oposite).
You can use at wall:
nut = 0;
k = 0;
e = zeroGradient;

But the best would be use the new bc's of 2.3.versions:

for k:
myWall
{
type kLowReWallFunction;
}

for e:
myWall
{
type epsilonLowReWallFunction;
}

for nut:
myWall
{
type nutLowReWallFunction;
}

These are good because they are automatic and can work as wall-functions or resolving the boundary layer in agreement with your mesh.

Why so litle y+. The target usualy is less than 1 but not so less.
I'd like to rise a small discussion on the kLowReWallFunction:

As far as I know this wall function was designed for v2f model. It gives a fixedValue k=0 for y+ well below yPlusLam. However, when you are in the buffer or log region, the values will be wrong for all models except v2f.
I'd appreciate a small confirmation to this statement

Cheers

Fabian
fabian_roesler is offline   Reply With Quote

Old   November 18, 2015, 13:02
Default
  #20
Member
 
Davi Barreira
Join Date: Apr 2014
Location: Fortaleza
Posts: 76
Rep Power: 12
davibarreira is on a distinguished road
Hey Fabian, this thread http://www.cfd-online.com/Forums/ope...ion-2-2-a.html seems to confirm what you are saying. Right now, I'm reading this paper http://web.stanford.edu/group/uq/pdf...als/jcp_wf.pdf together with OpenFOAM code. If I get to any conclusions, I will report.

[edited]

I didn't get to a final conclusion, but I think that it is indeed only for v2f. The v2f.h file says:

Code:
Description
    Lien and Kalitzin's v2-f turbulence model for incompressible flows, with
    a limit imposed on the turbulent viscosity given by Davidson et al.
    The model solves for turbulence k and epsilon, with additional equations
    for the turbulence stress normal to streamlines, v2, and elliptic damping
    function, f.  The variant implemented employs N=6, such that f=0 on walls.
    Wall boundary conditions are:
        k       = kLowReWallFunction
        epsilon = epsilonLowReWallFunction
        v2      = v2WallFunction
        f       = fWallFunction
    These are applicable to both low- and high-Reynolds number flows.

Last edited by davibarreira; November 18, 2015 at 14:23.
davibarreira 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
Backward facing step with step wall inclined at 20/15° ArathoN OpenFOAM Running, Solving & CFD 1 November 22, 2014 09:32
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 07:47
Backward facing step. Fluids Main CFD Forum 7 December 4, 2012 11:28
backward facing step chelvistero OpenFOAM 0 April 20, 2010 11:48
Backward Facing Step Pete Main CFD Forum 5 June 28, 2000 21:40


All times are GMT -4. The time now is 16:36.