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

A few questions on K-W SST model and LES

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ehsan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 26, 2015, 15:16
Question A few questions on K-W SST model and LES
  #1
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
Dear All

I need a reference that OpenFOAM used to write the following formula for nutWallFunction:

scalar yPlus = Cmu25*y[faceI]*sqrt(k[faceCellI])/nuw[faceI];

if (yPlus > yPlusLam_)
{
nutw[faceI] = nuw[faceI]*(yPlus*kappa_/log(E_*yPlus) - 1.0);
}
}

I am asked about "Near Wall Treatment" formula in K-W SST in OpenFOAM,
In fact, I need near wall treatment for all parameters including
U, k and <omega>

I read the paper mentioned here (Progress in ...).
I could not find source codes for other parameters U and K and Omega in OpenFOAM. Only nuT is available.

Regards
Ehsan
ehsan is offline   Reply With Quote

Old   February 27, 2015, 03:44
Default K-W SST model
  #2
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
Hello,

1- I am asked about:

The formula used to determine the near wall values of U, k and <omega> in K-W SST model in OpenFOAM. May I ask you whether OpenFOAM uses exactly the same formula given in:

http://www.zaidan.info/seikabutsu/20...okyo_ts059.pdf

If no, which reference is used for OpenFOAM formulations?

2- In nutkWallFunction.C, it is:
nut = nu * ((y+ * k) / ln( E * y+) - 1)

which means: nut=nu[(y+/U+)-1]

May I ask you the refernce of this equation?

Regards
ehsan is offline   Reply With Quote

Old   February 27, 2015, 05:21
Default
  #3
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 26
RodriguezFatz will become famous soon enough
ehsan,
The omega b.c. of the paper is implemented in openfoam, see:
https://github.com/OpenFOAM/OpenFOAM...hScalarField.C
line 223 to 235.
They (in the paper) use a zero-flux boundary condition for k, so this would be zeroGradient boundary condition in openFoam.
The nut damping is not implemented in openFoam, that's why people use one of the other nut b.c., such as the one you wrote.
If you want the low-Re version as in the paper, I implemented it:
http://www.cfd-online.com/Forums/openfoam-programming-development/134102-komegasst-lowre-damping-fluent.html#post491414
(I didn't compare everything, but I guess it is the same as in the paper).


Do you want to use a low-Re or a high-Re version?
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   February 27, 2015, 05:34
Default K-W SST model
  #4
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
Thank you very much. Your helps are very fruitful for me.

I already used K-W SST and LES in OpenFOAM and was asked by the reviewer of my paper about near wall treatments:

1- OK, w is like the paper, K is zero gradient, and nut from the formula I mentioned, how the latter transforms to the velocity? and does it has a reference?

2- In LES, I used "kqRWallFunction" for k, and nothing for other parameters (like a test case in hand. May I ask you about the near wall treatments in LES?

3- And I also have a question about LES delta that I used, that is smooth. I also need its relation with the cell size (or a reference)

Regards
Ehsan
ehsan is offline   Reply With Quote

Old   February 27, 2015, 05:38
Default
  #5
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 26
RodriguezFatz will become famous soon enough
1) You mean if the wall shear is used as b.c. for the velocity in the first cell? I don't know that.
Unfortunately, I can not help with the other question, too. Sorry.
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   February 27, 2015, 05:41
Default
  #6
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
No, I mean where does this nut show itself in calculations? Is it in shear stress calculation in the domain. I mean as OF does not use Eq. 17 of that paper, how it compensate?
ehsan is offline   Reply With Quote

Old   February 27, 2015, 05:42
Default
  #7
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 26
RodriguezFatz will become famous soon enough
You can find nut evaluation in the komegasst turbulence model, directly after solving of k and omega differential equation.
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   February 27, 2015, 05:50
Default
  #8
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
OK, Thanks. The only problem is U, that is not used in OpenFOAM. It is written in the paper below Eq 18:

"This formulation gives the relation between the velocity near the wall and the wall shear stress."

So, if we correct wall shear stress with that nut, maybe we could find u correctly as well.
ehsan is offline   Reply With Quote

Old   February 27, 2015, 05:52
Default
  #9
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
Hi

I need to know near wall treatments in LES. In LES, I used "kqRWallFunction" for k, and nothing for other parameters (like a test case in hand). May I ask you about the near wall treatments in LES?

2- And I also have a question about LES delta that I used, that is smooth. I also need its relation with the cell size (or a reference)

Regards
ehsan is offline   Reply With Quote

Old   February 27, 2015, 11:24
Default
  #10
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
I had an inquiry on the near wall treatment in LES.

OpenFOAM mainly follows Florian MENTER algorithm for wall treatment in K-W SST (http://www.zaidan.info/seikabutsu/20...okyo_ts059.pdf). However, OpenFOAM uses the same near wall treatment for LES as K-W SST (kqRwallfunction for K and nothing for others). May I ask you whether it is a correct and standard way in near wall treatments in LES?
ehsan is offline   Reply With Quote

Old   February 28, 2015, 11:20
Default
  #11
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
LES deltas

smoothDelta Smoothing of delta

I am asked about the:

the formula used for the LES filter width as a function of grid size for smoothDelta. Would you please help?
ehsan is offline   Reply With Quote

Old   March 2, 2015, 05:49
Default
  #12
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 13
hfs is on a distinguished road
Hi,

I also would like to know:
when "kqRwallfunction" is used in k boundary conditions (when LES is used), will that even matter? Will OpenFOAM apply it or it is totally ignored (cuz it corresponds to RANS and not to LES)?
If using "kqRwallfunction" in LES is wrong, what will OpenFOAM apply instead: zeroGradient or fixedValue = 0?
hfs is offline   Reply With Quote

Old   March 2, 2015, 06:46
Default
  #13
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 26
RodriguezFatz will become famous soon enough
Quote:
Originally Posted by ehsan View Post
However, OpenFOAM uses the same near wall treatment for LES as K-W SST...
Ehsan, I don't think this is a correct description of how this works. OpenFOAM offers serveral boundary conditions and you can use the one you want to in each case and at each single boundary. It's not OpenFOAM that does this but the user.

Also, thinking of a RANS model and an LES using the same wall function is not correct. RANS models use wall functions that model time-averaged values as a function of other time-averaged values. LES wall functions model instantaneous values that are spatially filtered. This is quite different. Even though functions might look the same they have a different physical meaning.
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   March 2, 2015, 07:27
Default
  #14
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
Hello,


Please see Sec. 4.2.2 in http://www.cimec.org.ar/ojs/index.ph...File/3263/3186

(Thanks to Dr Santiago Márquez Damián for his kind helps)
wyldckat likes this.
ehsan is offline   Reply With Quote

Old   January 18, 2021, 22:23
Default
  #15
Member
 
Huan Zhang
Join Date: Nov 2020
Posts: 55
Rep Power: 5
Jasper Z is on a distinguished road
Quote:
Originally Posted by ehsan View Post
LES deltas

smoothDelta Smoothing of delta

I am asked about the:

the formula used for the LES filter width as a function of grid size for smoothDelta. Would you please help?
Hi Ehsan,

Sorry to start this thread again. I am facing the same problem, have you figured out the formula for the smooth filter width in OpenFOAM? Is there any tutorial about this? Many thanks
Jasper Z 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
Implement an les turbulence model pante OpenFOAM Programming & Development 19 December 5, 2014 16:16
SpalartAllarmasIDDES LES model mmmn036 OpenFOAM Running, Solving & CFD 1 April 23, 2014 20:01
LES basic and simple questions. dshawul Main CFD Forum 0 October 4, 2010 10:56
LES and combustion model Margherita Cadorin CFX 0 October 29, 2008 05:24
Some Questions about LES. Bin Li Main CFD Forum 2 February 20, 2004 09:58


All times are GMT -4. The time now is 08:51.