|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Join Date: Apr 2017
Posts: 68
Rep Power: 10 ![]() |
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; } } // ************************************************************************* // |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 13 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Apr 2017
Posts: 68
Rep Power: 10 ![]() |
I set the value to 1, and that did the trick. Thank you so much for this precise, fast and helpfull answer!
|
|
![]() |
![]() |
![]() |
Tags |
interfoam; inlet |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |