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

open channel in pipmleFOAM (using LES)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By hulli

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2017, 09:05
Default open channel in pipmleFOAM (using LES)
  #1
New Member
 
maliheh
Join Date: Nov 2017
Posts: 3
Rep Power: 8
maliheh is on a distinguished road
Hi everybody,

I try to model an open channel with smooth bed in OpenFOAM software by pimpleFOAM (LES) solver. I will be appreciated if you help me to model it properly. Actually, I modeled an open channel. Unfortunately, I think my model has some problems. The specifications of my model as follow:
long 2.5 m; width= height =0.2 m (channel)
mean velocity =0.21 m/s; water height= 0.045 m; size mesh 2*2*2 mm
B.C

Code:
(0/U)

atmosphere
{
        type            symmetry;
        
    }

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

   outlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           uniform (0.21 0 0);
    }

    inlet
    {
         type            fixedValue;
         value           uniform (0.21 0 0);
    }

    smooth
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
}
///////////////////////////////////////////////


(0/P)

boundaryField
{

atmosphere
{
        type            symmetry;
        
    }

    walls
    {
     
        type            fixedFluxPressure;
        value           uniform 0;
    }

   inlet
    {
     
          type           zeroGradient;
 
    }

    outlet
    {
     
           type           zeroGradient;       
    }

smooth
    {

        type            fixedFluxPressure;
        value           uniform 0;
       
    }
//////////////////////////////////////////////////////////


(0/K)

     atmosphere
      {
        type            symmetry;
        
    }
    inlet
    {
        type            fixedValue;
        value           uniform 0.000165;
    }
    outlet
    {
         type            inletOutlet;
        inletValue       uniform 0.000165;
        value            uniform 0.000165;
       
    }
    walls
    {
        type            fixedValue;
        value           uniform 0;

    }
  
  smooth
    {
      
         type            fixedValue;
         value           uniform 0;
    }
} 



//////////////////////////


controlDict


application     pimpleFoam;

startFrom      latestTime;

startTime       0;

stopAt          endTime;

endTime 600;

deltaT          0.001;

writeControl    timeStep;

writeInterval   200;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

//runTimeModifiable   true;
adjustTimeStep    yes;
maxCo    0.5;

functions
{
    fieldAverage1
    {
        type            fieldAverage;
        functionObjectLibs ( "libfieldFunctionObjects.so" );
        enabled         true;
        outputControl   outputTime;

        fields
        (
            U
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }

            p
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }
        );
    }
}
/////////////////////////


((fvSchemes))




ddtSchemes
{
    default           Euler;
}

gradSchemes
{
    default         Gauss linear;
}

divSchemes
{
    default         none;
    div(phi,U)      Gauss linear;
    div(phi,k)      Gauss limitedLinear 1;
    div(phi,B)      Gauss limitedLinear 1;
    div(B)          Gauss linear;
    div(phi,nuTilda) Gauss limitedLinear 1;
    div((nuEff*dev(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

fluxRequired
{
    default         no;
    p               ;
}


//////////////////////////////


fvSolution



solvers
{
    p
    {
        solver          GAMG;
        tolerance       0;
        relTol          0.1;
        smoother        GaussSeidel;
        nPreSweeps      0;
        nPostSweeps     2;
        cacheAgglomeration true;
        nCellsInCoarsestLevel 10;
        agglomerator    faceAreaPair;
        mergeLevels     1;
    }

    pFinal
    {
        $p;
        smoother        DICGaussSeidel;
        tolerance       1e-06;
        relTol          0;
    }

    "(U|k)"
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-05;
        relTol          0.1;
    }

    "(U|k)Final"
    {
        $U;
        tolerance       1e-05;
        relTol          0;
    }
}

PIMPLE
{
    nOuterCorrectors 1;
    nCorrectors     2;
    nNonOrthogonalCorrectors 0;
    pRefCell        1001;
    pRefValue       0;
}
///////////////////////////////

1. I entered initial velocity of flow equal with 0.21 m/s (as mean velocity) but mean velocity is increasing during the channel while you may know it should be constant. Would you help me to solve this problem?

2. I want to verify my model with results from a paper that the plotted figure is attached. Based on this figure my model is not in good agreement with results from paper. (I didn't consider air influence on my model. Do this difference between my model and paper is related to the air effect???-paper didn't mentioned about air effect-)


Thank you for your valuable time.


Tobi: Put all your content of the files into code tags! Please keep clearance!
Attached Images
File Type: png velocity.PNG (14.0 KB, 36 views)
File Type: png Capture1.PNG (9.7 KB, 26 views)

Last edited by Tobi; November 25, 2017 at 10:49.
maliheh is offline   Reply With Quote

Old   November 24, 2017, 13:17
Default
  #2
Member
 
hulli graemer
Join Date: Oct 2014
Posts: 48
Rep Power: 11
hulli is on a distinguished road
from my little experience with the channel tutorial and looking at your profile I think you need to run that a bit longer so the profile will equilibrate ... I meant that you should try cyclic boundaries and let it run for a very long time until you will see turbulences... Then do a timeaverage and your profile should HOPEFULLY fit ... may be that helps ... Best H
QL-dut likes this.
hulli is offline   Reply With Quote

Old   November 25, 2017, 05:46
Default
  #3
New Member
 
maliheh
Join Date: Nov 2017
Posts: 3
Rep Power: 8
maliheh is on a distinguished road
Quote:
Originally Posted by hulli View Post
from my little experience with the channel tutorial and looking at your profile I think you need to run that a bit longer so the profile will equilibrate ... I meant that you should try cyclic boundaries and let it run for a very long time until you will see turbulences... Then do a timeaverage and your profile should HOPEFULLY fit ... may be that helps ... Best H
Many thanks for your response.

Actually, the channel has been run about 600 sec. Does this run time is enough???
Do my file(0) and system file are correct? If it is possible for you, please check my files.
I appreciate you.
maliheh is offline   Reply With Quote

Old   November 25, 2017, 12:20
Default
  #4
Member
 
hulli graemer
Join Date: Oct 2014
Posts: 48
Rep Power: 11
hulli is on a distinguished road
Hi,

Well I guess looking at the Profiles that you want to get a fully turbulent flow? Right ? As I mentioned I never did any two Phase flows with OF. But in oder to get turbulences and a locartitmic shaped profile as shown in your figure and done in the tutorial channel 3xx you have either to run the case for a very long time... or you Speed that up using the utilities boxturb or perturbU to generate some white noise that helps to get a fully turbulent flow. The development of turbulences is also denpendent on your resolution (check your Yplus) and the Dimensions of your domain. After the turbulences developed do that timeaveraging I mentioned above... Just check the forum in that issue there are million of posts on that... i hope that helps
hulli 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
Enabling Open Channel Flow Sub-Model in Mixture model cod213 FLUENT 0 January 10, 2017 13:40
Open Channel Boundary Conditions Issues Env FLUENT 8 June 28, 2016 16:05
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Community Contributions 27 April 16, 2014 15:14
interFoam & decomposition method: scotch MacGyver OpenFOAM Running, Solving & CFD 2 May 23, 2012 07:00


All times are GMT -4. The time now is 02:07.