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

omega wilcox definition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2016, 12:37
Default omega wilcox definition
  #1
Senior Member
 
Join Date: Mar 2016
Posts: 133
Rep Power: 10
giammy92 is on a distinguished road
I'm using k-omega SST model in Low-Re mode so without wall functions.
I set omega with fixedValue calculated with wilcox's formula:

omega = 6*nu/(0.075*y^2)

in which y should be the first cell center nearest to wall. How i can calcaulate this? Is there an utility for this?
giammy92 is offline   Reply With Quote

Old   May 11, 2016, 18:13
Default
  #2
New Member
 
Clara
Join Date: Sep 2010
Location: Bruxelles
Posts: 16
Rep Power: 16
risku9 is on a distinguished road
Dear giammy92,

What do you need to calculate? y or omega? or you want to calculate omega within the code directly?

Cheers!
risku9 is offline   Reply With Quote

Old   May 11, 2016, 19:37
Default
  #3
Senior Member
 
Join Date: Mar 2016
Posts: 133
Rep Power: 10
giammy92 is on a distinguished road
Hi risku9, I want calculate omega with wilcox formula at wall because I think that is more accurated compared to omegaWallFunction. I need to know y in formula that should be the first cell center right? Is there an utility to calculate it?
giammy92 is offline   Reply With Quote

Old   May 11, 2016, 19:48
Default
  #4
New Member
 
Clara
Join Date: Sep 2010
Location: Bruxelles
Posts: 16
Rep Power: 16
risku9 is on a distinguished road
Hey!

If what you want to get is y, I think you can find it in the wall function definition of omegaWallfunction:

src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunctions

You can find this piece of code:

const scalarField& y = turbulence.y()[patchI];

Which I believe refers to the nearWall distance, as if you look into the C++ documentation of OpenFOAM:

http://openfoam.github.io/Documentat...ml/a01744.html

Looking for turbulenceModel::y() and clicking on it you will reach:
http://openfoam.github.io/Documentat...ce.html#l00157

where it explains:

//- Return the near wall distances
158 const nearWallDist& y() const
159 {
160 return y_;
161 }

So I think if you use that turbulence.y() as in the omegaWallFunction now, you should be able to get to do what you would like!

I hope this helps! =)
risku9 is offline   Reply With Quote

Old   May 12, 2016, 08:11
Default
  #5
Senior Member
 
Join Date: Mar 2016
Posts: 133
Rep Power: 10
giammy92 is on a distinguished road
Sorry i haven't understood well what i have to do to obtain near wall distance.
giammy92 is offline   Reply With Quote

Old   May 12, 2016, 13:27
Default
  #6
New Member
 
Clara
Join Date: Sep 2010
Location: Bruxelles
Posts: 16
Rep Power: 16
risku9 is on a distinguished road
Hey,

So I think you would just need to create a new wall function, in which you set that omega to the value you want. I was checking the original OmegaWallFunction in the code in the folder of installation of openfoam:

OpenFOAM/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/omegaWallFunctions/

And it is almost already what you are looking for as beta1_ = 0.075, you would just need to comment the omegaLog component.
If look in line 234 from omegaWallFunction.C file:

// Set omega and G
forAll(nutw, faceI)
{
label cellI = patch.faceCells()[faceI];

scalar w = cornerWeights[faceI];

scalar omegaVis = 6.0*nuw[faceI]/(beta1_*sqr(y[faceI]));

scalar omegaLog = sqrt(k[cellI])/(Cmu25*kappa_*y[faceI]);

omega[cellI] += w*sqrt(sqr(omegaVis) + sqr(omegaLog));

G[cellI] +=
w
*(nutw[faceI] + nuw[faceI])
*magGradUw[faceI]
*Cmu25*sqrt(k[cellI])
/(kappa_*y[faceI]);
}
risku9 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
Behaviour of the kOmegaSST in a steady-state case Max1234 OpenFOAM Running, Solving & CFD 18 October 31, 2018 09:03
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 03:50
how to calculate the omega at inlet boundary in k omega sst Scabbard OpenFOAM Running, Solving & CFD 2 September 30, 2014 14:06
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21
Definition of omega jpo FLUENT 4 April 7, 2009 16:06


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