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

DPMFoam pressure problems

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2017, 05:16
Default DPMFoam pressure problems
  #1
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 13
ali.m.1 is on a distinguished road
Hello

I'm running a submerged jet impingement test using DPMFoam (3.0.x), and although in the log file it says that the pressure is solving (GAMG: Solving for p, Initial residual = 0.006891, Final residual = 5.435e-05, No Iterations 3), and that it converges, when I open a time directory, the whole field is a uniform 1e5 which is my outlet BC.

Here is my p file in my 0 directory:
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 1e5;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }
    walls
    {
        type            zeroGradient;
    }
    pOutTop
    {
        type            totalPressure;
        p0              1e+05;
        U               U.water;
        phi             phi.water;
        rho             none;
        psi             none;
        gamma           1;
        value           uniform 1e+05; 
       /* type            fixedValue;
        value           100000;*/
    }
    bottomOutlet
    {
        type            totalPressure;
        p0              1e+05;
        U               U.water;
        phi             phi.water;
        rho             none;
        psi             none;
        gamma           1;
        value           uniform 1e+05; 
      /*  type            fixedValue;
        value           100000;*/
    }
    impingement
    {
        type            zeroGradient;
    }

    symmetry
    {
        type            symmetry;
    }
}

// ************************************************************************* //
Does anyone have any ideas? I'm running a similar case on reactingTwoPhaseEulerFoam with the same BCs and this gives me expected pressure plots.

Ali
ali.m.1 is offline   Reply With Quote

Old   April 26, 2017, 12:47
Default
  #2
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 13
ali.m.1 is on a distinguished road
Hi All

I realised that if I change the initial p file then the solver runs fine. The problem was that I was confusing gauge pressure and absolute.

Here is the p file that works, in case it will help anyone else in the future:
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;//1e5;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }
    walls
    {
        type            zeroGradient;
    }
    pOutTop
    {
        type            totalPressure;
        p0              0;//1e+05;
        U               U.water;
        phi             phi.water;
        rho             none;
        psi             none;
        gamma           1;
        value           uniform 0;//1e+05; 
       /* type            fixedValue;
        value           100000;*/
    }
    bottomOutlet
    {
        type            totalPressure;
        p0              0;//1e+05;
        U               U.water;
        phi             phi.water;
        rho             none;
        psi             none;
        gamma           1;
        value           uniform 0;//1e+05; 
      /*  type            fixedValue;
        value           100000;*/
    }
    impingement
    {
        type            zeroGradient;
    }

    symmetry
    {
        type            symmetry;
    }
}

// ************************************************************************* //
ali.m.1 is offline   Reply With Quote

Reply

Tags
dpmfoam, field, pressure


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
Pressure Inlet Boundary Conditions Mr.Goodcat FLUENT 5 June 20, 2019 02:47
Pressure loss Velocity coupling CFXMUFFIN CFX 1 February 6, 2016 05:43
Pulsatile pressure inlet with pressure outlet a.lynchy FLUENT 3 March 23, 2012 14:45
Pressure Boundary Problems Chris Siemens 2 June 21, 2005 09:20
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 06:13


All times are GMT -4. The time now is 15:41.