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

interFoam inlet bc

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2018, 09:49
Default interFoam inlet bc
  #1
Member
 
Join Date: Apr 2017
Posts: 68
Rep Power: 9
kaaja is on a distinguished road
Hi,

We are using interFoam, and have problems with one of the fluids filling up our channel.
From the pictures below it looks like it is the inlet BC that creates our problem, since the inlet only contains one of the fluids.

pic1.jpg

pic2.jpg

Does anybody know how to make the inlet consist of both fluids, just as the rest of the fluids does at the first solution time period?

Here is our alpha-file

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

dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           $internalField;
        /*
        type            variableHeightFlowRate;
        lowerBound      0;
        upperBound      1;
        value           $internalField;*/
    }

    outlet
    {
        //type            fixedValue;
        //value           $internalField;
        type            variableHeightFlowRate;
        lowerBound      0;
        upperBound      1;
        value           $internalField;
    }

    widthSide
    {
        type            zeroGradient;
    }
    top
    {
        type            inletOutlet;
        inletValue      $internalField;
        value           $internalField;
    }
    bottom
    {
        type            zeroGradient;
    }
    cube
    {
        type            zeroGradient;
    }
    sym
    {
        type            symmetryPlane;
    }
}

// ************************************************************************* //
kaaja is offline   Reply With Quote

Old   January 12, 2018, 10:36
Default
  #2
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12
Taataa is on a distinguished road
The mesh seems to be awful elongated in the direction the flow!
Regarding the BC just set the value to alpha at the inlet to a value less than 1, depending how much of the the other fluid you want to have e.g. a value of 0.5 means 50% of inflow will be the fluid.
Taataa is offline   Reply With Quote

Old   January 12, 2018, 10:52
Default
  #3
Member
 
Join Date: Apr 2017
Posts: 68
Rep Power: 9
kaaja is on a distinguished road
I set the value to 1, and that did the trick. Thank you so much for this precise, fast and helpfull answer!
kaaja is offline   Reply With Quote

Reply

Tags
interfoam; inlet


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
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 12 January 31, 2020 15:26
interFoam inlet / outlet BCs ThomasV OpenFOAM Running, Solving & CFD 0 March 27, 2015 10:56
interFoam open channel Gildeh OpenFOAM 17 June 19, 2012 03:48
interFoam open channel Gildeh OpenFOAM Running, Solving & CFD 0 February 6, 2012 15:39
Inlet Velocity in CFX aeroman CFX 12 August 6, 2009 18:42


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