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

BC Pressure Driven Flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2019, 07:59
Question BC Pressure Driven Flow
  #1
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 7
Carlo_P is on a distinguished road
Hey guys,
I'm trying to simulate the flow in a T-Pipe, with two Inlet (upper and left) and 1 Outlet.


In the Inlet_up flows a fixed massFlowRate
In the Inlet_sx the flow is coming inside due to a difference of pressure
In the Outlet, the flow is going out.


I have some problems in the BC, in particolar in the Inlet_sx.
I'm not sure if is better to use TotalPressure or fixed value for p and pressureInletOutletVelocity for U.



In the Inlet_up: U=massFlowRate
p=zeroGradient


In the Outlet: U= zeroGrazdient
p= fixed value0


In the Inlet_sx:
U= zeroGradient or pressureInletOutletVelocity?
p=totalPressure or fixedValue?



Thanks for any suggestion!


Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


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

internalField   uniform (0 0 0);

boundaryField
{
    /*Inlet_up
    {
        type            fixedValue;
        value           uniform (0 -5 0);
    }*/
        
    /*{
        type            flowRateInletVelocity;
        massFlowRate    constant 0.000019;
        rhoInlet        1.22; 
    }*/
    
    #include "include/fixedInlet"
    
        Inlet_sx
    {

     type            zeroGradient;

    }
    Outlet
    {
         type            zeroGradient;
    }

    Sym
    {
        type            symmetry;
    }
    Body
    {
       type           noSlip;
    }   

}



Code:
FoamFile
{
    version 2.0;
    format ascii;
    class volScalarField;
    location "0";
    object p;
}
dimensions [ 0 2 -2 0 0 0 0 ];
internalField uniform 0.0;
boundaryField
{
    Inlet_sx
    {
         type           fixedValue;
         
        value           uniform 0;
    }

    Outlet
    {
         type           fixedValue;
         
        value           uniform 0;
    }

    Inlet_up
    {
        type zeroGradient;
    }

    Sym
    {
        type symmetry;
    }

    Body
    {
        type zeroGradient;
    }

}
Carlo_P is offline   Reply With Quote

Reply

Tags
simplefoam pressure bc


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
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
static vs. total pressure auf dem feld FLUENT 17 February 26, 2016 13:04
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 21:31
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 13:19


All times are GMT -4. The time now is 17:06.