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

Simple 2D rising Bubble. About B.C. of interFoam.

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 2, 2013, 07:45
Default Simple 2D rising Bubble. About B.C. of interFoam.
  #1
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Torino, Italy
Posts: 742
Rep Power: 9
sharonyue is on a distinguished road
Hi guys,

I want to make a test about rising bubble via interFoam,Its really simple.But what confused me is my B.C. I wish the outlet boundary permit only water getting in and air getting out. so I set alpha B.C. like this:

Code:
boundaryField
{
    sides
    {
        type            zeroGradient;
    }
    inlet
    {
        type            zeroGradient;
    }
    outlet
    {
        type            inletOutlet;
        inletValue      uniform 1;
        value           uniform 1;
    }
    frontAndBack
    {
        type            empty;
    }
}
To maintain stability,I use a combination of p_rgh and U B.C.

P_rgh
Code:
boundaryField
{
    sides
    {
        type            buoyantPressure;
	value		uniform 0;
    }
    inlet
    {
        type            buoyantPressure;
	value		uniform 0;
    }
    outlet
    {
 type            totalPressure;
        p0              uniform 0;
        U               U;
        phi             phi;
        rho             rho;
        psi             none;
        gamma           1;
        value           uniform 0;
    }
    frontAndBack            
    {
	type		empty;   
    }    
}
U
Code:
boundaryField
{
   sides
    {
      type            zeroGradient;
    }
    inlet
    {
	type		fixedValue;
	value		uniform (0 0 0);
    }
    outlet
    {
	type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
    }
  frontAndBack           
    {
	type		empty;   
 }    
}

It runs normally, and the solution of alpha is not bad.but the p_rgh is little big.you can see the image.

So.if I want to simulate this situation which is only water can getting in,How should I set the B.C.?Thanks in advance.
Attached Images
File Type: jpg initial situation.jpg (20.7 KB, 16 views)
File Type: jpg 2.jpg (39.8 KB, 15 views)
File Type: jpg 3.jpg (43.1 KB, 14 views)
File Type: jpg 4.jpg (42.7 KB, 17 views)
File Type: jpg 5.jpg (37.2 KB, 14 views)
sharonyue is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
bubbleFoam - Simple case, Large bubble, closed domain darai OpenFOAM Running, Solving & CFD 9 October 12, 2015 05:40
SIMPLE algorithm in 3D cylindrical coordinates zouchu Main CFD Forum 1 January 20, 2014 18:02
Bubble coulmn and VOF method (interFoam) voingiappone OpenFOAM 14 June 26, 2012 20:13
Struggling with BCs for 'simple' interFoam case rassilon OpenFOAM Running, Solving & CFD 1 May 15, 2009 10:16
Single Bubble Gerrit Senger CFX 4 March 12, 2007 17:29


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