Skip to content

phasePropertiesDict

fmuni edited this page May 13, 2020 · 3 revisions

phaseProperties dictionary

Description

phaseProperties is the main dictionary for using the library and share some similarities with the analogous in twoPhaseEulerFoam.

NOTE: eulerianFilteredTFM also requires material properties to be specified in thermophysicalProperties.

Syntax

By default, eulerianFilteredTFM is labeling the two phases as dispersed and continuous, but the user can adjust the names using:

  • setPhaseNames: is a sub-dictionary that allows the user to rename the default phases as shown below.

It is possible to write internal fields (viscosities, phase pressures, drag, etc. ) declaring:

  • writeInternalFields
setPhaseNames
{
    dispersed  particles;
    continuous air;
}

writeInternalFields;

For each phase, an additional sub-dictionary is required where the following entries are specified:

  • diameterModel: only constant is currently available.
  • constantCoeffs: this sub-dictionary requires the specification of the particle diameter d.
  • alphaMax: maximum allowable phase fraction (also used in some correlations).
  • residualAlpha: tolerance value for the phase volume fraction.

Other entries are described in the stress closure section.

particles
{
    //Particles are glass beads
    diameterModel constant;
    constantCoeffs
    {
        d               58.9e-6;
    }

    alphaMax        0.62;
    residualAlpha   1e-6;


    stressClosure
    {
        mesoScale
        {
            type  SarkarMeso;
            phase dispersed;
        }

        frictional
        {
            type SchneiderbauerFrictional;

            //Parameters for SchneiderbauerFrictional
            I0      0.297;
            muSt    0.3819;
            muC     0.6435;
        }

        microScale
        {
            type SarkarMicro;
        }
    }

}

Remaining entries are described in the documentation for [interphase closures](ClsInter), [auxiliary equations](EqnNew) and [dynamic parameters](DynMain).

Examples

A full phaseProperties dictionary could be:

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

//Rename phases with case-appropriate names
setPhaseNames
{
    dispersed  particles;
    continuous air;
}

particles
{
    //Particles are glass beads
    diameterModel constant;
    constantCoeffs
    {
        d               58.9e-6;
    }

    alphaMax        0.62;
    residualAlpha   1e-6;

    stressClosure
    {
        mesoScale
        {
            type  SarkarMeso;
            phase dispersed;
        }

        frictional
        {
            type SchneiderbauerFrictional;

            //Parameters for SchneiderbauerFrictional
            I0      0.297;
            muSt    0.3819;
            muC     0.6435;
        }

        microScale
        {
            type SarkarMicro;
        }
    }

}

air
{
    diameterModel constant;
    constantCoeffs
    {
        d               1;
    }

    residualAlpha   0;

    stressClosure
    {
        mesoScale
        {
            type  SarkarMeso;
            phase continuous;
        }

        microScale
        {
            type molecular;
        }
    }

}


drag
{
       microscopicDragLaw
       {
        type            GidaspowErgunWenYu;
        residualRe      1e-3;
       }

       heterogeneousCorrection
       {
        type        SchneiderbauerPirker;
       }

}


heatTransfer
{
      microscopicNusselt
      {
        type            RanzMarshall;
        residualAlpha   1e-3;
      }

      heterogeneousCorrection
      {
       type        none;
      }

}

equations
{

}

dynamicParameters
{
  //Speed up calculations with constant cell size
  constantFilterSize;

  //Quantities used in correlations
  referenceFilterSize            1e-4;

  //Settling drag law for terminal velocity
  settlingDrag Stokes;
}



Back to Home.

Clone this wiki locally