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

interFoam, cyclic BC and gravity problem

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By randolph

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 26, 2016, 10:14
Exclamation interFoam, cyclic BC and gravity problem
  #1
New Member
 
Join Date: Feb 2016
Posts: 2
Rep Power: 0
mhiel is on a distinguished road
Hi everyone,

I'm trying to simulate turbulent water flow through a pipe (the pipe is half-filled with water, the upper half is air) using interFoam and cyclic boundary conditions with the goal to examine the velocity profile when the flow is fully developed.

The g file is set to:

value ( 0.01 -9.81 0)

to simulate a slight inclination of the pipe (about 1 per mille) which induces a constant potential on the water.
In ParaView I expected to see an acceleration of the water (increasing U) until the flow reaches developed state.
However the results are quite irritating as the U values in the water region are constantly fluctuating on low magnitudes (as can be seen in the attached image) and never reach fixed values. Moreover the velocities are far too slow for the water phase and there is no acceleration of the water phase as anticipated.

I assume I did something wrong with the cyclic boundary conditions or other settings but I'm new to OF and would appreciate any help/ideas.

Here's a bit more information:

my U file:

Code:
internalField   uniform ( 0 0 0 );

boundaryField
{
    inlet
    {
        type            cyclic;
    }
    walls
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    outlet
    {
        type            cyclic;
    }
}
p_rgh:

Code:
internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            cyclic;
    }
    outlet
    {
        type            cyclic;
    }
    walls
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }
}
g:
Code:
value           ( 0.01 -9.81 0 );
I attached the whole case if you'd like to run it yourself.
Note that in the case the orientation of the pipe axes differs from what I've described above (which i did to avoid confusion). Thus in the case g reads: ( 0 0.01 -9.81 )

mhiel
Attached Images
File Type: jpg Screenshot_2016-02-26_15-42-08.jpg (122.1 KB, 143 views)
Attached Files
File Type: zip cyclicWaterAirPipe.zip (11.6 KB, 26 views)

Last edited by mhiel; February 29, 2016 at 10:00.
mhiel is offline   Reply With Quote

 

Tags
cyclic boundary condition, gravity, interfoam


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



All times are GMT -4. The time now is 06:49.