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

Single inlet geometry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2017, 08:10
Default Single inlet geometry
  #1
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
I am working on a single inlet/outlet geometry using the twoLiquidMixingFoam solver (for simulating gas but as a first step, I assume compressible effects are negligible).
A stratification exists within the geometry and then some inflow comes and disturbs the stratification.
I am encountering some issues with the case so I would like to "simplify" it to rule out the potential culprits.

First thing I would like to do is to delete the outlet. So my geometry would simply consist of the mixture inside the geometry and then an incoming flow from the inlet.

The boundary conditions are therefore set the following way with the intent to make the "outlet" patch behave like a wall (since for now I want to remove the outlet) :


U file
Code:
boundaryField
{
    frontAndBack
    {
        type            empty;
    }
    walls
    {
        type            noSlip;
    }
    inlet
    {
        type            flowRateInletVelocity;
        massFlowRate    constant 0.01
	rhoInlet        1.184; // 1.184 density of air
    }
    outlet
    {
        type            noSlip; 
    }
}
p_rgh file
Code:
boundaryField
{
    frontAndBack
    {
        type            empty;
    }
    outlet
    {
	type            zeroGradient;
    }
    inlet
    {
        type            zeroGradient;
    }
    walls
    {
        type            zeroGradient;
    }
}
alpha.x
Code:
boundaryField
{
    frontAndBack
    {
        type            empty;
    }
    walls
    {
        type            zeroGradient;
    }
    inlet
    {
        type            fixedValue;
        value           uniform 0;

    }
    outlet
    {
        type            zeroGradient;
    }

}
but then I get the following error :

Code:
Continuity error cannot be removed by adjusting the outflow.
Please check the velocity boundary conditions and/or run potentialFoam to initialise the outflow.
Total flux              : 0.000645087
Specified mass inflow   : 0.0128378
Specified mass outflow  : 0
Adjustable mass outflow : 0
So somehow the solver (twoLiquidMixingFoam) does not like having only one inlet and no outlet ?
Gearb0x is offline   Reply With Quote

Old   November 15, 2017, 10:34
Default
  #2
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Hi Gearb0x,

I am not familiar with your solver and with multiphase flow but I think you cannot have boundary conditions as such. If you have an inlet you must have an outlet, otherwise you are trying to compress the fluid... Perhaps you could get away with using an outletInlet boundary, but I haven't tried. See this for more info: https://www.openfoam.com/documentati...conditions.php


-Louis
louisgag is offline   Reply With Quote

Old   November 15, 2017, 10:55
Default
  #3
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
Yes indeed pressure would increase in my case. But I did not think this would be an issue.
Gearb0x is offline   Reply With Quote

Old   November 15, 2017, 11:11
Default
  #4
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
I think more than the pressure the issue comes from the mass coming in... You have flow in, so mass, and nothing coming out, so density must increase, but the flow is incompressible.. Correct me if I'm wrong!
louisgag is offline   Reply With Quote

Old   November 15, 2017, 11:32
Default
  #5
Senior Member
 
Join Date: Nov 2009
Posts: 111
Rep Power: 16
Gearb0x is on a distinguished road
Indeed, that must be the issue!
Gearb0x is offline   Reply With Quote

Old   November 16, 2017, 16:23
Default
  #6
Member
 
Jaydeep
Join Date: Jun 2015
Posts: 34
Rep Power: 11
jaydeep is on a distinguished road
You could try mixed boundary that adjusts inflow based on pressure?

something of the nature pressureInletOutletVelocity?
jaydeep is offline   Reply With Quote

Old   January 13, 2020, 16:18
Default
  #7
Senior Member
 
Join Date: Jul 2019
Posts: 148
Rep Power: 7
Bodo1993 is on a distinguished road
Hi,
I am using twoLiquidMixingFoam with one inlet and two outlets. I get some vortices at the outlet when the mixed phase reaches there.
Here is a description of my problem
I would appreciate your assistance.
Thanks.
Bodo1993 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
multiple fluid domain over single geometry mandeep1 FLUENT 0 March 1, 2015 14:11
F-16 inlet geometry Imran Main CFD Forum 2 May 16, 2007 08:42
outlet = inlet in a periodic geometry Stephane bone Siemens 3 January 20, 2005 03:26
Using two UDFs in a single geometry Salman FLUENT 3 November 21, 2002 13:08
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


All times are GMT -4. The time now is 15:21.