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

Negative pressures interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2020, 13:50
Default Negative pressures interFoam
  #1
New Member
 
pardoa
Join Date: May 2018
Posts: 29
Rep Power: 8
pardoa is on a distinguished road
Hello,

I'm simulating with interFoam a river reach of 1,5 km long x 50 m wide. The modelling setup is the following:

alpha.water
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      alpha.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0; 

boundaryField
{
    inlet
    {
        type            variableHeightFlowRate;
        lowerBound      0;
        upperBound      1;
        value           uniform 0;
    }

    rightBank
    {
        type            zeroGradient;
    }

    atmosphere
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }

    riverbed
    {
        type            zeroGradient;
    }

    leftBank
    {
        type            zeroGradient;
    }

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

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

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    rightBank
    {
        type            fixedFluxPressure;
    }

    atmosphere
    {
        type            totalPressure;
        p0              uniform 0;
    }

    riverbed
    {
        type            fixedFluxPressure;
    }

    leftBank
    {
        type            fixedFluxPressure;
    }

    outlet
    {
        type            totalPressure;
        p0              uniform 0;
    }
}
U
Code:
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            variableHeightFlowRateInletVelocity;
        flowRate        10;
        alpha           alpha.water;
        value           uniform (0 0 0);
    }

    rightBank
    {
        type            noSlip;
    }

    atmosphere
    {
        type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
    }

    riverbed
    {
        type            noSlip;
    }

    leftBank
    {
        type            noSlip;
    }

    outlet
    {
        type            zeroGradient;
    }
}
Somehow, the output pressures are negative almost everywhere in the domain, except at the deepest pools that lie on the riverbed. I don't find a reason for this. I can't be related to the reference pressure (pRefValue) used for the calculations, since the top (atmosphere) and outlet BC already prescribe a reference for the pressure (zero in this case).

I'm inclined to think that the reason could be in the reference z the model uses for the calculations. The mesh contains absolute coordinates that correspond to an specific datum. This means the cell-centre coordinates of the cell zero aren't 0,0,0 but 624615.45526,195098.08678,693.4758. This cell is located on the upstream bottom of the domain, at the inlet, and its elevation is one of the highest of the mesh. Because of this, the rest of z of the domain will be smaller, which could result in negative values for pressure.

Can anyone give me a hand on this? Many thanks in advance.

Alvaro
Attached Images
File Type: jpg Entire_domain.JPG (28.1 KB, 21 views)
File Type: jpg Inlet.jpg (120.6 KB, 20 views)
pardoa is offline   Reply With Quote

Old   November 11, 2021, 05:54
Default
  #2
Member
 
Alex Jarosch
Join Date: Dec 2015
Location: Austria
Posts: 33
Rep Power: 10
alexj is on a distinguished road
Hi Alvaro,


I face the same problem with a similar setup and the negative pressure values are a problem for my case. I was wondering if you have found the reason for this?


Any help greatly appreciated.


Alex
alexj 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 04:56.