CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Disabling Wall Functions (https://www.cfd-online.com/Forums/openfoam-solving/97167-disabling-wall-functions.html)

Kaskade February 10, 2012 06:10

Disabling Wall Functions
 
Hello,
I am trying to simulate a mesh containing walls with y+-Values between 100 and 200, as well as walls with y+-Values well below 1 using kOmegaSST.
Of course this is not really good to begin with but my idea was to use fixedValue for k and zeroGradient for omega on the walls with the low y+-Values.
Unfortunately when I start the simulation the OpenFOAM seems to set the walltypes to wallfunctions on it's own. Is there some way to disable this?
Kind regards
Kaskade

Kaskade February 12, 2012 13:59

Answer:

k
type fixedValue;
value 0; //some say you should use a value like 1e-11, but it doesn't seem to make any difference

omega
type zeroGradient;

nut
type calculated;
value $internalField;

If you don't set up a file for nut yourself, OpenFOAM will generate it and upgrade your walls with wallfunctions.

huangxianbei August 23, 2014 04:30

Quote:

Originally Posted by Kaskade (Post 344032)
Answer:

k
type fixedValue;
value 0; //some say you should use a value like 1e-11, but it doesn't seem to make any difference

omega
type zeroGradient;

nut
type calculated;
value $internalField;

If you don't set up a file for nut yourself, OpenFOAM will generate it and upgrade your walls with wallfunctions.

Hi,Onno:
Why the nut is set to be calculated instead of zerogradient? I remember that when no wall function is needed, the type should be zerogradient. Please correct me if I'm wrong

Xianbei

Kaskade August 23, 2014 04:48

That was a long time ago.... right now I what say, you might as well leave the wall functions turned on and use nutUSpaldingWallFunction for nut.


@myself from 2,5 years ago: If your mesh is that bad/uneven -> fix that first.

huangxianbei August 23, 2014 10:39

Quote:

Originally Posted by Kaskade (Post 507408)
That was a long time ago.... right now I what say, you might as well leave the wall functions turned on and use nutUSpaldingWallFunction for nut.


@myself from 2,5 years ago: If your mesh is that bad/uneven -> fix that first.

Hi,Onno:
Thank you for your reply. As omega based turbulence model can solve the finer mesh with y+<3 or less, so no wall function is needed when the mesh is fine enough. What do you mean by saying 'turn on the wall function as well'?

Xianbei

Kaskade August 23, 2014 12:19

In my original post I was asking for a way to turn of the wall function manually on walls with a small y+. But from I understand now, you don't need to turn off the wall functions, since omegaWallFunction and nutUSpaldingWallFunction can be used for small y+-values.

huangxianbei August 24, 2014 02:03

Quote:

Originally Posted by Kaskade (Post 507448)
In my original post I was asking for a way to turn of the wall function manually on walls with a small y+. But from I understand now, you don't need to turn off the wall functions, since omegaWallFunction and nutUSpaldingWallFunction can be used for small y+-values.

I see, you mean it's a kind of automatic wall function similar to the commercial codes like CFX, right? Just not long before, I was confused about the wall function that there is no explicit y+ threshold in the source code. So the nuSgsWallFunction is similar to that of nutSpaldingwallfunction, which is also based on Spalding's law, right?

Kaskade August 24, 2014 03:44

It think it is discussed here: http://www.cfd-online.com/Forums/ope...megasst-2.html

huangxianbei August 24, 2014 09:53

Quote:

Originally Posted by Kaskade (Post 507507)

Thank you very much. Now I know that the nut and nuSgs may be a generic wall function. So whatever the resolution of the mesh is , using a wall function will be better.


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