CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   nutRoughWallFunction v1.6 - Values for Ks and Cs (http://www.cfd-online.com/Forums/openfoam/75608-nutroughwallfunction-v1-6-values-ks-cs.html)

Heesei April 30, 2010 04:49

nutRoughWallFunction v1.6 - Values for Ks and Cs
 
Hello everyone

There are already some posts about nutRoughWallFunction, e.g. "nutRoughWallFunction and Surface Roughness Documented". But still I have a problem.

The following piece of code

{
type nutRoughWallFunction::Ks;
value uniform 0.001;
type nutRoughWallFunction::Cs;
value uniform 0.5;
}

seems to be correct. If I leave the values for Ks or Cs I get an error message. Nevertheless, I always get the same result no matter which values are chosen. I have also used different meshes but the result is always the same.

Does anyone know a solution to this problem? I think I am not the only one who is interested in this topic.

Thanks in advance.


Kind regards,

Irina

gocarts April 30, 2010 08:02

nutRoughWallFunction bug in 1.6 fixed in 1.6.x
 
nutRoughWallFunction in OpenFOAM 1.6 doesn't work correctly due to a bug. Try the latest 1.6.x from the git repository for the corrected version.

For more details on using nutRoughWallFunction try:
http://www.cfd-online.com/Forums/ope...ocumented.html

Hope this helps.

maddalena June 17, 2010 08:16

Still a bug on nutRoughWallFunction?
 
Hello everybody,
I still have problems using nutRoughWallFunction with 1.6.x. More in detail, I have the same problems as posted above: whenever I change Ks (from extremely low to extremely high values), the results I get are always the same.

I am studying the flow around an airfoil at Re 1.5 millions and modeling turbulence with the KOmegaSST model. I defined the airfoil surface as:
Code:

  airfoil
  {
    type nutRoughWallFunction::Ks;
    value uniform 0.00048;   
  }

Cs is not specified since I am using the default value of 0.5.

I tried different angles of attack and let the simulations converge till 1000 time steps. However, no changes on the aerodynamic coefficients while changing Ks. I tried different Ks, including 0 (smooth surface) and 1 meters, and also different turbulence models (kEpsilon). No changes. I am wandering if there is still some bug on the nutRoughWallFunction.

Any experience on that? Suggestions? Is there any incompatibility between schemes or parameter definition that let the simulation do not take into account the Ks?

Any help is appreciated.
Cheers,


mad

herbert June 17, 2010 09:53

Hi,

I've already worked with rough wall function in 1.6.x in my results are fine. Changing Ks had a big influence in my case. But I'm not sure if your BC is defined correctly, because you give no value for Ks but just for nut, which is in my opinion completely ignored. I used something like
Code:

airfoil
{
    type      nutRoughWallFunction;
    Ks          uniform 1e-5;
    Cs          uniform 0.5;
    value      uniform 0.0;
}

Regards,
Stefan

maddalena June 17, 2010 10:06

Hi Stefan and thanks for your answer.
I followed what posted by Irina above... However, using:
Code:

airfoil
  {
    type nutRoughWallFunction;
    value uniform 0.0;   
    Ks uniform 0.00048;   
    Cs uniform 0.5;   
  }

did not changed my results. Also keeping Ks fixed and changing Cs did not produce any variation.
Maybe I installed the new OF 1.6.x version not properly. Do you know how can I switch on some debug to check whether the nutRoughWallFunction references are correct? In order to check if is a problem with my openFoam, I could also run a case that is working for sure for someone else... Maybe you have a really simple case I can test... May I try it?
Thank you.

mad

maddalena June 17, 2010 10:38

Ok, switched on the debug flag (see Userguide!)
If I change the Ks, I can see that:
  • KsPlus changes --> OK!
  • Edash changes --> OK!
  • nutw = 0 in any case!
As explained here: http://www.cfd-online.com/Forums/ope...on-v1-6-a.html, this is the cause of the bug fixing of OF 1.6.x: nutw always inizialised to zero.
Thus, probably there is something wrong with my installation...
What do you think?

mad

Heesei August 10, 2010 07:33

Hi Maddalena

I installed OpenFOAM 1.7.x and used

lowerWall
{
type nutRoughWallFunction;
Ks uniform 0.24;
Cs uniform 0.5;
value uniform 0.0;
}

as was suggested by Stefan. When changing Ks values my results changed as well. Finally, everything works fine. Maybe you should also install the latest version.


Cheers,

Irina

maddalena August 10, 2010 07:39

Hi Irina and thanks for your interest. My problem was something different, see http://www.cfd-online.com/Forums/ope...tml#post264132. Everything worked when I changed mesh resolution.
Regards,

maddalena

aka November 7, 2011 18:19

Quote:

Originally Posted by maddalena (Post 270962)
Hi Irina and thanks for your interest. My problem was something different, see http://www.cfd-online.com/Forums/ope...tml#post264132. Everything worked when I changed mesh resolution.
Regards,

maddalena

Does anyone of you tried Rough wall function in LES using OpenFoam?

Thanks

hfs July 31, 2012 23:33

Quote:

Originally Posted by aka (Post 331113)
Does anyone of you tried Rough wall function in LES using OpenFoam?

Thanks


Hello!

I am also interested in Rough wall function in LES ...

Have you got any ideas?

David* August 7, 2012 11:08

Hi hfs,
my only idea is to use fixedValue for nuSgs and e.g. nuTilda or every other LES parameter. Maybe it's possible to calibrate this value to behave like a normal roughness parameter. What do you think?
Cheers

hfs August 8, 2012 07:19

Thanks for the idea ... am not sure ... will get back to you!

Thanks!


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