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

Wall boundary conditions for low Re models

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By callumso
  • 1 Post By joegi.geo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2013, 20:43
Default Wall boundary conditions for low Re models
  #1
New Member
 
Jialin Su
Join Date: Mar 2013
Location: Loughborough
Posts: 29
Rep Power: 13
callumso is on a distinguished road
Hi Foamers,

I want to use the low Re models in OF. But I am not sure how to set the wall boundary conditions for k and epsilon or omega. I saw some of the tutorials use wall functions, which I don't feel comfortable with.

I have seen some posts here mentioning setting k and epsilon to be really small. I would like to whether this is correct and how small is small enough? Since k should approach zero at a no-slip wall, can I just set it to fixed value = 0?

For omega, Wilcox's book said it could be set to really large or 6*nu/(beta*y^2). For the latter scenario, how should I specify it or I simply need to set up a derived boundary condition implementing this asymtotic relation?

Could anyone help me out on this? Thank you.

Regards,
Callum
callumso is offline   Reply With Quote

Old   April 10, 2013, 14:03
Default
  #2
New Member
 
Jialin Su
Join Date: Mar 2013
Location: Loughborough
Posts: 29
Rep Power: 13
callumso is on a distinguished road
I find the following thread, rather informative.

http://www.cfd-online.com/Forums/ope...tml#post419699

But I would like to know why setting k=0 (which I believe it should be) won't work?

and if I want to use the omega boundary condition of Menter, how shall I do it? It seems to me it's not setting the value of omega at the surface patch, but at the cell centres instead. How can I do this?

Can someone help? Thank you.

Regards,
Callum
callumso is offline   Reply With Quote

Old   April 12, 2013, 18:22
Default
  #3
Senior Member
 
joegi
Join Date: Nov 2009
Location: genoa
Posts: 102
Rep Power: 16
joegi.geo is on a distinguished road
Hi,

Well the best way to know the bcs to use is going to the original source, so take a look at the original papers.

I have been working on this issue for a while and I have been doing some validation against other cfd apps, and I found that for low RE the best way is to use small values for k, omega and nut.

It is recommended to use small values, because if you set zero, maybe somewhere you will have a division by zero (specially for k). Regarding the bc for omega, it is true that it should be a big number, but that is for the original formulation (the one by wilcox if i am not mistaken). The k-omega model have undergone several mods during the years, so you should check what is the version implemented in OF. For me it works fine using small values for low RE.

Hope this helps,

joel
joegi.geo is offline   Reply With Quote

Old   April 14, 2013, 17:22
Default
  #4
New Member
 
Jialin Su
Join Date: Mar 2013
Location: Loughborough
Posts: 29
Rep Power: 13
callumso is on a distinguished road
Hi Joel,

Thank you for the reply. Indeed I managed to locate the source code at omegaWallFunctionFvPatchScalarField.C (sounds a bit daft taking so long to locate it, but I am a complete noob to C++ and still struggling to understand the code which is utter Greek to me).

Obviously the blending of proposed by F. Menter (http://nippon.zaidan.info/seikabutsu...okyo_ts059.pdf) is implemented. I'm not sure about the reasoning behind this blending (looks a tad empirical to me), but I'm happy with it at the moment.

Regards,
Callum
callumso is offline   Reply With Quote

Old   April 21, 2013, 12:33
Default
  #5
New Member
 
Jialin Su
Join Date: Mar 2013
Location: Loughborough
Posts: 29
Rep Power: 13
callumso is on a distinguished road
Hi Joel,

I just realised that some other people (http://www.tfd.chalmers.se/~hani/pdf.../mainColor.pdf) also set omega to virtually zero at the wall.

I'm a bit uncomfortable with this approach as omega should goes to infinity with the rate of y^-2 close to the wall. This asymptotic solution is analytical and should not vary with the turbulence model used. I don't really see any physical reasoning behind setting omega to zero at wall and I am surprised that it gives acceptable results.

Do you have idea on this or can any other Foamers help clarifying or correcting me? Thanks.

Cheers,
Callum
immortality likes this.
callumso is offline   Reply With Quote

Old   April 22, 2013, 08:20
Default
  #6
Senior Member
 
joegi
Join Date: Nov 2009
Location: genoa
Posts: 102
Rep Power: 16
joegi.geo is on a distinguished road
Hi,

Ok, I will give you my point of view. The idea of setting a small value is to disable the wall functions. For low-re models they are incorporated as damping functions in the turb. model, so you don’t need wall functions at all. Remember, you want to resolve the viscous sub layer (y+ approx. 1). So for k and omega you need to set a small fixed value.

If you want to use wall functions (that means a turbulence model with wall functions), you will need to give the right bc values. If I am not mistaken the wall function implemented is a continuous wall-function. So omega at the wall should be something like 60*nu/(beta*y^2), but again, that depends on the model implemented. I have some references where it is recommended to use small values and some other that recommends the use of a big value.

So at this point try to do some benchmarking and see what works best for you.

jg
almightymichael likes this.
joegi.geo is offline   Reply With Quote

Old   June 5, 2013, 23:30
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
hi
I have read the posts and now have two questions:
1)we should set internalField value equal to values we set on the walls?
2)How can find out the values we have set are correct(as dear Joel mentioned)?for example if the solver bounds the turbulent variables it shows that the initial values had been incorrect or it maybe due to another reason and another indicators for initial value exist?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 12, 2013, 11:47
Default
  #8
New Member
 
Jialin Su
Join Date: Mar 2013
Location: Loughborough
Posts: 29
Rep Power: 13
callumso is on a distinguished road
Hi Ehsan,

Indeed I would not agree to set omega to fixed value zero at the wall because it is physically not correct.

If you refer to the Menter's paper I cited, you would see the actual implementation will calculate the value of omega at the first internal node based on the wall distance (the asymptotic solution will switch between those of the log region and the sub-layer region depending on the wall distance)...

Callum
callumso is offline   Reply With Quote

Old   June 12, 2013, 12:01
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Hi Julian.
thanks.
and whats your opinion about epsilon value?you put it 10000 too?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 12, 2013, 17:07
Default
  #10
New Member
 
Jialin Su
Join Date: Mar 2013
Location: Loughborough
Posts: 29
Rep Power: 13
callumso is on a distinguished road
Hi Ehsan,

If you use high Re model, simply use the wall function.

For low Re models, it depends on which one you use. As far as I understand, epsilon should approach a constant at the wall. Launder-Sharma model includes this term in the modified epsilon equation, so that the boundary condition of epsilon is zero. You might want to check the source code to confirm.

I am not sure about the others. But I got some information from the following link:
http://www.texstan.com/m3.php

It's quite informative. for a quick look, simply scroll all the way down to the section of boundary conditions. Hope this help.

Cheers,
Callum
callumso is offline   Reply With Quote

Old   June 12, 2013, 17:16
Default
  #11
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thanks.in low-Re you said in other thread usefully that you use omega as 10000 on wall.whats your opinion about epsilon on walls?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality 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
non reflective boundary conditions for incompresible flow Pascal_doran OpenFOAM Programming & Development 16 August 25, 2015 05:35
CFX13 Post Periodic interface EtaEta CFX 7 December 8, 2011 17:15
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
Water vapour condensation in CFX-5.7.1 hdj CFX 1 November 27, 2005 07:15
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 06:18


All times are GMT -4. The time now is 11:46.