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

Relation between boundary conditions for pressure and velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2016, 04:45
Default Relation between boundary conditions for pressure and velocity
  #1
Member
 
Join Date: May 2015
Posts: 68
Rep Power: 10
hcl734 is on a distinguished road
Two basic question:

1)
Why do we have to assign a zeroGradient-BC for pressure when we use a fixedValue-BC for velocity?

2)
Why do we have to assign zeroGradient for the outlet when using fixedValue for the inlet?

Sorry if asked before, couldn't find it.

Thx for help!
hcl734 is offline   Reply With Quote

Old   January 22, 2016, 04:01
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
for incompressible flow pressure and velocity is directly related to each other, so it is not right to constrain both variables
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   January 26, 2016, 10:27
Default
  #3
Member
 
Join Date: May 2015
Posts: 68
Rep Power: 10
hcl734 is on a distinguished road
So the reason is basicly that I only solve one equation (momentum balance/NS) to obtain pressure and velocity. When I fix pressure and velocity it can not be solved, right?

Just another question about pressure-BC.
What is the difference between setting a fixedValue for pressure and a totalPressure-BC?
I understand the difference between pressure and total pressure but I don't understand the implications entirely.

Let me give an example:
Impinging Jet on a plate
totalPressure for outlet results in



fixedValue pressure


Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 101325;

boundaryField
{    

    
    AXIS
    {
        type            zeroGradient;
    }
    INLET
    {
        type            zeroGradient;
    }
    OPEN
    {

        type            fixedValue;
        value           uniform 101325;

/*
        type            totalPressure;
        U               U;
        phi             phi;
        rho             none;
        psi             none;
        gamma           1.4;
        p0              uniform 101325;
*/

    }
    OPENUPPER
    {

        type            fixedValue;
        value           uniform 101325;

/*
        type            totalPressure;
        U               U;
        phi             phi;
        rho             none;
        psi             none;
        gamma           1.4;
        p0              uniform 101325;
*/    
    
//        Property     | Description             | Required    | Default value
//         U            | velocity field name     | no          | U
//         phi          | flux field name         | no          | phi
//         rho          | density field name      | no          | none
//         psi          | compressibility field name | no       | none
//         gamma        | ratio of specific heats (Cp/Cv) | yes |
//         p0           | static pressure reference | yes       |
    }
    PIPEWALL
    {
        type            zeroGradient;
    }
    SIDE1
    {
        type            wedge;

    }
    SIDE2
    {
        type            wedge;

    }
    WALL
    {
        type            zeroGradient;
    }
}
hcl734 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 13:06
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 06:18


All times are GMT -4. The time now is 08:35.