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

Questions about the inletOutlet and outletInlet boundary conditions

Register Blogs Community New Posts Updated Threads Search

Like Tree134Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2017, 06:58
Default Pressure inlet Boundary condition in SIMPLE algorithm
  #21
New Member
 
abbas
Join Date: Aug 2017
Posts: 2
Rep Power: 0
ABS_abbas is on a distinguished road
Hi everyone,
I simulate a transient and in-compressible flow inside a PEM fuel cell and I don't know, how to enforce the " PRESSURE INLET " boundary condition?
my domain is a rectangular channel that fluid flows into the channel.
my domain is like a lid driven cavity. my inlet pressure is known but my velocity inlet (u_in) is unknown. other boundary is wall.
my domain have just one inlet boundary and 3 wall boundary. with no outlet boundary.


fluid(fuel) comes into channel and it is consumed(we have a sink inside channel that consume the fuel that comes to channel).there isn't any outlet.
I should set P_in=1 atm in inlet, but I heard that in SIMPLE we don't have absolute pressure.
what should I do?

Last edited by ABS_abbas; August 11, 2017 at 06:51.
ABS_abbas is offline   Reply With Quote

Old   August 10, 2017, 01:45
Default
  #22
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
Pressure driven flows are problematic. If you simply set a pressure difference this stay forever and drives the flow more and more until the system explodes. In reality, there is a balance between pressure difference and pressure resistance at a special flow.

I would start with velocity driven flow, set the pressure at the outflow to zero and change the inlet velocity until the measured / calculated pressure there is in the near of your known value.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   August 10, 2017, 11:07
Default
  #23
Senior Member
 
sheaker's Avatar
 
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10
sheaker is on a distinguished road
I think I succeed in pressure driven flow. Check this boundary condition.
For p:
Code:
[...]
dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 101320;

boundaryField
{
    inlet
    {
        type            totalPressure;
        p0              uniform 101325;
        U               U;
        phi             phi;
        rho             none;
        psi             none;
        gamma           1;
        value           uniform 101325;
    }

    outlet
    {
        type            fixedValue;
        value           uniform 101320;
    }


    wall
    {
        type            zeroGradient;
    }

    defaultFaces
    {
    type        empty;
    }
}
For U:
Code:
dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    inlet
    {
        type            pressureInletVelocity;
        value           uniform (0 0 0);
    }

    outlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           uniform (0 0 0);
    }

    wall
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    defaultFaces
    {
    type        empty;
    }
}
Let me know if it works for You, please.
Have a nice day.
Sheaker
sheaker is offline   Reply With Quote

Old   August 11, 2017, 06:47
Default inlet pressure boundary
  #24
New Member
 
abbas
Join Date: Aug 2017
Posts: 2
Rep Power: 0
ABS_abbas is on a distinguished road
Quote:
Originally Posted by piu58 View Post
Pressure driven flows are problematic. If you simply set a pressure difference this stay forever and drives the flow more and more until the system explodes. In reality, there is a balance between pressure difference and pressure resistance at a special flow.

I would start with velocity driven flow, set the pressure at the outflow to zero and change the inlet velocity until the measured / calculated pressure there is in the near of your known value.
thank you Mr. Pilz. but I think you didn't understand my problem.my case doesn't have outlet boundary. just one inlet and other boundaries are wall.
so I can't have an outlet boundary. I have to set pressure inlet in Inlet of domain.
information of my simulation:
transient, flow is in-compressible, using finite volume (SIMPLE algorithm), with Collocated grid.
I heard that in in-compressible flow, I have to set the pressure of a point to zero as a reference pressure point. is it correct?
ABS_abbas is offline   Reply With Quote

Old   March 2, 2021, 01:16
Default
  #25
New Member
 
Tushar Survase
Join Date: Nov 2020
Posts: 7
Rep Power: 5
ttsurvase is on a distinguished road
I am replying to your first query, inletOutlet Boundary condition is employed when user is not sure of flow direction. In inletOutlet BC, two boundary conditions are used. 1.zero Gradient, if flow is going out of domain. 2. fixedValue Bc, if flow is reversing. To accomodate both. I will explain the use using following example:
U: outlet { type inletOutlet; inletValue uniform (-2 0 0); value (0 0 0); }
So in the case, inletValue uniform (-2 0 0) is used for flow reversal phenomenon. While, if flow is going out, value 0 tells solver to use zeroGradient BC.

For more information, I will share the link of tutorial:
https://www.cfd.at/sites/default/fil...le%20Eight.pdf
Mahmoud Abbaszadeh and hr_nt like this.
ttsurvase 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
Inletoutlet rengu OpenFOAM Running, Solving & CFD 8 December 25, 2015 15:44
Burgerbs equation non constant Boundary Conditions Initial Conditions arkangel OpenFOAM Running, Solving & CFD 1 October 2, 2008 14:48
questions in initial conditions and inlet boundary nick CFX 2 April 19, 2008 09:26
TwoPhaseEulerFoam and InletOutlet boundary condition hemph OpenFOAM Running, Solving & CFD 10 January 29, 2007 09:47
Integral boundary conditions turbulent intensitylength boundary conditions olesen OpenFOAM Running, Solving & CFD 0 July 27, 2006 07:18


All times are GMT -4. The time now is 05:20.