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

SimpleFoam : LowRe vs Wall Functions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2010, 15:41
Default SimpleFoam : LowRe vs Wall Functions
  #1
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 17
Gearb0x is on a distinguished road
Hello,

I'm currently trying to run a simpleFoam case with & without the use of wall functions.

The problem is : I fix the pressure drop to match a certain mass flow. Here I fix it to 30 so : p_inlet = fixedvalue 30, p_outlet= fixedvalue 0

The simulation seems to run fine on one geometry but not on the other and I don't understand why...

The two geometries are : One with "short legs" (see pictures below) and one with "long legs" to have a developed flow.

The geometry with short legs give the same results with the LowRe model (without wallfunction) and the HighRe model (with wallfunctions) :


Pfield without wallfunction (LowRe)

http://yfrog.com/iypressurefieldp

Ufield without wallfunction (LowRe)

http://yfrog.com/i3velocityfieldp

Pfield with wallfunction

http://yfrog.com/jvpressurefieldp

Ufield with wallfunction

http://yfrog.com/i3velocityfieldcp

Whereas the geometry with long leg gives weird results (numerical values & flow geometry) for the pressure with the two models :

Pfield (LowRe)
http://yfrog.com/3mpressurefieldp
Ufield (LoweRe)
http://yfrog.com/58velocityfieldp

Pfield(HighRe)
http://yfrog.com/58pressurefieldp
Ufield(HighRe)




Can someone give me a hint where I could go wrong with my simulation and why do I get such changes from just changing the geometry?

Thank you very much.
Gearb0x is offline   Reply With Quote

Old   February 4, 2010, 06:02
Default
  #2
Senior Member
 
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 104
Rep Power: 17
Thomas Baumann is on a distinguished road
Hi GearB0x,

could you upload your boundary conditions? Espacially what are your velocity bc's at the inlet and outlet.

Regards Thomas
Thomas Baumann is offline   Reply With Quote

Old   February 4, 2010, 09:55
Default
  #3
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 17
Gearb0x is on a distinguished road
Here are my Boundary Conditions for the LowRe model (without wall functions) :

For p :

Code:
dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet           
    {
        type            fixedValue;
    value        uniform 30;
    }

    outlet          
    {
        type            fixedValue;
        value           uniform 0;
    }

    fixedWalls       
    {
        type            zeroGradient;
    }

    frontAndBack    
    {
        type            empty;
    }
}
For u :

Code:
dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    inlet           
    {
        type            zeroGradient;
    }

    outlet          
    {
        type            zeroGradient;
    }

    fixedWalls       
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }

    frontAndBack    
    {
        type            empty;
    }
}
For nut :

Code:
dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            calculated;
        value           uniform 0;
    }
    outlet
    {
        type            calculated;
        value           uniform 0;
    }
    fixedWalls
    {
        type            zeroGradient;
    }
    frontAndBack
    {
        type            empty;
    }
}
For k :

Code:
dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0.3328;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 0.3328;
    }
    outlet
    {
        type            zeroGradient;
    }
    fixedWalls
    {
        type            fixedValue;
    value        0.00000001;
    }
    frontAndBack
    {
        type            empty;
    }
}
for epsilon :
Code:
dimensions      [0 2 -3 0 0 0 0];

internalField   uniform 0.3676;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 0.3676;
    }
    outlet
    {
        type            zeroGradient;
    }
    fixedWalls
    {
        type            fixedValue;
    value        0.00000001;
    }
    frontAndBack
    {
        type            empty;
    }
}
Thank for your reply and your help
Gearb0x is offline   Reply With Quote

Old   February 5, 2010, 11:57
Default
  #4
Senior Member
 
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 104
Rep Power: 17
Thomas Baumann is on a distinguished road
Hi Gearb0x,
I think for the nut at the wall you should use calculated, too. But that shouldn't be the problem.
How good are the residuals?
Thomas Baumann is offline   Reply With Quote

Old   February 6, 2010, 03:56
Default
  #5
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 17
Gearb0x is on a distinguished road
Hello,

I'll try with calculated and see if that changes anything, I'll let you know.

Residuals were around 10^-5 if I remember. How can I check/plot them? I tried to run the simulation for 3000, 6000, 10000 and it doesn't seem to reach a steady state for the Low-Re model. The High Re achieve steady state.
Gearb0x is offline   Reply With Quote

Old   February 6, 2010, 05:05
Default
  #6
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 17
Gearb0x is on a distinguished road
I've tried with nut = calculated @wall

it still gives weird results, even wost because now my pressure field is totally symmetrical ... :s

Is it possible that the mesh is too/not enough fine? Could that give wrong results?
Gearb0x is offline   Reply With Quote

Old   February 10, 2010, 11:58
Default
  #7
Senior Member
 
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 104
Rep Power: 17
Thomas Baumann is on a distinguished road
Hi Gearbox,

start a simulation with standard bc's for turbulent incompressible flow.

Inlet: U,k,epsilon field fixedValues, p zeroGradient
Outlet: U,k,epsilon zeroGradient, p fixedValue

nut everywhere calculated for low-reynolds-models

and look if everything works here fine...to be sure your mesh is okay.

best regards
Thomas Baumann is offline   Reply With Quote

Old   February 10, 2010, 19:03
Default
  #8
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 17
Gearb0x is on a distinguished road
Thanks for the hint!

Apparently the mesh was the problem since now I get "nice" results

In fact, the grading was wrong : it switched between "fine" and "coarse" part too abruptly.

Best regards
Gearb0x is offline   Reply With Quote

Old   June 15, 2018, 17:33
Default
  #9
Senior Member
 
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11
randolph is on a distinguished road
Hey,

Just curious which low Re k epsilon formula does this setting enable?

Thanks!
randolph 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
help with wall functions Nick Georgiadis Main CFD Forum 10 January 17, 2017 11:03
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
Wall functions tutlhino OpenFOAM Pre-Processing 0 July 2, 2007 06:04
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12
When I use the wall functions....! maximus Main CFD Forum 7 January 20, 2003 10:35


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