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

Multiple Phases inflow and outflow - Boundary Conditions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2019, 14:56
Default Multiple Phases inflow and outflow - Boundary Conditions
  #1
New Member
 
Vitor Heitor Cardoso
Join Date: Jan 2019
Location: Rio de Janeiro
Posts: 10
Rep Power: 7
heitorvitorc is on a distinguished road
Hey guys,

I'm working on multiphase flow in porous media on microscale, using interFoam solver, and I need to validate the simulation with an experiment consisting on oil displacement in a microchannel. Thus, I prepared a 3D rectangle in gmsh and set it as filled with oil, in order to inject water.

It seems like the simulations are not returning physical sense, as the oil phase is not leaving the domain. I kindly ask for the community help to evaluate which are the proper boundary conditions for the alpha.water, p_rgh and U dictionaries, as I am new to such matters. Here are the assumptions:

Fully saturated channel;
Water is injected;
Oil leaves the channel as water moves into outlet.
Incompressible flow.

I appreciate any kind of help. Thanks in advance.

Best regards,
Vitor

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      alpha.oil;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0 0 0];


internalField   uniform 1;

boundaryField
{
    FrontAndBack
    {
        type            empty;
    }
    Inlet
    {
        type            fixedValue;
        //inletValue      uniform 0;
        value           uniform 1;
    }
    BottomWall
    {
        type            zeroGradient; // ignoring surface tension effects 
    }
    Outlet
    {
        type            inletOutlet;
        inletValue   uniform 0;
        value          uniform 0;
    }
    TopWall
    {
        type            zeroGradient; // ignoring surface tension effects 
    }
}


Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object     
Code:
 p_rgh
; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField uniform 0; boundaryField { Inlet { type fixedValue; value uniform 10; } Outlet { type fixedValue; value uniform 0; } TopWall { type zeroGradient; } BottomWall { type zeroGradient; } FrontAndBack { type empty; } }

Code:

FoamFile
{
    version     2.0;
    format      binary;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform (0 0 0);

boundaryField
{
    FrontAndBack
    {
        type            empty;
    }
    Inlet
    {
        type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
    }
    TopWall
    {
        type            noSlip;
    }
    Outlet
    {
        type            zeroGradient;
    }
    BottomWall
    {
        type            noSlip;
    }

}
heitorvitorc is offline   Reply With Quote

Old   August 30, 2019, 02:55
Default
  #2
Member
 
Stefanie Wolf
Join Date: Nov 2018
Location: Aachen
Posts: 32
Rep Power: 8
Stefanie.S.W. is on a distinguished road
Hello Vitor,



did you try a fixed velocity inlet and a pressure outlet?

I think that those are quite easy BCs to begin with and have a 1st test run.

Maybe a fixed value inlet BC will work for you. It is used in the nozzleFlow tutorial. (interFoam les)


u_inlet

{

type fixedValue;
value uniform (x y z);
}
u_outlet
{
type zeroGradient;
}


prgh_inlet

{

type zeroGradient; }
prgh_outlet
{
type fixedValue;
value uniform 0;

}
Maybe a massFlowRate inlet would also work? (as in the angledDuct tutorial?)


Best,
Stefanie
Stefanie.S.W. is offline   Reply With Quote

Old   December 21, 2020, 23:36
Default Boundary condition setting
  #3
New Member
 
Rohit
Join Date: Mar 2020
Location: IIT, Delhi, India
Posts: 9
Rep Power: 6
Rohitsingh is on a distinguished road
Send a message via Skype™ to Rohitsingh
Quote:
Originally Posted by heitorvitorc View Post
Hey guys,

I'm working on multiphase flow in porous media on microscale, using interFoam solver, and I need to validate the simulation with an experiment consisting on oil displacement in a microchannel. Thus, I prepared a 3D rectangle in gmsh and set it as filled with oil, in order to inject water.

It seems like the simulations are not returning physical sense, as the oil phase is not leaving the domain. I kindly ask for the community help to evaluate which are the proper boundary conditions for the alpha.water, p_rgh and U dictionaries, as I am new to such matters. Here are the assumptions:

Fully saturated channel;
Water is injected;
Oil leaves the channel as water moves into outlet.
Incompressible flow.

I appreciate any kind of help. Thanks in advance.

Best regards,
Vitor

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      alpha.oil;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0 0 0];


internalField   uniform 1;

boundaryField
{
    FrontAndBack
    {
        type            empty;
    }
    Inlet
    {
        type            fixedValue;
        //inletValue      uniform 0;
        value           uniform 1;
    }
    BottomWall
    {
        type            zeroGradient; // ignoring surface tension effects 
    }
    Outlet
    {
        type            inletOutlet;
        inletValue   uniform 0;
        value          uniform 0;
    }
    TopWall
    {
        type            zeroGradient; // ignoring surface tension effects 
    }
}
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object     
Code:
 p_rgh
; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField uniform 0; boundaryField { Inlet { type fixedValue; value uniform 10; } Outlet { type fixedValue; value uniform 0; } TopWall { type zeroGradient; } BottomWall { type zeroGradient; } FrontAndBack { type empty; } }
Code:

FoamFile
{
    version     2.0;
    format      binary;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform (0 0 0);

boundaryField
{
    FrontAndBack
    {
        type            empty;
    }
    Inlet
    {
        type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
    }
    TopWall
    {
        type            noSlip;
    }
    Outlet
    {
        type            zeroGradient;
    }
    BottomWall
    {
        type            noSlip;
    }

}

I am also having same problem, can you share the solution if you resolved your problem?
Rohitsingh 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
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 02:44
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 11:00
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 11:20
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
potentialFoam doesnt start?! Sway OpenFOAM Running, Solving & CFD 0 July 2, 2015 08:48


All times are GMT -4. The time now is 00:50.