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

wall Function

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By cfdonline2mohsen
  • 1 Post By cfdonline2mohsen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2013, 05:05
Default wall Function
  #1
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15
sasanghomi is on a distinguished road
Hi Foamers,

I have a question about wall functions in openfoam.
I am using k-epsilon turbulence model and I am using kqRWallFunction and epsilonWalFunction . I think the range of Y+ should be between 30 and 300 30<Y+<300 . But in my case the range of yplus is Y+<10 . Please anybody guide me . Can I use another wallFunction with k-epsilon turbulence model? Is there enhanced wall treatment wall function in openfoam?? Can I change only wall function? Actually I want to use k-epsilon model But I want to have another wallFunction. Any idea?

I appreciate any help from you ,
Thanks and best regards,
Sasan.
sasanghomi is offline   Reply With Quote

Old   September 19, 2013, 07:19
Default
  #2
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 118
Rep Power: 16
cfdonline2mohsen is on a distinguished road
Dear Sasan

Here is the source of all the incompressible RAS wall functions that are available in OF: wallFunctions

And they are only Standard wall functions.
So the easier way is to correct your mesh.
__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”
cfdonline2mohsen is offline   Reply With Quote

Old   September 19, 2013, 10:01
Default
  #3
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15
sasanghomi is on a distinguished road
Dear Mohsen ,
Thank you very much for your reply.I need compressible wall Functions . Do you know the Y+<5 is a good range ? {for standard wall function} ?

Best regards,
Sasan.
sasanghomi is offline   Reply With Quote

Old   September 19, 2013, 14:22
Default
  #4
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 118
Rep Power: 16
cfdonline2mohsen is on a distinguished road
Dear Sasan

You can find all compressible wall Functions available in OF in here: wallFunctions

As you told; the range of Y+ should be between 30 and 300 30<Y+<300 to use standard wall Functions. Coarsen the mesh in those zones where Y+ are less than 30 and refine the mesh where Y+ are more than 300.

There is another thing that you must notice when using yPlusRAS:
In the older versions of OF, this utility calculated yStar not yplus. I don't know if they fixed this bug or not.
see for example:
http://www.cfd-online.com/Forums/ope...earstress.html
http://www.cfd-online.com/Forums/ope...s-1-7-1-a.html
sasanghomi likes this.
__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”
cfdonline2mohsen is offline   Reply With Quote

Old   September 20, 2013, 04:17
Default
  #5
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15
sasanghomi is on a distinguished road
Dear mohsen,
Thank you very much for your useful reply.
Do you know which version of openfoam have this problem? I am using 1.6 ext (CAE linux) I think the value of Y+ is very low in my case.
sasanghomi is offline   Reply With Quote

Old   September 20, 2013, 05:00
Default
  #6
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 118
Rep Power: 16
cfdonline2mohsen is on a distinguished road
Dear Sasan

Yeah, for OpenFOAM®-1.6-ext, it is Ystar not Yplus. have a look at:
https://github.com/Unofficial-Extend...RAS/yPlusRAS.C
and:
https://github.com/Unofficial-Extend...larField.C#L94
Code:
94      scalar yPlus = Cmu25*y[faceI]*sqrt(k[faceCellI])/nuw[faceI];
Which is the definition of Ysatr.
sasanghomi likes this.
__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”
cfdonline2mohsen is offline   Reply With Quote

Old   September 20, 2013, 05:17
Default
  #7
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15
sasanghomi is on a distinguished road
Can I fix this problem? Can you guide me for correction of code? Or Can you attach here the correct code?

I appreciate any help from you,
Thanks and best regards
sasanghomi is offline   Reply With Quote

Old   September 20, 2013, 05:48
Default
  #8
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 118
Rep Power: 16
cfdonline2mohsen is on a distinguished road
As I told in post #4 see the below links for the correct code:

Problems with YPlusRAS and wallShearStress
Definition of y+ in yPlusRAS (1.7.1)
__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”
cfdonline2mohsen is offline   Reply With Quote

Old   September 21, 2013, 10:53
Default
  #9
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15
sasanghomi is on a distinguished road
Hi Dear Mohsen,

I used the attached file in the #8 of below thread
http://www.cfd-online.com/Forums/ope...earstress.html

I am using OP 1.6 ext so I changed option file :
- lgenericPatchFields------>>> -lmeshTools \
-lsampling

after compiling the code (wmake) I used this utility for my case But unfortunately I got zero value for all yplus everywhere . Please help me for getting correct code .

I appreciate any help from you
Thanks and best regards,
Sasan.

P.S. Also the attached file in #5 doesn't work for compressible flow.
sasanghomi 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
Wall function for velocity? johnblund OpenFOAM 3 September 6, 2022 08:22
foamToTecplot360 thomasduerr OpenFOAM Post-Processing 121 June 11, 2021 11:05
Enhanced Wall Treatment paduchev FLUENT 24 January 8, 2018 12:55
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
Need some wall function approaches! yka8150 Main CFD Forum 0 September 22, 2009 00:08


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