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

Inlet & outlet both pressure boundary condition

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By HPE
  • 2 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2020, 05:47
Default Inlet & outlet both pressure boundary condition
  #1
New Member
 
shouvik ghorui
Join Date: Oct 2019
Posts: 15
Rep Power: 7
shouvik ghorui is on a distinguished road
Hello, everyone, I am new in OpenFOAM, I am trying to simulate a negative pressure ventilation room.there is a present and a bed inside the room and the present release constant heat flux. for creating the negative pressure inside the room. I want to give an inlet and outlet as a pressure boundary condition. for inlet, I will give 0pa and for the outlet -8pa.
and I use buoyantPimpleFoam
now the question is
1) can I use both pressure boundary condition at inlet and outlet?
2) in which file(p or p_rgh) I have to specified value of pressure -8pa?
if any data is required to say then, please let me know. thanks in advance. if anyone helps me it will be great for me.
shouvik ghorui is offline   Reply With Quote

Old   May 12, 2020, 15:04
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Hi,

>> 1) can I use both pressure boundary condition at inlet and outlet?

Yes, you can.

>> 2) in which file(p or p_rgh) I have to specified value of pressure -8pa?

If you will carry out incompressible flow simulation, specification in "p" should suffice. But, note that "p" is the kinematic pressure, and in units of "m2/s2", therefore, you need to do a unit conversion from "Pa".

Hope it helps.

BTW: I would set inlet 8Pa and outlet 0Pa (no specific reason).
Marpole and shouvik ghorui like this.
HPE is offline   Reply With Quote

Old   May 12, 2020, 20:02
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Just want to make one statement. Using a "negative pressure" needs the assumption of incompressible as only in this scenario we have only pressure gradients to look at. For compressible flows one has to take an EOS into account. Thus, a negative pressure will make trouble as we all know, there is no pressure value with a negative sign.
Marpole and shouvik ghorui like this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   May 17, 2020, 12:27
Smile
  #4
New Member
 
shouvik ghorui
Join Date: Oct 2019
Posts: 15
Rep Power: 7
shouvik ghorui is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Just want to make one statement. Using a "negative pressure" needs the assumption of incompressible as only in this scenario we have only pressure gradients to look at. For compressible flows one has to take an EOS into account. Thus, a negative pressure will make trouble as we all know, there is no pressure value with a negative sign.
thank you sir.
shouvik ghorui is offline   Reply With Quote

Old   May 17, 2020, 12:28
Smile
  #5
New Member
 
shouvik ghorui
Join Date: Oct 2019
Posts: 15
Rep Power: 7
shouvik ghorui is on a distinguished road
Quote:
Originally Posted by HPE View Post
Hi,

>> 1) can I use both pressure boundary condition at inlet and outlet?

Yes, you can.

>> 2) in which file(p or p_rgh) I have to specified value of pressure -8pa?

If you will carry out incompressible flow simulation, specification in "p" should suffice. But, note that "p" is the kinematic pressure, and in units of "m2/s2", therefore, you need to do a unit conversion from "Pa".

Hope it helps.

BTW: I would set inlet 8Pa and outlet 0Pa (no specific reason).
thank you sir.
shouvik ghorui is offline   Reply With Quote

Old   November 1, 2022, 05:39
Default Please Help
  #6
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 139
Rep Power: 7
Sakun is on a distinguished road
Hi guys,


Sorry for messaging to an old thread

i am simulating a compressor blade and i need to required apply total pressure,static pressure for "p" and total temperature for "T" .

my simulation shows a tendency to converge but after around 2000 iterations it diverges and continue till end .


i attached p ,U codes and BC values, i would really appreciate if you could comment on them whether it is correct or wrong. i need desperately need help.


p file,

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2112                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


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

//internalField   uniform 97251;

boundaryField
{
    INLET
    {

        //type            zeroGradient;

        //type            freestreamPressure;
        //freestreamValue uniform $pOut;

        type            totalPressure;
        p0                uniform 115775;
        value           uniform 115775;
    
        //type            fixedValue;
        //value           uniform 84636.34;
    }

    OUTLET
    {
        
        //type            zeroGradient;         
        
        //type            freestreamPressure;
        //freestreamValue $internalField;    
            
        type            fixedValue;
        value           $internalField;

    }

    CASCADE
    {
        type            zeroGradient;
    }

    "(TOP|BOTTOM)"
    {
        type            cyclicAMI;
    }

    frontAndBackPlanes
    {
        type            empty;
    }
}


// ************************************************************************* //

U file,


Code:
/*--------------------------------*- C++ -*----------------------------------* \
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2112                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform (0 0 0);

boundaryField
{
    INLET
    {
        //type            pressureInletOutletVelocity;
        //value           uniform (110.534 135.673 0);

        //type            freestreamVelocity;
        //freestreamValue uniform $Uinlet;
        //value           uniform $Uinlet;
    
        //type            fixedValue;
        //value           uniform (232.43 20.34 0);
        
        type pressureDirectedInletVelocity;
        inletDirection uniform (0.631623456 -0.775275312 0);
        value uniform (0 0 0);

        //type            pressureInletOutletVelocity;
        //value           uniform (0 0 0);
        //inletValue      uniform (0 0 0);
    }

    OUTLET
    {
        //type           inletOutlet;
       //inletValue    uniform (0 0 0);
        //value         $internalField;

        type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
        inletValue      uniform (0 0 0);

        //type            fixedValue;
        //value           uniform (0 0 0);

        //type            zeroGradient;
    }

    CASCADE
    {
        type            noSlip;
    }
    
    "(TOP|BOTTOM)"
    {
        type            cyclicAMI;
    }

    frontAndBackPlanes
    {
        type            empty;
    }

    
}


// ************************************************************************* //

T file,


Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2112                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


dimensions      [0 0 0 1 0 0 0];

internalField   uniform 340.2;

boundaryField
{
    INLET
    {
        type            totalTemperature;
        gamma           1.4;
        T0              $internalField;

        //type            inletOutlet;
        //inletValue      uniform $Tinlet;
        //value           $inletValue;
        
        //type            fixedValue;
        //value           $internalField;
    }
    
    OUTLET
    {
        type            inletOutlet;
        inletValue      $internalField;
        value           $internalField;
    }

    CASCADE
    {
        type            zeroGradient;
    }

    
    "(TOP|BOTTOM)"
    {
        type            cyclicAMI;
    }

    frontAndBackPlanes
    {
        type            empty;
    }

    
}


// ************************************************************************* //

please help
Attached Images
File Type: jpg Journal values.jpg (193.3 KB, 12 views)
Sakun is offline   Reply With Quote

Reply

Tags
buoyanboussinesqpimple, buoyancy driven flow, pressure boundary


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
Acoustic boundary condition with pressure perturbation at inlet hand90 CFX 2 August 10, 2018 08:36
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
Time dependant pressure boundary condition yosuke1984 OpenFOAM Verification & Validation 3 May 6, 2015 07:16
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
Pulsatile pressure inlet with pressure outlet a.lynchy FLUENT 3 March 23, 2012 14:45


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