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

Hydrostatic pressure issue

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 3, 2013, 17:05
Unhappy Hydrostatic pressure issue
  #1
Member
 
Join Date: Nov 2011
Posts: 30
Rep Power: 14
Gimlas is on a distinguished road
I am totally confused with the hydrostatic pressure calculations in openfoam. I've prepared a simulation of air flow through a vertical pipe (buoyantBoussinesqSimpleFoam). I've used following BC for pressures:

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

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

internalField   uniform 0;

boundaryField
{
    Wall
    {
        type            calculated;
        value           $internalField;
    }
    Inlet
    {
        type            calculated;
        value           $internalField;
    }
    Outlet
    {
        type            fixedMean;
        meanValue       0;
    value        uniform 0;
       
    }
}

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

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

internalField   uniform 0;

boundaryField
{
    Wall
    {
        type            fixedFluxPressure;
        rho             rhok;
        value           $internalField;
    }

    Inlet
    {
        type            fixedFluxPressure;
        rho             rhok;
        value           $internalField;
    }
    Outlet
    {
        type            fixedMean;
        meanValue       0;
    value        uniform 0;
    }
}

// ************************************************************************* //
p_rgh profile is identical to the results obtained from Ansys Fluent (please see attached image). However the p profile is wrong. Althouth uniform 0 value was set at the Outlet, the results show high undepressure. I've made my own calculations using calculator filter in paraView (see p_calculated image). The profile was obtained as follows:
Code:
p = p_rgh+(H-coordsY)*9.81*1.225
where H is the pipe height, 9.81 is gravity and 1.225 is air density
As you can see this profile is correct.

My qestion is: why the original p calculations went so wrong? Is there a mistake in the BC?

I've also tried to run calculations without p file in 0 folder. But in next iterations such file was created with incorect pressure field.

Please, help me
Attached Images
File Type: jpg p_rgh_OF.jpg (20.2 KB, 41 views)
File Type: jpg p_OF.jpg (21.2 KB, 44 views)
File Type: jpg p_calculated.jpg (18.6 KB, 44 views)
Gimlas is offline   Reply With Quote

 


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
Recorded Pressure Issue Benjikos FLUENT 0 November 30, 2010 10:06
single phase hydrostatic pressure problem erkan FLUENT 1 March 1, 2010 12:29
Does star cd takes reference pressure? monica Siemens 1 April 19, 2007 11:26
Gas pressure question Dan Moskal Main CFD Forum 0 October 24, 2002 22:02
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 00:12.