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

Roughness Wall Function

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By RobertHB
  • 1 Post By RobertHB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2019, 09:02
Default Roughness Wall Function
  #1
New Member
 
A Pedrioli
Join Date: Oct 2018
Posts: 9
Rep Power: 9
andreape is on a distinguished road
Hello!

I'm trying to run some simulations with some rough surfaces but unfortunately I don't see any effect, i.e. the solution doesn't change if I vary the Ks number. Here an example in how I set the BC for nut:

PHP Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    
version     2.0;
    
format      ascii;
    class       
volScalarField;
    
object      nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 0;

boundaryField
{
    
farfield
    
{
        
type            freestream;
        
freestreamValue uniform 0;
        
value           uniform 0;
    }

    
frontAndBackPlanes
    
{
        
type            empty;
    }

    
wall_airfoil
    
{
        
type            nutUSpaldingWallFunction;
        
value           uniform 0;
    }
    
wall_airfoil_rough
    
{
        
type           nutkRoughWallFunction;
        
Ks              uniform 0.2;
        
Cs              uniform 0.5;
        
value          uniform 0.0;


    }
}

// ************************************************************************* // 
Do you know what coulb be the error? I have to change only the BC in nut right?

Thank you in advance!
andreape is offline   Reply With Quote

Old   March 1, 2019, 04:33
Default
  #2
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 13
RobertHB is on a distinguished road
A few ideas without knowing the exact solution.
- The wallfunction seems to be best suited for flows with a large inherent nut value. I tried differen Ks values in a lamiar flow with the average nut being < 1e-10 and there are no visible changes.
- How does Ks = 0.2 relate to your geometry? If your airfoil is tenth of meters long, Ks = 0.2 might not do much. You could try to use a much larger value.
- I tested the wallfunction with the channel395 case and Ks = 1. Graphically, in paraview, there were no visible changes, but plotting nut and U over the distance from the wall showed minimal changes.
ronak likes this.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   March 5, 2019, 12:31
Default
  #3
New Member
 
A Pedrioli
Join Date: Oct 2018
Posts: 9
Rep Power: 9
andreape is on a distinguished road
No the airfoil is only 1 meter long. Now I tried for greater Ks but seems to be always a little variation. Could be a problem of meshing? Or is it beacause it's in 2D?

For surface roughness problem the only thing that I have to change is the BC at wall in 0/nut right?

Thank you!
andreape is offline   Reply With Quote

Old   March 7, 2019, 03:54
Default
  #4
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 13
RobertHB is on a distinguished road
Meshing, that might be it. The BC does not work if ks is larger than your first cell height.
andreape likes this.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   March 7, 2019, 08:52
Default
  #5
New Member
 
A Pedrioli
Join Date: Oct 2018
Posts: 9
Rep Power: 9
andreape is on a distinguished road
In fact, adjusting the first cell height I get some results that makes sense. Thank you. Now I had some difficulties to get the right drag coefficient. Do you have any advice?? Finer mesh behind the airfoil?
andreape is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 12:04
What's the problem with turbulence models near the wall region? Jaydi_21 Main CFD Forum 6 July 7, 2017 03:39
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30


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