|
[Sponsors] |
k-omega SST and wall functions in OpenFOAM-1.5-dev |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 25, 2011, 03:13 |
k-omega SST and wall functions in OpenFOAM-1.5-dev
|
#1 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
Hi everybody,
I always used OpenFOAM-1.6 and 1.7 so far, but I just started to work with OpenFOAM-1.5-dev because I have to set up a propeller case. I wonder how k-omega SST turbulence model is implemented, I'm afraid it's different from OpenFOAM-1.7 one. I took a look at the fora, but I can't get a univocal answer. I think the implementation has often changed and developed through years. Which is the actual 'state of the art'? I use the MRFSimpleFoam, I mean to apply a high Re model, I have no resources to resolve the b.l.. Are wall functions automatically included? In other words, have I to set just zeroGradient for omega and k as boundary condition? Another trivial question: are only p, U, k, omega and not nut need in 0 folder? I hope someone can answer to me. |
|
January 25, 2011, 21:54 |
|
#2 |
Senior Member
Travis Carrigan
Join Date: Jul 2010
Location: Arlington, TX
Posts: 161
Rep Power: 16 |
Hi,
If you look, you'll notice that OF-1.5-dev includes both a high and low Re k-omega SST model (kOmegaSST and kOmegaSST-LowRe). From my testing it seems that the kOmegaSST model will actually work for wall functions and boundary layer resolved flows. Wall functions are not automatically included. If you would like to use wall functions, omega should be set to type 'omegaWallFunction', and k should be 'kqRwallFunction'. For the kOmegaSST model: p, U, k, omega need to be in the 0 directory. nut isn't required, however, if you'd like to record nut for postprocessing you will need to put it in the 0 directory. Also, if you use nut, type should be set to 'nutWallFunction'. Hope this helps. |
|
January 26, 2011, 03:06 |
|
#3 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
Thanks for your reply.
So, as in OpenFOAM-1.7, I must set on the wall patches e.g.: Code:
k { type kqRWallFunction; value uniform 0.1; } omega { type omegaWallFunction; value uniform 100; } p { type zeroGradient; } U { type fixddValue; value uniform (0 0 0); } Code:
[COLOR]k[/COLOR] { type zeroGradient; } omega { type zeroGradient; } p { type zeroGradient; } U { type fixddValue; value uniform (0 0 0); } |
|
January 26, 2011, 03:50 |
|
#4 |
Senior Member
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18 |
Hi,
if you need the ggi interface from openFoam 1.5 dev and have worked with openFoam 1.6 (1.7) before, you should use the "new" dev version OpenFoam 1.6-ext . In this case, the sst model is the same or at least you can use the sst model from openFoam 1.7 Regards, Christian |
|
January 26, 2011, 04:09 |
|
#5 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
Hi, Chris.
I know OpenFOAM 1.6-ext, but I use OF at work and cannot choose the release. I need ggi interfaces, so I must use OF-1.5-dev. Anyway, I'd like to be sure about boundary settings close to the wall surfaces. I can't get a univocal information. I read somewhere I have to set k and omega as zeroGradient, if I apply a high Re k-omega SST turbulence model, but someone else, as tcarrigan, doesn't agree. |
|
January 26, 2011, 08:50 |
|
#6 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
Maybe I solved my doubt. I look at the kOmegaSST.C file in both OpenFOAM releases. Unlike in OF-1.7, in OF-1.5-dev I read
Code:
# include "kOmegaWallViscosityI.H" # include "kOmegaWallFunctionsI.H" Please, if you're expert about this, confirm or correct. |
|
January 26, 2011, 09:48 |
|
#7 |
Senior Member
Travis Carrigan
Join Date: Jul 2010
Location: Arlington, TX
Posts: 161
Rep Power: 16 |
If you want to resolve the boundary layer, then U and p should be set to 'zeroGradient'. However, k and omega should be set as follows:
k --------- type fixedValue; value uniform 0; omega ----------- type omegaWallFunction; value uniform (some value); This is because turbulent kinetic energy is zero on the wall, so it should be specified as such. However, omega is usually large and must be specified. You can use 'omegaWallFunction' as I have indicated above and it will calculate omega on the wall, or you can simple use the equation below and set type to 'fixedValue' with the value you get from the equation. I believe 'omegaWallFunction' uses this equation. omega_wall = 10 * 6 * nu / ( 0.075 * y^2 ) |
|
January 26, 2011, 10:45 |
|
#8 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
I think we're all a little confused
I think you're right, if you are talking about OpenFOAM-1.7 (anyway U is 0 and not zeroGradient on the wall). Indeed at low-RE (in order to solve the b.l.) I must set Code:
k { type fixedValue; value 1e-11; // non-zero value } omega { type omegaWallFunction; value uniform 100; // some value } Last edited by vaina74; January 26, 2011 at 11:24. |
|
January 26, 2011, 11:14 |
|
#9 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Hi, I think you are correct. OF 1.5 did not have the new wall-function implementation, so your setup (zeroGradient) should work.
Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
February 16, 2011, 04:30 |
|
#10 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
Dear Foamers,
I am currently computing kOmegaSST with OF 1.7.0 on a lowRe mesh. Is there an alternative for omegaWallFunction as boundary condition? I always get bounding omega and omega increases to values approx. e+07 When I was computing with zeroGradient for Omega at the wall, I did not observe those problems. So would it be ok to set on the wall Omega zeroGradient k fixedValue e-11 ? In this thread you were talking about OF1.5-dev and you stated that zeroGradient is a working boundary condition for Omega. So I was wondering if this could work for OF1.7.0, too. Looking forward to reading your answers! Anne |
|
February 24, 2011, 18:58 |
|
#11 |
New Member
Alexandre Rubel
Join Date: Dec 2010
Location: Launceston, Tasmania AUSTRALIA
Posts: 28
Rep Power: 15 |
Hi Foamers,
I get the same question than Anne but for High Re model and OpenFoam 1.6 After several try I still have issues to solve the b.l for my low Y+ model (KomegaSST). I'm still wondering how to set nut, k, omega at the wall ? Thanks Alex |
|
February 7, 2012, 07:57 |
SST kw and wall functions
|
#12 |
New Member
Join Date: Sep 2010
Location: Windsor, Ontario
Posts: 17
Rep Power: 16 |
Based on the concepts of the low Reynolds and high Reynolds number flows, if some one is using low Reynolds number option of the SST kw it means that the flow has different layers and a very fine resolution of the mesh is required close to the wall. this needs a mesh with a y-plus less than at least 5. Therefore in this case no wall function can be used.
For High Reynolds number flows, it is possible to apply the wall functions in the simulation. So, if I want to summarize, for low Reynolds cases do use fine mesh with no wall function and in high Reynolds cases you have both two option but be careful about the y plus!! |
|
July 11, 2013, 04:29 |
|
#13 |
Member
Mehdi GHOZALI
Join Date: May 2013
Location: Dubai, UAE
Posts: 65
Rep Power: 13 |
Hi,
If I use high Reynolds what's the condition on my y-plus ? Thank you |
|
February 7, 2014, 02:48 |
|
#14 |
New Member
Faraj
Join Date: Feb 2010
Posts: 22
Rep Power: 16 |
y + with 30-300 range , if u turn on wallfunction high re
|
|
September 7, 2016, 17:29 |
|
#15 |
Member
annn
Join Date: Jun 2016
Posts: 40
Rep Power: 10 |
||
September 8, 2016, 03:00 |
|
#16 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
You should not use a wall function then. Set the turbulent properties k, omega (and epsilon) to appropriate boundary conditions in this case.
As far as I know, the omegaWallFunction can be used for both, highRe and lowRe. k has to be set to a small, non-zero value. nut to calculated, meaning that it is computed from the ratio of k and omega. |
|
September 8, 2016, 04:05 |
|
#17 |
Member
annn
Join Date: Jun 2016
Posts: 40
Rep Power: 10 |
Hi Anne, thanks for replying, I will try that, also do you know what to set alphat then?
|
|
September 8, 2016, 04:09 |
|
#18 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
Assuming that alphat corresponds to kappat in the earlier OpenFoam-versions, it should be set to "calculated" as well, meaning that it is computed from nut and Prt.
|
|
September 8, 2016, 04:34 |
|
#19 | |
Member
annn
Join Date: Jun 2016
Posts: 40
Rep Power: 10 |
Quote:
also do you know by any chance where the implemetation of how these values are calculated are in the code for the kOmegaSST model? |
||
September 8, 2016, 04:39 |
|
#20 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
Yes, calculated at the wall and I also set it to calculated at the other boundaries.
The Prt number is specified in constant/transportProperties. I would have a look at the file omegaWallFunctionFvPatchScalarField.C , in my old version it is saved in this folder vi ~/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C Some properties (for example kappat) are computed directly in the solver so you may have a look at the corresponding file. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wall roughness and SST in 5.6 | Louwrens | CFX | 7 | November 21, 2014 11:10 |
k-omega simulation without wall functions | vkrastev | OpenFOAM | 2 | January 24, 2010 17:45 |
Wall function implementation K Omega SSt | cbarry | OpenFOAM | 3 | August 18, 2009 10:09 |
wall roughness with SST turbulence model in CFX10 | Vincent | CFX | 7 | September 10, 2007 16:49 |
SST model Autometic wall function parameters? | David | CFX | 0 | November 24, 2005 04:47 |