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

No pressure drop in twoPhaseEulerFoam pipe with cyclic boundaries

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 30, 2016, 05:44
Default No pressure drop in twoPhaseEulerFoam pipe with cyclic boundaries
  #1
Senior Member
 
rdbisme's Avatar
 
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13
rdbisme is on a distinguished road
Hello,

it's been a while I've been struggling with this without understanding why I'm getting this behaviour.

I'm trying to simulate a two-phase flow with solid particles inside a liquid carrier and, even if the velocity profiles for both phases are developed, no pressure drop is achieved in the pipe.

constant/polyMesh/boundary
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

3
(
    outlet
    {
        type            cyclic;
        inGroups        1(cyclic);
        nFaces          4500;
        startFace       667500;
        matchTolerance  0.0001;
        transform       unknown;
        neighbourPatch  inlet;
    }
    inlet
    {
        type            cyclic;
        inGroups        1(cyclic);
        nFaces          4500;
        startFace       672000;
        matchTolerance  0.0001;
        transform       unknown;
        neighbourPatch  outlet;
    }
    walls
    {
        type            wall;
        inGroups        1(wall);
        nFaces          6000;
        startFace       676500;
    }
)

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

momentumSource
{
    type            meanVelocityForce;
    active          yes;

    meanVelocityForceCoeffs
    {
        selectionMode   all;

        fieldNames      (U.SLN2);
        Ubar            (0 1.3 0);
    }
}

momentumSource1
{
    type            meanVelocityForce;
    active          yes;

    meanVelocityForceCoeffs
    {
        selectionMode   all;

        fieldNames      (U.LN2);
        Ubar            (0 1.3 0);
    }
}




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

phases (SLN2 LN2);

SLN2
{
    diameterModel   constant;
    constantCoeffs
    {
    d        1.3e-3;
    }
   residualAlpha    1e-6;
}

LN2
{
    diameterModel   constant;
    constantCoeffs
    {
        d               1;
    }
  
   residualAlpha    1e-6;
}

blending
{
    default
    {
        type            none;
    continuousPhase    LN2;

    }
}

sigma
(
    (SLN2 and LN2)     0
);

aspectRatio
(

);

drag
(
    (SLN2 in LN2)
    {
        type            SchillerNaumann;
        residualAlpha   1e-6;
        residualRe      1e-3;
        swarmCorrection
        {
            type        none;
        }
    }

    (LN2 in SLN2)
    {
        type            SchillerNaumann;
        residualAlpha   1e-6;
        residualRe      1e-3;
        swarmCorrection
        {
            type        none;
        }
    }


);

virtualMass
(
    (SLN2 in SLN2)
    {
        type            constantCoefficient;
        Cvm             0.5;
    }

    (LN2 in SLN2)
    {
        type            constantCoefficient;
        Cvm             0.5;
    }
);

heatTransfer
(
    (SLN2 in LN2)
    {
        type            RanzMarshall;
        residualAlpha   1e-4;
    }

    (LN2 in SLN2)
    {
        type            RanzMarshall;
        residualAlpha   1e-4;
    }
);

lift
(
);

wallLubrication
(
);

turbulentDispersion
(
);

// Minimum allowable pressure
pMin            10000;


// ************************************************************************* //

termophysicalProperties.LN2

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      thermophysicalProperties.LN2;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       const;
    thermo          hConst;
    equationOfState perfectFluid;
    specie          specie;
    energy          sensibleInternalEnergy;
}

mixture
{
    specie
    {
        nMoles      1;
        molWeight   14;
    }
    equationOfState
    {
    R        3000;
    rho0        867.86;
    }
    thermodynamics
    {
        Cp          2000;
        Hf          25560;
    }
    transport
    {
        mu          294.92e-6;
        Pr          2.7975;
    }
}


// ************************************************************************* //
thermoPhysicalProperties.SLN2 (solid)

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      thermophysicalProperties.SLN2;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       const;
    thermo          hConst;
    equationOfState rhoConst;
    specie          specie;
    energy          sensibleInternalEnergy;
}

mixture
{
    specie
    {
        nMoles      1;
        molWeight   14;
    }
    equationOfState
    {
    rho        1026.5;
    }
    thermodynamics
    {
        Cp          1660;
        Hf          25560;
    }
    transport
    {
        mu          294.92e-6;
        Pr          2.42;
    }
}


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

dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0.13;

boundaryField
{
    outlet
    {
        type            cyclic;
    }
    inlet
    {
        type            cyclic;
    }
    walls
    {
        type            zeroGradient;
    }
}


// ************************************************************************* //
Other settings summarized:
  • k-epsilon just for the liquid phase
    • epsilonWallFunction on the wall
    • zeroGradient for k on the wall
  • fixedFluxPressure on wall for p and p_rgh
  • fixedValue: 0 for velocities on walls
  • No energy equation (not solving it)
If any other details needed, ask! =)
rdbisme is offline   Reply With Quote

 

Tags
pipe flow, two fluid model, two phase flow, twophaseeulerfoam


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
Orifice-Pipe Problem CFXMUFFIN CFX 3 July 16, 2015 18:57
pressure drop - pipe flow C.C Main CFD Forum 6 November 19, 2012 10:02
Unsteady pressure differential between inlet and outlet of the pipe for single phase joshi20h FLUENT 0 September 26, 2012 12:41
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 15:00


All times are GMT -4. The time now is 11:50.